(0.3ms) begin transaction ----------------------- Test123Test: test_truth -----------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction --------------------------------- Shoppe::OrderTest: test_the_truth ---------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction --------------------------------- Shoppe::OrderTest: test_the_truth ---------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction --------------------------------- Shoppe::OrderTest: test_the_truth ---------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction --------------------------------- Shoppe::OrderTest: test_the_truth ---------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.4ms) begin transaction --------------------------------- Shoppe::OrderTest: test_the_truth ---------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.4ms) begin transaction --------------------------------- Shoppe::OrderTest: test_the_truth ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction --------------------------------- Shoppe::OrderTest: test_the_truth ---------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction --------------------------------- Shoppe::OrderTest: test_the_truth ---------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- ShoppeTest: test_configuration_is_loaded ----------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction --------------------------------- Shoppe::OrderTest: test_the_truth ---------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- ShoppeTest: test_configuration_is_loaded ----------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction --------------------------------- Shoppe::OrderTest: test_the_truth ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- ShoppeTest: test_configuration_is_loaded ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction --------------------------------- Shoppe::OrderTest: test_the_truth ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- ShoppeTest: test_configuration_is_loaded ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (3.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateProductCategories (20130926094549)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "shoppe_product_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime)  SQL (1.6ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130926094549"]]  (0.9ms) commit transaction Migrating to CreateProducts (20130926094551)  (0.0ms) begin transaction  (0.4ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "vat_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130926094551"]]  (0.9ms) commit transaction Migrating to CreateOrders (20130926094647)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130926094647"]]  (0.6ms) commit transaction Migrating to CreateOrderItems (20130926094654)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "parent_type" varchar(255), "parent_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "vat_amount" decimal(8,2), "vat_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0, "created_at" datetime, "updated_at" datetime)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130926094654"]]  (0.7ms) commit transaction Migrating to CreateImages (20130926104450)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "shoppe_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "token" varchar(255), "role" varchar(255), "file_name" varchar(255), "file_type" varchar(255), "data" blob(10485760), "created_at" datetime, "updated_at" datetime)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130926104450"]]  (0.7ms) commit transaction Migrating to CreateUsers (20130926151718)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "shoppe_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email_address" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130926151718"]]  (0.7ms) commit transaction Migrating to AddCardTokenToOrders (20130927113134)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "shoppe_orders" ADD "stripe_customer_token" varchar(255)  (0.1ms) ALTER TABLE "shoppe_orders" ADD "stripe_payment_token" varchar(255) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130927113134"]]  (0.8ms) commit transaction Migrating to CreateDeliveryServices (20130927130022)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "price" decimal(8,2) DEFAULT 0, "vat_rate" decimal(8,2), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130927130022"]]  (0.8ms) commit transaction Migrating to AddDeliveryServiceToOrder (20130927132143)  (0.1ms) begin transaction  (0.3ms) ALTER TABLE "shoppe_orders" ADD "delivery_service_id" integer  (0.1ms) ALTER TABLE "shoppe_orders" ADD "delivery_price" decimal(8,2) DEFAULT 0.0  (0.1ms) ALTER TABLE "shoppe_orders" ADD "delivery_vat_rate" decimal(8,2) DEFAULT 0.0  (0.1ms) ALTER TABLE "shoppe_orders" ADD "delivery_vat_amount" decimal(8,2) DEFAULT 0.0 SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130927132143"]]  (0.8ms) commit transaction Migrating to AddPaymentDateToOrders (20130927150025)  (0.0ms) begin transaction  (0.3ms) ALTER TABLE "shoppe_orders" ADD "paid_at" datetime SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130927150025"]]  (0.8ms) commit transaction Migrating to RenameStripePaymentToken (20130928111819)  (0.1ms) begin transaction  (0.4ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "stripe_customer_token" varchar(255), "payment_reference" varchar(255), "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime)   (0.1ms) SELECT * FROM "shoppe_orders"  (0.2ms) DROP TABLE "shoppe_orders"  (0.1ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "stripe_customer_token" varchar(255), "payment_reference" varchar(255), "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime)  (0.1ms) SELECT * FROM "ashoppe_orders"  (0.2ms) DROP TABLE "ashoppe_orders"  (0.2ms) ALTER TABLE "shoppe_orders" ADD "payment_method" varchar(255) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928111819"]]  (1.3ms) commit transaction Migrating to AddApporovedUsers (20130928131502)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "shoppe_orders" ADD "approved_by" integer  (0.2ms) ALTER TABLE "shoppe_orders" ADD "shipped_by" integer  (0.2ms) ALTER TABLE "shoppe_orders" ADD "consignment_number" varchar(255) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928131502"]]  (0.8ms) commit transaction Migrating to AddCourierDetailsToShippingMethods (20130928134518)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "shoppe_delivery_services" ADD "courier" varchar(255)  (0.2ms) ALTER TABLE "shoppe_delivery_services" ADD "tracking_url" varchar(255) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928134518"]]  (0.8ms) commit transaction Migrating to AddRejectionToOrders (20130928173818)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "shoppe_orders" ADD "rejected_at" datetime  (0.2ms) ALTER TABLE "shoppe_orders" ADD "rejected_by" integer SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928173818"]]  (0.6ms) commit transaction Migrating to SortOutOrdersForGateways (20130928180041)  (0.1ms) begin transaction  (0.4ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "stripe_customer_token" varchar(255), "payment_reference" varchar(255), "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "payment_method" varchar(255), "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer)   (0.2ms) SELECT * FROM "shoppe_orders"  (0.3ms) DROP TABLE "shoppe_orders"  (0.3ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "payment_reference" varchar(255), "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "payment_method" varchar(255), "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer)  (0.1ms) SELECT * FROM "ashoppe_orders"  (0.1ms) DROP TABLE "ashoppe_orders"  (0.3ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "payment_reference" varchar(255), "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "payment_method" varchar(255), "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer)   (0.1ms) SELECT * FROM "shoppe_orders"  (0.3ms) DROP TABLE "shoppe_orders"  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "payment_method" varchar(255), "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer)  (0.1ms) SELECT * FROM "ashoppe_orders"  (0.1ms) DROP TABLE "ashoppe_orders"  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "payment_method" varchar(255), "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer)   (0.1ms) SELECT * FROM "shoppe_orders"  (0.1ms) DROP TABLE "shoppe_orders"  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "approved_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer)  (0.1ms) SELECT * FROM "ashoppe_orders"  (0.2ms) DROP TABLE "ashoppe_orders" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928180041"]]  (1.0ms) commit transaction Migrating to CreateNiftyKeyValueStoreTable (20130928185655)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "shoppe_key_value_store" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "group" varchar(255), "name" varchar(255), "value" varchar(255)) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928185655"]]  (0.8ms) commit transaction Migrating to AddPaymentGatewayToOrders (20130928193023)  (0.1ms) begin transaction  (0.3ms) ALTER TABLE "shoppe_orders" ADD "payment_gateway_module" varchar(255) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928193023"]]  (0.8ms) commit transaction Migrating to UpdateDatabaseColumnsForAccepted (20130928201257)  (0.1ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255))  (0.2ms) SELECT * FROM "shoppe_orders"  (0.2ms) DROP TABLE "shoppe_orders"  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "approved_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255))   (0.1ms) SELECT * FROM "ashoppe_orders"  (0.1ms) DROP TABLE "ashoppe_orders"  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255))  (0.1ms) SELECT * FROM "shoppe_orders"  (0.3ms) DROP TABLE "shoppe_orders"  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_vat_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255))   (0.1ms) SELECT * FROM "ashoppe_orders"  (0.1ms) DROP TABLE "ashoppe_orders" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130928201257"]]  (0.9ms) commit transaction Migrating to AddIpAddressToOrders (20130929151744)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "shoppe_orders" ADD "ip_address" varchar(255) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130929151744"]]  (0.6ms) commit transaction Migrating to ChangeOrderItemsToBeNonPolymorphic (20130929203421)  (0.1ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "parent_type" varchar(255), "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "vat_amount" decimal(8,2), "vat_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)   (0.1ms) SELECT * FROM "shoppe_order_items"  (0.2ms) DROP TABLE "shoppe_order_items"  (0.1ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "parent_type" varchar(255), "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "vat_amount" decimal(8,2), "vat_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT * FROM "ashoppe_order_items"  (0.1ms) DROP TABLE "ashoppe_order_items"  (0.1ms) CREATE TEMPORARY TABLE "ashoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "parent_type" varchar(255), "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "vat_amount" decimal(8,2), "vat_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)   (0.1ms) SELECT * FROM "shoppe_order_items"  (0.2ms) DROP TABLE "shoppe_order_items"  (0.1ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "vat_amount" decimal(8,2), "vat_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT * FROM "ashoppe_order_items"  (0.1ms) DROP TABLE "ashoppe_order_items" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130929203421"]]  (1.1ms) commit transaction Migrating to AddFeaturedBooleanToProducts (20130930181344)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "shoppe_products" ADD "featured" boolean DEFAULT 'f' SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20130930181344"]]  (0.6ms) commit transaction Migrating to RenameVatToTax (20131002154122)  (0.1ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f')  (0.1ms) SELECT * FROM "shoppe_products"  (0.3ms) DROP TABLE "shoppe_products"  (0.2ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f')   (0.1ms) SELECT * FROM "ashoppe_products"  (0.1ms) DROP TABLE "ashoppe_products"  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_tax_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255))  (0.1ms) SELECT * FROM "shoppe_orders"  (0.3ms) DROP TABLE "shoppe_orders"  (0.1ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_tax_rate" decimal(8,2) DEFAULT 0.0, "delivery_vat_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255))   (0.1ms) SELECT * FROM "ashoppe_orders"  (0.1ms) DROP TABLE "ashoppe_orders"  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_tax_rate" decimal(8,2) DEFAULT 0.0, "delivery_tax_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255))  (0.1ms) SELECT * FROM "shoppe_orders"  (0.1ms) DROP TABLE "shoppe_orders"  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_tax_rate" decimal(8,2) DEFAULT 0.0, "delivery_tax_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255))   (0.1ms) SELECT * FROM "ashoppe_orders"  (0.1ms) DROP TABLE "ashoppe_orders"  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "vat_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT * FROM "shoppe_order_items"  (0.2ms) DROP TABLE "shoppe_order_items"  (0.2ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "vat_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)   (0.1ms) SELECT * FROM "ashoppe_order_items"  (0.1ms) DROP TABLE "ashoppe_order_items"  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT * FROM "shoppe_order_items"  (0.1ms) DROP TABLE "shoppe_order_items"  (0.1ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)   (0.1ms) SELECT * FROM "ashoppe_order_items"  (0.1ms) DROP TABLE "ashoppe_order_items"  (0.1ms) CREATE TEMPORARY TABLE "ashoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))  (0.1ms) SELECT * FROM "shoppe_delivery_services"  (0.1ms) DROP TABLE "shoppe_delivery_services"  (0.1ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (0.1ms) SELECT * FROM "ashoppe_delivery_services"  (0.1ms) DROP TABLE "ashoppe_delivery_services" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131002154122"]]  (1.0ms) commit transaction Migrating to CreateDeliveryServicePrices (20131002155246)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "shoppe_delivery_service_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "delivery_service_id" integer, "code" varchar(255), "price" decimal(8,2), "tax_rate" decimal(8,2), "min_weight" decimal(8,2), "max_weight" decimal(8,2), "created_at" datetime, "updated_at" datetime)   (0.2ms) CREATE TEMPORARY TABLE "ashoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))  (0.1ms) SELECT * FROM "shoppe_delivery_services"  (0.3ms) DROP TABLE "shoppe_delivery_services"  (0.2ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "tax_rate" decimal(8,2), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (0.1ms) SELECT * FROM "ashoppe_delivery_services"  (0.1ms) DROP TABLE "ashoppe_delivery_services"  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "tax_rate" decimal(8,2), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))  (0.1ms) SELECT * FROM "shoppe_delivery_services"  (0.1ms) DROP TABLE "shoppe_delivery_services"  (0.2ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (0.1ms) SELECT * FROM "ashoppe_delivery_services"  (0.1ms) DROP TABLE "ashoppe_delivery_services"  (0.1ms) CREATE TEMPORARY TABLE "ashoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "min_weight" decimal(8,3), "max_weight" decimal(8,3), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))  (0.0ms) SELECT * FROM "shoppe_delivery_services"  (0.1ms) DROP TABLE "shoppe_delivery_services"  (0.1ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "max_weight" decimal(8,3), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (0.0ms) SELECT * FROM "ashoppe_delivery_services"  (0.1ms) DROP TABLE "ashoppe_delivery_services"  (0.1ms) CREATE TEMPORARY TABLE "ashoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "max_weight" decimal(8,3), "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))  (0.0ms) SELECT * FROM "shoppe_delivery_services"  (0.1ms) DROP TABLE "shoppe_delivery_services"  (0.1ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (0.0ms) SELECT * FROM "ashoppe_delivery_services"  (0.1ms) DROP TABLE "ashoppe_delivery_services" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131002155246"]]  (1.0ms) commit transaction Migrating to DefaultShouldNotBeTrueForDeliveryServices (20131002162301)  (0.1ms) begin transaction  (0.1ms) CREATE TEMPORARY TABLE "ashoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 't', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (0.1ms) SELECT * FROM "shoppe_delivery_services"  (0.2ms) DROP TABLE "shoppe_delivery_services"  (0.2ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 'f', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))  (0.1ms) SELECT * FROM "ashoppe_delivery_services"  (0.1ms) DROP TABLE "ashoppe_delivery_services" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131002162301"]]  (1.0ms) commit transaction Migrating to ChangeDefaultsForDeliveryValuesOnOrders (20131003163827)  (0.1ms) begin transaction  (0.3ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2) DEFAULT 0.0, "delivery_tax_rate" decimal(8,2) DEFAULT 0.0, "delivery_tax_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255))  (0.2ms) SELECT * FROM "shoppe_orders"  (0.3ms) DROP TABLE "shoppe_orders"  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2) DEFAULT 0.0, "delivery_tax_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255))   (0.1ms) SELECT * FROM "ashoppe_orders"  (0.1ms) DROP TABLE "ashoppe_orders"  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2) DEFAULT 0.0, "delivery_tax_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255))  (0.1ms) SELECT * FROM "shoppe_orders"  (0.3ms) DROP TABLE "shoppe_orders"  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255))   (0.1ms) SELECT * FROM "ashoppe_orders"  (0.1ms) DROP TABLE "ashoppe_orders"  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2) DEFAULT 0.0, "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255))  (0.1ms) SELECT * FROM "shoppe_orders"  (0.1ms) DROP TABLE "shoppe_orders"  (0.3ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255))   (0.1ms) SELECT * FROM "ashoppe_orders"  (0.1ms) DROP TABLE "ashoppe_orders" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131003163827"]]  (0.9ms) commit transaction Migrating to AddCountryToOrders (20131004185043)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "shoppe_orders" ADD "country" varchar(255) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131004185043"]]  (0.7ms) commit transaction Migrating to AddBoxFieldsToProducts (20131004193320)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "shoppe_products" ADD "in_the_box" text SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131004193320"]]  (1.0ms) commit transaction Migrating to AddPaymentReferenceFields (20131006144849)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "shoppe_orders" ADD "payment_reference" varchar(255)  (0.2ms) ALTER TABLE "shoppe_orders" ADD "payment_method" varchar(255)  (0.2ms) CREATE TEMPORARY TABLE "ashoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "payment_gateway_module" varchar(255), "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))   (0.1ms) SELECT * FROM "shoppe_orders"  (0.4ms) DROP TABLE "shoppe_orders"  (0.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))  (0.1ms) SELECT * FROM "ashoppe_orders"  (0.1ms) DROP TABLE "ashoppe_orders" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131006144849"]]  (1.1ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (7.7ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMFC"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 16:08:42 UTC +00:00], ["name", "Royal Mail (1st class)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 16:08:42 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["delivery_service_id", 1], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMSF"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["name", "Royal Mail (signed for)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "default", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["code", "ND16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["default", true], ["name", "Next Day Delivery (before 4pm)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NS10"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["name", "Next Day Delivery (before 10am)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NDSA16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["name", "Saturday Delivery"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-phones' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["name", "VoIP Phones"], ["permalink", "voip-phones"], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]]  (2.4ms) commit transaction  (0.0ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-accessories' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["name", "VoIP Accessories"], ["permalink", "voip-accessories"], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'network-eqipment' LIMIT 1 SQL (0.2ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["name", "Network Eqipment"], ["permalink", "network-eqipment"], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.2ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t20p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t20p"], ["price", #], ["product_category_id", 1], ["short_description", "If cheap & cheerful is what you’re after, the Yealink T20P is what you’re looking for."], ["sku", "YL-SIP-T20P"], ["stock", 20], ["tax_rate", #], ["title", "Yealink T20P"], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["weight", #]]  (1.2ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.2ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t20p' AND "shoppe_products"."id" != 1) LIMIT 1  (0.2ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 1], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '3769af39-2413-487b-9f96-7f104fabc0c7' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["data", "<127400 bytes of binary data>"], ["file_name", "t20p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 1], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "3769af39-2413-487b-9f96-7f104fabc0c7"], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 1], ["parent_type", "Shoppe::Product"]]  (1.5ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t22p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t22p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T22P"], ["stock", 12], ["tax_rate", #], ["title", "Yealink T22P"], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t22p' AND "shoppe_products"."id" != 2) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 2], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '15e9e4e3-c154-46e7-9fa7-003f4a1e8dee' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["data", "<101139 bytes of binary data>"], ["file_name", "t22p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 2], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "15e9e4e3-c154-46e7-9fa7-003f4a1e8dee"], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 2], ["parent_type", "Shoppe::Product"]]  (1.4ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t26p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t26p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T26P"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T26P"], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t26p' AND "shoppe_products"."id" != 3) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 3], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'd5449595-76c4-4b46-9ff4-6cee56d96be7' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["data", "<67267 bytes of binary data>"], ["file_name", "t26p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 3], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "d5449595-76c4-4b46-9ff4-6cee56d96be7"], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 3], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t46gn' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t46gn"], ["price", #], ["product_category_id", 1], ["short_description", "Colourful, sharp, fast & down right sexy. The Yealink T46P will make your scream!"], ["sku", "YL-SIP-T46GN"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T46GN"], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["weight", #]]  (0.7ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t46gn' AND "shoppe_products"."id" != 4) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 4], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'aeb03714-9749-4298-b743-47b9f3988f06' LIMIT 1 SQL (0.7ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["data", "<197941 bytes of binary data>"], ["file_name", "t46gn.jpg"], ["file_type", "image/jpeg"], ["parent_id", 4], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "aeb03714-9749-4298-b743-47b9f3988f06"], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 4], ["parent_type", "Shoppe::Product"]]  (1.6ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-grey' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-870-grey"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-GREY"], ["stock", 2], ["tax_rate", #], ["title", "Snom 870 (Grey)"], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-grey' AND "shoppe_products"."id" != 5) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 5], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '846695b3-a3d5-4a5e-be68-72184412792a' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["data", "<105894 bytes of binary data>"], ["file_name", "snom-870-grey.jpg"], ["file_type", "image/jpeg"], ["parent_id", 5], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "846695b3-a3d5-4a5e-be68-72184412792a"], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 5], ["parent_type", "Shoppe::Product"]]  (1.5ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-black' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "snom-870-black"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-BLK"], ["tax_rate", #], ["title", "Snom 870 (Black)"], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-black' AND "shoppe_products"."id" != 6) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 6], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'a93a09e1-d9d3-4a8b-90e0-621bafafa0b7' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["data", "<85691 bytes of binary data>"], ["file_name", "snom-870-blk.jpg"], ["file_type", "image/jpeg"], ["parent_id", 6], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "a93a09e1-d9d3-4a8b-90e0-621bafafa0b7"], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 6], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-mono-headset' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-mono-headset"], ["price", #], ["product_category_id", 2], ["short_description", "If you're often on the phone, this headset will make your life 100x easier. Guaranteed*."], ["sku", "YL-YHS32"], ["stock", 3], ["tax_rate", #], ["title", "Yealink Mono Headset"], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-mono-headset' AND "shoppe_products"."id" != 7) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 7], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '9768577d-cf30-4a25-8d91-a8fcfb9d89b8' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["data", "<19129 bytes of binary data>"], ["file_name", "yhs32.jpg"], ["file_type", "image/jpeg"], ["parent_id", 7], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "9768577d-cf30-4a25-8d91-a8fcfb9d89b8"], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 7], ["parent_type", "Shoppe::Product"]]  (1.0ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm2' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm2"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM2"], ["tax_rate", #], ["title", "Snom Wired Headset (MM2)"], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm2' AND "shoppe_products"."id" != 8) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 8], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '4aef72a6-86aa-402d-8195-b7182f6452c5' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 8], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "4aef72a6-86aa-402d-8195-b7182f6452c5"], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 8], ["parent_type", "Shoppe::Product"]]  (1.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm3' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm3"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM3"], ["stock", 1], ["tax_rate", #], ["title", "Snom Wired Headset (MM3)"], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm3' AND "shoppe_products"."id" != 9) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 9], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '4af9c5fa-dbc2-4f5f-af3a-d669db0032c8' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 9], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "4af9c5fa-dbc2-4f5f-af3a-d669db0032c8"], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 9], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-w52p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-w52p"], ["price", #], ["product_category_id", 1], ["short_description", "Wireless SIP phones are hard to come by but this beauty from Yealink is fab."], ["sku", "TL-SIP-W52P"], ["stock", 1], ["tax_rate", #], ["title", "Yealink W52P"], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-w52p' AND "shoppe_products"."id" != 10) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 10], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '273bc823-b1e3-4e8b-9b67-721b4845801e' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["data", "<102742 bytes of binary data>"], ["file_name", "w52p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 10], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "273bc823-b1e3-4e8b-9b67-721b4845801e"], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 10], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.1ms) begin transaction Binary data inserted for `string` type on column `password_digest` SQL (0.5ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00], ["email_address", "adam@niftyware.io"], ["first_name", "Adam"], ["last_name", "Cooke"], ["password_digest", "$2a$04$bsOxr4m8vMJFho2MeZbjcOSmj3gY4/Q/fy3.NRIQTFET9Pzgi0GJq"], ["updated_at", Sun, 06 Oct 2013 16:08:43 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction --------------------------------- Shoppe::OrderTest: test_the_truth ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- ShoppeTest: test_configuration_is_loaded ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (5.4ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMFC"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00], ["name", "Royal Mail (1st class)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00]]  (2.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00], ["delivery_service_id", 6], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMSF"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00], ["name", "Royal Mail (signed for)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00], ["delivery_service_id", 7], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00], ["delivery_service_id", 7], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00], ["delivery_service_id", 7], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00], ["delivery_service_id", 7], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00], ["delivery_service_id", 7], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "default", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["code", "ND16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00], ["default", true], ["name", "Next Day Delivery (before 4pm)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00], ["delivery_service_id", 8], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00], ["delivery_service_id", 8], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00], ["delivery_service_id", 8], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NS10"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00], ["name", "Next Day Delivery (before 10am)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00], ["delivery_service_id", 9], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00], ["delivery_service_id", 9], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00], ["delivery_service_id", 9], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NDSA16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00], ["name", "Saturday Delivery"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00], ["delivery_service_id", 10], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00], ["delivery_service_id", 10], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00], ["delivery_service_id", 10], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 16:08:56 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.2ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-phones' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-accessories' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'network-eqipment' LIMIT 1  (0.0ms) rollback transaction  (0.1ms) SELECT COUNT(*) FROM "shoppe_orders"  (0.1ms) begin transaction --------------------------------- Shoppe::OrderTest: test_the_truth ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- ShoppeTest: test_configuration_is_loaded ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.1ms) rollback transaction  (0.1ms) SELECT COUNT(*) FROM "shoppe_orders"  (0.1ms) SELECT COUNT(*) FROM "shoppe_orders"  (0.1ms) begin transaction --------------------------------- Shoppe::OrderTest: test_the_truth ---------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- ShoppeTest: test_configuration_is_loaded ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (2.8ms) CREATE TABLE "shoppe_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "token" varchar(255), "role" varchar(255), "file_name" varchar(255), "file_type" varchar(255), "data" blob(10485760), "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_delivery_service_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "delivery_service_id" integer, "code" varchar(255), "price" decimal(8,2), "tax_rate" decimal(8,2), "min_weight" decimal(8,2), "max_weight" decimal(8,2), "created_at" datetime, "updated_at" datetime)  (1.3ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 'f', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (0.9ms) CREATE TABLE "shoppe_key_value_store" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "group" varchar(255), "name" varchar(255), "value" varchar(255))  (1.0ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))  (1.0ms) CREATE TABLE "shoppe_product_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime)   (0.9ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text)  (0.8ms) CREATE TABLE "shoppe_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email_address" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime)   (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20131006144849')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094549')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094551')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094647')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094654')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926104450')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926151718')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927113134')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927130022')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927132143')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927150025')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928111819')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928131502')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928134518')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928173818')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928180041')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928185655')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928193023')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928201257')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929151744')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929203421')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130930181344')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002154122')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002155246')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002162301')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131003163827')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004185043')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004193320') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) begin transaction --------------------------------- Shoppe::OrderTest: test_the_truth ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- ShoppeTest: test_configuration_is_loaded ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (3.5ms) CREATE TABLE "shoppe_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "token" varchar(255), "role" varchar(255), "file_name" varchar(255), "file_type" varchar(255), "data" blob(10485760), "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "shoppe_delivery_service_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "delivery_service_id" integer, "code" varchar(255), "price" decimal(8,2), "tax_rate" decimal(8,2), "min_weight" decimal(8,2), "max_weight" decimal(8,2), "created_at" datetime, "updated_at" datetime)  (1.3ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 'f', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (0.9ms) CREATE TABLE "shoppe_key_value_store" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "group" varchar(255), "name" varchar(255), "value" varchar(255))  (1.2ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))  (0.9ms) CREATE TABLE "shoppe_product_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text)  (0.8ms) CREATE TABLE "shoppe_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email_address" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime)   (1.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131006144849')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094549')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094551')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094647')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094654')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926104450')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926151718')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927113134')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927130022')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927132143')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927150025')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928111819')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928131502')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928134518')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928173818')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928180041')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928185655')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928193023')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928201257')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929151744')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929203421')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130930181344')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002154122')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002155246')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002162301')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131003163827')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004185043')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004193320') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.4ms) CREATE TABLE "shoppe_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "token" varchar(255), "role" varchar(255), "file_name" varchar(255), "file_type" varchar(255), "data" blob(10485760), "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_delivery_service_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "delivery_service_id" integer, "code" varchar(255), "price" decimal(8,2), "tax_rate" decimal(8,2), "min_weight" decimal(8,2), "max_weight" decimal(8,2), "created_at" datetime, "updated_at" datetime)  (1.3ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 'f', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (1.1ms) CREATE TABLE "shoppe_key_value_store" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "group" varchar(255), "name" varchar(255), "value" varchar(255))  (1.0ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)   (0.9ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))  (0.8ms) CREATE TABLE "shoppe_product_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text)  (0.8ms) CREATE TABLE "shoppe_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email_address" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131006144849')  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094549')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094551')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094647')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094654')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926104450')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926151718')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927113134')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927130022')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927132143')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927150025')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928111819')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928131502')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928134518')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928173818')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928180041')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928185655')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928193023')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928201257')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929151744')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929203421')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130930181344')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002154122')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002155246')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002162301')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131003163827')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004185043')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004193320') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.9ms) CREATE TABLE "shoppe_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "token" varchar(255), "role" varchar(255), "file_name" varchar(255), "file_type" varchar(255), "data" blob(10485760), "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_delivery_service_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "delivery_service_id" integer, "code" varchar(255), "price" decimal(8,2), "tax_rate" decimal(8,2), "min_weight" decimal(8,2), "max_weight" decimal(8,2), "created_at" datetime, "updated_at" datetime)  (1.4ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 'f', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (1.0ms) CREATE TABLE "shoppe_key_value_store" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "group" varchar(255), "name" varchar(255), "value" varchar(255))  (0.9ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))  (0.7ms) CREATE TABLE "shoppe_product_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text)  (1.0ms) CREATE TABLE "shoppe_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email_address" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131006144849')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094549')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094551')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094647')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094654')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926104450')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926151718')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927113134')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927130022')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927132143')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927150025')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928111819')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928131502')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928134518')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928173818')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928180041')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928185655')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928193023')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928201257')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929151744')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929203421')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130930181344')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002154122')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002155246')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002162301')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131003163827')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004185043')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004193320')  (0.4ms) begin transaction --------------------------------- Shoppe::OrderTest: test_the_truth ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- ShoppeTest: test_configuration_is_loaded ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (2.5ms) CREATE TABLE "shoppe_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "token" varchar(255), "role" varchar(255), "file_name" varchar(255), "file_type" varchar(255), "data" blob(10485760), "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "shoppe_delivery_service_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "delivery_service_id" integer, "code" varchar(255), "price" decimal(8,2), "tax_rate" decimal(8,2), "min_weight" decimal(8,2), "max_weight" decimal(8,2), "created_at" datetime, "updated_at" datetime)  (1.2ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 'f', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (1.0ms) CREATE TABLE "shoppe_key_value_store" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "group" varchar(255), "name" varchar(255), "value" varchar(255))  (0.9ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)   (1.2ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))  (0.7ms) CREATE TABLE "shoppe_product_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text)  (0.8ms) CREATE TABLE "shoppe_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email_address" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131006144849')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094549')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094551')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094647')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094654')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926104450')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926151718')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927113134')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927130022')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927132143')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927150025')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928111819')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928131502')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928134518')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928173818')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928180041')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928185655')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928193023')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928201257')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929151744')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929203421')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130930181344')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002154122')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002155246')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002162301')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131003163827')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004185043')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004193320')  (0.5ms) begin transaction --------------------------------- Shoppe::OrderTest: test_the_truth ---------------------------------  (0.1ms) SELECT COUNT(*) FROM "shoppe_products"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- ShoppeTest: test_configuration_is_loaded ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (3.5ms) CREATE TABLE "shoppe_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "token" varchar(255), "role" varchar(255), "file_name" varchar(255), "file_type" varchar(255), "data" blob(10485760), "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_delivery_service_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "delivery_service_id" integer, "code" varchar(255), "price" decimal(8,2), "tax_rate" decimal(8,2), "min_weight" decimal(8,2), "max_weight" decimal(8,2), "created_at" datetime, "updated_at" datetime)  (1.6ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 'f', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (1.4ms) CREATE TABLE "shoppe_key_value_store" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "group" varchar(255), "name" varchar(255), "value" varchar(255))  (0.9ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))  (0.7ms) CREATE TABLE "shoppe_product_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text)  (0.9ms) CREATE TABLE "shoppe_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email_address" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20131006144849')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094549')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094551')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094647')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094654')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926104450')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926151718')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927113134')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927130022')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927132143')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927150025')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928111819')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928131502')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928134518')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928173818')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928180041')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928185655')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928193023')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928201257')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929151744')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929203421')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130930181344')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002154122')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002155246')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002162301')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131003163827')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004185043')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004193320')  (0.4ms) begin transaction --------------------------------- Shoppe::OrderTest: test_the_truth ---------------------------------  (0.1ms) SELECT COUNT(*) FROM "shoppe_products"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- ShoppeTest: test_configuration_is_loaded ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (1.1ms) CREATE TABLE "shoppe_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "token" varchar(255), "role" varchar(255), "file_name" varchar(255), "file_type" varchar(255), "data" blob(10485760), "created_at" datetime, "updated_at" datetime)   (1.3ms) CREATE TABLE "shoppe_delivery_service_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "delivery_service_id" integer, "code" varchar(255), "price" decimal(8,2), "tax_rate" decimal(8,2), "min_weight" decimal(8,2), "max_weight" decimal(8,2), "created_at" datetime, "updated_at" datetime)  (1.3ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 'f', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (1.0ms) CREATE TABLE "shoppe_key_value_store" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "group" varchar(255), "name" varchar(255), "value" varchar(255))  (0.9ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))  (0.7ms) CREATE TABLE "shoppe_product_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text)  (0.8ms) CREATE TABLE "shoppe_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email_address" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131006144849')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094549')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094551')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094647')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094654')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926104450')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926151718')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927113134')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927130022')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927132143')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927150025')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928111819')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928131502')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928134518')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928173818')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928180041')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928185655')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928193023')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928201257')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929151744')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929203421')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130930181344')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002154122')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002155246')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002162301')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131003163827')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004185043')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004193320')  (0.1ms) begin transaction SQL (4.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMFC"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["name", "Royal Mail (1st class)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]]  (2.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["delivery_service_id", 1], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]]  (1.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMSF"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["name", "Royal Mail (signed for)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "default", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["code", "ND16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["default", true], ["name", "Next Day Delivery (before 4pm)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NS10"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["name", "Next Day Delivery (before 10am)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NDSA16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["name", "Saturday Delivery"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-phones' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["name", "VoIP Phones"], ["permalink", "voip-phones"], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]]  (2.7ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-accessories' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["name", "VoIP Accessories"], ["permalink", "voip-accessories"], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'network-eqipment' LIMIT 1 SQL (0.2ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["name", "Network Eqipment"], ["permalink", "network-eqipment"], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t20p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t20p"], ["price", #], ["product_category_id", 1], ["short_description", "If cheap & cheerful is what you’re after, the Yealink T20P is what you’re looking for."], ["sku", "YL-SIP-T20P"], ["stock", 20], ["tax_rate", #], ["title", "Yealink T20P"], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["weight", #]]  (1.0ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t20p' AND "shoppe_products"."id" != 1) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 1], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '5be05f21-22de-4d3e-a8c7-358ff6a6dd33' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["data", "<127400 bytes of binary data>"], ["file_name", "t20p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 1], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "5be05f21-22de-4d3e-a8c7-358ff6a6dd33"], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 1], ["parent_type", "Shoppe::Product"]]  (1.6ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t22p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t22p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T22P"], ["stock", 12], ["tax_rate", #], ["title", "Yealink T22P"], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t22p' AND "shoppe_products"."id" != 2) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 2], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '106b9abf-acec-4077-9b04-3497ff32bf47' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["data", "<101139 bytes of binary data>"], ["file_name", "t22p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 2], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "106b9abf-acec-4077-9b04-3497ff32bf47"], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 2], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t26p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t26p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T26P"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T26P"], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t26p' AND "shoppe_products"."id" != 3) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 3], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '1d05ef83-b143-4537-834f-4679fa51bfc7' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["data", "<67267 bytes of binary data>"], ["file_name", "t26p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 3], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "1d05ef83-b143-4537-834f-4679fa51bfc7"], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 3], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t46gn' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t46gn"], ["price", #], ["product_category_id", 1], ["short_description", "Colourful, sharp, fast & down right sexy. The Yealink T46P will make your scream!"], ["sku", "YL-SIP-T46GN"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T46GN"], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["weight", #]]  (0.6ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t46gn' AND "shoppe_products"."id" != 4) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 4], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '337f03cb-54c4-49fc-bd1f-b15d0f68f25d' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["data", "<197941 bytes of binary data>"], ["file_name", "t46gn.jpg"], ["file_type", "image/jpeg"], ["parent_id", 4], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "337f03cb-54c4-49fc-bd1f-b15d0f68f25d"], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 4], ["parent_type", "Shoppe::Product"]]  (2.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-grey' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-870-grey"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-GREY"], ["stock", 2], ["tax_rate", #], ["title", "Snom 870 (Grey)"], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-grey' AND "shoppe_products"."id" != 5) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 5], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '860e473c-1ee8-4faa-9db7-955ce1f9d177' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["data", "<105894 bytes of binary data>"], ["file_name", "snom-870-grey.jpg"], ["file_type", "image/jpeg"], ["parent_id", 5], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "860e473c-1ee8-4faa-9db7-955ce1f9d177"], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 5], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-black' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "snom-870-black"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-BLK"], ["tax_rate", #], ["title", "Snom 870 (Black)"], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["weight", #]]  (1.0ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-black' AND "shoppe_products"."id" != 6) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 6], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'ca808265-d38a-44d3-8808-ba02fa0b4ad8' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["data", "<85691 bytes of binary data>"], ["file_name", "snom-870-blk.jpg"], ["file_type", "image/jpeg"], ["parent_id", 6], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "ca808265-d38a-44d3-8808-ba02fa0b4ad8"], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 6], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-mono-headset' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-mono-headset"], ["price", #], ["product_category_id", 2], ["short_description", "If you're often on the phone, this headset will make your life 100x easier. Guaranteed*."], ["sku", "YL-YHS32"], ["stock", 3], ["tax_rate", #], ["title", "Yealink Mono Headset"], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["weight", #]]  (0.7ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-mono-headset' AND "shoppe_products"."id" != 7) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 7], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '94fc52ac-a135-4707-866b-641cbe9319ce' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["data", "<19129 bytes of binary data>"], ["file_name", "yhs32.jpg"], ["file_type", "image/jpeg"], ["parent_id", 7], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "94fc52ac-a135-4707-866b-641cbe9319ce"], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 7], ["parent_type", "Shoppe::Product"]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm2' LIMIT 1 SQL (0.5ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm2"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM2"], ["tax_rate", #], ["title", "Snom Wired Headset (MM2)"], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm2' AND "shoppe_products"."id" != 8) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 8], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '5749b8c4-c1d9-4dae-b067-d46245b2072a' LIMIT 1 SQL (0.5ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 8], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "5749b8c4-c1d9-4dae-b067-d46245b2072a"], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 8], ["parent_type", "Shoppe::Product"]]  (1.6ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.2ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm3' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm3"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM3"], ["stock", 1], ["tax_rate", #], ["title", "Snom Wired Headset (MM3)"], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm3' AND "shoppe_products"."id" != 9) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 9], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '86c50517-dbd9-46c7-afe7-6a8fd26a596d' LIMIT 1 SQL (0.5ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 9], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "86c50517-dbd9-46c7-afe7-6a8fd26a596d"], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 9], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-w52p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-w52p"], ["price", #], ["product_category_id", 1], ["short_description", "Wireless SIP phones are hard to come by but this beauty from Yealink is fab."], ["sku", "TL-SIP-W52P"], ["stock", 1], ["tax_rate", #], ["title", "Yealink W52P"], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["weight", #]]  (1.0ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-w52p' AND "shoppe_products"."id" != 10) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 10], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '0413d218-d2b6-44a3-b253-ef54b5c80f0a' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["data", "<102742 bytes of binary data>"], ["file_name", "w52p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 10], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "0413d218-d2b6-44a3-b253-ef54b5c80f0a"], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 10], ["parent_type", "Shoppe::Product"]]  (1.4ms) commit transaction  (0.1ms) begin transaction Binary data inserted for `string` type on column `password_digest` SQL (0.5ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00], ["email_address", "adam@niftyware.io"], ["first_name", "Adam"], ["last_name", "Cooke"], ["password_digest", "$2a$04$yOHwlEAJD3822utAWe37be9tKh1PuVHmbP1fl.8ng/H80EpCTXdoW"], ["updated_at", Sun, 06 Oct 2013 17:10:26 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction --------------------------------- Shoppe::OrderTest: test_the_truth ---------------------------------  (0.1ms) SELECT COUNT(*) FROM "shoppe_products"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- ShoppeTest: test_configuration_is_loaded ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (2.5ms) CREATE TABLE "shoppe_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "token" varchar(255), "role" varchar(255), "file_name" varchar(255), "file_type" varchar(255), "data" blob(10485760), "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "shoppe_delivery_service_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "delivery_service_id" integer, "code" varchar(255), "price" decimal(8,2), "tax_rate" decimal(8,2), "min_weight" decimal(8,2), "max_weight" decimal(8,2), "created_at" datetime, "updated_at" datetime)  (1.4ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 'f', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (0.9ms) CREATE TABLE "shoppe_key_value_store" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "group" varchar(255), "name" varchar(255), "value" varchar(255))  (1.0ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))  (0.7ms) CREATE TABLE "shoppe_product_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text)  (0.8ms) CREATE TABLE "shoppe_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email_address" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131006144849')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094549')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094551')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094647')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094654')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926104450')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926151718')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927113134')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927130022')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927132143')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927150025')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928111819')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928131502')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928134518')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928173818')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928180041')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928185655')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928193023')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928201257')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929151744')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929203421')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130930181344')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002154122')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002155246')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002162301')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131003163827')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004185043')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004193320')  (0.1ms) begin transaction SQL (4.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMFC"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["name", "Royal Mail (1st class)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]]  (2.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["delivery_service_id", 1], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMSF"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["name", "Royal Mail (signed for)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "default", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["code", "ND16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["default", true], ["name", "Next Day Delivery (before 4pm)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NS10"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["name", "Next Day Delivery (before 10am)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NDSA16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["name", "Saturday Delivery"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-phones' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["name", "VoIP Phones"], ["permalink", "voip-phones"], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]]  (2.6ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-accessories' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["name", "VoIP Accessories"], ["permalink", "voip-accessories"], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'network-eqipment' LIMIT 1 SQL (0.2ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["name", "Network Eqipment"], ["permalink", "network-eqipment"], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t20p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t20p"], ["price", #], ["product_category_id", 1], ["short_description", "If cheap & cheerful is what you’re after, the Yealink T20P is what you’re looking for."], ["sku", "YL-SIP-T20P"], ["stock", 20], ["tax_rate", #], ["title", "Yealink T20P"], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["weight", #]]  (1.0ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t20p' AND "shoppe_products"."id" != 1) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 1], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'a72d734c-dcaf-4fa5-ac60-d6f2709b1bd4' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["data", "<127400 bytes of binary data>"], ["file_name", "t20p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 1], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "a72d734c-dcaf-4fa5-ac60-d6f2709b1bd4"], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 1], ["parent_type", "Shoppe::Product"]]  (1.5ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t22p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t22p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T22P"], ["stock", 12], ["tax_rate", #], ["title", "Yealink T22P"], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t22p' AND "shoppe_products"."id" != 2) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 2], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '80944197-0909-4ba2-a182-577f9d808845' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["data", "<101139 bytes of binary data>"], ["file_name", "t22p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 2], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "80944197-0909-4ba2-a182-577f9d808845"], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 2], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t26p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t26p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T26P"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T26P"], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t26p' AND "shoppe_products"."id" != 3) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 3], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '166bd0fb-0369-4998-ad69-3be2189c52b9' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["data", "<67267 bytes of binary data>"], ["file_name", "t26p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 3], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "166bd0fb-0369-4998-ad69-3be2189c52b9"], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 3], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t46gn' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t46gn"], ["price", #], ["product_category_id", 1], ["short_description", "Colourful, sharp, fast & down right sexy. The Yealink T46P will make your scream!"], ["sku", "YL-SIP-T46GN"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T46GN"], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["weight", #]]  (0.7ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t46gn' AND "shoppe_products"."id" != 4) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 4], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '1620d5a2-35f0-48d9-acf8-36ba7b84ecc4' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["data", "<197941 bytes of binary data>"], ["file_name", "t46gn.jpg"], ["file_type", "image/jpeg"], ["parent_id", 4], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "1620d5a2-35f0-48d9-acf8-36ba7b84ecc4"], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 4], ["parent_type", "Shoppe::Product"]]  (2.0ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-grey' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-870-grey"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-GREY"], ["stock", 2], ["tax_rate", #], ["title", "Snom 870 (Grey)"], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-grey' AND "shoppe_products"."id" != 5) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 5], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '7d8d79e1-55c2-4189-8777-577e1c01873f' LIMIT 1 SQL (0.5ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["data", "<105894 bytes of binary data>"], ["file_name", "snom-870-grey.jpg"], ["file_type", "image/jpeg"], ["parent_id", 5], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "7d8d79e1-55c2-4189-8777-577e1c01873f"], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 5], ["parent_type", "Shoppe::Product"]]  (1.4ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-black' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "snom-870-black"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-BLK"], ["tax_rate", #], ["title", "Snom 870 (Black)"], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-black' AND "shoppe_products"."id" != 6) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 6], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '6721904b-90ca-4b4c-9230-a9d20dd36771' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["data", "<85691 bytes of binary data>"], ["file_name", "snom-870-blk.jpg"], ["file_type", "image/jpeg"], ["parent_id", 6], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "6721904b-90ca-4b4c-9230-a9d20dd36771"], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 6], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-mono-headset' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-mono-headset"], ["price", #], ["product_category_id", 2], ["short_description", "If you're often on the phone, this headset will make your life 100x easier. Guaranteed*."], ["sku", "YL-YHS32"], ["stock", 3], ["tax_rate", #], ["title", "Yealink Mono Headset"], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-mono-headset' AND "shoppe_products"."id" != 7) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 7], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'a35dcbfc-cd69-41f9-96c0-8be5e6f2306f' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["data", "<19129 bytes of binary data>"], ["file_name", "yhs32.jpg"], ["file_type", "image/jpeg"], ["parent_id", 7], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "a35dcbfc-cd69-41f9-96c0-8be5e6f2306f"], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 7], ["parent_type", "Shoppe::Product"]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm2' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm2"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM2"], ["tax_rate", #], ["title", "Snom Wired Headset (MM2)"], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm2' AND "shoppe_products"."id" != 8) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 8], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '88267b32-c195-46fb-80ef-8149428574ba' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 8], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "88267b32-c195-46fb-80ef-8149428574ba"], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 8], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm3' LIMIT 1 SQL (0.2ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm3"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM3"], ["stock", 1], ["tax_rate", #], ["title", "Snom Wired Headset (MM3)"], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm3' AND "shoppe_products"."id" != 9) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 9], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '02cd4fd4-4324-4c0a-930b-05f04345b255' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 9], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "02cd4fd4-4324-4c0a-930b-05f04345b255"], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 9], ["parent_type", "Shoppe::Product"]]  (1.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-w52p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-w52p"], ["price", #], ["product_category_id", 1], ["short_description", "Wireless SIP phones are hard to come by but this beauty from Yealink is fab."], ["sku", "TL-SIP-W52P"], ["stock", 1], ["tax_rate", #], ["title", "Yealink W52P"], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-w52p' AND "shoppe_products"."id" != 10) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 10], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '5ff9e33f-4c4a-43be-851a-f283d9285997' LIMIT 1 SQL (0.5ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["data", "<102742 bytes of binary data>"], ["file_name", "w52p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 10], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "5ff9e33f-4c4a-43be-851a-f283d9285997"], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 10], ["parent_type", "Shoppe::Product"]]  (1.4ms) commit transaction  (0.1ms) begin transaction Binary data inserted for `string` type on column `password_digest` SQL (0.4ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00], ["email_address", "adam@niftyware.io"], ["first_name", "Adam"], ["last_name", "Cooke"], ["password_digest", "$2a$04$I8utbU0bLXVuOJ4uTGqR7ed4LlErWCaeUjeDTehPlUiI//jcW1phu"], ["updated_at", Sun, 06 Oct 2013 17:10:33 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction --------------------------------- Shoppe::OrderTest: test_the_truth ---------------------------------  (0.1ms) SELECT COUNT(*) FROM "shoppe_products"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- ShoppeTest: test_configuration_is_loaded ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (3.1ms) CREATE TABLE "shoppe_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "token" varchar(255), "role" varchar(255), "file_name" varchar(255), "file_type" varchar(255), "data" blob(10485760), "created_at" datetime, "updated_at" datetime)   (1.2ms) CREATE TABLE "shoppe_delivery_service_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "delivery_service_id" integer, "code" varchar(255), "price" decimal(8,2), "tax_rate" decimal(8,2), "min_weight" decimal(8,2), "max_weight" decimal(8,2), "created_at" datetime, "updated_at" datetime)  (1.3ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 'f', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (0.9ms) CREATE TABLE "shoppe_key_value_store" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "group" varchar(255), "name" varchar(255), "value" varchar(255))  (0.9ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))  (0.7ms) CREATE TABLE "shoppe_product_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text)  (0.8ms) CREATE TABLE "shoppe_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email_address" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131006144849')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094549')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094551')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094647')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094654')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926104450')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926151718')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927113134')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927130022')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927132143')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927150025')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928111819')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928131502')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928134518')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928173818')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928180041')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928185655')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928193023')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928201257')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929151744')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929203421')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130930181344')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002154122')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002155246')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002162301')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131003163827')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004185043')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004193320')  (0.1ms) begin transaction SQL (4.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMFC"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["name", "Royal Mail (1st class)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]]  (2.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["delivery_service_id", 1], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMSF"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["name", "Royal Mail (signed for)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "default", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["code", "ND16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["default", true], ["name", "Next Day Delivery (before 4pm)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NS10"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["name", "Next Day Delivery (before 10am)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NDSA16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["name", "Saturday Delivery"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-phones' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["name", "VoIP Phones"], ["permalink", "voip-phones"], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]]  (2.6ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-accessories' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["name", "VoIP Accessories"], ["permalink", "voip-accessories"], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'network-eqipment' LIMIT 1 SQL (0.2ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["name", "Network Eqipment"], ["permalink", "network-eqipment"], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t20p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t20p"], ["price", #], ["product_category_id", 1], ["short_description", "If cheap & cheerful is what you’re after, the Yealink T20P is what you’re looking for."], ["sku", "YL-SIP-T20P"], ["stock", 20], ["tax_rate", #], ["title", "Yealink T20P"], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["weight", #]]  (1.0ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t20p' AND "shoppe_products"."id" != 1) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 1], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'eca2015b-aa8d-4d45-8126-b68a840fe3a0' LIMIT 1 SQL (0.7ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["data", "<127400 bytes of binary data>"], ["file_name", "t20p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 1], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "eca2015b-aa8d-4d45-8126-b68a840fe3a0"], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 1], ["parent_type", "Shoppe::Product"]]  (1.4ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t22p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t22p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T22P"], ["stock", 12], ["tax_rate", #], ["title", "Yealink T22P"], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t22p' AND "shoppe_products"."id" != 2) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 2], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '2e5ff123-8b0e-450c-8d30-a0c4eec8251b' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["data", "<101139 bytes of binary data>"], ["file_name", "t22p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 2], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "2e5ff123-8b0e-450c-8d30-a0c4eec8251b"], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 2], ["parent_type", "Shoppe::Product"]]  (1.4ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t26p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t26p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T26P"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T26P"], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t26p' AND "shoppe_products"."id" != 3) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 3], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '08ebd287-ef34-4995-945a-b7459e88a932' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["data", "<67267 bytes of binary data>"], ["file_name", "t26p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 3], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "08ebd287-ef34-4995-945a-b7459e88a932"], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 3], ["parent_type", "Shoppe::Product"]]  (1.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t46gn' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t46gn"], ["price", #], ["product_category_id", 1], ["short_description", "Colourful, sharp, fast & down right sexy. The Yealink T46P will make your scream!"], ["sku", "YL-SIP-T46GN"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T46GN"], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["weight", #]]  (0.7ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t46gn' AND "shoppe_products"."id" != 4) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 4], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'f62e54cc-d804-47c7-a564-e13fb97484c7' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["data", "<197941 bytes of binary data>"], ["file_name", "t46gn.jpg"], ["file_type", "image/jpeg"], ["parent_id", 4], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "f62e54cc-d804-47c7-a564-e13fb97484c7"], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 4], ["parent_type", "Shoppe::Product"]]  (2.0ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-grey' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-870-grey"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-GREY"], ["stock", 2], ["tax_rate", #], ["title", "Snom 870 (Grey)"], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-grey' AND "shoppe_products"."id" != 5) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 5], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '1c4c4f96-3541-43b7-9b83-e206f1a8f6fd' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["data", "<105894 bytes of binary data>"], ["file_name", "snom-870-grey.jpg"], ["file_type", "image/jpeg"], ["parent_id", 5], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "1c4c4f96-3541-43b7-9b83-e206f1a8f6fd"], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 5], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-black' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "snom-870-black"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-BLK"], ["tax_rate", #], ["title", "Snom 870 (Black)"], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-black' AND "shoppe_products"."id" != 6) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 6], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '2cc4746a-4578-45be-9796-6f549c7193fe' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["data", "<85691 bytes of binary data>"], ["file_name", "snom-870-blk.jpg"], ["file_type", "image/jpeg"], ["parent_id", 6], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "2cc4746a-4578-45be-9796-6f549c7193fe"], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 6], ["parent_type", "Shoppe::Product"]]  (1.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-mono-headset' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-mono-headset"], ["price", #], ["product_category_id", 2], ["short_description", "If you're often on the phone, this headset will make your life 100x easier. Guaranteed*."], ["sku", "YL-YHS32"], ["stock", 3], ["tax_rate", #], ["title", "Yealink Mono Headset"], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-mono-headset' AND "shoppe_products"."id" != 7) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 7], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '8fbe4f06-b77a-4b3f-b27c-5aee1cbbd0f0' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["data", "<19129 bytes of binary data>"], ["file_name", "yhs32.jpg"], ["file_type", "image/jpeg"], ["parent_id", 7], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "8fbe4f06-b77a-4b3f-b27c-5aee1cbbd0f0"], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 7], ["parent_type", "Shoppe::Product"]]  (1.0ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm2' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm2"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM2"], ["tax_rate", #], ["title", "Snom Wired Headset (MM2)"], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["weight", #]]  (1.0ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm2' AND "shoppe_products"."id" != 8) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 8], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '2be88ef7-9286-4397-8f6f-14e6e1985107' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 8], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "2be88ef7-9286-4397-8f6f-14e6e1985107"], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 8], ["parent_type", "Shoppe::Product"]]  (1.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm3' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm3"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM3"], ["stock", 1], ["tax_rate", #], ["title", "Snom Wired Headset (MM3)"], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm3' AND "shoppe_products"."id" != 9) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 9], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'b09f2e11-8b11-47a3-ae69-0383ce2e5088' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 9], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "b09f2e11-8b11-47a3-ae69-0383ce2e5088"], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 9], ["parent_type", "Shoppe::Product"]]  (1.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-w52p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-w52p"], ["price", #], ["product_category_id", 1], ["short_description", "Wireless SIP phones are hard to come by but this beauty from Yealink is fab."], ["sku", "TL-SIP-W52P"], ["stock", 1], ["tax_rate", #], ["title", "Yealink W52P"], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-w52p' AND "shoppe_products"."id" != 10) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 10], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '944a437a-6e4c-485c-9182-bd4d8c0c82d8' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["data", "<102742 bytes of binary data>"], ["file_name", "w52p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 10], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "944a437a-6e4c-485c-9182-bd4d8c0c82d8"], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 10], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.1ms) begin transaction Binary data inserted for `string` type on column `password_digest` SQL (0.4ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00], ["email_address", "adam@niftyware.io"], ["first_name", "Adam"], ["last_name", "Cooke"], ["password_digest", "$2a$04$x9cVuPlvb1SFy.t0EP6cyu6lnNn3KNKsC0dOAVNUTmCvK7oT5PP9G"], ["updated_at", Sun, 06 Oct 2013 17:12:17 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction --------------------------------- Shoppe::OrderTest: test_the_truth ---------------------------------  (0.1ms) SELECT COUNT(*) FROM "shoppe_products"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------- Shoppe::UserTest: test_authentication ------------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- ShoppeTest: test_configuration_is_loaded ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (3.3ms) CREATE TABLE "shoppe_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "token" varchar(255), "role" varchar(255), "file_name" varchar(255), "file_type" varchar(255), "data" blob(10485760), "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "shoppe_delivery_service_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "delivery_service_id" integer, "code" varchar(255), "price" decimal(8,2), "tax_rate" decimal(8,2), "min_weight" decimal(8,2), "max_weight" decimal(8,2), "created_at" datetime, "updated_at" datetime)  (1.4ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 'f', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (1.0ms) CREATE TABLE "shoppe_key_value_store" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "group" varchar(255), "name" varchar(255), "value" varchar(255))  (0.9ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))  (0.7ms) CREATE TABLE "shoppe_product_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text)  (0.8ms) CREATE TABLE "shoppe_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email_address" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131006144849')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094549')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094551')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094647')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094654')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926104450')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926151718')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927113134')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927130022')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927132143')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927150025')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928111819')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928131502')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928134518')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928173818')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928180041')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928185655')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928193023')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928201257')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929151744')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929203421')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130930181344')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002154122')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002155246')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002162301')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131003163827')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004185043')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004193320')  (0.1ms) begin transaction SQL (4.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMFC"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["name", "Royal Mail (1st class)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]]  (2.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["delivery_service_id", 1], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]]  (1.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMSF"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["name", "Royal Mail (signed for)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "default", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["code", "ND16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["default", true], ["name", "Next Day Delivery (before 4pm)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NS10"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["name", "Next Day Delivery (before 10am)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NDSA16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["name", "Saturday Delivery"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.2ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-phones' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["name", "VoIP Phones"], ["permalink", "voip-phones"], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]]  (1.6ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-accessories' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["name", "VoIP Accessories"], ["permalink", "voip-accessories"], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'network-eqipment' LIMIT 1 SQL (0.2ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["name", "Network Eqipment"], ["permalink", "network-eqipment"], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t20p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t20p"], ["price", #], ["product_category_id", 1], ["short_description", "If cheap & cheerful is what you’re after, the Yealink T20P is what you’re looking for."], ["sku", "YL-SIP-T20P"], ["stock", 20], ["tax_rate", #], ["title", "Yealink T20P"], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["weight", #]]  (1.0ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t20p' AND "shoppe_products"."id" != 1) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 1], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '9fc21be6-e069-4d02-8e2d-bca2eaa0dce0' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["data", "<127400 bytes of binary data>"], ["file_name", "t20p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 1], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "9fc21be6-e069-4d02-8e2d-bca2eaa0dce0"], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 1], ["parent_type", "Shoppe::Product"]]  (1.6ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t22p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t22p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T22P"], ["stock", 12], ["tax_rate", #], ["title", "Yealink T22P"], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t22p' AND "shoppe_products"."id" != 2) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 2], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '065db929-5dc1-4091-9e3b-fc2038610662' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["data", "<101139 bytes of binary data>"], ["file_name", "t22p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 2], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "065db929-5dc1-4091-9e3b-fc2038610662"], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 2], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t26p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t26p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T26P"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T26P"], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t26p' AND "shoppe_products"."id" != 3) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 3], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '4659b2f2-64c6-4423-9b7d-aa0a685fe9a0' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["data", "<67267 bytes of binary data>"], ["file_name", "t26p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 3], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "4659b2f2-64c6-4423-9b7d-aa0a685fe9a0"], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 3], ["parent_type", "Shoppe::Product"]]  (1.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t46gn' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t46gn"], ["price", #], ["product_category_id", 1], ["short_description", "Colourful, sharp, fast & down right sexy. The Yealink T46P will make your scream!"], ["sku", "YL-SIP-T46GN"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T46GN"], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t46gn' AND "shoppe_products"."id" != 4) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 4], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '88ebf070-03f6-4f96-a1b1-0ec6afb7dde6' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["data", "<197941 bytes of binary data>"], ["file_name", "t46gn.jpg"], ["file_type", "image/jpeg"], ["parent_id", 4], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "88ebf070-03f6-4f96-a1b1-0ec6afb7dde6"], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 4], ["parent_type", "Shoppe::Product"]]  (2.0ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-grey' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-870-grey"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-GREY"], ["stock", 2], ["tax_rate", #], ["title", "Snom 870 (Grey)"], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-grey' AND "shoppe_products"."id" != 5) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 5], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'c06fa8c9-6beb-4e4b-b03a-ef8d37dd1eeb' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["data", "<105894 bytes of binary data>"], ["file_name", "snom-870-grey.jpg"], ["file_type", "image/jpeg"], ["parent_id", 5], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "c06fa8c9-6beb-4e4b-b03a-ef8d37dd1eeb"], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 5], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-black' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "snom-870-black"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-BLK"], ["tax_rate", #], ["title", "Snom 870 (Black)"], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-black' AND "shoppe_products"."id" != 6) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 6], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '22ab837b-ea47-4fec-9ee6-25106486e886' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["data", "<85691 bytes of binary data>"], ["file_name", "snom-870-blk.jpg"], ["file_type", "image/jpeg"], ["parent_id", 6], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "22ab837b-ea47-4fec-9ee6-25106486e886"], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 6], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-mono-headset' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-mono-headset"], ["price", #], ["product_category_id", 2], ["short_description", "If you're often on the phone, this headset will make your life 100x easier. Guaranteed*."], ["sku", "YL-YHS32"], ["stock", 3], ["tax_rate", #], ["title", "Yealink Mono Headset"], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-mono-headset' AND "shoppe_products"."id" != 7) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 7], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '37e3677b-fa89-4fcf-8816-4c4de5a26db3' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["data", "<19129 bytes of binary data>"], ["file_name", "yhs32.jpg"], ["file_type", "image/jpeg"], ["parent_id", 7], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "37e3677b-fa89-4fcf-8816-4c4de5a26db3"], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 7], ["parent_type", "Shoppe::Product"]]  (1.0ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm2' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm2"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM2"], ["tax_rate", #], ["title", "Snom Wired Headset (MM2)"], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm2' AND "shoppe_products"."id" != 8) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 8], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '94a9fff5-1c5f-42bd-94a1-09e2788d9be5' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 8], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "94a9fff5-1c5f-42bd-94a1-09e2788d9be5"], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 8], ["parent_type", "Shoppe::Product"]]  (1.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm3' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm3"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM3"], ["stock", 1], ["tax_rate", #], ["title", "Snom Wired Headset (MM3)"], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm3' AND "shoppe_products"."id" != 9) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 9], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'd34b4e74-2ab8-40c4-a161-f3d0dcaf4bcd' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 9], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "d34b4e74-2ab8-40c4-a161-f3d0dcaf4bcd"], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 9], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-w52p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-w52p"], ["price", #], ["product_category_id", 1], ["short_description", "Wireless SIP phones are hard to come by but this beauty from Yealink is fab."], ["sku", "TL-SIP-W52P"], ["stock", 1], ["tax_rate", #], ["title", "Yealink W52P"], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["weight", #]]  (1.0ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-w52p' AND "shoppe_products"."id" != 10) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 10], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '0b0723d9-206e-45a5-9a48-13ab738c303d' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["data", "<102742 bytes of binary data>"], ["file_name", "w52p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 10], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "0b0723d9-206e-45a5-9a48-13ab738c303d"], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 10], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.1ms) begin transaction Binary data inserted for `string` type on column `password_digest` SQL (0.4ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00], ["email_address", "adam@niftyware.io"], ["first_name", "Adam"], ["last_name", "Cooke"], ["password_digest", "$2a$04$b3Uq2LTlMIKiEt1GzR2Pc..MQqv5FOnOk0L6anTLMMdqMZtqUnOwa"], ["updated_at", Sun, 06 Oct 2013 17:13:05 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction --------------------------------- Shoppe::OrderTest: test_the_truth ---------------------------------  (0.1ms) SELECT COUNT(*) FROM "shoppe_products"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------- Shoppe::UserTest: test_authentication ------------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- Shoppe::UserTest: test_full_name -------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------- Shoppe::UserTest: test_short_name --------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- ShoppeTest: test_configuration_is_loaded ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (2.5ms) CREATE TABLE "shoppe_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "token" varchar(255), "role" varchar(255), "file_name" varchar(255), "file_type" varchar(255), "data" blob(10485760), "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "shoppe_delivery_service_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "delivery_service_id" integer, "code" varchar(255), "price" decimal(8,2), "tax_rate" decimal(8,2), "min_weight" decimal(8,2), "max_weight" decimal(8,2), "created_at" datetime, "updated_at" datetime)  (1.5ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 'f', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (1.0ms) CREATE TABLE "shoppe_key_value_store" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "group" varchar(255), "name" varchar(255), "value" varchar(255))  (0.9ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))  (0.7ms) CREATE TABLE "shoppe_product_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime)   (0.9ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text)  (0.8ms) CREATE TABLE "shoppe_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email_address" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131006144849')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094549')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094551')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094647')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094654')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926104450')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926151718')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927113134')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927130022')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927132143')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927150025')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928111819')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928131502')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928134518')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928173818')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928180041')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928185655')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928193023')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928201257')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929151744')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929203421')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130930181344')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002154122')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002155246')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002162301')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131003163827')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004185043')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004193320')  (0.1ms) begin transaction SQL (4.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMFC"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["name", "Royal Mail (1st class)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]]  (2.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["delivery_service_id", 1], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMSF"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["name", "Royal Mail (signed for)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "default", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["code", "ND16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["default", true], ["name", "Next Day Delivery (before 4pm)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NS10"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["name", "Next Day Delivery (before 10am)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NDSA16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["name", "Saturday Delivery"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.2ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-phones' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["name", "VoIP Phones"], ["permalink", "voip-phones"], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]]  (2.7ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.2ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-accessories' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["name", "VoIP Accessories"], ["permalink", "voip-accessories"], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'network-eqipment' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["name", "Network Eqipment"], ["permalink", "network-eqipment"], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t20p' LIMIT 1 SQL (0.5ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t20p"], ["price", #], ["product_category_id", 1], ["short_description", "If cheap & cheerful is what you’re after, the Yealink T20P is what you’re looking for."], ["sku", "YL-SIP-T20P"], ["stock", 20], ["tax_rate", #], ["title", "Yealink T20P"], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["weight", #]]  (1.6ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t20p' AND "shoppe_products"."id" != 1) LIMIT 1  (0.2ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 1], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '64686082-e19c-44e2-89cf-d89a54258ed8' LIMIT 1 SQL (0.7ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["data", "<127400 bytes of binary data>"], ["file_name", "t20p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 1], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "64686082-e19c-44e2-89cf-d89a54258ed8"], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 1], ["parent_type", "Shoppe::Product"]]  (1.6ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t22p' LIMIT 1 SQL (0.5ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t22p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T22P"], ["stock", 12], ["tax_rate", #], ["title", "Yealink T22P"], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t22p' AND "shoppe_products"."id" != 2) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 2], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '6bb41eb7-852f-4860-80cf-59bbfc5992d0' LIMIT 1 SQL (0.5ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["data", "<101139 bytes of binary data>"], ["file_name", "t22p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 2], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "6bb41eb7-852f-4860-80cf-59bbfc5992d0"], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 2], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t26p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t26p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T26P"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T26P"], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t26p' AND "shoppe_products"."id" != 3) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 3], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '999bcf6c-9307-4e0f-b448-3aa51a2ad8ae' LIMIT 1 SQL (0.5ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["data", "<67267 bytes of binary data>"], ["file_name", "t26p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 3], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "999bcf6c-9307-4e0f-b448-3aa51a2ad8ae"], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 3], ["parent_type", "Shoppe::Product"]]  (1.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t46gn' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t46gn"], ["price", #], ["product_category_id", 1], ["short_description", "Colourful, sharp, fast & down right sexy. The Yealink T46P will make your scream!"], ["sku", "YL-SIP-T46GN"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T46GN"], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["weight", #]]  (0.7ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t46gn' AND "shoppe_products"."id" != 4) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 4], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '4dd8a7f7-b502-4ba3-a281-f60b62601b64' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["data", "<197941 bytes of binary data>"], ["file_name", "t46gn.jpg"], ["file_type", "image/jpeg"], ["parent_id", 4], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "4dd8a7f7-b502-4ba3-a281-f60b62601b64"], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 4], ["parent_type", "Shoppe::Product"]]  (1.7ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-grey' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-870-grey"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-GREY"], ["stock", 2], ["tax_rate", #], ["title", "Snom 870 (Grey)"], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-grey' AND "shoppe_products"."id" != 5) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 5], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'a4048b46-9e94-4c5c-977d-ee7cb727d2c2' LIMIT 1 SQL (0.5ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["data", "<105894 bytes of binary data>"], ["file_name", "snom-870-grey.jpg"], ["file_type", "image/jpeg"], ["parent_id", 5], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "a4048b46-9e94-4c5c-977d-ee7cb727d2c2"], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 5], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-black' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "snom-870-black"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-BLK"], ["tax_rate", #], ["title", "Snom 870 (Black)"], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-black' AND "shoppe_products"."id" != 6) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 6], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'faaf8add-8e22-4d31-811c-71b2296b7808' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["data", "<85691 bytes of binary data>"], ["file_name", "snom-870-blk.jpg"], ["file_type", "image/jpeg"], ["parent_id", 6], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "faaf8add-8e22-4d31-811c-71b2296b7808"], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 6], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-mono-headset' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-mono-headset"], ["price", #], ["product_category_id", 2], ["short_description", "If you're often on the phone, this headset will make your life 100x easier. Guaranteed*."], ["sku", "YL-YHS32"], ["stock", 3], ["tax_rate", #], ["title", "Yealink Mono Headset"], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-mono-headset' AND "shoppe_products"."id" != 7) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 7], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '1b020fad-e1e9-44d5-b1a3-c2fbe2d8bb6e' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["data", "<19129 bytes of binary data>"], ["file_name", "yhs32.jpg"], ["file_type", "image/jpeg"], ["parent_id", 7], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "1b020fad-e1e9-44d5-b1a3-c2fbe2d8bb6e"], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 7], ["parent_type", "Shoppe::Product"]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm2' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm2"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM2"], ["tax_rate", #], ["title", "Snom Wired Headset (MM2)"], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm2' AND "shoppe_products"."id" != 8) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 8], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '5c62cc17-d09a-4499-a508-0bf95d94a1ef' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 8], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "5c62cc17-d09a-4499-a508-0bf95d94a1ef"], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 8], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm3' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm3"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM3"], ["stock", 1], ["tax_rate", #], ["title", "Snom Wired Headset (MM3)"], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm3' AND "shoppe_products"."id" != 9) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 9], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '7ce02203-438d-4d6c-8e03-be9a41beda2b' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 9], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "7ce02203-438d-4d6c-8e03-be9a41beda2b"], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 9], ["parent_type", "Shoppe::Product"]]  (1.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-w52p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-w52p"], ["price", #], ["product_category_id", 1], ["short_description", "Wireless SIP phones are hard to come by but this beauty from Yealink is fab."], ["sku", "TL-SIP-W52P"], ["stock", 1], ["tax_rate", #], ["title", "Yealink W52P"], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-w52p' AND "shoppe_products"."id" != 10) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 10], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '71661621-49b8-4700-bcfa-9aca3e148e15' LIMIT 1 SQL (0.8ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["data", "<102742 bytes of binary data>"], ["file_name", "w52p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 10], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "71661621-49b8-4700-bcfa-9aca3e148e15"], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 10], ["parent_type", "Shoppe::Product"]]  (1.5ms) commit transaction  (0.1ms) begin transaction Binary data inserted for `string` type on column `password_digest` SQL (0.5ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00], ["email_address", "adam@niftyware.io"], ["first_name", "Adam"], ["last_name", "Cooke"], ["password_digest", "$2a$04$uLxoJyzN6icmYe0rl6pTA.dNPxCnE773LOAxeHhI5YLsT/bTy91.."], ["updated_at", Sun, 06 Oct 2013 17:14:17 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction --------------------------------- Shoppe::OrderTest: test_the_truth ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------- Shoppe::UserTest: test_authentication ------------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------- Shoppe::UserTest: test_full_name -------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- Shoppe::UserTest: test_new_users -------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------- Shoppe::UserTest: test_short_name --------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- ShoppeTest: test_configuration_is_loaded ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (3.0ms) CREATE TABLE "shoppe_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "token" varchar(255), "role" varchar(255), "file_name" varchar(255), "file_type" varchar(255), "data" blob(10485760), "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "shoppe_delivery_service_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "delivery_service_id" integer, "code" varchar(255), "price" decimal(8,2), "tax_rate" decimal(8,2), "min_weight" decimal(8,2), "max_weight" decimal(8,2), "created_at" datetime, "updated_at" datetime)  (1.4ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 'f', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (1.1ms) CREATE TABLE "shoppe_key_value_store" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "group" varchar(255), "name" varchar(255), "value" varchar(255))  (0.9ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))  (0.7ms) CREATE TABLE "shoppe_product_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text)  (1.0ms) CREATE TABLE "shoppe_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email_address" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20131006144849')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094549')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094551')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094647')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094654')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926104450')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926151718')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927113134')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927130022')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927132143')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927150025')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928111819')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928131502')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928134518')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928173818')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928180041')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928185655')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928193023')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928201257')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929151744')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929203421')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130930181344')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002154122')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002155246')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002162301')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131003163827')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004185043')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004193320')  (0.1ms) begin transaction SQL (4.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMFC"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:15:02 UTC +00:00], ["name", "Royal Mail (1st class)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:15:02 UTC +00:00]]  (2.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["delivery_service_id", 1], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]]  (1.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMSF"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["name", "Royal Mail (signed for)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "default", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["code", "ND16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["default", true], ["name", "Next Day Delivery (before 4pm)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NS10"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["name", "Next Day Delivery (before 10am)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NDSA16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["name", "Saturday Delivery"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.2ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-phones' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["name", "VoIP Phones"], ["permalink", "voip-phones"], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]]  (2.6ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-accessories' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["name", "VoIP Accessories"], ["permalink", "voip-accessories"], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'network-eqipment' LIMIT 1 SQL (0.2ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["name", "Network Eqipment"], ["permalink", "network-eqipment"], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t20p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t20p"], ["price", #], ["product_category_id", 1], ["short_description", "If cheap & cheerful is what you’re after, the Yealink T20P is what you’re looking for."], ["sku", "YL-SIP-T20P"], ["stock", 20], ["tax_rate", #], ["title", "Yealink T20P"], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t20p' AND "shoppe_products"."id" != 1) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 1], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '730350f8-32ad-403d-88a9-cdc3bfdaf727' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["data", "<127400 bytes of binary data>"], ["file_name", "t20p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 1], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "730350f8-32ad-403d-88a9-cdc3bfdaf727"], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 1], ["parent_type", "Shoppe::Product"]]  (1.6ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t22p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t22p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T22P"], ["stock", 12], ["tax_rate", #], ["title", "Yealink T22P"], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["weight", #]]  (1.0ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t22p' AND "shoppe_products"."id" != 2) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 2], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '26613c5e-22c9-4b60-b760-201846927403' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["data", "<101139 bytes of binary data>"], ["file_name", "t22p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 2], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "26613c5e-22c9-4b60-b760-201846927403"], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 2], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t26p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t26p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T26P"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T26P"], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t26p' AND "shoppe_products"."id" != 3) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 3], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '676c506f-2637-40fa-9561-fb2ef329eec5' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["data", "<67267 bytes of binary data>"], ["file_name", "t26p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 3], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "676c506f-2637-40fa-9561-fb2ef329eec5"], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 3], ["parent_type", "Shoppe::Product"]]  (1.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t46gn' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t46gn"], ["price", #], ["product_category_id", 1], ["short_description", "Colourful, sharp, fast & down right sexy. The Yealink T46P will make your scream!"], ["sku", "YL-SIP-T46GN"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T46GN"], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["weight", #]]  (0.6ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t46gn' AND "shoppe_products"."id" != 4) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 4], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '1e7eb2a5-de3b-436b-a0eb-15d9d848667c' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["data", "<197941 bytes of binary data>"], ["file_name", "t46gn.jpg"], ["file_type", "image/jpeg"], ["parent_id", 4], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "1e7eb2a5-de3b-436b-a0eb-15d9d848667c"], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 4], ["parent_type", "Shoppe::Product"]]  (1.7ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-grey' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-870-grey"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-GREY"], ["stock", 2], ["tax_rate", #], ["title", "Snom 870 (Grey)"], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-grey' AND "shoppe_products"."id" != 5) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 5], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '31d2e4e3-10cd-4007-9a5c-fec8ae319240' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["data", "<105894 bytes of binary data>"], ["file_name", "snom-870-grey.jpg"], ["file_type", "image/jpeg"], ["parent_id", 5], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "31d2e4e3-10cd-4007-9a5c-fec8ae319240"], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 5], ["parent_type", "Shoppe::Product"]]  (1.5ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-black' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "snom-870-black"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-BLK"], ["tax_rate", #], ["title", "Snom 870 (Black)"], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-black' AND "shoppe_products"."id" != 6) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 6], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.0ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'f2f9825b-9a49-4fd5-ae3b-f0683ed124fc' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["data", "<85691 bytes of binary data>"], ["file_name", "snom-870-blk.jpg"], ["file_type", "image/jpeg"], ["parent_id", 6], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "f2f9825b-9a49-4fd5-ae3b-f0683ed124fc"], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 6], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-mono-headset' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-mono-headset"], ["price", #], ["product_category_id", 2], ["short_description", "If you're often on the phone, this headset will make your life 100x easier. Guaranteed*."], ["sku", "YL-YHS32"], ["stock", 3], ["tax_rate", #], ["title", "Yealink Mono Headset"], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-mono-headset' AND "shoppe_products"."id" != 7) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 7], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '04697302-c69e-4091-8fcd-9686f2cf1d38' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["data", "<19129 bytes of binary data>"], ["file_name", "yhs32.jpg"], ["file_type", "image/jpeg"], ["parent_id", 7], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "04697302-c69e-4091-8fcd-9686f2cf1d38"], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 7], ["parent_type", "Shoppe::Product"]]  (1.0ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm2' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm2"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM2"], ["tax_rate", #], ["title", "Snom Wired Headset (MM2)"], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["weight", #]]  (0.7ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm2' AND "shoppe_products"."id" != 8) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 8], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '87752c35-6ae5-46a5-b8e8-f3812e3b4f96' LIMIT 1 SQL (0.5ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 8], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "87752c35-6ae5-46a5-b8e8-f3812e3b4f96"], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 8], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm3' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm3"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM3"], ["stock", 1], ["tax_rate", #], ["title", "Snom Wired Headset (MM3)"], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm3' AND "shoppe_products"."id" != 9) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 9], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'c7ed1751-7cdf-4ac2-9382-80f78f607c4e' LIMIT 1 SQL (0.5ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 9], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "c7ed1751-7cdf-4ac2-9382-80f78f607c4e"], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 9], ["parent_type", "Shoppe::Product"]]  (1.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-w52p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-w52p"], ["price", #], ["product_category_id", 1], ["short_description", "Wireless SIP phones are hard to come by but this beauty from Yealink is fab."], ["sku", "TL-SIP-W52P"], ["stock", 1], ["tax_rate", #], ["title", "Yealink W52P"], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-w52p' AND "shoppe_products"."id" != 10) LIMIT 1  (1.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 10], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '87d3111a-3a3a-4528-8bf8-477264e95332' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["data", "<102742 bytes of binary data>"], ["file_name", "w52p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 10], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "87d3111a-3a3a-4528-8bf8-477264e95332"], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 10], ["parent_type", "Shoppe::Product"]]  (1.4ms) commit transaction  (0.1ms) begin transaction Binary data inserted for `string` type on column `password_digest` SQL (0.4ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["email_address", "adam@niftyware.io"], ["first_name", "Adam"], ["last_name", "Cooke"], ["password_digest", "$2a$04$6M.iLJh7.UnhSs0LWz2SK.Dfv3YderaaEA.zbTiDZToiy5ZrgBRmS"], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction --------------------------------- Shoppe::OrderTest: test_the_truth ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------- Shoppe::UserTest: test_authentication ------------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- Shoppe::UserTest: test_full_name -------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- Shoppe::UserTest: test_new_users -------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Binary data inserted for `string` type on column `password_digest` SQL (0.4ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00], ["email_address", "test@example.com"], ["first_name", "Test"], ["last_name", "User"], ["password_digest", "$2a$04$E4dEAaFtk5Zb.T.ZgLiMRuT060WAHDUr88WY9z2QP5J92kaN3GKqe"], ["updated_at", Sun, 06 Oct 2013 17:15:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------- Shoppe::UserTest: test_short_name --------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- ShoppeTest: test_configuration_is_loaded ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (2.6ms) CREATE TABLE "shoppe_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "token" varchar(255), "role" varchar(255), "file_name" varchar(255), "file_type" varchar(255), "data" blob(10485760), "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_delivery_service_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "delivery_service_id" integer, "code" varchar(255), "price" decimal(8,2), "tax_rate" decimal(8,2), "min_weight" decimal(8,2), "max_weight" decimal(8,2), "created_at" datetime, "updated_at" datetime)  (1.5ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 'f', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (1.0ms) CREATE TABLE "shoppe_key_value_store" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "group" varchar(255), "name" varchar(255), "value" varchar(255))  (0.9ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))  (0.7ms) CREATE TABLE "shoppe_product_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text)  (0.8ms) CREATE TABLE "shoppe_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email_address" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131006144849')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094549')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094551')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094647')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094654')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926104450')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926151718')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927113134')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927130022')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927132143')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927150025')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928111819')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928131502')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928134518')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928173818')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928180041')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928185655')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928193023')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928201257')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929151744')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929203421')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130930181344')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002154122')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002155246')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002162301')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131003163827')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004185043')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004193320')  (0.1ms) begin transaction SQL (4.4ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMFC"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["name", "Royal Mail (1st class)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]]  (2.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["delivery_service_id", 1], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMSF"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["name", "Royal Mail (signed for)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "default", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["code", "ND16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["default", true], ["name", "Next Day Delivery (before 4pm)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NS10"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["name", "Next Day Delivery (before 10am)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NDSA16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["name", "Saturday Delivery"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-phones' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["name", "VoIP Phones"], ["permalink", "voip-phones"], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]]  (1.6ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.2ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-accessories' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["name", "VoIP Accessories"], ["permalink", "voip-accessories"], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction Shoppe::ProductCategory Exists (0.2ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'network-eqipment' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["name", "Network Eqipment"], ["permalink", "network-eqipment"], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t20p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t20p"], ["price", #], ["product_category_id", 1], ["short_description", "If cheap & cheerful is what you’re after, the Yealink T20P is what you’re looking for."], ["sku", "YL-SIP-T20P"], ["stock", 20], ["tax_rate", #], ["title", "Yealink T20P"], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["weight", #]]  (1.0ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t20p' AND "shoppe_products"."id" != 1) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 1], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '9291e56f-5b14-40f2-8cbb-506afac3deb3' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["data", "<127400 bytes of binary data>"], ["file_name", "t20p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 1], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "9291e56f-5b14-40f2-8cbb-506afac3deb3"], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 1], ["parent_type", "Shoppe::Product"]]  (1.4ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t22p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t22p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T22P"], ["stock", 12], ["tax_rate", #], ["title", "Yealink T22P"], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t22p' AND "shoppe_products"."id" != 2) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 2], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'ef6fbbb7-e16b-41cc-b81a-eb8f7465d18b' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["data", "<101139 bytes of binary data>"], ["file_name", "t22p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 2], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "ef6fbbb7-e16b-41cc-b81a-eb8f7465d18b"], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 2], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t26p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t26p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T26P"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T26P"], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["weight", #]]  (1.0ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t26p' AND "shoppe_products"."id" != 3) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 3], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '2ae6fa6b-3a60-4aff-898c-0849ebec86ba' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["data", "<67267 bytes of binary data>"], ["file_name", "t26p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 3], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "2ae6fa6b-3a60-4aff-898c-0849ebec86ba"], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 3], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t46gn' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t46gn"], ["price", #], ["product_category_id", 1], ["short_description", "Colourful, sharp, fast & down right sexy. The Yealink T46P will make your scream!"], ["sku", "YL-SIP-T46GN"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T46GN"], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["weight", #]]  (0.7ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t46gn' AND "shoppe_products"."id" != 4) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 4], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '4c153d79-1ad1-4789-a6bf-d04559371bb0' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["data", "<197941 bytes of binary data>"], ["file_name", "t46gn.jpg"], ["file_type", "image/jpeg"], ["parent_id", 4], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "4c153d79-1ad1-4789-a6bf-d04559371bb0"], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 4], ["parent_type", "Shoppe::Product"]]  (1.7ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-grey' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-870-grey"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-GREY"], ["stock", 2], ["tax_rate", #], ["title", "Snom 870 (Grey)"], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-grey' AND "shoppe_products"."id" != 5) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 5], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '0f7b3bb0-6e27-47b8-ab39-50ba809ecd4e' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["data", "<105894 bytes of binary data>"], ["file_name", "snom-870-grey.jpg"], ["file_type", "image/jpeg"], ["parent_id", 5], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "0f7b3bb0-6e27-47b8-ab39-50ba809ecd4e"], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 5], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-black' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "snom-870-black"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-BLK"], ["tax_rate", #], ["title", "Snom 870 (Black)"], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-black' AND "shoppe_products"."id" != 6) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 6], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '63147d7e-4d52-44d3-a59e-25ca010eca48' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["data", "<85691 bytes of binary data>"], ["file_name", "snom-870-blk.jpg"], ["file_type", "image/jpeg"], ["parent_id", 6], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "63147d7e-4d52-44d3-a59e-25ca010eca48"], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 6], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-mono-headset' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-mono-headset"], ["price", #], ["product_category_id", 2], ["short_description", "If you're often on the phone, this headset will make your life 100x easier. Guaranteed*."], ["sku", "YL-YHS32"], ["stock", 3], ["tax_rate", #], ["title", "Yealink Mono Headset"], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-mono-headset' AND "shoppe_products"."id" != 7) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 7], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '4e586500-aa85-459a-abbc-51b28645fe8f' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["data", "<19129 bytes of binary data>"], ["file_name", "yhs32.jpg"], ["file_type", "image/jpeg"], ["parent_id", 7], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "4e586500-aa85-459a-abbc-51b28645fe8f"], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 7], ["parent_type", "Shoppe::Product"]]  (0.7ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.2ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm2' LIMIT 1 SQL (0.5ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm2"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM2"], ["tax_rate", #], ["title", "Snom Wired Headset (MM2)"], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["weight", #]]  (0.7ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm2' AND "shoppe_products"."id" != 8) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 8], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '45d862e8-04f0-48c3-b3cb-c3597a36164e' LIMIT 1 SQL (0.5ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 8], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "45d862e8-04f0-48c3-b3cb-c3597a36164e"], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 8], ["parent_type", "Shoppe::Product"]]  (1.0ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.2ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm3' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm3"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM3"], ["stock", 1], ["tax_rate", #], ["title", "Snom Wired Headset (MM3)"], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm3' AND "shoppe_products"."id" != 9) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 9], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '55e8bffe-71d1-4d33-a3bb-596216bcada5' LIMIT 1 SQL (0.5ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 9], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "55e8bffe-71d1-4d33-a3bb-596216bcada5"], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 9], ["parent_type", "Shoppe::Product"]]  (1.1ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.2ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-w52p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-w52p"], ["price", #], ["product_category_id", 1], ["short_description", "Wireless SIP phones are hard to come by but this beauty from Yealink is fab."], ["sku", "TL-SIP-W52P"], ["stock", 1], ["tax_rate", #], ["title", "Yealink W52P"], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["weight", #]]  (14.2ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-w52p' AND "shoppe_products"."id" != 10) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 10], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '6ce635e4-dfff-49f8-892f-a180fa612133' LIMIT 1 SQL (0.5ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["data", "<102742 bytes of binary data>"], ["file_name", "w52p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 10], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "6ce635e4-dfff-49f8-892f-a180fa612133"], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 10], ["parent_type", "Shoppe::Product"]]  (6.1ms) commit transaction  (0.2ms) begin transaction Binary data inserted for `string` type on column `password_digest` SQL (0.8ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["email_address", "adam@niftyware.io"], ["first_name", "Adam"], ["last_name", "Cooke"], ["password_digest", "$2a$04$HPAW6mb.2BHt7V4NMn/ZKOyJFCBOvu.m5qprUx8SF9gR73oieek5."], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction --------------------------------- Shoppe::OrderTest: test_the_truth ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------- Shoppe::UserTest: test_authentication ------------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------- Shoppe::UserTest: test_full_name -------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------- Shoppe::UserTest: test_short_name --------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ Shoppe::UserTest: test_user_creation ------------------------------------ Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Binary data inserted for `string` type on column `password_digest` SQL (0.4ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00], ["email_address", "test@example.com"], ["first_name", "Test"], ["last_name", "User"], ["password_digest", "$2a$04$uMHwOdw1p3GG2Hy7SYc9zOkVpvihPPOCfIWdNQOXsuULSqRqh00z6"], ["updated_at", Sun, 06 Oct 2013 17:15:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- ShoppeTest: test_configuration_is_loaded ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (3.1ms) CREATE TABLE "shoppe_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "token" varchar(255), "role" varchar(255), "file_name" varchar(255), "file_type" varchar(255), "data" blob(10485760), "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "shoppe_delivery_service_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "delivery_service_id" integer, "code" varchar(255), "price" decimal(8,2), "tax_rate" decimal(8,2), "min_weight" decimal(8,2), "max_weight" decimal(8,2), "created_at" datetime, "updated_at" datetime)  (1.6ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 'f', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (1.2ms) CREATE TABLE "shoppe_key_value_store" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "group" varchar(255), "name" varchar(255), "value" varchar(255))  (1.1ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))  (0.7ms) CREATE TABLE "shoppe_product_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text)  (1.0ms) CREATE TABLE "shoppe_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email_address" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131006144849')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094549')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094551')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094647')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094654')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926104450')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926151718')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927113134')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927130022')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927132143')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927150025')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928111819')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928131502')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928134518')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928173818')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928180041')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928185655')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928193023')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928201257')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929151744')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929203421')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130930181344')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002154122')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002155246')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002162301')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131003163827')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004185043')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004193320')  (0.1ms) begin transaction SQL (4.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMFC"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00], ["name", "Royal Mail (1st class)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00]]  (2.6ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00], ["delivery_service_id", 1], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00]]  (1.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMSF"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00], ["name", "Royal Mail (signed for)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "default", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["code", "ND16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00], ["default", true], ["name", "Next Day Delivery (before 4pm)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NS10"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00], ["name", "Next Day Delivery (before 10am)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NDSA16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00], ["name", "Saturday Delivery"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:15:35 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-phones' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["name", "VoIP Phones"], ["permalink", "voip-phones"], ["updated_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00]]  (2.9ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.2ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-accessories' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["name", "VoIP Accessories"], ["permalink", "voip-accessories"], ["updated_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'network-eqipment' LIMIT 1 SQL (0.2ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["name", "Network Eqipment"], ["permalink", "network-eqipment"], ["updated_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t20p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t20p"], ["price", #], ["product_category_id", 1], ["short_description", "If cheap & cheerful is what you’re after, the Yealink T20P is what you’re looking for."], ["sku", "YL-SIP-T20P"], ["stock", 20], ["tax_rate", #], ["title", "Yealink T20P"], ["updated_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t20p' AND "shoppe_products"."id" != 1) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 1], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '22024a47-3ba5-486d-8da2-13809c99275a' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["data", "<127400 bytes of binary data>"], ["file_name", "t20p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 1], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "22024a47-3ba5-486d-8da2-13809c99275a"], ["updated_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 1], ["parent_type", "Shoppe::Product"]]  (1.4ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t22p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t22p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T22P"], ["stock", 12], ["tax_rate", #], ["title", "Yealink T22P"], ["updated_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t22p' AND "shoppe_products"."id" != 2) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 2], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'cfe803de-ce3c-4fe5-a04c-b79dc44f94ab' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["data", "<101139 bytes of binary data>"], ["file_name", "t22p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 2], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "cfe803de-ce3c-4fe5-a04c-b79dc44f94ab"], ["updated_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 2], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t26p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t26p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T26P"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T26P"], ["updated_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["weight", #]]  (0.7ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t26p' AND "shoppe_products"."id" != 3) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 3], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '32381f5d-91cf-4b07-8c55-abcef9bca145' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["data", "<67267 bytes of binary data>"], ["file_name", "t26p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 3], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "32381f5d-91cf-4b07-8c55-abcef9bca145"], ["updated_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 3], ["parent_type", "Shoppe::Product"]]  (1.0ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t46gn' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t46gn"], ["price", #], ["product_category_id", 1], ["short_description", "Colourful, sharp, fast & down right sexy. The Yealink T46P will make your scream!"], ["sku", "YL-SIP-T46GN"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T46GN"], ["updated_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t46gn' AND "shoppe_products"."id" != 4) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 4], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'c529ef43-94ee-4925-9911-8176b6321421' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["data", "<197941 bytes of binary data>"], ["file_name", "t46gn.jpg"], ["file_type", "image/jpeg"], ["parent_id", 4], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "c529ef43-94ee-4925-9911-8176b6321421"], ["updated_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 4], ["parent_type", "Shoppe::Product"]]  (1.6ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-grey' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-870-grey"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-GREY"], ["stock", 2], ["tax_rate", #], ["title", "Snom 870 (Grey)"], ["updated_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-grey' AND "shoppe_products"."id" != 5) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 5], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'f86de88a-5dd7-43ba-bb87-d32c5df22af1' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["data", "<105894 bytes of binary data>"], ["file_name", "snom-870-grey.jpg"], ["file_type", "image/jpeg"], ["parent_id", 5], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "f86de88a-5dd7-43ba-bb87-d32c5df22af1"], ["updated_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 5], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-black' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "snom-870-black"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-BLK"], ["tax_rate", #], ["title", "Snom 870 (Black)"], ["updated_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-black' AND "shoppe_products"."id" != 6) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 6], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'f8f78f5b-2922-4ee0-ae63-2d7ea11aaff2' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["data", "<85691 bytes of binary data>"], ["file_name", "snom-870-blk.jpg"], ["file_type", "image/jpeg"], ["parent_id", 6], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "f8f78f5b-2922-4ee0-ae63-2d7ea11aaff2"], ["updated_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 6], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-mono-headset' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-mono-headset"], ["price", #], ["product_category_id", 2], ["short_description", "If you're often on the phone, this headset will make your life 100x easier. Guaranteed*."], ["sku", "YL-YHS32"], ["stock", 3], ["tax_rate", #], ["title", "Yealink Mono Headset"], ["updated_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-mono-headset' AND "shoppe_products"."id" != 7) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 7], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'bf4ba53e-6bb0-49fd-b797-76df8d75e34c' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["data", "<19129 bytes of binary data>"], ["file_name", "yhs32.jpg"], ["file_type", "image/jpeg"], ["parent_id", 7], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "bf4ba53e-6bb0-49fd-b797-76df8d75e34c"], ["updated_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 7], ["parent_type", "Shoppe::Product"]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm2' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm2"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM2"], ["tax_rate", #], ["title", "Snom Wired Headset (MM2)"], ["updated_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm2' AND "shoppe_products"."id" != 8) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 8], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'e505a252-2a34-4cb9-bea2-d7ae9992a057' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 8], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "e505a252-2a34-4cb9-bea2-d7ae9992a057"], ["updated_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 8], ["parent_type", "Shoppe::Product"]]  (1.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm3' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm3"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM3"], ["stock", 1], ["tax_rate", #], ["title", "Snom Wired Headset (MM3)"], ["updated_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm3' AND "shoppe_products"."id" != 9) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 9], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'a555a40c-ca8c-4df8-82a4-31cc23584325' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 9], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "a555a40c-ca8c-4df8-82a4-31cc23584325"], ["updated_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 9], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-w52p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-w52p"], ["price", #], ["product_category_id", 1], ["short_description", "Wireless SIP phones are hard to come by but this beauty from Yealink is fab."], ["sku", "TL-SIP-W52P"], ["stock", 1], ["tax_rate", #], ["title", "Yealink W52P"], ["updated_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-w52p' AND "shoppe_products"."id" != 10) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 10], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '35587e2a-14e4-4ef2-91c6-2a51a79c23f5' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["data", "<102742 bytes of binary data>"], ["file_name", "w52p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 10], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "35587e2a-14e4-4ef2-91c6-2a51a79c23f5"], ["updated_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 10], ["parent_type", "Shoppe::Product"]]  (1.4ms) commit transaction  (0.1ms) begin transaction Binary data inserted for `string` type on column `password_digest` SQL (0.4ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["email_address", "adam@niftyware.io"], ["first_name", "Adam"], ["last_name", "Cooke"], ["password_digest", "$2a$04$/RqEqCUS2llc0.hY5.SuKO7LzunNrRCJPI290vNLPc3Z6F4Nv3QcS"], ["updated_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction --------------------------------- Shoppe::OrderTest: test_the_truth ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------- Shoppe::UserTest: test_authentication ------------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------- Shoppe::UserTest: test_full_name -------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------- Shoppe::UserTest: test_short_name --------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ Shoppe::UserTest: test_user_creation ------------------------------------ Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Binary data inserted for `string` type on column `password_digest` SQL (0.3ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00], ["email_address", "test@example.com"], ["first_name", "Test"], ["last_name", "User"], ["password_digest", "$2a$04$qgYKHrIdXbURiQSVriU3Jukvimdph9uZyGtujB4Na7UxsnZsLU07."], ["updated_at", Sun, 06 Oct 2013 17:15:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- Shoppe::UserTest: test_user_destruction --------------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "shoppe_users"  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- ShoppeTest: test_configuration_is_loaded ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (2.4ms) CREATE TABLE "shoppe_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "token" varchar(255), "role" varchar(255), "file_name" varchar(255), "file_type" varchar(255), "data" blob(10485760), "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "shoppe_delivery_service_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "delivery_service_id" integer, "code" varchar(255), "price" decimal(8,2), "tax_rate" decimal(8,2), "min_weight" decimal(8,2), "max_weight" decimal(8,2), "created_at" datetime, "updated_at" datetime)  (1.5ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 'f', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (1.0ms) CREATE TABLE "shoppe_key_value_store" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "group" varchar(255), "name" varchar(255), "value" varchar(255))  (0.9ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))  (0.7ms) CREATE TABLE "shoppe_product_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text)  (0.7ms) CREATE TABLE "shoppe_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email_address" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131006144849')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094549')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094551')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094647')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094654')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926104450')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926151718')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927113134')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927130022')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927132143')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927150025')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928111819')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928131502')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928134518')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928173818')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928180041')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928185655')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928193023')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928201257')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929151744')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929203421')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130930181344')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002154122')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002155246')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002162301')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131003163827')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004185043')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004193320')  (0.1ms) begin transaction SQL (4.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMFC"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:15:47 UTC +00:00], ["name", "Royal Mail (1st class)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:15:47 UTC +00:00]]  (2.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:47 UTC +00:00], ["delivery_service_id", 1], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:47 UTC +00:00]]  (1.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMSF"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:15:47 UTC +00:00], ["name", "Royal Mail (signed for)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:15:47 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:47 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:47 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:47 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:47 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "default", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["code", "ND16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["default", true], ["name", "Next Day Delivery (before 4pm)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NS10"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["name", "Next Day Delivery (before 10am)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NDSA16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["name", "Saturday Delivery"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.2ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-phones' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["name", "VoIP Phones"], ["permalink", "voip-phones"], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]]  (2.7ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-accessories' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["name", "VoIP Accessories"], ["permalink", "voip-accessories"], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'network-eqipment' LIMIT 1 SQL (0.2ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["name", "Network Eqipment"], ["permalink", "network-eqipment"], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t20p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t20p"], ["price", #], ["product_category_id", 1], ["short_description", "If cheap & cheerful is what you’re after, the Yealink T20P is what you’re looking for."], ["sku", "YL-SIP-T20P"], ["stock", 20], ["tax_rate", #], ["title", "Yealink T20P"], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t20p' AND "shoppe_products"."id" != 1) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 1], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '10eff4fb-27fa-46fc-b7df-9ce926efc341' LIMIT 1 SQL (0.5ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["data", "<127400 bytes of binary data>"], ["file_name", "t20p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 1], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "10eff4fb-27fa-46fc-b7df-9ce926efc341"], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 1], ["parent_type", "Shoppe::Product"]]  (1.5ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t22p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t22p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T22P"], ["stock", 12], ["tax_rate", #], ["title", "Yealink T22P"], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["weight", #]]  (1.0ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t22p' AND "shoppe_products"."id" != 2) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 2], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '35e5a53d-a96d-481a-b502-c1efd428aa40' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["data", "<101139 bytes of binary data>"], ["file_name", "t22p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 2], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "35e5a53d-a96d-481a-b502-c1efd428aa40"], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 2], ["parent_type", "Shoppe::Product"]]  (1.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t26p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t26p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T26P"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T26P"], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t26p' AND "shoppe_products"."id" != 3) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 3], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '9c1cf0bf-b2dc-4ebb-a687-34424af4cd0e' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["data", "<67267 bytes of binary data>"], ["file_name", "t26p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 3], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "9c1cf0bf-b2dc-4ebb-a687-34424af4cd0e"], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 3], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t46gn' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t46gn"], ["price", #], ["product_category_id", 1], ["short_description", "Colourful, sharp, fast & down right sexy. The Yealink T46P will make your scream!"], ["sku", "YL-SIP-T46GN"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T46GN"], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["weight", #]]  (0.7ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t46gn' AND "shoppe_products"."id" != 4) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 4], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '074ac40c-1b7d-434f-a0cf-b1f225728d01' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["data", "<197941 bytes of binary data>"], ["file_name", "t46gn.jpg"], ["file_type", "image/jpeg"], ["parent_id", 4], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "074ac40c-1b7d-434f-a0cf-b1f225728d01"], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 4], ["parent_type", "Shoppe::Product"]]  (1.7ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-grey' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-870-grey"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-GREY"], ["stock", 2], ["tax_rate", #], ["title", "Snom 870 (Grey)"], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-grey' AND "shoppe_products"."id" != 5) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 5], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '48eb2ec8-06da-48fe-99bb-64b01ff76bad' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["data", "<105894 bytes of binary data>"], ["file_name", "snom-870-grey.jpg"], ["file_type", "image/jpeg"], ["parent_id", 5], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "48eb2ec8-06da-48fe-99bb-64b01ff76bad"], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 5], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-black' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "snom-870-black"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-BLK"], ["tax_rate", #], ["title", "Snom 870 (Black)"], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-black' AND "shoppe_products"."id" != 6) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 6], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '71eba604-88f6-4a4c-9081-ebc4d3ab77e9' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["data", "<85691 bytes of binary data>"], ["file_name", "snom-870-blk.jpg"], ["file_type", "image/jpeg"], ["parent_id", 6], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "71eba604-88f6-4a4c-9081-ebc4d3ab77e9"], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 6], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-mono-headset' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-mono-headset"], ["price", #], ["product_category_id", 2], ["short_description", "If you're often on the phone, this headset will make your life 100x easier. Guaranteed*."], ["sku", "YL-YHS32"], ["stock", 3], ["tax_rate", #], ["title", "Yealink Mono Headset"], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-mono-headset' AND "shoppe_products"."id" != 7) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 7], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '948be516-2775-44a5-9b05-ef811b0cbcfa' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["data", "<19129 bytes of binary data>"], ["file_name", "yhs32.jpg"], ["file_type", "image/jpeg"], ["parent_id", 7], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "948be516-2775-44a5-9b05-ef811b0cbcfa"], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 7], ["parent_type", "Shoppe::Product"]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm2' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm2"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM2"], ["tax_rate", #], ["title", "Snom Wired Headset (MM2)"], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm2' AND "shoppe_products"."id" != 8) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 8], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'd2fb3872-6bca-420d-83e4-5846e343f9ba' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 8], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "d2fb3872-6bca-420d-83e4-5846e343f9ba"], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 8], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm3' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm3"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM3"], ["stock", 1], ["tax_rate", #], ["title", "Snom Wired Headset (MM3)"], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm3' AND "shoppe_products"."id" != 9) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 9], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '4184f5b6-055e-4811-8631-7da893b5dad9' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 9], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "4184f5b6-055e-4811-8631-7da893b5dad9"], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 9], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-w52p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-w52p"], ["price", #], ["product_category_id", 1], ["short_description", "Wireless SIP phones are hard to come by but this beauty from Yealink is fab."], ["sku", "TL-SIP-W52P"], ["stock", 1], ["tax_rate", #], ["title", "Yealink W52P"], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-w52p' AND "shoppe_products"."id" != 10) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 10], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'c3653654-9ab8-4883-93b3-45c68b9317e2' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["data", "<102742 bytes of binary data>"], ["file_name", "w52p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 10], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "c3653654-9ab8-4883-93b3-45c68b9317e2"], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 10], ["parent_type", "Shoppe::Product"]]  (1.4ms) commit transaction  (0.1ms) begin transaction Binary data inserted for `string` type on column `password_digest` SQL (0.4ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["email_address", "adam@niftyware.io"], ["first_name", "Adam"], ["last_name", "Cooke"], ["password_digest", "$2a$04$tD2603SsfQ2zHLCWOj9.L.LU9RQwz4ZleP.aIbbuzRH6IGqwdWATm"], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction --------------------------------- Shoppe::OrderTest: test_the_truth ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------- Shoppe::UserTest: test_authentication ------------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------- Shoppe::UserTest: test_full_name -------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------- Shoppe::UserTest: test_short_name --------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ Shoppe::UserTest: test_user_creation ------------------------------------ Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Binary data inserted for `string` type on column `password_digest` SQL (0.3ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00], ["email_address", "test@example.com"], ["first_name", "Test"], ["last_name", "User"], ["password_digest", "$2a$04$AwyPexciMs74K7dlbZ3Tw.Eyrlb9GIo0CjZknTpkr5EDVX8L1M4HG"], ["updated_at", Sun, 06 Oct 2013 17:15:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- ShoppeTest: test_configuration_is_loaded ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (2.2ms) CREATE TABLE "shoppe_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "token" varchar(255), "role" varchar(255), "file_name" varchar(255), "file_type" varchar(255), "data" blob(10485760), "created_at" datetime, "updated_at" datetime)   (1.6ms) CREATE TABLE "shoppe_delivery_service_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "delivery_service_id" integer, "code" varchar(255), "price" decimal(8,2), "tax_rate" decimal(8,2), "min_weight" decimal(8,2), "max_weight" decimal(8,2), "created_at" datetime, "updated_at" datetime)  (2.7ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 'f', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (1.6ms) CREATE TABLE "shoppe_key_value_store" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "group" varchar(255), "name" varchar(255), "value" varchar(255))  (1.3ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)   (1.6ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))  (1.6ms) CREATE TABLE "shoppe_product_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime)   (1.5ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text)  (1.4ms) CREATE TABLE "shoppe_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email_address" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime)   (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131006144849')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094549')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094551')  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094647')  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094654')  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926104450')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926151718')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927113134')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927130022')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927132143')  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927150025')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928111819')  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928131502')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928134518')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928173818')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928180041')  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928185655')  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928193023')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928201257')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929151744')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929203421')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130930181344')  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002154122')  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002155246')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002162301')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20131003163827')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004185043')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004193320')  (0.1ms) begin transaction SQL (5.6ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMFC"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["name", "Royal Mail (1st class)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]]  (3.2ms) commit transaction  (0.1ms) begin transaction SQL (1.6ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["delivery_service_id", 1], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]]  (1.6ms) commit transaction  (0.0ms) begin transaction SQL (0.8ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMSF"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["name", "Royal Mail (signed for)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (1.0ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (0.9ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (0.8ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (0.9ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (0.9ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "default", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["code", "ND16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["default", true], ["name", "Next Day Delivery (before 4pm)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (0.9ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (0.8ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (0.8ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NS10"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["name", "Next Day Delivery (before 10am)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (1.0ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (1.0ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (0.9ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (0.8ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NDSA16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["name", "Saturday Delivery"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (0.9ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]]  (1.3ms) commit transaction  (0.0ms) begin transaction SQL (1.0ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (0.9ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.2ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-phones' LIMIT 1 SQL (1.3ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["name", "VoIP Phones"], ["permalink", "voip-phones"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]]  (3.0ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-accessories' LIMIT 1 SQL (0.8ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["name", "VoIP Accessories"], ["permalink", "voip-accessories"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]]  (1.3ms) commit transaction  (0.0ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'network-eqipment' LIMIT 1 SQL (0.8ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["name", "Network Eqipment"], ["permalink", "network-eqipment"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t20p' LIMIT 1 SQL (1.5ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t20p"], ["price", #], ["product_category_id", 1], ["short_description", "If cheap & cheerful is what you’re after, the Yealink T20P is what you’re looking for."], ["sku", "YL-SIP-T20P"], ["stock", 20], ["tax_rate", #], ["title", "Yealink T20P"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["weight", #]]  (1.7ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t20p' AND "shoppe_products"."id" != 1) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 1], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'd99636e1-6b21-4031-8784-1fc02f6c2f68' LIMIT 1 SQL (1.5ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["data", "<127400 bytes of binary data>"], ["file_name", "t20p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 1], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "d99636e1-6b21-4031-8784-1fc02f6c2f68"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 1], ["parent_type", "Shoppe::Product"]]  (10.5ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t22p' LIMIT 1 SQL (1.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t22p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T22P"], ["stock", 12], ["tax_rate", #], ["title", "Yealink T22P"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["weight", #]]  (1.5ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t22p' AND "shoppe_products"."id" != 2) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 2], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'd939c80d-7abc-40ca-933e-bb3e6c3fbf70' LIMIT 1 SQL (1.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["data", "<101139 bytes of binary data>"], ["file_name", "t22p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 2], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "d939c80d-7abc-40ca-933e-bb3e6c3fbf70"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 2], ["parent_type", "Shoppe::Product"]]  (3.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t26p' LIMIT 1 SQL (0.9ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t26p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T26P"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T26P"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["weight", #]]  (1.4ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t26p' AND "shoppe_products"."id" != 3) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 3], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'b6b574ee-6304-4cdb-a57e-627ed25dc34b' LIMIT 1 SQL (1.2ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["data", "<67267 bytes of binary data>"], ["file_name", "t26p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 3], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "b6b574ee-6304-4cdb-a57e-627ed25dc34b"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 3], ["parent_type", "Shoppe::Product"]]  (2.4ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t46gn' LIMIT 1 SQL (1.0ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t46gn"], ["price", #], ["product_category_id", 1], ["short_description", "Colourful, sharp, fast & down right sexy. The Yealink T46P will make your scream!"], ["sku", "YL-SIP-T46GN"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T46GN"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["weight", #]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t46gn' AND "shoppe_products"."id" != 4) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 4], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'cda40a92-d681-4052-865e-818b774b6846' LIMIT 1 SQL (1.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["data", "<197941 bytes of binary data>"], ["file_name", "t46gn.jpg"], ["file_type", "image/jpeg"], ["parent_id", 4], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "cda40a92-d681-4052-865e-818b774b6846"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 4], ["parent_type", "Shoppe::Product"]]  (5.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-grey' LIMIT 1 SQL (1.0ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-870-grey"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-GREY"], ["stock", 2], ["tax_rate", #], ["title", "Snom 870 (Grey)"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["weight", #]]  (1.5ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-grey' AND "shoppe_products"."id" != 5) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 5], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '7e835896-afe9-48b7-8b31-82fda594623c' LIMIT 1 SQL (1.2ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["data", "<105894 bytes of binary data>"], ["file_name", "snom-870-grey.jpg"], ["file_type", "image/jpeg"], ["parent_id", 5], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "7e835896-afe9-48b7-8b31-82fda594623c"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 5], ["parent_type", "Shoppe::Product"]]  (3.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-black' LIMIT 1 SQL (1.2ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "snom-870-black"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-BLK"], ["tax_rate", #], ["title", "Snom 870 (Black)"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["weight", #]]  (1.5ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-black' AND "shoppe_products"."id" != 6) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 6], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '67ef7528-35be-4c60-9702-4bdc53f6957d' LIMIT 1 SQL (1.1ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["data", "<85691 bytes of binary data>"], ["file_name", "snom-870-blk.jpg"], ["file_type", "image/jpeg"], ["parent_id", 6], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "67ef7528-35be-4c60-9702-4bdc53f6957d"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 6], ["parent_type", "Shoppe::Product"]]  (2.6ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-mono-headset' LIMIT 1 SQL (0.9ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-mono-headset"], ["price", #], ["product_category_id", 2], ["short_description", "If you're often on the phone, this headset will make your life 100x easier. Guaranteed*."], ["sku", "YL-YHS32"], ["stock", 3], ["tax_rate", #], ["title", "Yealink Mono Headset"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["weight", #]]  (1.6ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-mono-headset' AND "shoppe_products"."id" != 7) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 7], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '8b0fd58f-6732-4c71-8311-56f84a8ee8b6' LIMIT 1 SQL (1.1ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["data", "<19129 bytes of binary data>"], ["file_name", "yhs32.jpg"], ["file_type", "image/jpeg"], ["parent_id", 7], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "8b0fd58f-6732-4c71-8311-56f84a8ee8b6"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 7], ["parent_type", "Shoppe::Product"]]  (1.4ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm2' LIMIT 1 SQL (0.9ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm2"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM2"], ["tax_rate", #], ["title", "Snom Wired Headset (MM2)"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["weight", #]]  (1.5ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm2' AND "shoppe_products"."id" != 8) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 8], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '4b75cf14-b692-4cf1-8f78-318a16227da0' LIMIT 1 SQL (1.2ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 8], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "4b75cf14-b692-4cf1-8f78-318a16227da0"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 8], ["parent_type", "Shoppe::Product"]]  (2.5ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm3' LIMIT 1 SQL (0.8ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm3"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM3"], ["stock", 1], ["tax_rate", #], ["title", "Snom Wired Headset (MM3)"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["weight", #]]  (1.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm3' AND "shoppe_products"."id" != 9) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 9], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '2ab508d8-e60a-4419-a21d-046a9f14a99b' LIMIT 1 SQL (1.1ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 9], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "2ab508d8-e60a-4419-a21d-046a9f14a99b"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 9], ["parent_type", "Shoppe::Product"]]  (2.6ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-w52p' LIMIT 1 SQL (0.9ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-w52p"], ["price", #], ["product_category_id", 1], ["short_description", "Wireless SIP phones are hard to come by but this beauty from Yealink is fab."], ["sku", "TL-SIP-W52P"], ["stock", 1], ["tax_rate", #], ["title", "Yealink W52P"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["weight", #]]  (1.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-w52p' AND "shoppe_products"."id" != 10) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 10], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '34ea8961-09a9-478e-8310-c6b2ada23517' LIMIT 1 SQL (1.2ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["data", "<102742 bytes of binary data>"], ["file_name", "w52p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 10], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "34ea8961-09a9-478e-8310-c6b2ada23517"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 10], ["parent_type", "Shoppe::Product"]]  (3.1ms) commit transaction  (0.1ms) begin transaction Binary data inserted for `string` type on column `password_digest` SQL (1.2ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["email_address", "adam@niftyware.io"], ["first_name", "Adam"], ["last_name", "Cooke"], ["password_digest", "$2a$04$xuT61Ow3nHyM7bFtzZYCSO0LOYpbgSN4U2zFTlRjDWomicGNJ.sjO"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]]  (1.5ms) commit transaction  (0.1ms) begin transaction ---------------------------------------- Shoppe::BasketTest: test_adding_products ----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "shoppe_orders" ("created_at", "status", "token", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["status", "building"], ["token", "948df9ff-cf28-4564-949a-f43128f1ffc3"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]] Nifty::KeyValueStore::KeyValuePair Load (0.1ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]] Nifty::KeyValueStore::KeyValuePair Load (0.1ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shoppe::Product Load (0.1ms) SELECT "shoppe_products".* FROM "shoppe_products" WHERE "shoppe_products"."sku" = 'YL-SIP-T20P' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Shoppe::OrderItem Load (0.1ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? AND "shoppe_order_items"."product_id" = 1 ORDER BY "shoppe_order_items"."id" ASC LIMIT 1 [["order_id", 1]] SQL (1.3ms) INSERT INTO "shoppe_order_items" ("created_at", "order_id", "product_id", "quantity", "tax_amount", "tax_rate", "unit_price", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["order_id", 1], ["product_id", 1], ["quantity", 0], ["tax_amount", #], ["tax_rate", #], ["unit_price", #], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]] SQL (0.2ms) UPDATE "shoppe_order_items" SET "quantity" = ?, "tax_amount" = ?, "weight" = ?, "updated_at" = ? WHERE "shoppe_order_items"."id" = 1 [["quantity", 1], ["tax_amount", #], ["weight", #], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]] Shoppe::Order Load (0.1ms) SELECT "shoppe_orders".* FROM "shoppe_orders" WHERE "shoppe_orders"."id" = ? ORDER BY "shoppe_orders"."id" ASC LIMIT 1 [["id", 1]] Shoppe::OrderItem Load (0.1ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? [["order_id", 1]] Shoppe::DeliveryServicePrice Load (0.2ms) SELECT "shoppe_delivery_service_prices".* FROM "shoppe_delivery_service_prices" INNER JOIN "shoppe_delivery_services" ON "shoppe_delivery_services"."id" = "shoppe_delivery_service_prices"."delivery_service_id" WHERE "shoppe_delivery_services"."active" = 't' AND (min_weight <= 1.119 AND max_weight >= 1.119) ORDER BY `default` desc, price asc Shoppe::DeliveryService Load (0.1ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 3]] Shoppe::DeliveryService Load (0.1ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 2]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 4]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------- Shoppe::UserTest: test_authentication ------------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------- Shoppe::UserTest: test_full_name -------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------- Shoppe::UserTest: test_short_name --------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ Shoppe::UserTest: test_user_creation ------------------------------------ Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Binary data inserted for `string` type on column `password_digest` SQL (1.0ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00], ["email_address", "test@example.com"], ["first_name", "Test"], ["last_name", "User"], ["password_digest", "$2a$04$K.gJkuET6YzrBzMfHTfLv.iEYgxZ.MXzrv9GIupC1y0w6MgHj8tF6"], ["updated_at", Sun, 06 Oct 2013 17:18:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- ShoppeTest: test_configuration_is_loaded ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (3.4ms) CREATE TABLE "shoppe_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "token" varchar(255), "role" varchar(255), "file_name" varchar(255), "file_type" varchar(255), "data" blob(10485760), "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_delivery_service_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "delivery_service_id" integer, "code" varchar(255), "price" decimal(8,2), "tax_rate" decimal(8,2), "min_weight" decimal(8,2), "max_weight" decimal(8,2), "created_at" datetime, "updated_at" datetime)  (1.1ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 'f', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (0.9ms) CREATE TABLE "shoppe_key_value_store" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "group" varchar(255), "name" varchar(255), "value" varchar(255))  (1.0ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))  (0.7ms) CREATE TABLE "shoppe_product_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text)  (0.8ms) CREATE TABLE "shoppe_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email_address" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131006144849')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094549')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094551')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094647')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094654')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926104450')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926151718')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927113134')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927130022')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927132143')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927150025')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928111819')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928131502')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928134518')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928173818')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928180041')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928185655')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928193023')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928201257')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929151744')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929203421')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130930181344')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002154122')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002155246')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002162301')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131003163827')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004185043')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004193320')  (0.1ms) begin transaction SQL (4.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMFC"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00], ["name", "Royal Mail (1st class)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00]]  (2.6ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00], ["delivery_service_id", 1], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMSF"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00], ["name", "Royal Mail (signed for)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "default", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["code", "ND16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00], ["default", true], ["name", "Next Day Delivery (before 4pm)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NS10"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00], ["name", "Next Day Delivery (before 10am)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NDSA16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00], ["name", "Saturday Delivery"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:19:14 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.2ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-phones' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["name", "VoIP Phones"], ["permalink", "voip-phones"], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00]]  (2.4ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-accessories' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["name", "VoIP Accessories"], ["permalink", "voip-accessories"], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'network-eqipment' LIMIT 1 SQL (0.2ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["name", "Network Eqipment"], ["permalink", "network-eqipment"], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t20p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t20p"], ["price", #], ["product_category_id", 1], ["short_description", "If cheap & cheerful is what you’re after, the Yealink T20P is what you’re looking for."], ["sku", "YL-SIP-T20P"], ["stock", 20], ["tax_rate", #], ["title", "Yealink T20P"], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t20p' AND "shoppe_products"."id" != 1) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 1], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '36cae581-6c77-4419-af8f-aa5f7e6d24a0' LIMIT 1 SQL (0.7ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["data", "<127400 bytes of binary data>"], ["file_name", "t20p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 1], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "36cae581-6c77-4419-af8f-aa5f7e6d24a0"], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 1], ["parent_type", "Shoppe::Product"]]  (1.6ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t22p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t22p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T22P"], ["stock", 12], ["tax_rate", #], ["title", "Yealink T22P"], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t22p' AND "shoppe_products"."id" != 2) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 2], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '651c1d6f-b229-417d-bf84-a5f20f64704c' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["data", "<101139 bytes of binary data>"], ["file_name", "t22p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 2], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "651c1d6f-b229-417d-bf84-a5f20f64704c"], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 2], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t26p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t26p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T26P"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T26P"], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t26p' AND "shoppe_products"."id" != 3) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 3], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '602dbf95-dc37-47cd-abb6-2e6a3fb48380' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["data", "<67267 bytes of binary data>"], ["file_name", "t26p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 3], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "602dbf95-dc37-47cd-abb6-2e6a3fb48380"], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 3], ["parent_type", "Shoppe::Product"]]  (1.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t46gn' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t46gn"], ["price", #], ["product_category_id", 1], ["short_description", "Colourful, sharp, fast & down right sexy. The Yealink T46P will make your scream!"], ["sku", "YL-SIP-T46GN"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T46GN"], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t46gn' AND "shoppe_products"."id" != 4) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 4], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '286f6ca1-08ba-42a7-a077-1a0f6f9f7650' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["data", "<197941 bytes of binary data>"], ["file_name", "t46gn.jpg"], ["file_type", "image/jpeg"], ["parent_id", 4], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "286f6ca1-08ba-42a7-a077-1a0f6f9f7650"], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 4], ["parent_type", "Shoppe::Product"]]  (1.7ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-grey' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-870-grey"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-GREY"], ["stock", 2], ["tax_rate", #], ["title", "Snom 870 (Grey)"], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-grey' AND "shoppe_products"."id" != 5) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 5], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '9f592eaa-e7a8-4873-8344-53bcf20ba8e5' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["data", "<105894 bytes of binary data>"], ["file_name", "snom-870-grey.jpg"], ["file_type", "image/jpeg"], ["parent_id", 5], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "9f592eaa-e7a8-4873-8344-53bcf20ba8e5"], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 5], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-black' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "snom-870-black"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-BLK"], ["tax_rate", #], ["title", "Snom 870 (Black)"], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-black' AND "shoppe_products"."id" != 6) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 6], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'a20ac9db-9c52-4673-a957-89e87b88e117' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["data", "<85691 bytes of binary data>"], ["file_name", "snom-870-blk.jpg"], ["file_type", "image/jpeg"], ["parent_id", 6], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "a20ac9db-9c52-4673-a957-89e87b88e117"], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 6], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-mono-headset' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-mono-headset"], ["price", #], ["product_category_id", 2], ["short_description", "If you're often on the phone, this headset will make your life 100x easier. Guaranteed*."], ["sku", "YL-YHS32"], ["stock", 3], ["tax_rate", #], ["title", "Yealink Mono Headset"], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-mono-headset' AND "shoppe_products"."id" != 7) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 7], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '1d084f62-0fd7-4093-95c4-c151bc05f772' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["data", "<19129 bytes of binary data>"], ["file_name", "yhs32.jpg"], ["file_type", "image/jpeg"], ["parent_id", 7], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "1d084f62-0fd7-4093-95c4-c151bc05f772"], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 7], ["parent_type", "Shoppe::Product"]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm2' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm2"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM2"], ["tax_rate", #], ["title", "Snom Wired Headset (MM2)"], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm2' AND "shoppe_products"."id" != 8) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 8], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '576ae75c-23bb-4eed-aa8d-6affac35a279' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 8], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "576ae75c-23bb-4eed-aa8d-6affac35a279"], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 8], ["parent_type", "Shoppe::Product"]]  (1.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm3' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm3"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM3"], ["stock", 1], ["tax_rate", #], ["title", "Snom Wired Headset (MM3)"], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm3' AND "shoppe_products"."id" != 9) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 9], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '0c65f67d-80fb-44fb-8357-2f18c06a1251' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 9], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "0c65f67d-80fb-44fb-8357-2f18c06a1251"], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 9], ["parent_type", "Shoppe::Product"]]  (1.1ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-w52p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-w52p"], ["price", #], ["product_category_id", 1], ["short_description", "Wireless SIP phones are hard to come by but this beauty from Yealink is fab."], ["sku", "TL-SIP-W52P"], ["stock", 1], ["tax_rate", #], ["title", "Yealink W52P"], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-w52p' AND "shoppe_products"."id" != 10) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 10], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'b40e74ad-4498-4d73-a014-f18b6174b1bd' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["data", "<102742 bytes of binary data>"], ["file_name", "w52p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 10], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "b40e74ad-4498-4d73-a014-f18b6174b1bd"], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 10], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.1ms) begin transaction Binary data inserted for `string` type on column `password_digest` SQL (0.4ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["email_address", "adam@niftyware.io"], ["first_name", "Adam"], ["last_name", "Cooke"], ["password_digest", "$2a$04$RE.FDarMVGeaIGDOOMi9sOSM97/oCmZadNOSN9lkhuSteQcebUc/a"], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction ---------------------------------------- Shoppe::BasketTest: test_adding_products ----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "shoppe_orders" ("created_at", "status", "token", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["status", "building"], ["token", "82d2a87b-aa5f-4163-af50-d1834ce327a6"], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00]] Nifty::KeyValueStore::KeyValuePair Load (0.1ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]] Nifty::KeyValueStore::KeyValuePair Load (0.0ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shoppe::Product Load (0.1ms) SELECT "shoppe_products".* FROM "shoppe_products" WHERE "shoppe_products"."sku" = 'YL-SIP-T20P' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Shoppe::OrderItem Load (0.1ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? AND "shoppe_order_items"."product_id" = 1 ORDER BY "shoppe_order_items"."id" ASC LIMIT 1 [["order_id", 1]] SQL (0.5ms) INSERT INTO "shoppe_order_items" ("created_at", "order_id", "product_id", "quantity", "tax_amount", "tax_rate", "unit_price", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["order_id", 1], ["product_id", 1], ["quantity", 0], ["tax_amount", #], ["tax_rate", #], ["unit_price", #], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00]] SQL (0.2ms) UPDATE "shoppe_order_items" SET "quantity" = ?, "tax_amount" = ?, "weight" = ?, "updated_at" = ? WHERE "shoppe_order_items"."id" = 1 [["quantity", 1], ["tax_amount", #], ["weight", #], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00]] Shoppe::Order Load (0.1ms) SELECT "shoppe_orders".* FROM "shoppe_orders" WHERE "shoppe_orders"."id" = ? ORDER BY "shoppe_orders"."id" ASC LIMIT 1 [["id", 1]] Shoppe::OrderItem Load (0.1ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? [["order_id", 1]] Shoppe::DeliveryServicePrice Load (0.1ms) SELECT "shoppe_delivery_service_prices".* FROM "shoppe_delivery_service_prices" INNER JOIN "shoppe_delivery_services" ON "shoppe_delivery_services"."id" = "shoppe_delivery_service_prices"."delivery_service_id" WHERE "shoppe_delivery_services"."active" = 't' AND (min_weight <= 1.119 AND max_weight >= 1.119) ORDER BY `default` desc, price asc Shoppe::DeliveryService Load (0.1ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 3]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 2]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 4]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shoppe::Product Load (0.1ms) SELECT "shoppe_products".* FROM "shoppe_products" WHERE "shoppe_products"."sku" = 'YL-SIP-T22P' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Shoppe::OrderItem Load (0.2ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? AND "shoppe_order_items"."product_id" = 2 ORDER BY "shoppe_order_items"."id" ASC LIMIT 1 [["order_id", 1]] SQL (0.3ms) INSERT INTO "shoppe_order_items" ("created_at", "order_id", "product_id", "quantity", "tax_amount", "tax_rate", "unit_price", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["order_id", 1], ["product_id", 2], ["quantity", 0], ["tax_amount", #], ["tax_rate", #], ["unit_price", #], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00]] SQL (0.2ms) UPDATE "shoppe_order_items" SET "quantity" = ?, "tax_amount" = ?, "weight" = ?, "updated_at" = ? WHERE "shoppe_order_items"."id" = 2 [["quantity", 1], ["tax_amount", #], ["weight", #], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00]] Shoppe::Order Load (0.0ms) SELECT "shoppe_orders".* FROM "shoppe_orders" WHERE "shoppe_orders"."id" = ? ORDER BY "shoppe_orders"."id" ASC LIMIT 1 [["id", 1]] Shoppe::OrderItem Load (0.0ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? [["order_id", 1]] Shoppe::DeliveryServicePrice Load (0.1ms) SELECT "shoppe_delivery_service_prices".* FROM "shoppe_delivery_service_prices" INNER JOIN "shoppe_delivery_services" ON "shoppe_delivery_services"."id" = "shoppe_delivery_service_prices"."delivery_service_id" WHERE "shoppe_delivery_services"."active" = 't' AND (min_weight <= 2.538 AND max_weight >= 2.538) ORDER BY `default` desc, price asc Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 3]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 2]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 4]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shoppe::OrderItem Load (0.0ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? [["order_id", 1]]  (2.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- Shoppe::BasketTest: test_initial_status ---------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "shoppe_orders" ("created_at", "status", "token", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["status", "building"], ["token", "ddb2e1c5-2c80-45cd-8bfe-2ae8b1f08a3d"], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00]] Nifty::KeyValueStore::KeyValuePair Load (0.1ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]] Nifty::KeyValueStore::KeyValuePair Load (0.0ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------- Shoppe::UserTest: test_authentication ------------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- Shoppe::UserTest: test_full_name -------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------- Shoppe::UserTest: test_short_name --------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ Shoppe::UserTest: test_user_creation ------------------------------------ Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Binary data inserted for `string` type on column `password_digest` SQL (0.4ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00], ["email_address", "test@example.com"], ["first_name", "Test"], ["last_name", "User"], ["password_digest", "$2a$04$vpAjy8VMvMe4SfsJPuTZI.NA8KMJfKmXNhvRxDqC1bSqsklyJAcHm"], ["updated_at", Sun, 06 Oct 2013 17:19:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- ShoppeTest: test_configuration_is_loaded ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (3.1ms) CREATE TABLE "shoppe_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "token" varchar(255), "role" varchar(255), "file_name" varchar(255), "file_type" varchar(255), "data" blob(10485760), "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_delivery_service_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "delivery_service_id" integer, "code" varchar(255), "price" decimal(8,2), "tax_rate" decimal(8,2), "min_weight" decimal(8,2), "max_weight" decimal(8,2), "created_at" datetime, "updated_at" datetime)  (1.2ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 'f', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (0.9ms) CREATE TABLE "shoppe_key_value_store" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "group" varchar(255), "name" varchar(255), "value" varchar(255))  (1.0ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))  (0.8ms) CREATE TABLE "shoppe_product_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text)  (0.8ms) CREATE TABLE "shoppe_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email_address" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131006144849')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094549')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094551')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094647')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094654')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926104450')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926151718')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927113134')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927130022')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927132143')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927150025')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928111819')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928131502')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928134518')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928173818')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928180041')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928185655')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928193023')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928201257')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929151744')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929203421')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130930181344')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002154122')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002155246')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002162301')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20131003163827')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004185043')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004193320')  (0.1ms) begin transaction SQL (4.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMFC"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:20:19 UTC +00:00], ["name", "Royal Mail (1st class)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:20:19 UTC +00:00]]  (2.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["delivery_service_id", 1], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMSF"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["name", "Royal Mail (signed for)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "default", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["code", "ND16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["default", true], ["name", "Next Day Delivery (before 4pm)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NS10"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["name", "Next Day Delivery (before 10am)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NDSA16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["name", "Saturday Delivery"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-phones' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["name", "VoIP Phones"], ["permalink", "voip-phones"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]]  (2.6ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-accessories' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["name", "VoIP Accessories"], ["permalink", "voip-accessories"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'network-eqipment' LIMIT 1 SQL (0.2ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["name", "Network Eqipment"], ["permalink", "network-eqipment"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t20p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t20p"], ["price", #], ["product_category_id", 1], ["short_description", "If cheap & cheerful is what you’re after, the Yealink T20P is what you’re looking for."], ["sku", "YL-SIP-T20P"], ["stock", 20], ["tax_rate", #], ["title", "Yealink T20P"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["weight", #]]  (1.0ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t20p' AND "shoppe_products"."id" != 1) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 1], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '76ed10b2-4d8f-490d-8a44-ff129c254b1c' LIMIT 1 SQL (0.5ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["data", "<127400 bytes of binary data>"], ["file_name", "t20p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 1], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "76ed10b2-4d8f-490d-8a44-ff129c254b1c"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 1], ["parent_type", "Shoppe::Product"]]  (1.5ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t22p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t22p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T22P"], ["stock", 12], ["tax_rate", #], ["title", "Yealink T22P"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t22p' AND "shoppe_products"."id" != 2) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 2], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'a1b593fa-124e-440d-b75c-8f162e4ddb3a' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["data", "<101139 bytes of binary data>"], ["file_name", "t22p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 2], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "a1b593fa-124e-440d-b75c-8f162e4ddb3a"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 2], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t26p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t26p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T26P"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T26P"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t26p' AND "shoppe_products"."id" != 3) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 3], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '10655c14-56c1-482e-ad52-38e34291576c' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["data", "<67267 bytes of binary data>"], ["file_name", "t26p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 3], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "10655c14-56c1-482e-ad52-38e34291576c"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 3], ["parent_type", "Shoppe::Product"]]  (1.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t46gn' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t46gn"], ["price", #], ["product_category_id", 1], ["short_description", "Colourful, sharp, fast & down right sexy. The Yealink T46P will make your scream!"], ["sku", "YL-SIP-T46GN"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T46GN"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["weight", #]]  (0.6ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t46gn' AND "shoppe_products"."id" != 4) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 4], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'b537e0bf-ec3d-4314-b38c-14902d5d41d9' LIMIT 1 SQL (0.7ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["data", "<197941 bytes of binary data>"], ["file_name", "t46gn.jpg"], ["file_type", "image/jpeg"], ["parent_id", 4], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "b537e0bf-ec3d-4314-b38c-14902d5d41d9"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 4], ["parent_type", "Shoppe::Product"]]  (1.7ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-grey' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-870-grey"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-GREY"], ["stock", 2], ["tax_rate", #], ["title", "Snom 870 (Grey)"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-grey' AND "shoppe_products"."id" != 5) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 5], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '9d2c43ae-ab95-4f8e-8cc9-b71c5d036180' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["data", "<105894 bytes of binary data>"], ["file_name", "snom-870-grey.jpg"], ["file_type", "image/jpeg"], ["parent_id", 5], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "9d2c43ae-ab95-4f8e-8cc9-b71c5d036180"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 5], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-black' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "snom-870-black"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-BLK"], ["tax_rate", #], ["title", "Snom 870 (Black)"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-black' AND "shoppe_products"."id" != 6) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 6], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '6f922eb5-5577-44c5-bf70-2c97fd8e97bd' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["data", "<85691 bytes of binary data>"], ["file_name", "snom-870-blk.jpg"], ["file_type", "image/jpeg"], ["parent_id", 6], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "6f922eb5-5577-44c5-bf70-2c97fd8e97bd"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 6], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-mono-headset' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-mono-headset"], ["price", #], ["product_category_id", 2], ["short_description", "If you're often on the phone, this headset will make your life 100x easier. Guaranteed*."], ["sku", "YL-YHS32"], ["stock", 3], ["tax_rate", #], ["title", "Yealink Mono Headset"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-mono-headset' AND "shoppe_products"."id" != 7) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 7], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'ecc4e710-a992-4c1a-b49e-8a7cbdc2f381' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["data", "<19129 bytes of binary data>"], ["file_name", "yhs32.jpg"], ["file_type", "image/jpeg"], ["parent_id", 7], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "ecc4e710-a992-4c1a-b49e-8a7cbdc2f381"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 7], ["parent_type", "Shoppe::Product"]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm2' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm2"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM2"], ["tax_rate", #], ["title", "Snom Wired Headset (MM2)"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm2' AND "shoppe_products"."id" != 8) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 8], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '1662d448-b681-402c-b08d-c96704ae7397' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 8], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "1662d448-b681-402c-b08d-c96704ae7397"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 8], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm3' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm3"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM3"], ["stock", 1], ["tax_rate", #], ["title", "Snom Wired Headset (MM3)"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm3' AND "shoppe_products"."id" != 9) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 9], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '9a6af571-cc7b-4570-a9a2-a66df60e93e6' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 9], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "9a6af571-cc7b-4570-a9a2-a66df60e93e6"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 9], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.2ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-w52p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-w52p"], ["price", #], ["product_category_id", 1], ["short_description", "Wireless SIP phones are hard to come by but this beauty from Yealink is fab."], ["sku", "TL-SIP-W52P"], ["stock", 1], ["tax_rate", #], ["title", "Yealink W52P"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["weight", #]]  (1.1ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-w52p' AND "shoppe_products"."id" != 10) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 10], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '41d11647-9f40-4b56-b12c-f9a8b444e2b1' LIMIT 1 SQL (0.5ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["data", "<102742 bytes of binary data>"], ["file_name", "w52p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 10], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "41d11647-9f40-4b56-b12c-f9a8b444e2b1"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 10], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.1ms) begin transaction Binary data inserted for `string` type on column `password_digest` SQL (0.4ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["email_address", "adam@niftyware.io"], ["first_name", "Adam"], ["last_name", "Cooke"], ["password_digest", "$2a$04$wmWlsR2QX5aEZ1u6rUEZT.ubXVh3RC6pxAXHrYRuKmYqQ702C5ZHW"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction ---------------------------------------- Shoppe::BasketTest: test_adding_products ----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "shoppe_orders" ("created_at", "status", "token", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["status", "building"], ["token", "3ea1ee6f-5241-4f2b-8b52-4cbb5c7f9061"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]] Nifty::KeyValueStore::KeyValuePair Load (0.1ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]] Nifty::KeyValueStore::KeyValuePair Load (0.0ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shoppe::OrderItem Load (0.1ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? [["order_id", 1]] Shoppe::Order Load (0.1ms) SELECT "shoppe_orders".* FROM "shoppe_orders" WHERE "shoppe_orders"."id" = ? LIMIT 1 [["id", 1]] Shoppe::Product Load (0.1ms) SELECT "shoppe_products".* FROM "shoppe_products" WHERE "shoppe_products"."sku" = 'YL-SIP-T20P' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Shoppe::OrderItem Load (0.1ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? AND "shoppe_order_items"."product_id" = 1 ORDER BY "shoppe_order_items"."id" ASC LIMIT 1 [["order_id", 1]] SQL (0.4ms) INSERT INTO "shoppe_order_items" ("created_at", "order_id", "product_id", "quantity", "tax_amount", "tax_rate", "unit_price", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["order_id", 1], ["product_id", 1], ["quantity", 0], ["tax_amount", #], ["tax_rate", #], ["unit_price", #], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]] SQL (0.2ms) UPDATE "shoppe_order_items" SET "quantity" = ?, "tax_amount" = ?, "weight" = ?, "updated_at" = ? WHERE "shoppe_order_items"."id" = 1 [["quantity", 1], ["tax_amount", #], ["weight", #], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]] Shoppe::Order Load (0.1ms) SELECT "shoppe_orders".* FROM "shoppe_orders" WHERE "shoppe_orders"."id" = ? ORDER BY "shoppe_orders"."id" ASC LIMIT 1 [["id", 1]] Shoppe::OrderItem Load (0.0ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? [["order_id", 1]] Shoppe::DeliveryServicePrice Load (0.1ms) SELECT "shoppe_delivery_service_prices".* FROM "shoppe_delivery_service_prices" INNER JOIN "shoppe_delivery_services" ON "shoppe_delivery_services"."id" = "shoppe_delivery_service_prices"."delivery_service_id" WHERE "shoppe_delivery_services"."active" = 't' AND (min_weight <= 1.119 AND max_weight >= 1.119) ORDER BY `default` desc, price asc Shoppe::DeliveryService Load (0.1ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 3]] Shoppe::DeliveryService Load (0.1ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 2]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 4]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shoppe::Product Load (0.1ms) SELECT "shoppe_products".* FROM "shoppe_products" WHERE "shoppe_products"."sku" = 'YL-SIP-T22P' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Shoppe::OrderItem Load (0.1ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? AND "shoppe_order_items"."product_id" = 2 ORDER BY "shoppe_order_items"."id" ASC LIMIT 1 [["order_id", 1]] SQL (0.4ms) INSERT INTO "shoppe_order_items" ("created_at", "order_id", "product_id", "quantity", "tax_amount", "tax_rate", "unit_price", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["order_id", 1], ["product_id", 2], ["quantity", 0], ["tax_amount", #], ["tax_rate", #], ["unit_price", #], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]] SQL (0.2ms) UPDATE "shoppe_order_items" SET "quantity" = ?, "tax_amount" = ?, "weight" = ?, "updated_at" = ? WHERE "shoppe_order_items"."id" = 2 [["quantity", 1], ["tax_amount", #], ["weight", #], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]] Shoppe::Order Load (0.1ms) SELECT "shoppe_orders".* FROM "shoppe_orders" WHERE "shoppe_orders"."id" = ? ORDER BY "shoppe_orders"."id" ASC LIMIT 1 [["id", 1]] Shoppe::OrderItem Load (0.1ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? [["order_id", 1]] Shoppe::DeliveryServicePrice Load (0.1ms) SELECT "shoppe_delivery_service_prices".* FROM "shoppe_delivery_service_prices" INNER JOIN "shoppe_delivery_services" ON "shoppe_delivery_services"."id" = "shoppe_delivery_service_prices"."delivery_service_id" WHERE "shoppe_delivery_services"."active" = 't' AND (min_weight <= 2.538 AND max_weight >= 2.538) ORDER BY `default` desc, price asc Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 3]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 2]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 4]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- Shoppe::BasketTest: test_initial_status ---------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "shoppe_orders" ("created_at", "status", "token", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["status", "building"], ["token", "48f4909b-faef-433e-b145-b9e6faf2ce07"], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]] Nifty::KeyValueStore::KeyValuePair Load (0.1ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]] Nifty::KeyValueStore::KeyValuePair Load (0.0ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------- Shoppe::UserTest: test_authentication ------------------------------------- Shoppe::User Load (0.2ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------- Shoppe::UserTest: test_full_name -------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------- Shoppe::UserTest: test_short_name --------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ Shoppe::UserTest: test_user_creation ------------------------------------ Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Binary data inserted for `string` type on column `password_digest` SQL (0.4ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00], ["email_address", "test@example.com"], ["first_name", "Test"], ["last_name", "User"], ["password_digest", "$2a$04$Jh3tY96nU/SdXoFvYxbeR.QbfyblD5PuQ4JTzNcsr4bBi5a35hTO."], ["updated_at", Sun, 06 Oct 2013 17:20:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- ShoppeTest: test_configuration_is_loaded ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (2.8ms) CREATE TABLE "shoppe_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "token" varchar(255), "role" varchar(255), "file_name" varchar(255), "file_type" varchar(255), "data" blob(10485760), "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_delivery_service_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "delivery_service_id" integer, "code" varchar(255), "price" decimal(8,2), "tax_rate" decimal(8,2), "min_weight" decimal(8,2), "max_weight" decimal(8,2), "created_at" datetime, "updated_at" datetime)  (1.5ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 'f', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (1.0ms) CREATE TABLE "shoppe_key_value_store" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "group" varchar(255), "name" varchar(255), "value" varchar(255))  (1.0ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))  (0.7ms) CREATE TABLE "shoppe_product_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text)  (0.8ms) CREATE TABLE "shoppe_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email_address" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131006144849')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094549')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094551')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094647')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094654')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926104450')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926151718')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927113134')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927130022')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927132143')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927150025')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928111819')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928131502')  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928134518')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928173818')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928180041')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928185655')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928193023')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928201257')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929151744')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929203421')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130930181344')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002154122')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002155246')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002162301')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131003163827')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004185043')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004193320')  (0.1ms) begin transaction SQL (4.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMFC"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["name", "Royal Mail (1st class)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]]  (2.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["delivery_service_id", 1], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]]  (1.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMSF"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["name", "Royal Mail (signed for)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "default", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["code", "ND16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["default", true], ["name", "Next Day Delivery (before 4pm)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NS10"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["name", "Next Day Delivery (before 10am)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NDSA16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["name", "Saturday Delivery"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.2ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-phones' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["name", "VoIP Phones"], ["permalink", "voip-phones"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]]  (2.5ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-accessories' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["name", "VoIP Accessories"], ["permalink", "voip-accessories"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'network-eqipment' LIMIT 1 SQL (0.2ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["name", "Network Eqipment"], ["permalink", "network-eqipment"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t20p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t20p"], ["price", #], ["product_category_id", 1], ["short_description", "If cheap & cheerful is what you’re after, the Yealink T20P is what you’re looking for."], ["sku", "YL-SIP-T20P"], ["stock", 20], ["tax_rate", #], ["title", "Yealink T20P"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["weight", #]]  (1.0ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t20p' AND "shoppe_products"."id" != 1) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 1], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '01593b75-26b2-4331-a1b5-0ed2444893af' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["data", "<127400 bytes of binary data>"], ["file_name", "t20p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 1], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "01593b75-26b2-4331-a1b5-0ed2444893af"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 1], ["parent_type", "Shoppe::Product"]]  (1.6ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t22p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t22p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T22P"], ["stock", 12], ["tax_rate", #], ["title", "Yealink T22P"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t22p' AND "shoppe_products"."id" != 2) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 2], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.0ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'f7829c1d-a2d7-43f5-93ce-5f61bdbd7e6c' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["data", "<101139 bytes of binary data>"], ["file_name", "t22p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 2], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "f7829c1d-a2d7-43f5-93ce-5f61bdbd7e6c"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 2], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t26p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t26p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T26P"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T26P"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t26p' AND "shoppe_products"."id" != 3) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 3], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '900fceb0-2632-4627-9e4b-21a6d2ddafb0' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["data", "<67267 bytes of binary data>"], ["file_name", "t26p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 3], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "900fceb0-2632-4627-9e4b-21a6d2ddafb0"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 3], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t46gn' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t46gn"], ["price", #], ["product_category_id", 1], ["short_description", "Colourful, sharp, fast & down right sexy. The Yealink T46P will make your scream!"], ["sku", "YL-SIP-T46GN"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T46GN"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["weight", #]]  (0.7ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t46gn' AND "shoppe_products"."id" != 4) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 4], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '025443d0-09b9-49f1-aede-f9eaa826308a' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["data", "<197941 bytes of binary data>"], ["file_name", "t46gn.jpg"], ["file_type", "image/jpeg"], ["parent_id", 4], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "025443d0-09b9-49f1-aede-f9eaa826308a"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 4], ["parent_type", "Shoppe::Product"]]  (1.7ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-grey' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-870-grey"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-GREY"], ["stock", 2], ["tax_rate", #], ["title", "Snom 870 (Grey)"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-grey' AND "shoppe_products"."id" != 5) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 5], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'd6d7b2d4-369e-4c2c-befd-0b8c6bb9e482' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["data", "<105894 bytes of binary data>"], ["file_name", "snom-870-grey.jpg"], ["file_type", "image/jpeg"], ["parent_id", 5], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "d6d7b2d4-369e-4c2c-befd-0b8c6bb9e482"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 5], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-black' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "snom-870-black"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-BLK"], ["tax_rate", #], ["title", "Snom 870 (Black)"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-black' AND "shoppe_products"."id" != 6) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 6], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'bd4e1507-9a38-4637-bd9c-ae113238c046' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["data", "<85691 bytes of binary data>"], ["file_name", "snom-870-blk.jpg"], ["file_type", "image/jpeg"], ["parent_id", 6], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "bd4e1507-9a38-4637-bd9c-ae113238c046"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 6], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-mono-headset' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-mono-headset"], ["price", #], ["product_category_id", 2], ["short_description", "If you're often on the phone, this headset will make your life 100x easier. Guaranteed*."], ["sku", "YL-YHS32"], ["stock", 3], ["tax_rate", #], ["title", "Yealink Mono Headset"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-mono-headset' AND "shoppe_products"."id" != 7) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 7], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'be27abc2-7bfe-43b9-bddb-92ed5a9f1bfb' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["data", "<19129 bytes of binary data>"], ["file_name", "yhs32.jpg"], ["file_type", "image/jpeg"], ["parent_id", 7], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "be27abc2-7bfe-43b9-bddb-92ed5a9f1bfb"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 7], ["parent_type", "Shoppe::Product"]]  (1.0ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm2' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm2"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM2"], ["tax_rate", #], ["title", "Snom Wired Headset (MM2)"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["weight", #]]  (0.7ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm2' AND "shoppe_products"."id" != 8) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 8], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'dfe19ba3-f793-4460-8e33-c7e056e3cd62' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 8], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "dfe19ba3-f793-4460-8e33-c7e056e3cd62"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 8], ["parent_type", "Shoppe::Product"]]  (1.4ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm3' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm3"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM3"], ["stock", 1], ["tax_rate", #], ["title", "Snom Wired Headset (MM3)"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm3' AND "shoppe_products"."id" != 9) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 9], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'f3faf65f-2bf3-4c3e-ad26-3d22e3ff9e79' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 9], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "f3faf65f-2bf3-4c3e-ad26-3d22e3ff9e79"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 9], ["parent_type", "Shoppe::Product"]]  (1.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-w52p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-w52p"], ["price", #], ["product_category_id", 1], ["short_description", "Wireless SIP phones are hard to come by but this beauty from Yealink is fab."], ["sku", "TL-SIP-W52P"], ["stock", 1], ["tax_rate", #], ["title", "Yealink W52P"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-w52p' AND "shoppe_products"."id" != 10) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 10], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '857453ff-e473-4316-8373-2fddd7b5caef' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["data", "<102742 bytes of binary data>"], ["file_name", "w52p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 10], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "857453ff-e473-4316-8373-2fddd7b5caef"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 10], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.1ms) begin transaction Binary data inserted for `string` type on column `password_digest` SQL (0.4ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["email_address", "adam@niftyware.io"], ["first_name", "Adam"], ["last_name", "Cooke"], ["password_digest", "$2a$04$0Vua8qbGP8rLXCoP4zLHKOmCzp7z/cVZJCSqLWe5WF1CqlLrDlM0K"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction ---------------------------------------- Shoppe::BasketTest: test_adding_products ----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "shoppe_orders" ("created_at", "status", "token", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["status", "building"], ["token", "b3fb754f-43f8-4158-92ec-4735557b5d9e"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]] Nifty::KeyValueStore::KeyValuePair Load (0.1ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]] Nifty::KeyValueStore::KeyValuePair Load (0.0ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shoppe::OrderItem Load (0.1ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? [["order_id", 1]] Shoppe::Order Load (0.1ms) SELECT "shoppe_orders".* FROM "shoppe_orders" WHERE "shoppe_orders"."id" = ? LIMIT 1 [["id", 1]] Shoppe::Product Load (0.1ms) SELECT "shoppe_products".* FROM "shoppe_products" WHERE "shoppe_products"."sku" = 'YL-SIP-T20P' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Shoppe::OrderItem Load (0.2ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? AND "shoppe_order_items"."product_id" = 1 ORDER BY "shoppe_order_items"."id" ASC LIMIT 1 [["order_id", 1]] SQL (0.4ms) INSERT INTO "shoppe_order_items" ("created_at", "order_id", "product_id", "quantity", "tax_amount", "tax_rate", "unit_price", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["order_id", 1], ["product_id", 1], ["quantity", 0], ["tax_amount", #], ["tax_rate", #], ["unit_price", #], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]] SQL (0.2ms) UPDATE "shoppe_order_items" SET "quantity" = ?, "tax_amount" = ?, "weight" = ?, "updated_at" = ? WHERE "shoppe_order_items"."id" = 1 [["quantity", 1], ["tax_amount", #], ["weight", #], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]] Shoppe::Order Load (0.1ms) SELECT "shoppe_orders".* FROM "shoppe_orders" WHERE "shoppe_orders"."id" = ? ORDER BY "shoppe_orders"."id" ASC LIMIT 1 [["id", 1]] Shoppe::OrderItem Load (0.0ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? [["order_id", 1]] Shoppe::DeliveryServicePrice Load (0.1ms) SELECT "shoppe_delivery_service_prices".* FROM "shoppe_delivery_service_prices" INNER JOIN "shoppe_delivery_services" ON "shoppe_delivery_services"."id" = "shoppe_delivery_service_prices"."delivery_service_id" WHERE "shoppe_delivery_services"."active" = 't' AND (min_weight <= 1.119 AND max_weight >= 1.119) ORDER BY `default` desc, price asc Shoppe::DeliveryService Load (0.1ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 3]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 2]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 4]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shoppe::Product Load (0.1ms) SELECT "shoppe_products".* FROM "shoppe_products" WHERE "shoppe_products"."sku" = 'YL-SIP-T22P' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Shoppe::OrderItem Load (0.1ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? AND "shoppe_order_items"."product_id" = 2 ORDER BY "shoppe_order_items"."id" ASC LIMIT 1 [["order_id", 1]] SQL (0.2ms) INSERT INTO "shoppe_order_items" ("created_at", "order_id", "product_id", "quantity", "tax_amount", "tax_rate", "unit_price", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["order_id", 1], ["product_id", 2], ["quantity", 0], ["tax_amount", #], ["tax_rate", #], ["unit_price", #], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]] SQL (0.1ms) UPDATE "shoppe_order_items" SET "quantity" = ?, "tax_amount" = ?, "weight" = ?, "updated_at" = ? WHERE "shoppe_order_items"."id" = 2 [["quantity", 1], ["tax_amount", #], ["weight", #], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]] Shoppe::Order Load (0.0ms) SELECT "shoppe_orders".* FROM "shoppe_orders" WHERE "shoppe_orders"."id" = ? ORDER BY "shoppe_orders"."id" ASC LIMIT 1 [["id", 1]] Shoppe::OrderItem Load (0.0ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? [["order_id", 1]] Shoppe::DeliveryServicePrice Load (0.1ms) SELECT "shoppe_delivery_service_prices".* FROM "shoppe_delivery_service_prices" INNER JOIN "shoppe_delivery_services" ON "shoppe_delivery_services"."id" = "shoppe_delivery_service_prices"."delivery_service_id" WHERE "shoppe_delivery_services"."active" = 't' AND (min_weight <= 2.538 AND max_weight >= 2.538) ORDER BY `default` desc, price asc Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 3]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 2]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 4]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- Shoppe::BasketTest: test_initial_status ---------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shoppe_orders" ("created_at", "status", "token", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["status", "building"], ["token", "1dff8ec3-4895-44b4-a2f3-94954d657962"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]] Nifty::KeyValueStore::KeyValuePair Load (0.1ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]] Nifty::KeyValueStore::KeyValuePair Load (0.0ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------- Shoppe::UserTest: test_authentication ------------------------------------- Shoppe::User Load (0.2ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- Shoppe::UserTest: test_full_name -------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------- Shoppe::UserTest: test_short_name --------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ Shoppe::UserTest: test_user_creation ------------------------------------ Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Binary data inserted for `string` type on column `password_digest` SQL (0.4ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00], ["email_address", "test@example.com"], ["first_name", "Test"], ["last_name", "User"], ["password_digest", "$2a$04$hAwELiqF8CmE4K7hWYszVeD306cXXBhXpP9YRFQRgizggsBosRZty"], ["updated_at", Sun, 06 Oct 2013 17:20:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- ShoppeTest: test_configuration_is_loaded ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.1ms) rollback transaction  (3.0ms) CREATE TABLE "shoppe_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "token" varchar(255), "role" varchar(255), "file_name" varchar(255), "file_type" varchar(255), "data" blob(10485760), "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_delivery_service_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "delivery_service_id" integer, "code" varchar(255), "price" decimal(8,2), "tax_rate" decimal(8,2), "min_weight" decimal(8,2), "max_weight" decimal(8,2), "created_at" datetime, "updated_at" datetime)  (1.4ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 'f', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (1.1ms) CREATE TABLE "shoppe_key_value_store" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "group" varchar(255), "name" varchar(255), "value" varchar(255))  (1.0ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))  (0.7ms) CREATE TABLE "shoppe_product_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text)  (0.8ms) CREATE TABLE "shoppe_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email_address" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131006144849')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094549')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094551')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094647')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094654')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926104450')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926151718')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927113134')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927130022')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927132143')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927150025')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928111819')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928131502')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928134518')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928173818')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928180041')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928185655')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928193023')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928201257')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929151744')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929203421')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130930181344')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002154122')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002155246')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002162301')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131003163827')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004185043')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004193320')  (0.1ms) begin transaction SQL (4.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMFC"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["name", "Royal Mail (1st class)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]]  (2.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["delivery_service_id", 1], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMSF"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["name", "Royal Mail (signed for)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "default", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["code", "ND16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["default", true], ["name", "Next Day Delivery (before 4pm)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NS10"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["name", "Next Day Delivery (before 10am)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NDSA16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["name", "Saturday Delivery"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-phones' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["name", "VoIP Phones"], ["permalink", "voip-phones"], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]]  (1.6ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-accessories' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["name", "VoIP Accessories"], ["permalink", "voip-accessories"], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'network-eqipment' LIMIT 1 SQL (0.2ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["name", "Network Eqipment"], ["permalink", "network-eqipment"], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t20p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t20p"], ["price", #], ["product_category_id", 1], ["short_description", "If cheap & cheerful is what you’re after, the Yealink T20P is what you’re looking for."], ["sku", "YL-SIP-T20P"], ["stock", 20], ["tax_rate", #], ["title", "Yealink T20P"], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["weight", #]]  (1.0ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t20p' AND "shoppe_products"."id" != 1) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 1], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'f434b402-af24-430e-ac21-9541767656d6' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["data", "<127400 bytes of binary data>"], ["file_name", "t20p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 1], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "f434b402-af24-430e-ac21-9541767656d6"], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 1], ["parent_type", "Shoppe::Product"]]  (1.6ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t22p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t22p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T22P"], ["stock", 12], ["tax_rate", #], ["title", "Yealink T22P"], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t22p' AND "shoppe_products"."id" != 2) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 2], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '5455a9bc-459d-4de6-ac4a-c03a4636fd9e' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["data", "<101139 bytes of binary data>"], ["file_name", "t22p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 2], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "5455a9bc-459d-4de6-ac4a-c03a4636fd9e"], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 2], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t26p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t26p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T26P"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T26P"], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t26p' AND "shoppe_products"."id" != 3) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 3], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '61920630-7a76-4157-a292-45411d0e48a7' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["data", "<67267 bytes of binary data>"], ["file_name", "t26p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 3], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "61920630-7a76-4157-a292-45411d0e48a7"], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 3], ["parent_type", "Shoppe::Product"]]  (1.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t46gn' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t46gn"], ["price", #], ["product_category_id", 1], ["short_description", "Colourful, sharp, fast & down right sexy. The Yealink T46P will make your scream!"], ["sku", "YL-SIP-T46GN"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T46GN"], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t46gn' AND "shoppe_products"."id" != 4) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 4], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'ee60c54d-d884-48ce-a0de-282c44e25b92' LIMIT 1 SQL (0.7ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["data", "<197941 bytes of binary data>"], ["file_name", "t46gn.jpg"], ["file_type", "image/jpeg"], ["parent_id", 4], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "ee60c54d-d884-48ce-a0de-282c44e25b92"], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 4], ["parent_type", "Shoppe::Product"]]  (1.7ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-grey' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-870-grey"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-GREY"], ["stock", 2], ["tax_rate", #], ["title", "Snom 870 (Grey)"], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-grey' AND "shoppe_products"."id" != 5) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 5], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '95b0de51-a7fe-43bf-8aaa-9843cee01292' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["data", "<105894 bytes of binary data>"], ["file_name", "snom-870-grey.jpg"], ["file_type", "image/jpeg"], ["parent_id", 5], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "95b0de51-a7fe-43bf-8aaa-9843cee01292"], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 5], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-black' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "snom-870-black"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-BLK"], ["tax_rate", #], ["title", "Snom 870 (Black)"], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-black' AND "shoppe_products"."id" != 6) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 6], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '16745826-d04a-4cf6-a786-2bdc0d260263' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["data", "<85691 bytes of binary data>"], ["file_name", "snom-870-blk.jpg"], ["file_type", "image/jpeg"], ["parent_id", 6], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "16745826-d04a-4cf6-a786-2bdc0d260263"], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 6], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-mono-headset' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-mono-headset"], ["price", #], ["product_category_id", 2], ["short_description", "If you're often on the phone, this headset will make your life 100x easier. Guaranteed*."], ["sku", "YL-YHS32"], ["stock", 3], ["tax_rate", #], ["title", "Yealink Mono Headset"], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-mono-headset' AND "shoppe_products"."id" != 7) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 7], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '036c8bdb-80db-4cac-b4b9-07dbd590dfb9' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["data", "<19129 bytes of binary data>"], ["file_name", "yhs32.jpg"], ["file_type", "image/jpeg"], ["parent_id", 7], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "036c8bdb-80db-4cac-b4b9-07dbd590dfb9"], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 7], ["parent_type", "Shoppe::Product"]]  (1.0ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm2' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm2"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM2"], ["tax_rate", #], ["title", "Snom Wired Headset (MM2)"], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm2' AND "shoppe_products"."id" != 8) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 8], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'b6777728-eb79-4160-888f-380ed04d3f86' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 8], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "b6777728-eb79-4160-888f-380ed04d3f86"], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 8], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm3' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm3"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM3"], ["stock", 1], ["tax_rate", #], ["title", "Snom Wired Headset (MM3)"], ["updated_at", Sun, 06 Oct 2013 17:21:00 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm3' AND "shoppe_products"."id" != 9) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 9], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '5f3b306b-ca9f-49f2-b80c-978af175be34' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:01 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 9], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "5f3b306b-ca9f-49f2-b80c-978af175be34"], ["updated_at", Sun, 06 Oct 2013 17:21:01 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 9], ["parent_type", "Shoppe::Product"]]  (1.1ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-w52p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:01 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-w52p"], ["price", #], ["product_category_id", 1], ["short_description", "Wireless SIP phones are hard to come by but this beauty from Yealink is fab."], ["sku", "TL-SIP-W52P"], ["stock", 1], ["tax_rate", #], ["title", "Yealink W52P"], ["updated_at", Sun, 06 Oct 2013 17:21:01 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-w52p' AND "shoppe_products"."id" != 10) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 10], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '303c080a-6ef3-4a89-96ea-5efdacf80e6c' LIMIT 1 SQL (0.5ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:01 UTC +00:00], ["data", "<102742 bytes of binary data>"], ["file_name", "w52p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 10], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "303c080a-6ef3-4a89-96ea-5efdacf80e6c"], ["updated_at", Sun, 06 Oct 2013 17:21:01 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 10], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.1ms) begin transaction Binary data inserted for `string` type on column `password_digest` SQL (0.4ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:01 UTC +00:00], ["email_address", "adam@niftyware.io"], ["first_name", "Adam"], ["last_name", "Cooke"], ["password_digest", "$2a$04$iGMctQCyzm4PWPabx6YKoOXBjlfLZhqzmQjqCueBNKIvMieIxaTw2"], ["updated_at", Sun, 06 Oct 2013 17:21:01 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction ---------------------------------------- Shoppe::BasketTest: test_adding_products ----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "shoppe_orders" ("created_at", "status", "token", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:01 UTC +00:00], ["status", "building"], ["token", "d552be49-147c-48b8-a18a-280744aa48ab"], ["updated_at", Sun, 06 Oct 2013 17:21:01 UTC +00:00]] Nifty::KeyValueStore::KeyValuePair Load (0.1ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]] Nifty::KeyValueStore::KeyValuePair Load (0.0ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shoppe::OrderItem Load (0.1ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? [["order_id", 1]] Shoppe::Order Load (0.1ms) SELECT "shoppe_orders".* FROM "shoppe_orders" WHERE "shoppe_orders"."id" = ? LIMIT 1 [["id", 1]] Shoppe::Product Load (0.1ms) SELECT "shoppe_products".* FROM "shoppe_products" WHERE "shoppe_products"."sku" = 'YL-SIP-T20P' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Shoppe::OrderItem Load (0.1ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? AND "shoppe_order_items"."product_id" = 1 ORDER BY "shoppe_order_items"."id" ASC LIMIT 1 [["order_id", 1]] SQL (0.5ms) INSERT INTO "shoppe_order_items" ("created_at", "order_id", "product_id", "quantity", "tax_amount", "tax_rate", "unit_price", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:01 UTC +00:00], ["order_id", 1], ["product_id", 1], ["quantity", 0], ["tax_amount", #], ["tax_rate", #], ["unit_price", #], ["updated_at", Sun, 06 Oct 2013 17:21:01 UTC +00:00]] SQL (0.2ms) UPDATE "shoppe_order_items" SET "quantity" = ?, "tax_amount" = ?, "weight" = ?, "updated_at" = ? WHERE "shoppe_order_items"."id" = 1 [["quantity", 1], ["tax_amount", #], ["weight", #], ["updated_at", Sun, 06 Oct 2013 17:21:01 UTC +00:00]] Shoppe::Order Load (0.1ms) SELECT "shoppe_orders".* FROM "shoppe_orders" WHERE "shoppe_orders"."id" = ? ORDER BY "shoppe_orders"."id" ASC LIMIT 1 [["id", 1]] Shoppe::OrderItem Load (0.0ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? [["order_id", 1]] Shoppe::DeliveryServicePrice Load (0.1ms) SELECT "shoppe_delivery_service_prices".* FROM "shoppe_delivery_service_prices" INNER JOIN "shoppe_delivery_services" ON "shoppe_delivery_services"."id" = "shoppe_delivery_service_prices"."delivery_service_id" WHERE "shoppe_delivery_services"."active" = 't' AND (min_weight <= 1.119 AND max_weight >= 1.119) ORDER BY `default` desc, price asc Shoppe::DeliveryService Load (0.1ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 3]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 2]] Shoppe::DeliveryService Load (0.1ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 4]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shoppe::Product Load (0.1ms) SELECT "shoppe_products".* FROM "shoppe_products" WHERE "shoppe_products"."sku" = 'YL-SIP-T22P' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Shoppe::OrderItem Load (0.1ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? AND "shoppe_order_items"."product_id" = 2 ORDER BY "shoppe_order_items"."id" ASC LIMIT 1 [["order_id", 1]] SQL (0.3ms) INSERT INTO "shoppe_order_items" ("created_at", "order_id", "product_id", "quantity", "tax_amount", "tax_rate", "unit_price", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:01 UTC +00:00], ["order_id", 1], ["product_id", 2], ["quantity", 0], ["tax_amount", #], ["tax_rate", #], ["unit_price", #], ["updated_at", Sun, 06 Oct 2013 17:21:01 UTC +00:00]] SQL (0.2ms) UPDATE "shoppe_order_items" SET "quantity" = ?, "tax_amount" = ?, "weight" = ?, "updated_at" = ? WHERE "shoppe_order_items"."id" = 2 [["quantity", 1], ["tax_amount", #], ["weight", #], ["updated_at", Sun, 06 Oct 2013 17:21:01 UTC +00:00]] Shoppe::Order Load (0.1ms) SELECT "shoppe_orders".* FROM "shoppe_orders" WHERE "shoppe_orders"."id" = ? ORDER BY "shoppe_orders"."id" ASC LIMIT 1 [["id", 1]] Shoppe::OrderItem Load (0.1ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? [["order_id", 1]] Shoppe::DeliveryServicePrice Load (0.1ms) SELECT "shoppe_delivery_service_prices".* FROM "shoppe_delivery_service_prices" INNER JOIN "shoppe_delivery_services" ON "shoppe_delivery_services"."id" = "shoppe_delivery_service_prices"."delivery_service_id" WHERE "shoppe_delivery_services"."active" = 't' AND (min_weight <= 2.538 AND max_weight >= 2.538) ORDER BY `default` desc, price asc Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 3]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 2]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 4]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shoppe::OrderItem Load (0.0ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? [["order_id", 1]]  (1.9ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- Shoppe::BasketTest: test_initial_status ---------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shoppe_orders" ("created_at", "status", "token", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:01 UTC +00:00], ["status", "building"], ["token", "e634ae37-6379-4f85-856e-d365fb3a5da5"], ["updated_at", Sun, 06 Oct 2013 17:21:01 UTC +00:00]] Nifty::KeyValueStore::KeyValuePair Load (0.0ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]] Nifty::KeyValueStore::KeyValuePair Load (0.0ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------- Shoppe::UserTest: test_authentication ------------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- Shoppe::UserTest: test_full_name -------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------- Shoppe::UserTest: test_short_name --------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ Shoppe::UserTest: test_user_creation ------------------------------------ Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Binary data inserted for `string` type on column `password_digest` SQL (0.3ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:01 UTC +00:00], ["email_address", "test@example.com"], ["first_name", "Test"], ["last_name", "User"], ["password_digest", "$2a$04$p6AzPSh9Tp.w1y5p34mrkOVlQYLpSdPyHhKxsTvFJtN3/kr1h3X3e"], ["updated_at", Sun, 06 Oct 2013 17:21:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- ShoppeTest: test_configuration_is_loaded ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (2.9ms) CREATE TABLE "shoppe_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "token" varchar(255), "role" varchar(255), "file_name" varchar(255), "file_type" varchar(255), "data" blob(10485760), "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "shoppe_delivery_service_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "delivery_service_id" integer, "code" varchar(255), "price" decimal(8,2), "tax_rate" decimal(8,2), "min_weight" decimal(8,2), "max_weight" decimal(8,2), "created_at" datetime, "updated_at" datetime)  (1.4ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 'f', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (1.2ms) CREATE TABLE "shoppe_key_value_store" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "group" varchar(255), "name" varchar(255), "value" varchar(255))  (0.8ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))  (0.7ms) CREATE TABLE "shoppe_product_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text)  (0.8ms) CREATE TABLE "shoppe_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email_address" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131006144849')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094549')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094551')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094647')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094654')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926104450')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926151718')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927113134')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927130022')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927132143')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927150025')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928111819')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928131502')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928134518')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928173818')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928180041')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928185655')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928193023')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928201257')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929151744')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929203421')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130930181344')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002154122')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002155246')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002162301')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131003163827')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004185043')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004193320')  (0.1ms) begin transaction SQL (4.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMFC"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["name", "Royal Mail (1st class)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]]  (2.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["delivery_service_id", 1], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMSF"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["name", "Royal Mail (signed for)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "default", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["code", "ND16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["default", true], ["name", "Next Day Delivery (before 4pm)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NS10"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["name", "Next Day Delivery (before 10am)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NDSA16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["name", "Saturday Delivery"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-phones' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["name", "VoIP Phones"], ["permalink", "voip-phones"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]]  (2.6ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-accessories' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["name", "VoIP Accessories"], ["permalink", "voip-accessories"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'network-eqipment' LIMIT 1 SQL (0.2ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["name", "Network Eqipment"], ["permalink", "network-eqipment"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t20p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t20p"], ["price", #], ["product_category_id", 1], ["short_description", "If cheap & cheerful is what you’re after, the Yealink T20P is what you’re looking for."], ["sku", "YL-SIP-T20P"], ["stock", 20], ["tax_rate", #], ["title", "Yealink T20P"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["weight", #]]  (1.0ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t20p' AND "shoppe_products"."id" != 1) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 1], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '67057f3e-9ebb-40bb-9b74-fcf13ad4723d' LIMIT 1 SQL (0.5ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["data", "<127400 bytes of binary data>"], ["file_name", "t20p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 1], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "67057f3e-9ebb-40bb-9b74-fcf13ad4723d"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 1], ["parent_type", "Shoppe::Product"]]  (1.5ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t22p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t22p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T22P"], ["stock", 12], ["tax_rate", #], ["title", "Yealink T22P"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t22p' AND "shoppe_products"."id" != 2) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 2], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '6e83d19e-c485-4228-be65-35def938f081' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["data", "<101139 bytes of binary data>"], ["file_name", "t22p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 2], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "6e83d19e-c485-4228-be65-35def938f081"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 2], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t26p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t26p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T26P"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T26P"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t26p' AND "shoppe_products"."id" != 3) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 3], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '73f922d4-7b28-49f4-b906-eb5d4c5c0dbf' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["data", "<67267 bytes of binary data>"], ["file_name", "t26p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 3], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "73f922d4-7b28-49f4-b906-eb5d4c5c0dbf"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 3], ["parent_type", "Shoppe::Product"]]  (1.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t46gn' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t46gn"], ["price", #], ["product_category_id", 1], ["short_description", "Colourful, sharp, fast & down right sexy. The Yealink T46P will make your scream!"], ["sku", "YL-SIP-T46GN"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T46GN"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["weight", #]]  (0.7ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t46gn' AND "shoppe_products"."id" != 4) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 4], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '3632447d-5402-41ef-8bef-a2445e896ead' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["data", "<197941 bytes of binary data>"], ["file_name", "t46gn.jpg"], ["file_type", "image/jpeg"], ["parent_id", 4], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "3632447d-5402-41ef-8bef-a2445e896ead"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 4], ["parent_type", "Shoppe::Product"]]  (2.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-grey' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-870-grey"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-GREY"], ["stock", 2], ["tax_rate", #], ["title", "Snom 870 (Grey)"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-grey' AND "shoppe_products"."id" != 5) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 5], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '9ab23a2f-3c62-4f9e-b049-dbcd00b14fc9' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["data", "<105894 bytes of binary data>"], ["file_name", "snom-870-grey.jpg"], ["file_type", "image/jpeg"], ["parent_id", 5], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "9ab23a2f-3c62-4f9e-b049-dbcd00b14fc9"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 5], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-black' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "snom-870-black"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-BLK"], ["tax_rate", #], ["title", "Snom 870 (Black)"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-black' AND "shoppe_products"."id" != 6) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 6], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '35eec7ff-9dc6-4ed4-8254-b108ae875406' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["data", "<85691 bytes of binary data>"], ["file_name", "snom-870-blk.jpg"], ["file_type", "image/jpeg"], ["parent_id", 6], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "35eec7ff-9dc6-4ed4-8254-b108ae875406"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 6], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-mono-headset' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-mono-headset"], ["price", #], ["product_category_id", 2], ["short_description", "If you're often on the phone, this headset will make your life 100x easier. Guaranteed*."], ["sku", "YL-YHS32"], ["stock", 3], ["tax_rate", #], ["title", "Yealink Mono Headset"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-mono-headset' AND "shoppe_products"."id" != 7) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 7], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '3c92da5c-6bfa-4557-81ab-2b51eb2f381c' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["data", "<19129 bytes of binary data>"], ["file_name", "yhs32.jpg"], ["file_type", "image/jpeg"], ["parent_id", 7], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "3c92da5c-6bfa-4557-81ab-2b51eb2f381c"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 7], ["parent_type", "Shoppe::Product"]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm2' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm2"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM2"], ["tax_rate", #], ["title", "Snom Wired Headset (MM2)"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm2' AND "shoppe_products"."id" != 8) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 8], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '0388f471-9044-463a-8fac-77d74ea6684f' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 8], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "0388f471-9044-463a-8fac-77d74ea6684f"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 8], ["parent_type", "Shoppe::Product"]]  (1.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm3' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm3"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM3"], ["stock", 1], ["tax_rate", #], ["title", "Snom Wired Headset (MM3)"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm3' AND "shoppe_products"."id" != 9) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 9], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'd80b80f7-3115-407a-a1fa-d9ee6cbf43e0' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 9], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "d80b80f7-3115-407a-a1fa-d9ee6cbf43e0"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 9], ["parent_type", "Shoppe::Product"]]  (1.0ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-w52p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-w52p"], ["price", #], ["product_category_id", 1], ["short_description", "Wireless SIP phones are hard to come by but this beauty from Yealink is fab."], ["sku", "TL-SIP-W52P"], ["stock", 1], ["tax_rate", #], ["title", "Yealink W52P"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-w52p' AND "shoppe_products"."id" != 10) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 10], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'ba088a55-1f60-43d9-9b61-80bfa573e4f1' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["data", "<102742 bytes of binary data>"], ["file_name", "w52p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 10], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "ba088a55-1f60-43d9-9b61-80bfa573e4f1"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 10], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.1ms) begin transaction Binary data inserted for `string` type on column `password_digest` SQL (0.5ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["email_address", "adam@niftyware.io"], ["first_name", "Adam"], ["last_name", "Cooke"], ["password_digest", "$2a$04$wl6ZPcV3grzEZrBI8d5RjOHP8cT993tgmREOK.u2Blf5ZUvC1VaES"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction ---------------------------------------- Shoppe::BasketTest: test_adding_products ----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "shoppe_orders" ("created_at", "status", "token", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["status", "building"], ["token", "63937f2f-2e8e-47c5-a9b1-550dd92e704e"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]] Nifty::KeyValueStore::KeyValuePair Load (0.1ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]] Nifty::KeyValueStore::KeyValuePair Load (0.0ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shoppe::OrderItem Load (0.1ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? [["order_id", 1]] Shoppe::Order Load (0.1ms) SELECT "shoppe_orders".* FROM "shoppe_orders" WHERE "shoppe_orders"."id" = ? LIMIT 1 [["id", 1]] Shoppe::Product Load (0.1ms) SELECT "shoppe_products".* FROM "shoppe_products" WHERE "shoppe_products"."sku" = 'YL-SIP-T20P' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Shoppe::OrderItem Load (0.1ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? AND "shoppe_order_items"."product_id" = 1 ORDER BY "shoppe_order_items"."id" ASC LIMIT 1 [["order_id", 1]] SQL (0.5ms) INSERT INTO "shoppe_order_items" ("created_at", "order_id", "product_id", "quantity", "tax_amount", "tax_rate", "unit_price", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["order_id", 1], ["product_id", 1], ["quantity", 0], ["tax_amount", #], ["tax_rate", #], ["unit_price", #], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]] SQL (0.2ms) UPDATE "shoppe_order_items" SET "quantity" = ?, "tax_amount" = ?, "weight" = ?, "updated_at" = ? WHERE "shoppe_order_items"."id" = 1 [["quantity", 1], ["tax_amount", #], ["weight", #], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]] Shoppe::Order Load (0.1ms) SELECT "shoppe_orders".* FROM "shoppe_orders" WHERE "shoppe_orders"."id" = ? ORDER BY "shoppe_orders"."id" ASC LIMIT 1 [["id", 1]] Shoppe::OrderItem Load (0.0ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? [["order_id", 1]] Shoppe::DeliveryServicePrice Load (0.1ms) SELECT "shoppe_delivery_service_prices".* FROM "shoppe_delivery_service_prices" INNER JOIN "shoppe_delivery_services" ON "shoppe_delivery_services"."id" = "shoppe_delivery_service_prices"."delivery_service_id" WHERE "shoppe_delivery_services"."active" = 't' AND (min_weight <= 1.119 AND max_weight >= 1.119) ORDER BY `default` desc, price asc Shoppe::DeliveryService Load (0.1ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 3]] Shoppe::DeliveryService Load (0.1ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 2]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 4]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shoppe::Product Load (0.1ms) SELECT "shoppe_products".* FROM "shoppe_products" WHERE "shoppe_products"."sku" = 'YL-SIP-T22P' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Shoppe::OrderItem Load (0.1ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? AND "shoppe_order_items"."product_id" = 2 ORDER BY "shoppe_order_items"."id" ASC LIMIT 1 [["order_id", 1]] SQL (0.3ms) INSERT INTO "shoppe_order_items" ("created_at", "order_id", "product_id", "quantity", "tax_amount", "tax_rate", "unit_price", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["order_id", 1], ["product_id", 2], ["quantity", 0], ["tax_amount", #], ["tax_rate", #], ["unit_price", #], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]] SQL (0.2ms) UPDATE "shoppe_order_items" SET "quantity" = ?, "tax_amount" = ?, "weight" = ?, "updated_at" = ? WHERE "shoppe_order_items"."id" = 2 [["quantity", 1], ["tax_amount", #], ["weight", #], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]] Shoppe::Order Load (0.1ms) SELECT "shoppe_orders".* FROM "shoppe_orders" WHERE "shoppe_orders"."id" = ? ORDER BY "shoppe_orders"."id" ASC LIMIT 1 [["id", 1]] Shoppe::OrderItem Load (0.0ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? [["order_id", 1]] Shoppe::DeliveryServicePrice Load (0.1ms) SELECT "shoppe_delivery_service_prices".* FROM "shoppe_delivery_service_prices" INNER JOIN "shoppe_delivery_services" ON "shoppe_delivery_services"."id" = "shoppe_delivery_service_prices"."delivery_service_id" WHERE "shoppe_delivery_services"."active" = 't' AND (min_weight <= 2.538 AND max_weight >= 2.538) ORDER BY `default` desc, price asc Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 3]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 2]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 4]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shoppe::OrderItem Load (0.0ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? [["order_id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- Shoppe::BasketTest: test_initial_status ---------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shoppe_orders" ("created_at", "status", "token", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["status", "building"], ["token", "8c28245d-89a4-47e5-9a53-0781acab2a2e"], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]] Nifty::KeyValueStore::KeyValuePair Load (0.1ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]] Nifty::KeyValueStore::KeyValuePair Load (0.0ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------- Shoppe::UserTest: test_authentication ------------------------------------- Shoppe::User Load (0.2ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------- Shoppe::UserTest: test_full_name -------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------- Shoppe::UserTest: test_short_name --------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ Shoppe::UserTest: test_user_creation ------------------------------------ Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Binary data inserted for `string` type on column `password_digest` SQL (0.4ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00], ["email_address", "test@example.com"], ["first_name", "Test"], ["last_name", "User"], ["password_digest", "$2a$04$IE1mqHmwzuIxtavzWicaMuYQ6IZecZfyqmSrvP7tU31bvT0G7f.Z."], ["updated_at", Sun, 06 Oct 2013 17:21:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- ShoppeTest: test_configuration_is_loaded ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (2.8ms) CREATE TABLE "shoppe_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "token" varchar(255), "role" varchar(255), "file_name" varchar(255), "file_type" varchar(255), "data" blob(10485760), "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_delivery_service_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "delivery_service_id" integer, "code" varchar(255), "price" decimal(8,2), "tax_rate" decimal(8,2), "min_weight" decimal(8,2), "max_weight" decimal(8,2), "created_at" datetime, "updated_at" datetime)  (1.3ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 'f', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (0.8ms) CREATE TABLE "shoppe_key_value_store" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "group" varchar(255), "name" varchar(255), "value" varchar(255))  (0.8ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))  (0.7ms) CREATE TABLE "shoppe_product_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text)  (0.9ms) CREATE TABLE "shoppe_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email_address" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131006144849')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094549')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094551')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094647')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094654')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926104450')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926151718')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927113134')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927130022')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927132143')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927150025')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928111819')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928131502')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928134518')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928173818')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928180041')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928185655')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928193023')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928201257')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929151744')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929203421')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130930181344')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002154122')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002155246')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002162301')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131003163827')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004185043')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004193320')  (0.1ms) begin transaction SQL (4.4ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMFC"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["name", "Royal Mail (1st class)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]]  (2.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["delivery_service_id", 1], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMSF"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["name", "Royal Mail (signed for)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "default", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["code", "ND16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["default", true], ["name", "Next Day Delivery (before 4pm)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NS10"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["name", "Next Day Delivery (before 10am)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NDSA16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["name", "Saturday Delivery"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]]  (1.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-phones' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["name", "VoIP Phones"], ["permalink", "voip-phones"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]]  (2.8ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.2ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-accessories' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["name", "VoIP Accessories"], ["permalink", "voip-accessories"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]]  (1.0ms) commit transaction  (0.0ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'network-eqipment' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["name", "Network Eqipment"], ["permalink", "network-eqipment"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t20p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t20p"], ["price", #], ["product_category_id", 1], ["short_description", "If cheap & cheerful is what you’re after, the Yealink T20P is what you’re looking for."], ["sku", "YL-SIP-T20P"], ["stock", 20], ["tax_rate", #], ["title", "Yealink T20P"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["weight", #]]  (1.1ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t20p' AND "shoppe_products"."id" != 1) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 1], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '9e2e2085-a934-429f-8577-69daf16ad94a' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["data", "<127400 bytes of binary data>"], ["file_name", "t20p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 1], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "9e2e2085-a934-429f-8577-69daf16ad94a"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]] Shoppe::Attachment Load (0.2ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 1], ["parent_type", "Shoppe::Product"]]  (1.8ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t22p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t22p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T22P"], ["stock", 12], ["tax_rate", #], ["title", "Yealink T22P"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t22p' AND "shoppe_products"."id" != 2) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 2], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'a332894a-67d5-4978-809f-4fbf85a15492' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["data", "<101139 bytes of binary data>"], ["file_name", "t22p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 2], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "a332894a-67d5-4978-809f-4fbf85a15492"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 2], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t26p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t26p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T26P"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T26P"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t26p' AND "shoppe_products"."id" != 3) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 3], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'f502130f-5761-4b89-9d12-2b95ac83bb92' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["data", "<67267 bytes of binary data>"], ["file_name", "t26p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 3], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "f502130f-5761-4b89-9d12-2b95ac83bb92"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 3], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t46gn' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t46gn"], ["price", #], ["product_category_id", 1], ["short_description", "Colourful, sharp, fast & down right sexy. The Yealink T46P will make your scream!"], ["sku", "YL-SIP-T46GN"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T46GN"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t46gn' AND "shoppe_products"."id" != 4) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 4], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '274b48c8-e266-47a3-bc7c-d44359d4449c' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["data", "<197941 bytes of binary data>"], ["file_name", "t46gn.jpg"], ["file_type", "image/jpeg"], ["parent_id", 4], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "274b48c8-e266-47a3-bc7c-d44359d4449c"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 4], ["parent_type", "Shoppe::Product"]]  (1.5ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-grey' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-870-grey"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-GREY"], ["stock", 2], ["tax_rate", #], ["title", "Snom 870 (Grey)"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-grey' AND "shoppe_products"."id" != 5) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 5], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'bcca2524-577e-4c07-bd73-69a87ac418b6' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["data", "<105894 bytes of binary data>"], ["file_name", "snom-870-grey.jpg"], ["file_type", "image/jpeg"], ["parent_id", 5], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "bcca2524-577e-4c07-bd73-69a87ac418b6"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 5], ["parent_type", "Shoppe::Product"]]  (1.4ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-black' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "snom-870-black"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-BLK"], ["tax_rate", #], ["title", "Snom 870 (Black)"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-black' AND "shoppe_products"."id" != 6) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 6], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '9436927f-77bc-43c9-b9b3-e052facd7107' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["data", "<85691 bytes of binary data>"], ["file_name", "snom-870-blk.jpg"], ["file_type", "image/jpeg"], ["parent_id", 6], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "9436927f-77bc-43c9-b9b3-e052facd7107"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 6], ["parent_type", "Shoppe::Product"]]  (1.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-mono-headset' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-mono-headset"], ["price", #], ["product_category_id", 2], ["short_description", "If you're often on the phone, this headset will make your life 100x easier. Guaranteed*."], ["sku", "YL-YHS32"], ["stock", 3], ["tax_rate", #], ["title", "Yealink Mono Headset"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["weight", #]]  (1.0ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-mono-headset' AND "shoppe_products"."id" != 7) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 7], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '01fc17f5-78e4-4d89-8b92-90f2394068a4' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["data", "<19129 bytes of binary data>"], ["file_name", "yhs32.jpg"], ["file_type", "image/jpeg"], ["parent_id", 7], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "01fc17f5-78e4-4d89-8b92-90f2394068a4"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 7], ["parent_type", "Shoppe::Product"]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm2' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm2"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM2"], ["tax_rate", #], ["title", "Snom Wired Headset (MM2)"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm2' AND "shoppe_products"."id" != 8) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 8], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'a8f216d0-e37b-4f14-b96a-584de7522a80' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 8], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "a8f216d0-e37b-4f14-b96a-584de7522a80"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 8], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm3' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm3"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM3"], ["stock", 1], ["tax_rate", #], ["title", "Snom Wired Headset (MM3)"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm3' AND "shoppe_products"."id" != 9) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 9], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'ab73e318-cc36-4fc9-a391-1d5b052235d0' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 9], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "ab73e318-cc36-4fc9-a391-1d5b052235d0"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 9], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-w52p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-w52p"], ["price", #], ["product_category_id", 1], ["short_description", "Wireless SIP phones are hard to come by but this beauty from Yealink is fab."], ["sku", "TL-SIP-W52P"], ["stock", 1], ["tax_rate", #], ["title", "Yealink W52P"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-w52p' AND "shoppe_products"."id" != 10) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 10], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'f02f10aa-baa1-4399-bf4f-4b5a15ff2b8c' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["data", "<102742 bytes of binary data>"], ["file_name", "w52p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 10], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "f02f10aa-baa1-4399-bf4f-4b5a15ff2b8c"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 10], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.1ms) begin transaction Binary data inserted for `string` type on column `password_digest` SQL (0.4ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["email_address", "adam@niftyware.io"], ["first_name", "Adam"], ["last_name", "Cooke"], ["password_digest", "$2a$04$XpLYjpCO453nNozBrr7Pz..WFdv2/3Nli24GSYRy6wwe6GyTXzyhe"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction ---------------------------------------- Shoppe::BasketTest: test_adding_products ----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shoppe_orders" ("created_at", "status", "token", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["status", "building"], ["token", "44b2aa19-4da9-4e6a-b031-a3feb09e2829"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]] Nifty::KeyValueStore::KeyValuePair Load (0.1ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]] Nifty::KeyValueStore::KeyValuePair Load (0.0ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shoppe::OrderItem Load (0.1ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? [["order_id", 1]] Shoppe::Product Load (0.1ms) SELECT "shoppe_products".* FROM "shoppe_products" WHERE "shoppe_products"."sku" = 'YL-SIP-T20P' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Shoppe::OrderItem Load (0.1ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? AND "shoppe_order_items"."product_id" = 1 ORDER BY "shoppe_order_items"."id" ASC LIMIT 1 [["order_id", 1]] SQL (0.4ms) INSERT INTO "shoppe_order_items" ("created_at", "order_id", "product_id", "quantity", "tax_amount", "tax_rate", "unit_price", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["order_id", 1], ["product_id", 1], ["quantity", 0], ["tax_amount", #], ["tax_rate", #], ["unit_price", #], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]] SQL (0.2ms) UPDATE "shoppe_order_items" SET "quantity" = ?, "tax_amount" = ?, "weight" = ?, "updated_at" = ? WHERE "shoppe_order_items"."id" = 1 [["quantity", 1], ["tax_amount", #], ["weight", #], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]] Shoppe::Order Load (0.1ms) SELECT "shoppe_orders".* FROM "shoppe_orders" WHERE "shoppe_orders"."id" = ? ORDER BY "shoppe_orders"."id" ASC LIMIT 1 [["id", 1]] Shoppe::OrderItem Load (0.0ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? [["order_id", 1]] Shoppe::DeliveryServicePrice Load (0.1ms) SELECT "shoppe_delivery_service_prices".* FROM "shoppe_delivery_service_prices" INNER JOIN "shoppe_delivery_services" ON "shoppe_delivery_services"."id" = "shoppe_delivery_service_prices"."delivery_service_id" WHERE "shoppe_delivery_services"."active" = 't' AND (min_weight <= 1.119 AND max_weight >= 1.119) ORDER BY `default` desc, price asc Shoppe::DeliveryService Load (0.1ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 3]] Shoppe::DeliveryService Load (0.1ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 2]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 4]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shoppe::Product Load (0.1ms) SELECT "shoppe_products".* FROM "shoppe_products" WHERE "shoppe_products"."sku" = 'YL-SIP-T22P' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Shoppe::OrderItem Load (0.1ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? AND "shoppe_order_items"."product_id" = 2 ORDER BY "shoppe_order_items"."id" ASC LIMIT 1 [["order_id", 1]] SQL (0.3ms) INSERT INTO "shoppe_order_items" ("created_at", "order_id", "product_id", "quantity", "tax_amount", "tax_rate", "unit_price", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["order_id", 1], ["product_id", 2], ["quantity", 0], ["tax_amount", #], ["tax_rate", #], ["unit_price", #], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]] SQL (0.2ms) UPDATE "shoppe_order_items" SET "quantity" = ?, "tax_amount" = ?, "weight" = ?, "updated_at" = ? WHERE "shoppe_order_items"."id" = 2 [["quantity", 1], ["tax_amount", #], ["weight", #], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]] Shoppe::Order Load (0.1ms) SELECT "shoppe_orders".* FROM "shoppe_orders" WHERE "shoppe_orders"."id" = ? ORDER BY "shoppe_orders"."id" ASC LIMIT 1 [["id", 1]] Shoppe::OrderItem Load (0.0ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? [["order_id", 1]] Shoppe::DeliveryServicePrice Load (0.1ms) SELECT "shoppe_delivery_service_prices".* FROM "shoppe_delivery_service_prices" INNER JOIN "shoppe_delivery_services" ON "shoppe_delivery_services"."id" = "shoppe_delivery_service_prices"."delivery_service_id" WHERE "shoppe_delivery_services"."active" = 't' AND (min_weight <= 2.538 AND max_weight >= 2.538) ORDER BY `default` desc, price asc Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 3]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 2]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 4]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shoppe::Order Load (0.1ms) SELECT "shoppe_orders".* FROM "shoppe_orders" WHERE "shoppe_orders"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- Shoppe::BasketTest: test_initial_status ---------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "shoppe_orders" ("created_at", "status", "token", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["status", "building"], ["token", "e33d7aec-40ad-46de-a383-d5d85ad1c0ff"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]] Nifty::KeyValueStore::KeyValuePair Load (0.1ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]] Nifty::KeyValueStore::KeyValuePair Load (0.0ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------- Shoppe::UserTest: test_authentication ------------------------------------- Shoppe::User Load (0.2ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- Shoppe::UserTest: test_full_name -------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------- Shoppe::UserTest: test_short_name --------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------ Shoppe::UserTest: test_user_creation ------------------------------------ Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Binary data inserted for `string` type on column `password_digest` SQL (0.4ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00], ["email_address", "test@example.com"], ["first_name", "Test"], ["last_name", "User"], ["password_digest", "$2a$04$Z6bCS0OpIGVH.wEb6Acny.7y6UU9t83t7UJHUr6fKQVne/U4Kmc8m"], ["updated_at", Sun, 06 Oct 2013 17:21:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- ShoppeTest: test_configuration_is_loaded ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (3.1ms) CREATE TABLE "shoppe_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "token" varchar(255), "role" varchar(255), "file_name" varchar(255), "file_type" varchar(255), "data" blob(10485760), "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_delivery_service_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "delivery_service_id" integer, "code" varchar(255), "price" decimal(8,2), "tax_rate" decimal(8,2), "min_weight" decimal(8,2), "max_weight" decimal(8,2), "created_at" datetime, "updated_at" datetime)  (1.4ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 'f', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (1.0ms) CREATE TABLE "shoppe_key_value_store" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "group" varchar(255), "name" varchar(255), "value" varchar(255))  (0.8ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))  (0.7ms) CREATE TABLE "shoppe_product_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime)   (0.9ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text)  (0.9ms) CREATE TABLE "shoppe_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email_address" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20131006144849')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094549')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094551')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094647')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094654')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926104450')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926151718')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927113134')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927130022')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927132143')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927150025')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928111819')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928131502')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928134518')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928173818')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928180041')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928185655')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928193023')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928201257')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929151744')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929203421')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130930181344')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002154122')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002155246')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002162301')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131003163827')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004185043')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004193320')  (0.1ms) begin transaction SQL (4.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMFC"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00], ["name", "Royal Mail (1st class)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00]]  (2.6ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00], ["delivery_service_id", 1], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMSF"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00], ["name", "Royal Mail (signed for)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "default", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["code", "ND16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00], ["default", true], ["name", "Next Day Delivery (before 4pm)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NS10"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00], ["name", "Next Day Delivery (before 10am)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NDSA16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00], ["name", "Saturday Delivery"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-phones' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00], ["name", "VoIP Phones"], ["permalink", "voip-phones"], ["updated_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00]]  (2.6ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-accessories' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00], ["name", "VoIP Accessories"], ["permalink", "voip-accessories"], ["updated_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'network-eqipment' LIMIT 1 SQL (0.2ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00], ["name", "Network Eqipment"], ["permalink", "network-eqipment"], ["updated_at", Sun, 06 Oct 2013 17:21:38 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t20p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t20p"], ["price", #], ["product_category_id", 1], ["short_description", "If cheap & cheerful is what you’re after, the Yealink T20P is what you’re looking for."], ["sku", "YL-SIP-T20P"], ["stock", 20], ["tax_rate", #], ["title", "Yealink T20P"], ["updated_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["weight", #]]  (1.0ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t20p' AND "shoppe_products"."id" != 1) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 1], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '781b4268-a916-4414-b72b-b9c26d6ecaa0' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["data", "<127400 bytes of binary data>"], ["file_name", "t20p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 1], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "781b4268-a916-4414-b72b-b9c26d6ecaa0"], ["updated_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 1], ["parent_type", "Shoppe::Product"]]  (1.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t22p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t22p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T22P"], ["stock", 12], ["tax_rate", #], ["title", "Yealink T22P"], ["updated_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t22p' AND "shoppe_products"."id" != 2) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 2], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '1e0a5729-8ea4-4029-8775-342fa94583cb' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["data", "<101139 bytes of binary data>"], ["file_name", "t22p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 2], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "1e0a5729-8ea4-4029-8775-342fa94583cb"], ["updated_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 2], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t26p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t26p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T26P"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T26P"], ["updated_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["weight", #]]  (0.6ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t26p' AND "shoppe_products"."id" != 3) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 3], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.0ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'b6906b55-7b01-4a2b-8032-c551120b4673' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["data", "<67267 bytes of binary data>"], ["file_name", "t26p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 3], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "b6906b55-7b01-4a2b-8032-c551120b4673"], ["updated_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 3], ["parent_type", "Shoppe::Product"]]  (1.4ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t46gn' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t46gn"], ["price", #], ["product_category_id", 1], ["short_description", "Colourful, sharp, fast & down right sexy. The Yealink T46P will make your scream!"], ["sku", "YL-SIP-T46GN"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T46GN"], ["updated_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t46gn' AND "shoppe_products"."id" != 4) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 4], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '01b69595-ddff-4b98-b723-b224c78115e8' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["data", "<197941 bytes of binary data>"], ["file_name", "t46gn.jpg"], ["file_type", "image/jpeg"], ["parent_id", 4], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "01b69595-ddff-4b98-b723-b224c78115e8"], ["updated_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 4], ["parent_type", "Shoppe::Product"]]  (1.6ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-grey' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-870-grey"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-GREY"], ["stock", 2], ["tax_rate", #], ["title", "Snom 870 (Grey)"], ["updated_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-grey' AND "shoppe_products"."id" != 5) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 5], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'a97c3507-b62b-4a12-bcc3-61fda28a5430' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["data", "<105894 bytes of binary data>"], ["file_name", "snom-870-grey.jpg"], ["file_type", "image/jpeg"], ["parent_id", 5], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "a97c3507-b62b-4a12-bcc3-61fda28a5430"], ["updated_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 5], ["parent_type", "Shoppe::Product"]]  (1.4ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-black' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "snom-870-black"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-BLK"], ["tax_rate", #], ["title", "Snom 870 (Black)"], ["updated_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-black' AND "shoppe_products"."id" != 6) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 6], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '577e0bf6-6e99-4c75-8fe0-2bd35a5cdd49' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["data", "<85691 bytes of binary data>"], ["file_name", "snom-870-blk.jpg"], ["file_type", "image/jpeg"], ["parent_id", 6], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "577e0bf6-6e99-4c75-8fe0-2bd35a5cdd49"], ["updated_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 6], ["parent_type", "Shoppe::Product"]]  (1.4ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-mono-headset' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-mono-headset"], ["price", #], ["product_category_id", 2], ["short_description", "If you're often on the phone, this headset will make your life 100x easier. Guaranteed*."], ["sku", "YL-YHS32"], ["stock", 3], ["tax_rate", #], ["title", "Yealink Mono Headset"], ["updated_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-mono-headset' AND "shoppe_products"."id" != 7) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 7], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '54913e84-c7ba-49af-b97c-88da4decfe79' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["data", "<19129 bytes of binary data>"], ["file_name", "yhs32.jpg"], ["file_type", "image/jpeg"], ["parent_id", 7], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "54913e84-c7ba-49af-b97c-88da4decfe79"], ["updated_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 7], ["parent_type", "Shoppe::Product"]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm2' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm2"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM2"], ["tax_rate", #], ["title", "Snom Wired Headset (MM2)"], ["updated_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm2' AND "shoppe_products"."id" != 8) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 8], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '14d679cc-7d35-415b-a7a8-28becb9358e7' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 8], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "14d679cc-7d35-415b-a7a8-28becb9358e7"], ["updated_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 8], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm3' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm3"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM3"], ["stock", 1], ["tax_rate", #], ["title", "Snom Wired Headset (MM3)"], ["updated_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm3' AND "shoppe_products"."id" != 9) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 9], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '34229f8e-4258-4d91-95fe-49df62e48ead' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 9], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "34229f8e-4258-4d91-95fe-49df62e48ead"], ["updated_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 9], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-w52p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-w52p"], ["price", #], ["product_category_id", 1], ["short_description", "Wireless SIP phones are hard to come by but this beauty from Yealink is fab."], ["sku", "TL-SIP-W52P"], ["stock", 1], ["tax_rate", #], ["title", "Yealink W52P"], ["updated_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-w52p' AND "shoppe_products"."id" != 10) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 10], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '38a9587a-4f08-408b-893f-e653c4869106' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["data", "<102742 bytes of binary data>"], ["file_name", "w52p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 10], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "38a9587a-4f08-408b-893f-e653c4869106"], ["updated_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 10], ["parent_type", "Shoppe::Product"]]  (1.4ms) commit transaction  (0.1ms) begin transaction Binary data inserted for `string` type on column `password_digest` SQL (0.5ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["email_address", "adam@niftyware.io"], ["first_name", "Adam"], ["last_name", "Cooke"], ["password_digest", "$2a$04$bw88o4x/OoG59CskQNfx5uFDRGZWS4rLc2pLFh6glyAJ.QfcGlQVG"], ["updated_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction ---------------------------------------- Shoppe::BasketTest: test_adding_products ----------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "shoppe_orders" ("created_at", "status", "token", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["status", "building"], ["token", "e6829552-359d-499a-be6d-dc3cce8e8b75"], ["updated_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00]] Nifty::KeyValueStore::KeyValuePair Load (0.1ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]] Nifty::KeyValueStore::KeyValuePair Load (0.0ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shoppe::OrderItem Load (0.1ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? [["order_id", 1]] Shoppe::Product Load (0.1ms) SELECT "shoppe_products".* FROM "shoppe_products" WHERE "shoppe_products"."sku" = 'YL-SIP-T20P' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Shoppe::OrderItem Load (0.1ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? AND "shoppe_order_items"."product_id" = 1 ORDER BY "shoppe_order_items"."id" ASC LIMIT 1 [["order_id", 1]] SQL (0.5ms) INSERT INTO "shoppe_order_items" ("created_at", "order_id", "product_id", "quantity", "tax_amount", "tax_rate", "unit_price", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["order_id", 1], ["product_id", 1], ["quantity", 0], ["tax_amount", #], ["tax_rate", #], ["unit_price", #], ["updated_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00]] SQL (0.2ms) UPDATE "shoppe_order_items" SET "quantity" = ?, "tax_amount" = ?, "weight" = ?, "updated_at" = ? WHERE "shoppe_order_items"."id" = 1 [["quantity", 1], ["tax_amount", #], ["weight", #], ["updated_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00]] Shoppe::Order Load (0.1ms) SELECT "shoppe_orders".* FROM "shoppe_orders" WHERE "shoppe_orders"."id" = ? ORDER BY "shoppe_orders"."id" ASC LIMIT 1 [["id", 1]] Shoppe::OrderItem Load (0.0ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? [["order_id", 1]] Shoppe::DeliveryServicePrice Load (0.1ms) SELECT "shoppe_delivery_service_prices".* FROM "shoppe_delivery_service_prices" INNER JOIN "shoppe_delivery_services" ON "shoppe_delivery_services"."id" = "shoppe_delivery_service_prices"."delivery_service_id" WHERE "shoppe_delivery_services"."active" = 't' AND (min_weight <= 1.119 AND max_weight >= 1.119) ORDER BY `default` desc, price asc Shoppe::DeliveryService Load (0.1ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 3]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 2]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 4]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shoppe::Product Load (0.1ms) SELECT "shoppe_products".* FROM "shoppe_products" WHERE "shoppe_products"."sku" = 'YL-SIP-T22P' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Shoppe::OrderItem Load (0.1ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? AND "shoppe_order_items"."product_id" = 2 ORDER BY "shoppe_order_items"."id" ASC LIMIT 1 [["order_id", 1]] SQL (0.3ms) INSERT INTO "shoppe_order_items" ("created_at", "order_id", "product_id", "quantity", "tax_amount", "tax_rate", "unit_price", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["order_id", 1], ["product_id", 2], ["quantity", 0], ["tax_amount", #], ["tax_rate", #], ["unit_price", #], ["updated_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00]] SQL (0.1ms) UPDATE "shoppe_order_items" SET "quantity" = ?, "tax_amount" = ?, "weight" = ?, "updated_at" = ? WHERE "shoppe_order_items"."id" = 2 [["quantity", 1], ["tax_amount", #], ["weight", #], ["updated_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00]] Shoppe::Order Load (0.0ms) SELECT "shoppe_orders".* FROM "shoppe_orders" WHERE "shoppe_orders"."id" = ? ORDER BY "shoppe_orders"."id" ASC LIMIT 1 [["id", 1]] Shoppe::OrderItem Load (0.0ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? [["order_id", 1]] Shoppe::DeliveryServicePrice Load (0.1ms) SELECT "shoppe_delivery_service_prices".* FROM "shoppe_delivery_service_prices" INNER JOIN "shoppe_delivery_services" ON "shoppe_delivery_services"."id" = "shoppe_delivery_service_prices"."delivery_service_id" WHERE "shoppe_delivery_services"."active" = 't' AND (min_weight <= 2.538 AND max_weight >= 2.538) ORDER BY `default` desc, price asc Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 3]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 2]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 4]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shoppe::Order Load (0.1ms) SELECT "shoppe_orders".* FROM "shoppe_orders" WHERE "shoppe_orders"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- Shoppe::BasketTest: test_initial_status ---------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "shoppe_orders" ("created_at", "status", "token", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["status", "building"], ["token", "34980c86-ee5b-4059-9a4b-bedd8bb281d7"], ["updated_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00]] Nifty::KeyValueStore::KeyValuePair Load (0.1ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]] Nifty::KeyValueStore::KeyValuePair Load (0.0ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------- Shoppe::UserTest: test_authentication ------------------------------------- Shoppe::User Load (0.2ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------- Shoppe::UserTest: test_full_name -------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------- Shoppe::UserTest: test_short_name --------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ Shoppe::UserTest: test_user_creation ------------------------------------ Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Binary data inserted for `string` type on column `password_digest` SQL (0.4ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00], ["email_address", "test@example.com"], ["first_name", "Test"], ["last_name", "User"], ["password_digest", "$2a$04$AxUIBYCxT9hSCVkDy9eoyuqfyLPfp3e3TcM.ST4T2ULbrG7r1n8aq"], ["updated_at", Sun, 06 Oct 2013 17:21:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- ShoppeTest: test_configuration_is_loaded ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction  (2.6ms) CREATE TABLE "shoppe_attachments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "token" varchar(255), "role" varchar(255), "file_name" varchar(255), "file_type" varchar(255), "data" blob(10485760), "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_delivery_service_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "delivery_service_id" integer, "code" varchar(255), "price" decimal(8,2), "tax_rate" decimal(8,2), "min_weight" decimal(8,2), "max_weight" decimal(8,2), "created_at" datetime, "updated_at" datetime)  (1.5ms) CREATE TABLE "shoppe_delivery_services" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "default" boolean DEFAULT 'f', "active" boolean DEFAULT 't', "created_at" datetime, "updated_at" datetime, "courier" varchar(255), "tracking_url" varchar(255))   (1.0ms) CREATE TABLE "shoppe_key_value_store" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "parent_type" varchar(255), "group" varchar(255), "name" varchar(255), "value" varchar(255))  (0.9ms) CREATE TABLE "shoppe_order_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order_id" integer, "product_id" integer, "quantity" integer DEFAULT 1, "unit_price" decimal(8,2), "tax_amount" decimal(8,2), "tax_rate" decimal(8,2), "weight" decimal(8,3) DEFAULT 0.0, "created_at" datetime, "updated_at" datetime)   (1.0ms) CREATE TABLE "shoppe_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "company" varchar(255), "address1" varchar(255), "address2" varchar(255), "address3" varchar(255), "address4" varchar(255), "postcode" varchar(255), "email_address" varchar(255), "phone_number" varchar(255), "status" varchar(255), "received_at" datetime, "accepted_at" datetime, "shipped_at" datetime, "created_at" datetime, "updated_at" datetime, "delivery_service_id" integer, "delivery_price" decimal(8,2), "delivery_tax_rate" decimal(8,2), "delivery_tax_amount" decimal(8,2), "paid_at" datetime, "accepted_by" integer, "shipped_by" integer, "consignment_number" varchar(255), "rejected_at" datetime, "rejected_by" integer, "ip_address" varchar(255), "country" varchar(255), "payment_reference" varchar(255), "payment_method" varchar(255))  (0.7ms) CREATE TABLE "shoppe_product_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "permalink" varchar(255), "description" text, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE TABLE "shoppe_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "product_category_id" integer, "title" varchar(255), "sku" varchar(255), "permalink" varchar(255), "description" text, "short_description" text, "active" boolean DEFAULT 't', "weight" decimal(8,3) DEFAULT 0.0, "price" decimal(8,2) DEFAULT 0.0, "tax_rate" decimal(8,2) DEFAULT 0.0, "stock" integer DEFAULT 0, "created_at" datetime, "updated_at" datetime, "featured" boolean DEFAULT 'f', "in_the_box" text)  (0.7ms) CREATE TABLE "shoppe_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar(255), "last_name" varchar(255), "email_address" varchar(255), "password_digest" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131006144849')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094549')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094551')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094647')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926094654')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926104450')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130926151718')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927113134')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927130022')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927132143')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130927150025')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928111819')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928131502')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928134518')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928173818')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928180041')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928185655')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928193023')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130928201257')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929151744')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130929203421')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130930181344')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002154122')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002155246')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131002162301')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131003163827')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004185043')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20131004193320')  (0.1ms) begin transaction SQL (4.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMFC"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["name", "Royal Mail (1st class)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]]  (2.6ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["delivery_service_id", 1], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "RMSF"], ["courier", "Royal Mail"], ["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["name", "Royal Mail (signed for)"], ["tracking_url", "http://royalmail.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["delivery_service_id", 2], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]]  (0.9ms) commit transaction  (0.4ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "default", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["code", "ND16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["default", true], ["name", "Next Day Delivery (before 4pm)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]]  (1.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["delivery_service_id", 3], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NS10"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["name", "Next Day Delivery (before 10am)"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["delivery_service_id", 4], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_services" ("code", "courier", "created_at", "name", "tracking_url", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "NDSA16"], ["courier", "UPS"], ["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["name", "Saturday Delivery"], ["tracking_url", "http://trackingurl.com/track/{{consignment_number}}"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "shoppe_delivery_service_prices" ("created_at", "delivery_service_id", "max_weight", "min_weight", "price", "tax_rate", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["delivery_service_id", 5], ["max_weight", #], ["min_weight", #], ["price", #], ["tax_rate", #], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.2ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-phones' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["name", "VoIP Phones"], ["permalink", "voip-phones"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]]  (2.6ms) commit transaction  (0.1ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'voip-accessories' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["name", "VoIP Accessories"], ["permalink", "voip-accessories"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::ProductCategory Exists (0.1ms) SELECT 1 AS one FROM "shoppe_product_categories" WHERE "shoppe_product_categories"."permalink" = 'network-eqipment' LIMIT 1 SQL (0.2ms) INSERT INTO "shoppe_product_categories" ("created_at", "name", "permalink", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["name", "Network Eqipment"], ["permalink", "network-eqipment"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t20p' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t20p"], ["price", #], ["product_category_id", 1], ["short_description", "If cheap & cheerful is what you’re after, the Yealink T20P is what you’re looking for."], ["sku", "YL-SIP-T20P"], ["stock", 20], ["tax_rate", #], ["title", "Yealink T20P"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["weight", #]]  (1.0ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t20p' AND "shoppe_products"."id" != 1) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 1], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'bf96d222-8c45-459d-ad93-b79485819a0b' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["data", "<127400 bytes of binary data>"], ["file_name", "t20p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 1], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "bf96d222-8c45-459d-ad93-b79485819a0b"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 1], ["parent_type", "Shoppe::Product"]]  (2.7ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t22p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t22p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T22P"], ["stock", 12], ["tax_rate", #], ["title", "Yealink T22P"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t22p' AND "shoppe_products"."id" != 2) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 2], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'b9b2f0bf-0dcc-48e9-9555-f1408b18dff5' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["data", "<101139 bytes of binary data>"], ["file_name", "t22p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 2], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "b9b2f0bf-0dcc-48e9-9555-f1408b18dff5"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 2], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t26p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "yealink-t26p"], ["price", #], ["product_category_id", 1], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "YL-SIP-T26P"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T26P"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t26p' AND "shoppe_products"."id" != 3) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 3], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'c241cc4a-946d-4978-9fad-98d73707c293' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["data", "<67267 bytes of binary data>"], ["file_name", "t26p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 3], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "c241cc4a-946d-4978-9fad-98d73707c293"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]] Shoppe::Attachment Load (0.1ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 3], ["parent_type", "Shoppe::Product"]]  (1.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-t46gn' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-t46gn"], ["price", #], ["product_category_id", 1], ["short_description", "Colourful, sharp, fast & down right sexy. The Yealink T46P will make your scream!"], ["sku", "YL-SIP-T46GN"], ["stock", 5], ["tax_rate", #], ["title", "Yealink T46GN"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-t46gn' AND "shoppe_products"."id" != 4) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 4], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '5e29a1fe-bcdb-484f-a00f-0fd6aaea206c' LIMIT 1 SQL (0.6ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["data", "<197941 bytes of binary data>"], ["file_name", "t46gn.jpg"], ["file_type", "image/jpeg"], ["parent_id", 4], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "5e29a1fe-bcdb-484f-a00f-0fd6aaea206c"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 4], ["parent_type", "Shoppe::Product"]]  (1.7ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-grey' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-870-grey"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-GREY"], ["stock", 2], ["tax_rate", #], ["title", "Snom 870 (Grey)"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["weight", #]]  (1.0ms) commit transaction  (0.1ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-grey' AND "shoppe_products"."id" != 5) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 5], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '9e067a1d-dc7b-4449-b9e2-dc6688c8a38a' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["data", "<105894 bytes of binary data>"], ["file_name", "snom-870-grey.jpg"], ["file_type", "image/jpeg"], ["parent_id", 5], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "9e067a1d-dc7b-4449-b9e2-dc6688c8a38a"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 5], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-870-black' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "snom-870-black"], ["price", #], ["product_category_id", 1], ["short_description", "The perfect & beautiful VoIP phone for the discerning professional desk."], ["sku", "SM-870-BLK"], ["tax_rate", #], ["title", "Snom 870 (Black)"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-870-black' AND "shoppe_products"."id" != 6) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 6], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = 'fdce6cb7-df30-4503-9983-2bb6dd6eeacc' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["data", "<85691 bytes of binary data>"], ["file_name", "snom-870-blk.jpg"], ["file_type", "image/jpeg"], ["parent_id", 6], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "fdce6cb7-df30-4503-9983-2bb6dd6eeacc"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 6], ["parent_type", "Shoppe::Product"]]  (1.2ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-mono-headset' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-mono-headset"], ["price", #], ["product_category_id", 2], ["short_description", "If you're often on the phone, this headset will make your life 100x easier. Guaranteed*."], ["sku", "YL-YHS32"], ["stock", 3], ["tax_rate", #], ["title", "Yealink Mono Headset"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-mono-headset' AND "shoppe_products"."id" != 7) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 7], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '4c21a062-2916-4f6f-af32-c7b26be7ab8b' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["data", "<19129 bytes of binary data>"], ["file_name", "yhs32.jpg"], ["file_type", "image/jpeg"], ["parent_id", 7], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "4c21a062-2916-4f6f-af32-c7b26be7ab8b"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 7], ["parent_type", "Shoppe::Product"]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm2' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm2"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM2"], ["tax_rate", #], ["title", "Snom Wired Headset (MM2)"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm2' AND "shoppe_products"."id" != 8) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 8], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '387ac1cd-b380-4805-8ab0-503295fd046d' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 8], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "387ac1cd-b380-4805-8ab0-503295fd046d"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 8], ["parent_type", "Shoppe::Product"]]  (1.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'snom-wired-headset-mm3' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["permalink", "snom-wired-headset-mm3"], ["price", #], ["product_category_id", 2], ["short_description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["sku", "SM-MM3"], ["stock", 1], ["tax_rate", #], ["title", "Snom Wired Headset (MM3)"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["weight", #]]  (0.8ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'snom-wired-headset-mm3' AND "shoppe_products"."id" != 9) LIMIT 1  (0.1ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 9], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '49f224cb-53a5-493d-9dd3-b7386252d467' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["data", "<74040 bytes of binary data>"], ["file_name", "snom-mm2.jpg"], ["file_type", "image/jpeg"], ["parent_id", 9], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "49f224cb-53a5-493d-9dd3-b7386252d467"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 9], ["parent_type", "Shoppe::Product"]]  (1.1ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE "shoppe_products"."permalink" = 'yealink-w52p' LIMIT 1 SQL (0.3ms) INSERT INTO "shoppe_products" ("created_at", "description", "featured", "permalink", "price", "product_category_id", "short_description", "sku", "stock", "tax_rate", "title", "updated_at", "weight") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["description", "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."], ["featured", true], ["permalink", "yealink-w52p"], ["price", #], ["product_category_id", 1], ["short_description", "Wireless SIP phones are hard to come by but this beauty from Yealink is fab."], ["sku", "TL-SIP-W52P"], ["stock", 1], ["tax_rate", #], ["title", "Yealink W52P"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["weight", #]]  (0.9ms) commit transaction  (0.0ms) begin transaction Shoppe::Product Exists (0.1ms) SELECT 1 AS one FROM "shoppe_products" WHERE ("shoppe_products"."permalink" = 'yealink-w52p' AND "shoppe_products"."id" != 10) LIMIT 1  (0.0ms) SELECT "shoppe_attachments"."id" FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND "shoppe_attachments"."role" = 'default_image' [["parent_id", 10], ["parent_type", "Shoppe::Product"]] Shoppe::Attachment Exists (0.1ms) SELECT 1 AS one FROM "shoppe_attachments" WHERE "shoppe_attachments"."token" = '5614d456-dd04-40cf-bda7-7f4cd3157046' LIMIT 1 SQL (0.4ms) INSERT INTO "shoppe_attachments" ("created_at", "data", "file_name", "file_type", "parent_id", "parent_type", "role", "token", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["data", "<102742 bytes of binary data>"], ["file_name", "w52p.jpg"], ["file_type", "image/jpeg"], ["parent_id", 10], ["parent_type", "Shoppe::Product"], ["role", :default_image], ["token", "5614d456-dd04-40cf-bda7-7f4cd3157046"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]] Shoppe::Attachment Load (0.0ms) SELECT "shoppe_attachments".* FROM "shoppe_attachments" WHERE "shoppe_attachments"."parent_id" = ? AND "shoppe_attachments"."parent_type" = ? AND 1=0 [["parent_id", 10], ["parent_type", "Shoppe::Product"]]  (1.3ms) commit transaction  (0.1ms) begin transaction Binary data inserted for `string` type on column `password_digest` SQL (0.4ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["email_address", "adam@niftyware.io"], ["first_name", "Adam"], ["last_name", "Cooke"], ["password_digest", "$2a$04$Kl776UT6w3K4uA5j15TkteAoR1JzepZHHYfoVrx8NB9pT0EwHiUru"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction ---------------------------------------- Shoppe::BasketTest: test_adding_products ----------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "shoppe_orders" ("created_at", "status", "token", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["status", "building"], ["token", "b7815ad8-6b93-4a7e-b4a1-17b2e17b2611"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]] Nifty::KeyValueStore::KeyValuePair Load (0.1ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]] Nifty::KeyValueStore::KeyValuePair Load (0.0ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shoppe::Product Load (0.1ms) SELECT "shoppe_products".* FROM "shoppe_products" WHERE "shoppe_products"."sku" = 'YL-SIP-T20P' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Shoppe::OrderItem Load (0.1ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? AND "shoppe_order_items"."product_id" = 1 ORDER BY "shoppe_order_items"."id" ASC LIMIT 1 [["order_id", 1]] SQL (0.4ms) INSERT INTO "shoppe_order_items" ("created_at", "order_id", "product_id", "quantity", "tax_amount", "tax_rate", "unit_price", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["order_id", 1], ["product_id", 1], ["quantity", 0], ["tax_amount", #], ["tax_rate", #], ["unit_price", #], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]] SQL (0.2ms) UPDATE "shoppe_order_items" SET "quantity" = ?, "tax_amount" = ?, "weight" = ?, "updated_at" = ? WHERE "shoppe_order_items"."id" = 1 [["quantity", 1], ["tax_amount", #], ["weight", #], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]] Shoppe::Order Load (0.1ms) SELECT "shoppe_orders".* FROM "shoppe_orders" WHERE "shoppe_orders"."id" = ? ORDER BY "shoppe_orders"."id" ASC LIMIT 1 [["id", 1]] Shoppe::OrderItem Load (0.1ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? [["order_id", 1]] Shoppe::DeliveryServicePrice Load (0.1ms) SELECT "shoppe_delivery_service_prices".* FROM "shoppe_delivery_service_prices" INNER JOIN "shoppe_delivery_services" ON "shoppe_delivery_services"."id" = "shoppe_delivery_service_prices"."delivery_service_id" WHERE "shoppe_delivery_services"."active" = 't' AND (min_weight <= 1.119 AND max_weight >= 1.119) ORDER BY `default` desc, price asc Shoppe::DeliveryService Load (0.1ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 3]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 2]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 4]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shoppe::Product Load (0.1ms) SELECT "shoppe_products".* FROM "shoppe_products" WHERE "shoppe_products"."sku" = 'YL-SIP-T22P' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Shoppe::OrderItem Load (0.1ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? AND "shoppe_order_items"."product_id" = 2 ORDER BY "shoppe_order_items"."id" ASC LIMIT 1 [["order_id", 1]] SQL (0.3ms) INSERT INTO "shoppe_order_items" ("created_at", "order_id", "product_id", "quantity", "tax_amount", "tax_rate", "unit_price", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["order_id", 1], ["product_id", 2], ["quantity", 0], ["tax_amount", #], ["tax_rate", #], ["unit_price", #], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]] SQL (0.2ms) UPDATE "shoppe_order_items" SET "quantity" = ?, "tax_amount" = ?, "weight" = ?, "updated_at" = ? WHERE "shoppe_order_items"."id" = 2 [["quantity", 1], ["tax_amount", #], ["weight", #], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]] Shoppe::Order Load (0.1ms) SELECT "shoppe_orders".* FROM "shoppe_orders" WHERE "shoppe_orders"."id" = ? ORDER BY "shoppe_orders"."id" ASC LIMIT 1 [["id", 1]] Shoppe::OrderItem Load (0.0ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? [["order_id", 1]] Shoppe::DeliveryServicePrice Load (0.1ms) SELECT "shoppe_delivery_service_prices".* FROM "shoppe_delivery_service_prices" INNER JOIN "shoppe_delivery_services" ON "shoppe_delivery_services"."id" = "shoppe_delivery_service_prices"."delivery_service_id" WHERE "shoppe_delivery_services"."active" = 't' AND (min_weight <= 2.538 AND max_weight >= 2.538) ORDER BY `default` desc, price asc Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 3]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 2]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 4]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shoppe::OrderItem Load (0.0ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? [["order_id", 1]] Shoppe::Order Load (0.1ms) SELECT "shoppe_orders".* FROM "shoppe_orders" WHERE "shoppe_orders"."id" = ? LIMIT 1 [["id", 1]] Shoppe::Product Load (0.1ms) SELECT "shoppe_products".* FROM "shoppe_products" WHERE "shoppe_products"."sku" = 'YL-SIP-T22P' LIMIT 1  (0.0ms) SAVEPOINT active_record_1 Shoppe::OrderItem Load (0.0ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? AND "shoppe_order_items"."product_id" = 2 ORDER BY "shoppe_order_items"."id" ASC LIMIT 1 [["order_id", 1]] Shoppe::Product Load (0.2ms) SELECT "shoppe_products".* FROM "shoppe_products" WHERE "shoppe_products"."id" = ? ORDER BY "shoppe_products"."id" ASC LIMIT 1 [["id", 2]] SQL (0.2ms) UPDATE "shoppe_order_items" SET "quantity" = ?, "tax_amount" = ?, "weight" = ?, "updated_at" = ? WHERE "shoppe_order_items"."id" = 2 [["quantity", 2], ["tax_amount", #], ["weight", #], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]] Shoppe::Order Load (0.1ms) SELECT "shoppe_orders".* FROM "shoppe_orders" WHERE "shoppe_orders"."id" = ? ORDER BY "shoppe_orders"."id" ASC LIMIT 1 [["id", 1]] Shoppe::OrderItem Load (0.1ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? [["order_id", 1]] Shoppe::DeliveryServicePrice Load (0.1ms) SELECT "shoppe_delivery_service_prices".* FROM "shoppe_delivery_service_prices" INNER JOIN "shoppe_delivery_services" ON "shoppe_delivery_services"."id" = "shoppe_delivery_service_prices"."delivery_service_id" WHERE "shoppe_delivery_services"."active" = 't' AND (min_weight <= 3.957 AND max_weight >= 3.957) ORDER BY `default` desc, price asc Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 3]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 2]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 4]] Shoppe::DeliveryService Load (0.0ms) SELECT "shoppe_delivery_services".* FROM "shoppe_delivery_services" WHERE "shoppe_delivery_services"."id" = ? ORDER BY "shoppe_delivery_services"."id" ASC LIMIT 1 [["id", 5]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Shoppe::BasketTest: test_basket_has_no_items_by_default -------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "shoppe_orders" ("created_at", "status", "token", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["status", "building"], ["token", "732afc0d-29ba-478e-996d-f2889a41a1bd"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]] Nifty::KeyValueStore::KeyValuePair Load (0.1ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]] Nifty::KeyValueStore::KeyValuePair Load (0.0ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Shoppe::OrderItem Load (0.0ms) SELECT "shoppe_order_items".* FROM "shoppe_order_items" WHERE "shoppe_order_items"."order_id" = ? [["order_id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- Shoppe::BasketTest: test_initial_status ---------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "shoppe_orders" ("created_at", "status", "token", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["status", "building"], ["token", "ced2d217-a09b-4b1c-ad52-d31029bafe4b"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]] Nifty::KeyValueStore::KeyValuePair Load (0.0ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]] Nifty::KeyValueStore::KeyValuePair Load (0.0ms) SELECT "shoppe_key_value_store".* FROM "shoppe_key_value_store" WHERE "shoppe_key_value_store"."parent_id" = ? AND "shoppe_key_value_store"."parent_type" = ? AND "shoppe_key_value_store"."group" = 'properties' [["parent_id", 1], ["parent_type", "Shoppe::Order"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------- Shoppe::UserTest: test_authentication ------------------------------------- Shoppe::User Load (0.2ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1 Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" WHERE "shoppe_users"."email_address" = 'adam@niftyware.io' ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------- Shoppe::UserTest: test_full_name -------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------- Shoppe::UserTest: test_short_name --------------------------------- Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------ Shoppe::UserTest: test_user_creation ------------------------------------ Shoppe::User Load (0.1ms) SELECT "shoppe_users".* FROM "shoppe_users" ORDER BY "shoppe_users"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Binary data inserted for `string` type on column `password_digest` SQL (0.4ms) INSERT INTO "shoppe_users" ("created_at", "email_address", "first_name", "last_name", "password_digest", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00], ["email_address", "test@example.com"], ["first_name", "Test"], ["last_name", "User"], ["password_digest", "$2a$04$sByJAWbFB/S/4pxmOvURWujcva3w7F/w6lYMBc6MlKrp6oU7YR8ga"], ["updated_at", Sun, 06 Oct 2013 17:22:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- ShoppeTest: test_configuration_is_loaded ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------- ShoppeTest: test_root_path_is_set ---------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- ShoppeTest: test_truth ----------------------  (0.0ms) rollback transaction