(0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (100.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)  (107.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateSpreePurchaseOrders (20160111123141)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "spree_purchase_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "po_number" varchar, "organization_name" varchar, "created_at" datetime, "updated_at" datetime) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160111123141"]]  (91.8ms) commit transaction Migrating to AddPaymentMethodIdToSpreePurchaseOrders (20161214190805)  (0.1ms) begin transaction  (0.8ms) ALTER TABLE "spree_purchase_orders" ADD "payment_method_id" integer  (0.2ms) select sqlite_version(*)  (0.4ms) CREATE INDEX "index_spree_purchase_orders_on_payment_method_id" ON "spree_purchase_orders" ("payment_method_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20161214190805"]]  (93.6ms) commit transaction Migrating to AddUserIdToSpreePurchaseOrders (20161214191512)  (0.3ms) begin transaction  (0.8ms) ALTER TABLE "spree_purchase_orders" ADD "user_id" integer  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_purchase_orders_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_purchase_orders_on_payment_method_id' AND type='index'   (0.4ms) CREATE INDEX "index_spree_purchase_orders_on_user_id" ON "spree_purchase_orders" ("user_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20161214191512"]]  (103.0ms) commit transaction Migrating to AddSpreePayments (20180516191512) ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateSpreePayments (20180516191512)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "spree_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" decimal(10,2) DEFAULT 0.0 NOT NULL, "order_id" integer, "source_type" varchar, "source_id" integer, "payment_method_id" integer, "state" varchar, "response_code" varchar, "avs_response" varchar, "number" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) select sqlite_version(*)  (0.2ms) CREATE INDEX "index_spree_payments_on_order_id" ON "spree_payments" ("order_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_payments_on_payment_method_id" ON "spree_payments" ("payment_method_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.1ms) CREATE INDEX "index_spree_payments_on_number" ON "spree_payments" ("number")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_number' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.1ms) CREATE INDEX "index_spree_payments_on_source_id_and_source_type" ON "spree_payments" ("source_id", "source_type") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191512"]]  (121.3ms) commit transaction ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-05-16 17:53:38.142184"], ["updated_at", "2018-05-16 17:53:38.142184"]]  (70.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_purchase_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_purchase_orders_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_purchase_orders_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_purchase_orders_on_payment_method_id' AND type='index'  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateSpreePayments (20180516191512)  (0.1ms) begin transaction  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_number' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_number' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.3ms) DROP INDEX "index_spree_payments_on_source_id_and_source_type"  (0.4ms) DROP TABLE "spree_payments" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20180516191512"]]  (300.0ms) commit transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_purchase_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_purchase_orders_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_purchase_orders_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_purchase_orders_on_payment_method_id' AND type='index'  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateSpreePayments (20180516191512)  (0.1ms) begin transaction  (0.6ms) CREATE TABLE "spree_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" decimal(10,2) DEFAULT 0.0 NOT NULL, "order_id" integer, "source_type" varchar, "source_id" integer, "payment_method_id" integer, "state" varchar, "response_code" varchar, "avs_response" varchar, "number" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) select sqlite_version(*)  (0.2ms) CREATE INDEX "index_spree_payments_on_order_id" ON "spree_payments" ("order_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_payments_on_payment_method_id" ON "spree_payments" ("payment_method_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_payments_on_number" ON "spree_payments" ("number")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_number' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_payments_on_source_id_and_source_type" ON "spree_payments" ("source_id", "source_type") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191512"]]  (91.0ms) commit transaction ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.1ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_number' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_purchase_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_purchase_orders_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_purchase_orders_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_purchase_orders_on_payment_method_id' AND type='index'   (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_purchase_orders" ("po_number", "organization_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["po_number", "PO-123"], ["organization_name", "Spree Commerce"], ["created_at", "2018-05-16 17:56:35.790420"], ["updated_at", "2018-05-16 17:56:35.790420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateSpreePaymentMethods (20180516195531) ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateSpreePaymentMethods (20180516195531)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "spree_payment_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "name" varchar, "description" text, "active" boolean DEFAULT 't', "environment" varchar DEFAULT 'development', "deleted_at" datetime, "display_on" varchar DEFAULT 'both', "auto_capture" boolean, "preferences" text, "position" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) select sqlite_version(*)  (0.2ms) CREATE INDEX "index_spree_payment_methods_on_id_and_type" ON "spree_payment_methods" ("id", "type") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516195531"]]  (124.0ms) commit transaction ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.1ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payment_methods_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payment_methods_on_id_and_type' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_number' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_purchase_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_purchase_orders_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_purchase_orders_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_purchase_orders_on_payment_method_id' AND type='index'   (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]] SQL (0.4ms) INSERT INTO "spree_payment_methods" ("type", "name", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["position", 1], ["created_at", "2018-05-16 18:02:21.612849"], ["updated_at", "2018-05-16 18:02:21.612849"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_purchase_orders" ("po_number", "organization_name", "created_at", "updated_at", "payment_method_id") VALUES (?, ?, ?, ?, ?) [["po_number", "PO-123"], ["organization_name", "Spree Commerce"], ["created_at", "2018-05-16 18:02:21.626752"], ["updated_at", "2018-05-16 18:02:21.626752"], ["payment_method_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]] SQL (0.2ms) INSERT INTO "spree_payment_methods" ("type", "name", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["position", 2], ["created_at", "2018-05-16 18:02:21.632630"], ["updated_at", "2018-05-16 18:02:21.632630"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]] SQL (0.3ms) INSERT INTO "spree_payment_methods" ("type", "name", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["position", 1], ["created_at", "2018-05-16 18:02:21.646609"], ["updated_at", "2018-05-16 18:02:21.646609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_purchase_orders" ("po_number", "organization_name", "created_at", "updated_at", "payment_method_id") VALUES (?, ?, ?, ?, ?) [["po_number", "PO-123"], ["organization_name", "Spree Commerce"], ["created_at", "2018-05-16 18:02:21.650951"], ["updated_at", "2018-05-16 18:02:21.650951"], ["payment_method_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]] SQL (0.2ms) INSERT INTO "spree_payment_methods" ("type", "name", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["position", 2], ["created_at", "2018-05-16 18:02:21.655410"], ["updated_at", "2018-05-16 18:02:21.655410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]] SQL (0.3ms) INSERT INTO "spree_payment_methods" ("type", "name", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["position", 1], ["created_at", "2018-05-16 18:02:21.677499"], ["updated_at", "2018-05-16 18:02:21.677499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "spree_purchase_orders" ("po_number", "organization_name", "created_at", "updated_at", "payment_method_id") VALUES (?, ?, ?, ?, ?) [["po_number", "PO-123"], ["organization_name", "Spree Commerce"], ["created_at", "2018-05-16 18:02:21.682066"], ["updated_at", "2018-05-16 18:02:21.682066"], ["payment_method_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::PaymentMethod Load (0.2ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]] SQL (0.2ms) INSERT INTO "spree_payment_methods" ("type", "name", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["position", 2], ["created_at", "2018-05-16 18:02:21.686216"], ["updated_at", "2018-05-16 18:02:21.686216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_purchase_orders" ("po_number", "organization_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["po_number", "PO-123"], ["organization_name", "Spree Commerce"], ["created_at", "2018-05-16 18:02:21.693560"], ["updated_at", "2018-05-16 18:02:21.693560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateSpreePaymentMethods (20180516195531)  (0.1ms) begin transaction  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payment_methods_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payment_methods_on_id_and_type' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payment_methods_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payment_methods_on_id_and_type' AND type='index'   (0.3ms) DROP INDEX "index_spree_payment_methods_on_id_and_type"  (0.2ms) DROP TABLE "spree_payment_methods" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20180516195531"]]  (390.6ms) commit transaction Migrating to CreateSpreePayments (20180516191512)  (0.2ms) begin transaction  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.5ms) DROP INDEX "index_spree_payments_on_source_id_and_source_type"  (0.6ms) DROP TABLE "spree_payments" SQL (0.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20180516191512"]]  (74.5ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_purchase_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_purchase_orders_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_purchase_orders_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_purchase_orders_on_payment_method_id' AND type='index'  ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to SpreeOneTwo (20180516181839)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "spree_activators" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "description" varchar, "expires_at" datetime, "starts_at" datetime, "name" varchar, "event_name" varchar, "type" varchar, "usage_limit" integer, "match_policy" varchar DEFAULT 'all', "code" varchar, "advertise" boolean DEFAULT 'f', "path" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.4ms) CREATE TABLE "spree_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "firstname" varchar, "lastname" varchar, "address1" varchar, "address2" varchar, "city" varchar, "zipcode" varchar, "phone" varchar, "state_name" varchar, "alternative_phone" varchar, "company" varchar, "state_id" integer, "country_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) select sqlite_version(*)  (0.2ms) CREATE INDEX "index_addresses_on_firstname" ON "spree_addresses" ("firstname")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_addresses_on_firstname' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_firstname' AND type='index'   (0.2ms) CREATE INDEX "index_addresses_on_lastname" ON "spree_addresses" ("lastname")  (0.3ms) CREATE TABLE "spree_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "source_type" varchar, "source_id" integer, "adjustable_type" varchar, "adjustable_id" integer, "originator_type" varchar, "originator_id" integer, "amount" decimal(8,2), "label" varchar, "mandatory" boolean, "locked" boolean, "eligible" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE INDEX "index_adjustments_on_order_id" ON "spree_adjustments" ("adjustable_id")  (0.2ms) CREATE TABLE "spree_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "viewable_type" varchar, "viewable_id" integer, "attachment_width" integer, "attachment_height" integer, "attachment_file_size" integer, "position" integer, "attachment_content_type" varchar, "attachment_file_name" varchar, "type" varchar(75), "attachment_updated_at" datetime, "alt" text)  (0.2ms) CREATE INDEX "index_assets_on_viewable_id" ON "spree_assets" ("viewable_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_assets_on_viewable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_assets_on_viewable_id' AND type='index'   (0.1ms) CREATE INDEX "index_assets_on_viewable_type_and_type" ON "spree_assets" ("viewable_type", "type")  (0.2ms) CREATE TABLE "spree_calculators" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "calculable_type" varchar, "calculable_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "type" varchar(50), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE INDEX "index_spree_configurations_on_name_and_type" ON "spree_configurations" ("name", "type")  (0.2ms) CREATE TABLE "spree_countries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "iso_name" varchar, "iso" varchar, "iso3" varchar, "name" varchar, "numcode" integer)  (0.2ms) CREATE TABLE "spree_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "month" varchar, "year" varchar, "cc_type" varchar, "last_digits" varchar, "first_name" varchar, "last_name" varchar, "start_month" varchar, "start_year" varchar, "issue_number" varchar, "address_id" integer, "gateway_customer_profile_id" varchar, "gateway_payment_profile_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_gateways" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "name" varchar, "description" text, "active" boolean DEFAULT 't', "environment" varchar DEFAULT 'development', "server" varchar DEFAULT 'test', "test_mode" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.5ms) CREATE TABLE "spree_inventory_units" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "lock_version" integer DEFAULT 0, "state" varchar, "variant_id" integer, "order_id" integer, "shipment_id" integer, "return_authorization_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.4ms) CREATE INDEX "index_inventory_units_on_order_id" ON "spree_inventory_units" ("order_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_order_id' AND type='index'   (0.4ms) CREATE INDEX "index_inventory_units_on_shipment_id" ON "spree_inventory_units" ("shipment_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_shipment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_shipment_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_order_id' AND type='index'   (0.4ms) CREATE INDEX "index_inventory_units_on_variant_id" ON "spree_inventory_units" ("variant_id")  (0.4ms) CREATE TABLE "spree_line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer, "order_id" integer, "quantity" integer NOT NULL, "price" decimal(8,2) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE INDEX "index_spree_line_items_on_order_id" ON "spree_line_items" ("order_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_line_items_on_variant_id" ON "spree_line_items" ("variant_id")  (0.3ms) CREATE TABLE "spree_log_entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "source_type" varchar, "source_id" integer, "details" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_mail_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "environment" varchar, "active" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_option_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(100), "presentation" varchar(100), "position" integer DEFAULT 0 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_option_types_prototypes" ("prototype_id" integer, "option_type_id" integer)  (0.2ms) CREATE TABLE "spree_option_values" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "position" integer, "name" varchar, "presentation" varchar, "option_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_option_values_variants" ("variant_id" integer, "option_value_id" integer)  (0.2ms) CREATE INDEX "index_option_values_variants_on_variant_id_and_option_value_id" ON "spree_option_values_variants" ("variant_id", "option_value_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_option_values_variants_on_variant_id" ON "spree_option_values_variants" ("variant_id")  (0.2ms) CREATE TABLE "spree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(15), "item_total" decimal(8,2) DEFAULT 0.0 NOT NULL, "total" decimal(8,2) DEFAULT 0.0 NOT NULL, "state" varchar, "adjustment_total" decimal(8,2) DEFAULT 0.0 NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(8,2) DEFAULT 0.0, "shipping_method_id" integer, "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE INDEX "index_spree_orders_on_number" ON "spree_orders" ("number")  (0.2ms) CREATE TABLE "spree_payment_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "name" varchar, "description" text, "active" boolean DEFAULT 't', "environment" varchar DEFAULT 'development', "deleted_at" datetime, "display_on" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" decimal(8,2) DEFAULT 0.0 NOT NULL, "order_id" integer, "source_type" varchar, "source_id" integer, "payment_method_id" integer, "state" varchar, "response_code" varchar, "avs_response" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_preferences" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(100), "owner_type" varchar, "owner_id" integer, "value" text, "key" varchar, "value_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (11.7ms) CREATE UNIQUE INDEX "index_spree_preferences_on_key" ON "spree_preferences" ("key")  (0.3ms) CREATE TABLE "spree_product_option_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "position" integer, "product_id" integer, "option_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.3ms) CREATE TABLE "spree_product_properties" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "value" varchar, "product_id" integer, "property_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.3ms) CREATE INDEX "index_product_properties_on_product_id" ON "spree_product_properties" ("product_id")  (0.4ms) CREATE TABLE "spree_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar DEFAULT '' NOT NULL, "description" text, "available_on" datetime, "deleted_at" datetime, "permalink" varchar, "meta_description" varchar, "meta_keywords" varchar, "tax_category_id" integer, "shipping_category_id" integer, "count_on_hand" integer DEFAULT 0 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.3ms) CREATE INDEX "index_spree_products_on_available_on" ON "spree_products" ("available_on")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.3ms) CREATE INDEX "index_spree_products_on_deleted_at" ON "spree_products" ("deleted_at")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_name" ON "spree_products" ("name")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_permalink" ON "spree_products" ("permalink")  (0.2ms) CREATE TABLE "spree_products_taxons" ("product_id" integer, "taxon_id" integer)  (0.2ms) CREATE INDEX "index_spree_products_taxons_on_product_id" ON "spree_products_taxons" ("product_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_taxons_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_taxons_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_taxons_on_taxon_id" ON "spree_products_taxons" ("taxon_id")  (0.2ms) CREATE TABLE "spree_properties" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "presentation" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_properties_prototypes" ("prototype_id" integer, "property_id" integer)  (0.2ms) CREATE TABLE "spree_prototypes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_return_authorizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "state" varchar, "amount" decimal(8,2) DEFAULT 0.0 NOT NULL, "order_id" integer, "reason" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (0.2ms) CREATE TABLE "spree_roles_users" ("role_id" integer, "user_id" integer)  (0.2ms) CREATE INDEX "index_spree_roles_users_on_role_id" ON "spree_roles_users" ("role_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_roles_users_on_role_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_roles_users_on_role_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_roles_users_on_user_id" ON "spree_roles_users" ("user_id")  (0.4ms) CREATE TABLE "spree_shipments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tracking" varchar, "number" varchar, "cost" decimal(8,2), "shipped_at" datetime, "order_id" integer, "shipping_method_id" integer, "address_id" integer, "state" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE INDEX "index_shipments_on_number" ON "spree_shipments" ("number")  (0.2ms) CREATE TABLE "spree_shipping_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_shipping_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "zone_id" integer, "display_on" varchar, "shipping_category_id" integer, "match_none" boolean, "match_all" boolean, "match_one" boolean, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_state_changes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "previous_state" varchar, "stateful_id" integer, "user_id" integer, "stateful_type" varchar, "next_state" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_states" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "abbr" varchar, "country_id" integer)  (0.2ms) CREATE TABLE "spree_tax_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" varchar, "is_default" boolean DEFAULT 'f', "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_tax_rates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" decimal(8,5), "zone_id" integer, "tax_category_id" integer, "included_in_price" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_taxonomies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_taxons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "position" integer DEFAULT 0, "name" varchar NOT NULL, "permalink" varchar, "taxonomy_id" integer, "lft" integer, "rgt" integer, "icon_file_name" varchar, "icon_content_type" varchar, "icon_file_size" integer, "icon_updated_at" datetime, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE INDEX "index_taxons_on_parent_id" ON "spree_taxons" ("parent_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_taxons_on_permalink" ON "spree_taxons" ("permalink")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_taxons_on_taxonomy_id" ON "spree_taxons" ("taxonomy_id")  (0.2ms) CREATE TABLE "spree_tokenized_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "permissable_type" varchar, "permissable_id" integer, "token" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE INDEX "index_tokenized_name_and_type" ON "spree_tokenized_permissions" ("permissable_id", "permissable_type")  (0.2ms) CREATE TABLE "spree_trackers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "environment" varchar, "analytics_id" varchar, "active" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar(128), "password_salt" varchar(128), "email" varchar, "remember_token" varchar, "persistence_token" varchar, "reset_password_token" varchar, "perishable_token" varchar, "sign_in_count" integer DEFAULT 0 NOT NULL, "failed_attempts" integer DEFAULT 0 NOT NULL, "last_request_at" datetime, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "login" varchar, "ship_address_id" integer, "bill_address_id" integer, "authentication_token" varchar, "unlock_token" varchar, "locked_at" datetime, "remember_created_at" datetime, "reset_password_sent_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "price" decimal(8,2) NOT NULL, "weight" decimal(8,2), "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "count_on_hand" integer DEFAULT 0 NOT NULL, "cost_price" decimal(8,2), "position" integer)  (0.2ms) CREATE INDEX "index_spree_variants_on_product_id" ON "spree_variants" ("product_id")  (0.2ms) CREATE TABLE "spree_zone_members" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "zoneable_type" varchar, "zoneable_id" integer, "zone_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_zones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" varchar, "default_tax" boolean DEFAULT 'f', "zone_members_count" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181839"]]  (127.8ms) commit transaction Migrating to SpreePromoOneTwo (20180516181840)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "spree_products_promotion_rules" ("product_id" integer, "promotion_rule_id" integer)  (0.2ms) CREATE INDEX "index_products_promotion_rules_on_product_id" ON "spree_products_promotion_rules" ("product_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index'   (0.3ms) CREATE INDEX "index_products_promotion_rules_on_promotion_rule_id" ON "spree_products_promotion_rules" ("promotion_rule_id")  (0.2ms) CREATE TABLE "spree_promotion_action_line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "promotion_action_id" integer, "variant_id" integer, "quantity" integer DEFAULT 1)  (0.2ms) CREATE TABLE "spree_promotion_actions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "activator_id" integer, "position" integer, "type" varchar)  (0.3ms) CREATE TABLE "spree_promotion_rules" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "activator_id" integer, "user_id" integer, "product_group_id" integer, "type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE INDEX "index_promotion_rules_on_product_group_id" ON "spree_promotion_rules" ("product_group_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_on_product_group_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_on_product_group_id' AND type='index'   (0.2ms) CREATE INDEX "index_promotion_rules_on_user_id" ON "spree_promotion_rules" ("user_id")  (0.2ms) CREATE TABLE "spree_promotion_rules_users" ("user_id" integer, "promotion_rule_id" integer)  (0.4ms) CREATE INDEX "index_promotion_rules_users_on_promotion_rule_id" ON "spree_promotion_rules_users" ("promotion_rule_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index'   (0.3ms) CREATE INDEX "index_promotion_rules_users_on_user_id" ON "spree_promotion_rules_users" ("user_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181840"]]  (131.4ms) commit transaction Migrating to AddTaxRateLabel (20180516181841)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "spree_tax_rates" ADD "name" varchar SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181841"]]  (120.4ms) commit transaction Migrating to AddToggleTaxRateDisplay (20180516181842)  (0.2ms) begin transaction  (1.0ms) ALTER TABLE "spree_tax_rates" ADD "show_rate_in_label" boolean DEFAULT 't' SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181842"]]  (82.5ms) commit transaction Migrating to RemoveUnusedPreferenceColumns (20180516181843)  (0.1ms) begin transaction  (0.8ms) CREATE TEMPORARY TABLE "aspree_preferences" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(100), "owner_type" varchar, "owner_id" integer, "value" text, "key" varchar, "value_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_preferences_on_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_preferences_on_key' AND type='index'   (0.5ms) CREATE UNIQUE INDEX "tindex_aspree_preferences_on_key" ON "aspree_preferences" ("key")  (0.3ms) INSERT INTO "aspree_preferences" ("id","name","owner_type","owner_id","value","key","value_type","created_at","updated_at") SELECT "id","name","owner_type","owner_id","value","key","value_type","created_at","updated_at" FROM "spree_preferences"  (0.7ms) DROP TABLE "spree_preferences"  (0.3ms) CREATE TABLE "spree_preferences" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_type" varchar, "owner_id" integer, "value" text, "key" varchar, "value_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_preferences_on_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_preferences_on_key' AND type='index'   (0.4ms) CREATE UNIQUE INDEX "index_spree_preferences_on_key" ON "spree_preferences" ("key")  (0.1ms) INSERT INTO "spree_preferences" ("id","owner_type","owner_id","value","key","value_type","created_at","updated_at") SELECT "id","owner_type","owner_id","value","key","value_type","created_at","updated_at" FROM "aspree_preferences"  (0.2ms) DROP TABLE "aspree_preferences"  (0.2ms) CREATE TEMPORARY TABLE "aspree_preferences" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_type" varchar, "owner_id" integer, "value" text, "key" varchar, "value_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_preferences_on_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_preferences_on_key' AND type='index'   (0.2ms) CREATE UNIQUE INDEX "tindex_aspree_preferences_on_key" ON "aspree_preferences" ("key")  (0.1ms) INSERT INTO "aspree_preferences" ("id","owner_type","owner_id","value","key","value_type","created_at","updated_at") SELECT "id","owner_type","owner_id","value","key","value_type","created_at","updated_at" FROM "spree_preferences"  (0.2ms) DROP TABLE "spree_preferences"  (0.2ms) CREATE TABLE "spree_preferences" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_type" varchar, "value" text, "key" varchar, "value_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_preferences_on_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_preferences_on_key' AND type='index'   (0.2ms) CREATE UNIQUE INDEX "index_spree_preferences_on_key" ON "spree_preferences" ("key")  (0.1ms) INSERT INTO "spree_preferences" ("id","owner_type","value","key","value_type","created_at","updated_at") SELECT "id","owner_type","value","key","value_type","created_at","updated_at" FROM "aspree_preferences"  (0.2ms) DROP TABLE "aspree_preferences"  (0.2ms) CREATE TEMPORARY TABLE "aspree_preferences" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_type" varchar, "value" text, "key" varchar, "value_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_preferences_on_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_preferences_on_key' AND type='index'   (0.2ms) CREATE UNIQUE INDEX "tindex_aspree_preferences_on_key" ON "aspree_preferences" ("key")  (0.1ms) INSERT INTO "aspree_preferences" ("id","owner_type","value","key","value_type","created_at","updated_at") SELECT "id","owner_type","value","key","value_type","created_at","updated_at" FROM "spree_preferences"  (0.2ms) DROP TABLE "spree_preferences"  (0.2ms) CREATE TABLE "spree_preferences" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "value" text, "key" varchar, "value_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_preferences_on_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_preferences_on_key' AND type='index'   (0.2ms) CREATE UNIQUE INDEX "index_spree_preferences_on_key" ON "spree_preferences" ("key")  (0.1ms) INSERT INTO "spree_preferences" ("id","value","key","value_type","created_at","updated_at") SELECT "id","value","key","value_type","created_at","updated_at" FROM "aspree_preferences"  (0.2ms) DROP TABLE "aspree_preferences" SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181843"]]  (160.7ms) commit transaction Migrating to AddLockVersionToVariant (20180516181844)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "spree_variants" ADD "lock_version" integer DEFAULT 0 SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181844"]]  (118.9ms) commit transaction Migrating to AddStatesRequiredToCountries (20180516181845)  (0.1ms) begin transaction  (0.8ms) ALTER TABLE "spree_countries" ADD "states_required" boolean DEFAULT 't' SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181845"]]  (94.1ms) commit transaction Migrating to AddOnDemandToProductAndVariant (20180516181846)  (0.1ms) begin transaction  (1.0ms) ALTER TABLE "spree_products" ADD "on_demand" boolean DEFAULT 'f'  (0.6ms) ALTER TABLE "spree_variants" ADD "on_demand" boolean DEFAULT 'f' SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181846"]]  (82.6ms) commit transaction Migrating to RemoveNotNullConstraintFromProductsOnHand (20180516181847)  (0.1ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "aspree_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar DEFAULT '' NOT NULL, "description" text, "available_on" datetime, "deleted_at" datetime, "permalink" varchar, "meta_description" varchar, "meta_keywords" varchar, "tax_category_id" integer, "shipping_category_id" integer, "count_on_hand" integer DEFAULT 0 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "on_demand" boolean DEFAULT 'f')  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_permalink' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_products_on_permalink" ON "aspree_products" ("permalink")  (0.1ms) CREATE INDEX "tindex_aspree_products_on_name" ON "aspree_products" ("name")  (0.2ms) CREATE INDEX "tindex_aspree_products_on_deleted_at" ON "aspree_products" ("deleted_at")  (0.1ms) CREATE INDEX "tindex_aspree_products_on_available_on" ON "aspree_products" ("available_on")  (0.1ms) INSERT INTO "aspree_products" ("id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","count_on_hand","created_at","updated_at","on_demand") SELECT "id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","count_on_hand","created_at","updated_at","on_demand" FROM "spree_products"  (0.4ms) DROP TABLE "spree_products"  (0.3ms) CREATE TABLE "spree_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar DEFAULT '' NOT NULL, "description" text, "available_on" datetime, "deleted_at" datetime, "permalink" varchar, "meta_description" varchar, "meta_keywords" varchar, "tax_category_id" integer, "shipping_category_id" integer, "count_on_hand" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "on_demand" boolean DEFAULT 'f')  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_available_on' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_permalink' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_available_on" ON "spree_products" ("available_on")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_deleted_at" ON "spree_products" ("deleted_at")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_name" ON "spree_products" ("name")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_permalink" ON "spree_products" ("permalink")  (0.1ms) INSERT INTO "spree_products" ("id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","count_on_hand","created_at","updated_at","on_demand") SELECT "id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","count_on_hand","created_at","updated_at","on_demand" FROM "aspree_products"  (0.3ms) DROP TABLE "aspree_products"  (0.2ms) CREATE TEMPORARY TABLE "aspree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "price" decimal(8,2) NOT NULL, "weight" decimal(8,2), "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "count_on_hand" integer DEFAULT 0 NOT NULL, "cost_price" decimal(8,2), "position" integer, "lock_version" integer DEFAULT 0, "on_demand" boolean DEFAULT 'f')  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_variants_on_product_id" ON "aspree_variants" ("product_id")  (0.2ms) INSERT INTO "aspree_variants" ("id","sku","price","weight","height","width","depth","deleted_at","is_master","product_id","count_on_hand","cost_price","position","lock_version","on_demand") SELECT "id","sku","price","weight","height","width","depth","deleted_at","is_master","product_id","count_on_hand","cost_price","position","lock_version","on_demand" FROM "spree_variants"  (0.4ms) DROP TABLE "spree_variants"  (0.3ms) CREATE TABLE "spree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "price" decimal(8,2) NOT NULL, "weight" decimal(8,2), "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "count_on_hand" integer DEFAULT 0, "cost_price" decimal(8,2), "position" integer, "lock_version" integer DEFAULT 0, "on_demand" boolean DEFAULT 'f')  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_product_id" ON "spree_variants" ("product_id")  (0.1ms) INSERT INTO "spree_variants" ("id","sku","price","weight","height","width","depth","deleted_at","is_master","product_id","count_on_hand","cost_price","position","lock_version","on_demand") SELECT "id","sku","price","weight","height","width","depth","deleted_at","is_master","product_id","count_on_hand","cost_price","position","lock_version","on_demand" FROM "aspree_variants"  (0.2ms) DROP TABLE "aspree_variants" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181847"]]  (117.3ms) commit transaction Migrating to SplitPricesFromVariants (20180516181848)  (0.1ms) begin transaction  (0.6ms) CREATE TABLE "spree_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer NOT NULL, "amount" decimal(8,2) NOT NULL, "currency" varchar) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL  (0.6ms) CREATE TEMPORARY TABLE "aspree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "price" decimal(8,2) NOT NULL, "weight" decimal(8,2), "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "count_on_hand" integer DEFAULT 0, "cost_price" decimal(8,2), "position" integer, "lock_version" integer DEFAULT 0, "on_demand" boolean DEFAULT 'f')  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.3ms) CREATE INDEX "tindex_aspree_variants_on_product_id" ON "aspree_variants" ("product_id")  (0.4ms) INSERT INTO "aspree_variants" ("id","sku","price","weight","height","width","depth","deleted_at","is_master","product_id","count_on_hand","cost_price","position","lock_version","on_demand") SELECT "id","sku","price","weight","height","width","depth","deleted_at","is_master","product_id","count_on_hand","cost_price","position","lock_version","on_demand" FROM "spree_variants"  (0.6ms) DROP TABLE "spree_variants"  (0.6ms) CREATE TABLE "spree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2), "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "count_on_hand" integer DEFAULT 0, "cost_price" decimal(8,2), "position" integer, "lock_version" integer DEFAULT 0, "on_demand" boolean DEFAULT 'f')  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_product_id" ON "spree_variants" ("product_id")  (0.3ms) INSERT INTO "spree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","count_on_hand","cost_price","position","lock_version","on_demand") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","count_on_hand","cost_price","position","lock_version","on_demand" FROM "aspree_variants"  (0.3ms) DROP TABLE "aspree_variants" SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181848"]]  (141.0ms) commit transaction Migrating to RemoveNotNullFromSpreePricesAmount (20180516181849)  (0.1ms) begin transaction  (0.5ms) CREATE TEMPORARY TABLE "aspree_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer NOT NULL, "amount" decimal(8,2) NOT NULL, "currency" varchar)  (0.3ms) INSERT INTO "aspree_prices" ("id","variant_id","amount","currency") SELECT "id","variant_id","amount","currency" FROM "spree_prices"  (0.5ms) DROP TABLE "spree_prices"  (0.5ms) CREATE TABLE "spree_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer NOT NULL, "amount" decimal(8,2), "currency" varchar)  (0.1ms) INSERT INTO "spree_prices" ("id","variant_id","amount","currency") SELECT "id","variant_id","amount","currency" FROM "aspree_prices"  (0.1ms) DROP TABLE "aspree_prices" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181849"]]  (95.7ms) commit transaction Migrating to AddCurrencyToLineItems (20180516181850)  (0.2ms) begin transaction  (1.0ms) ALTER TABLE "spree_line_items" ADD "currency" varchar SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181850"]]  (115.8ms) commit transaction Migrating to AddCurrencyToOrders (20180516181851)  (0.2ms) begin transaction  (0.8ms) ALTER TABLE "spree_orders" ADD "currency" varchar SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181851"]]  (106.3ms) commit transaction Migrating to AddCostCurrencyToVariants (20180516181852)  (0.2ms) begin transaction  (1.0ms) ALTER TABLE "spree_variants" ADD "cost_currency" varchar SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181852"]]  (83.2ms) commit transaction Migrating to RemoveDisplayOnFromPaymentMethods (20180516181853)  (0.1ms) begin transaction  (0.3ms) CREATE TEMPORARY TABLE "aspree_payment_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "name" varchar, "description" text, "active" boolean DEFAULT 't', "environment" varchar DEFAULT 'development', "deleted_at" datetime, "display_on" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) INSERT INTO "aspree_payment_methods" ("id","type","name","description","active","environment","deleted_at","display_on","created_at","updated_at") SELECT "id","type","name","description","active","environment","deleted_at","display_on","created_at","updated_at" FROM "spree_payment_methods"  (0.4ms) DROP TABLE "spree_payment_methods"  (0.3ms) CREATE TABLE "spree_payment_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "name" varchar, "description" text, "active" boolean DEFAULT 't', "environment" varchar DEFAULT 'development', "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) INSERT INTO "spree_payment_methods" ("id","type","name","description","active","environment","deleted_at","created_at","updated_at") SELECT "id","type","name","description","active","environment","deleted_at","created_at","updated_at" FROM "aspree_payment_methods"  (0.2ms) DROP TABLE "aspree_payment_methods" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181853"]]  (66.9ms) commit transaction Migrating to AddPositionToTaxonomies (20180516181854)  (0.1ms) begin transaction  (0.9ms) ALTER TABLE "spree_taxonomies" ADD "position" integer DEFAULT 0 SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181854"]]  (94.8ms) commit transaction Migrating to AddLastIpToSpreeOrders (20180516181855)  (0.1ms) begin transaction  (1.1ms) ALTER TABLE "spree_orders" ADD "last_ip_address" varchar SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181855"]]  (82.8ms) commit transaction Migrating to AddStateToSpreeAdjustments (20180516181856)  (0.2ms) begin transaction  (1.0ms) ALTER TABLE "spree_adjustments" ADD "state" varchar  (0.5ms) CREATE TEMPORARY TABLE "aspree_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "source_type" varchar, "source_id" integer, "adjustable_type" varchar, "adjustable_id" integer, "originator_type" varchar, "originator_id" integer, "amount" decimal(8,2), "label" varchar, "mandatory" boolean, "locked" boolean, "eligible" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "state" varchar)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_adjustments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_adjustments_on_order_id" ON "aspree_adjustments" ("adjustable_id")  (0.1ms) INSERT INTO "aspree_adjustments" ("id","source_type","source_id","adjustable_type","adjustable_id","originator_type","originator_id","amount","label","mandatory","locked","eligible","created_at","updated_at","state") SELECT "id","source_type","source_id","adjustable_type","adjustable_id","originator_type","originator_id","amount","label","mandatory","locked","eligible","created_at","updated_at","state" FROM "spree_adjustments"  (0.4ms) DROP TABLE "spree_adjustments"  (0.4ms) CREATE TABLE "spree_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "source_type" varchar, "source_id" integer, "adjustable_type" varchar, "adjustable_id" integer, "originator_type" varchar, "originator_id" integer, "amount" decimal(8,2), "label" varchar, "mandatory" boolean, "eligible" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "state" varchar)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_adjustments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_adjustments_on_order_id" ON "spree_adjustments" ("adjustable_id")  (0.2ms) INSERT INTO "spree_adjustments" ("id","source_type","source_id","adjustable_type","adjustable_id","originator_type","originator_id","amount","label","mandatory","eligible","created_at","updated_at","state") SELECT "id","source_type","source_id","adjustable_type","adjustable_id","originator_type","originator_id","amount","label","mandatory","eligible","created_at","updated_at","state" FROM "aspree_adjustments"  (0.2ms) DROP TABLE "aspree_adjustments" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181856"]]  (121.0ms) commit transaction Migrating to AddDisplayOnToSpreePaymentMethods (20180516181857)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "spree_payment_methods" ADD "display_on" varchar SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181857"]]  (76.6ms) commit transaction Migrating to AddPositionToProductProperties (20180516181858)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "spree_product_properties" ADD "position" integer DEFAULT 0 SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181858"]]  (106.9ms) commit transaction Migrating to AddIdentifierToSpreePayments (20180516181859)  (0.1ms) begin transaction  (1.0ms) ALTER TABLE "spree_payments" ADD "identifier" varchar SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181859"]]  (94.5ms) commit transaction Migrating to AddOrderIdIndexToPayments (20180516181860)  (0.1ms) begin transaction  (0.5ms) CREATE INDEX "index_spree_payments_on_order_id" ON "spree_payments" ("order_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181860"]]  (105.7ms) commit transaction Migrating to AddPrimaryToSpreeProductsTaxons (20180516181861)  (0.2ms) begin transaction  (0.3ms) CREATE TEMPORARY TABLE "aspree_products_taxons" ("product_id" integer, "taxon_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_taxons_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_taxons_on_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_taxons_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_taxons_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_products_taxons_on_taxon_id" ON "aspree_products_taxons" ("taxon_id")  (0.2ms) CREATE INDEX "tindex_aspree_products_taxons_on_product_id" ON "aspree_products_taxons" ("product_id")  (0.1ms) INSERT INTO "aspree_products_taxons" ("product_id","taxon_id") SELECT "product_id","taxon_id" FROM "spree_products_taxons"  (0.4ms) DROP TABLE "spree_products_taxons"  (0.2ms) CREATE TABLE "spree_products_taxons" ("product_id" integer, "taxon_id" integer, "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_taxons_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_taxons_on_product_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_taxons_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_taxons_on_taxon_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_products_taxons_on_product_id" ON "spree_products_taxons" ("product_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_taxons_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_taxons_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_taxons_on_taxon_id" ON "spree_products_taxons" ("taxon_id")  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id","taxon_id") SELECT "product_id","taxon_id" FROM "aspree_products_taxons"  (0.2ms) DROP TABLE "aspree_products_taxons" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181861"]]  (149.8ms) commit transaction Migrating to CreateSpreeStockItems (20180516181862)  (0.2ms) begin transaction  (0.9ms) CREATE TABLE "spree_stock_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_location_id" integer, "variant_id" integer, "count_on_hand" integer DEFAULT 0 NOT NULL, "lock_version" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.5ms) CREATE INDEX "index_spree_stock_items_on_stock_location_id" ON "spree_stock_items" ("stock_location_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index'   (0.2ms) CREATE INDEX "stock_item_by_loc_and_var_id" ON "spree_stock_items" ("stock_location_id", "variant_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181862"]]  (123.3ms) commit transaction Migrating to CreateSpreeStockLocations (20180516181863)  (0.2ms) begin transaction  (0.8ms) CREATE TABLE "spree_stock_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "address_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.4ms) CREATE INDEX "index_spree_stock_locations_on_address_id" ON "spree_stock_locations" ("address_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181863"]]  (104.1ms) commit transaction Migrating to CreateDefaultStock (20180516181864)  (0.2ms) begin transaction  (0.9ms) ALTER TABLE "spree_stock_locations" ADD "default" boolean DEFAULT 'f' NOT NULL SQL (0.3ms) INSERT INTO "spree_stock_locations" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "default"], ["created_at", "2018-05-16 18:19:12.250688"], ["updated_at", "2018-05-16 18:19:12.250688"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT ? [["LIMIT", 1000]]  (0.3ms) CREATE TEMPORARY TABLE "aspree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2), "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "count_on_hand" integer DEFAULT 0, "cost_price" decimal(8,2), "position" integer, "lock_version" integer DEFAULT 0, "on_demand" boolean DEFAULT 'f', "cost_currency" varchar)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_variants_on_product_id" ON "aspree_variants" ("product_id")  (0.2ms) INSERT INTO "aspree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","count_on_hand","cost_price","position","lock_version","on_demand","cost_currency") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","count_on_hand","cost_price","position","lock_version","on_demand","cost_currency" FROM "spree_variants"  (0.5ms) DROP TABLE "spree_variants"  (0.3ms) CREATE TABLE "spree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2), "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "cost_price" decimal(8,2), "position" integer, "lock_version" integer DEFAULT 0, "on_demand" boolean DEFAULT 'f', "cost_currency" varchar)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_product_id" ON "spree_variants" ("product_id")  (0.1ms) INSERT INTO "spree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","lock_version","on_demand","cost_currency") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","lock_version","on_demand","cost_currency" FROM "aspree_variants"  (0.2ms) DROP TABLE "aspree_variants" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181864"]]  (87.4ms) commit transaction Migrating to AddOrderIdIndexToShipments (20180516181865)  (0.1ms) begin transaction  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.6ms) CREATE INDEX "index_spree_shipments_on_order_id" ON "spree_shipments" ("order_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181865"]]  (106.4ms) commit transaction Migrating to ChangeMetaDescriptionOnSpreeProductsToText (20180516181866)  (0.1ms) begin transaction  (0.6ms) CREATE TEMPORARY TABLE "aspree_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar DEFAULT '' NOT NULL, "description" text, "available_on" datetime, "deleted_at" datetime, "permalink" varchar, "meta_description" varchar, "meta_keywords" varchar, "tax_category_id" integer, "shipping_category_id" integer, "count_on_hand" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "on_demand" boolean DEFAULT 'f')  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_permalink' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.5ms) CREATE INDEX "tindex_aspree_products_on_permalink" ON "aspree_products" ("permalink")  (0.4ms) CREATE INDEX "tindex_aspree_products_on_name" ON "aspree_products" ("name")  (0.4ms) CREATE INDEX "tindex_aspree_products_on_deleted_at" ON "aspree_products" ("deleted_at")  (0.4ms) CREATE INDEX "tindex_aspree_products_on_available_on" ON "aspree_products" ("available_on")  (0.2ms) INSERT INTO "aspree_products" ("id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","count_on_hand","created_at","updated_at","on_demand") SELECT "id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","count_on_hand","created_at","updated_at","on_demand" FROM "spree_products"  (0.5ms) DROP TABLE "spree_products"  (0.3ms) CREATE TABLE "spree_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar DEFAULT '' NOT NULL, "description" text, "available_on" datetime, "deleted_at" datetime, "permalink" varchar, "meta_description" text, "meta_keywords" varchar, "tax_category_id" integer, "shipping_category_id" integer, "count_on_hand" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "on_demand" boolean DEFAULT 'f')  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_available_on' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_permalink' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_available_on" ON "spree_products" ("available_on")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_deleted_at" ON "spree_products" ("deleted_at")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_name" ON "spree_products" ("name")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_permalink" ON "spree_products" ("permalink")  (0.3ms) INSERT INTO "spree_products" ("id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","count_on_hand","created_at","updated_at","on_demand") SELECT "id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","count_on_hand","created_at","updated_at","on_demand" FROM "aspree_products"  (0.3ms) DROP TABLE "aspree_products" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181866"]]  (118.0ms) commit transaction Migrating to AddStockLocationIdToSpreeShipments (20180516181867)  (0.1ms) begin transaction  (0.7ms) ALTER TABLE "spree_shipments" ADD "stock_location_id" integer SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181867"]]  (80.3ms) commit transaction Migrating to AddPendingToInventoryUnit (20180516181868)  (0.2ms) begin transaction  (1.0ms) ALTER TABLE "spree_inventory_units" ADD "pending" boolean DEFAULT 't' SQL (0.1ms) UPDATE "spree_inventory_units" SET "pending" = 'f' SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181868"]]  (98.9ms) commit transaction Migrating to RemoveOnDemandFromProductAndVariant (20180516181869)  (0.1ms) begin transaction  (0.3ms) CREATE TEMPORARY TABLE "aspree_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar DEFAULT '' NOT NULL, "description" text, "available_on" datetime, "deleted_at" datetime, "permalink" varchar, "meta_description" text, "meta_keywords" varchar, "tax_category_id" integer, "shipping_category_id" integer, "count_on_hand" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "on_demand" boolean DEFAULT 'f')  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_permalink' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_products_on_permalink" ON "aspree_products" ("permalink")  (0.2ms) CREATE INDEX "tindex_aspree_products_on_name" ON "aspree_products" ("name")  (0.2ms) CREATE INDEX "tindex_aspree_products_on_deleted_at" ON "aspree_products" ("deleted_at")  (0.2ms) CREATE INDEX "tindex_aspree_products_on_available_on" ON "aspree_products" ("available_on")  (0.2ms) INSERT INTO "aspree_products" ("id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","count_on_hand","created_at","updated_at","on_demand") SELECT "id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","count_on_hand","created_at","updated_at","on_demand" FROM "spree_products"  (0.4ms) DROP TABLE "spree_products"  (0.3ms) CREATE TABLE "spree_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar DEFAULT '' NOT NULL, "description" text, "available_on" datetime, "deleted_at" datetime, "permalink" varchar, "meta_description" text, "meta_keywords" varchar, "tax_category_id" integer, "shipping_category_id" integer, "count_on_hand" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_available_on' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_permalink' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_available_on" ON "spree_products" ("available_on")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_deleted_at" ON "spree_products" ("deleted_at")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_name" ON "spree_products" ("name")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_permalink" ON "spree_products" ("permalink")  (0.2ms) INSERT INTO "spree_products" ("id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","count_on_hand","created_at","updated_at") SELECT "id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","count_on_hand","created_at","updated_at" FROM "aspree_products"  (0.2ms) DROP TABLE "aspree_products"  (0.2ms) CREATE TEMPORARY TABLE "aspree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2), "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "cost_price" decimal(8,2), "position" integer, "lock_version" integer DEFAULT 0, "on_demand" boolean DEFAULT 'f', "cost_currency" varchar)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_variants_on_product_id" ON "aspree_variants" ("product_id")  (0.1ms) INSERT INTO "aspree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","lock_version","on_demand","cost_currency") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","lock_version","on_demand","cost_currency" FROM "spree_variants"  (0.3ms) DROP TABLE "spree_variants"  (0.3ms) CREATE TABLE "spree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2), "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "cost_price" decimal(8,2), "position" integer, "lock_version" integer DEFAULT 0, "cost_currency" varchar)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_product_id" ON "spree_variants" ("product_id")  (0.1ms) INSERT INTO "spree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","lock_version","cost_currency") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","lock_version","cost_currency" FROM "aspree_variants"  (0.2ms) DROP TABLE "aspree_variants" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181869"]]  (140.6ms) commit transaction Migrating to CreateShippingMethodZone (20180516181870)  (0.2ms) begin transaction  (1.0ms) CREATE TABLE "shipping_methods_zones" ("shipping_method_id" integer, "zone_id" integer) Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."deleted_at" IS NULL  (0.3ms) CREATE TEMPORARY TABLE "aspree_shipping_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "zone_id" integer, "display_on" varchar, "shipping_category_id" integer, "match_none" boolean, "match_all" boolean, "match_one" boolean, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) INSERT INTO "aspree_shipping_methods" ("id","name","zone_id","display_on","shipping_category_id","match_none","match_all","match_one","deleted_at","created_at","updated_at") SELECT "id","name","zone_id","display_on","shipping_category_id","match_none","match_all","match_one","deleted_at","created_at","updated_at" FROM "spree_shipping_methods"  (0.6ms) DROP TABLE "spree_shipping_methods"  (0.3ms) CREATE TABLE "spree_shipping_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "display_on" varchar, "shipping_category_id" integer, "match_none" boolean, "match_all" boolean, "match_one" boolean, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) INSERT INTO "spree_shipping_methods" ("id","name","display_on","shipping_category_id","match_none","match_all","match_one","deleted_at","created_at","updated_at") SELECT "id","name","display_on","shipping_category_id","match_none","match_all","match_one","deleted_at","created_at","updated_at" FROM "aspree_shipping_methods"  (0.2ms) DROP TABLE "aspree_shipping_methods" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181870"]]  (134.4ms) commit transaction Migrating to RemoveShippingCategoryIdFromShippingMethod (20180516181871)  (0.1ms) begin transaction  (0.3ms) CREATE TEMPORARY TABLE "aspree_shipping_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "display_on" varchar, "shipping_category_id" integer, "match_none" boolean, "match_all" boolean, "match_one" boolean, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) INSERT INTO "aspree_shipping_methods" ("id","name","display_on","shipping_category_id","match_none","match_all","match_one","deleted_at","created_at","updated_at") SELECT "id","name","display_on","shipping_category_id","match_none","match_all","match_one","deleted_at","created_at","updated_at" FROM "spree_shipping_methods"  (0.4ms) DROP TABLE "spree_shipping_methods"  (0.3ms) CREATE TABLE "spree_shipping_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "display_on" varchar, "match_none" boolean, "match_all" boolean, "match_one" boolean, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.3ms) INSERT INTO "spree_shipping_methods" ("id","name","display_on","match_none","match_all","match_one","deleted_at","created_at","updated_at") SELECT "id","name","display_on","match_none","match_all","match_one","deleted_at","created_at","updated_at" FROM "aspree_shipping_methods"  (0.2ms) DROP TABLE "aspree_shipping_methods" SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181871"]]  (104.8ms) commit transaction Migrating to CreateShippingMethodCategories (20180516181872)  (0.3ms) begin transaction  (0.9ms) CREATE TABLE "spree_shipping_method_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "shipping_method_id" integer NOT NULL, "shipping_category_id" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.5ms) CREATE INDEX "index_spree_shipping_method_categories_on_shipping_method_id" ON "spree_shipping_method_categories" ("shipping_method_id")  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_method_categories_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_method_categories_on_shipping_method_id' AND type='index'   (0.4ms) CREATE INDEX "index_spree_shipping_method_categories_on_shipping_category_id" ON "spree_shipping_method_categories" ("shipping_category_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181872"]]  (276.0ms) commit transaction Migrating to AddTrackingUrlToSpreeShippingMethods (20180516181873)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "spree_shipping_methods" ADD "tracking_url" varchar SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181873"]]  (87.3ms) commit transaction Migrating to CreateSpreeShippingRates (20180516181874)  (0.2ms) begin transaction  (0.7ms) CREATE TABLE "spree_shipping_rates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "shipment_id" integer, "shipping_method_id" integer, "selected" boolean DEFAULT 'f', "cost" decimal(8,2), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.4ms) CREATE UNIQUE INDEX "spree_shipping_rates_join_index" ON "spree_shipping_rates" ("shipment_id", "shipping_method_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181874"]]  (157.1ms) commit transaction Migrating to RemoveCategoryMatchAttributesFromShippingMethod (20180516181875)  (0.1ms) begin transaction  (0.3ms) CREATE TEMPORARY TABLE "aspree_shipping_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "display_on" varchar, "match_none" boolean, "match_all" boolean, "match_one" boolean, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "tracking_url" varchar)  (0.1ms) INSERT INTO "aspree_shipping_methods" ("id","name","display_on","match_none","match_all","match_one","deleted_at","created_at","updated_at","tracking_url") SELECT "id","name","display_on","match_none","match_all","match_one","deleted_at","created_at","updated_at","tracking_url" FROM "spree_shipping_methods"  (0.3ms) DROP TABLE "spree_shipping_methods"  (0.3ms) CREATE TABLE "spree_shipping_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "display_on" varchar, "match_all" boolean, "match_one" boolean, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "tracking_url" varchar)  (0.2ms) INSERT INTO "spree_shipping_methods" ("id","name","display_on","match_all","match_one","deleted_at","created_at","updated_at","tracking_url") SELECT "id","name","display_on","match_all","match_one","deleted_at","created_at","updated_at","tracking_url" FROM "aspree_shipping_methods"  (0.2ms) DROP TABLE "aspree_shipping_methods"  (0.2ms) CREATE TEMPORARY TABLE "aspree_shipping_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "display_on" varchar, "match_all" boolean, "match_one" boolean, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "tracking_url" varchar)  (0.1ms) INSERT INTO "aspree_shipping_methods" ("id","name","display_on","match_all","match_one","deleted_at","created_at","updated_at","tracking_url") SELECT "id","name","display_on","match_all","match_one","deleted_at","created_at","updated_at","tracking_url" FROM "spree_shipping_methods"  (0.2ms) DROP TABLE "spree_shipping_methods"  (0.3ms) CREATE TABLE "spree_shipping_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "display_on" varchar, "match_all" boolean, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "tracking_url" varchar)  (0.1ms) INSERT INTO "spree_shipping_methods" ("id","name","display_on","match_all","deleted_at","created_at","updated_at","tracking_url") SELECT "id","name","display_on","match_all","deleted_at","created_at","updated_at","tracking_url" FROM "aspree_shipping_methods"  (0.3ms) DROP TABLE "aspree_shipping_methods"  (0.2ms) CREATE TEMPORARY TABLE "aspree_shipping_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "display_on" varchar, "match_all" boolean, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "tracking_url" varchar)  (0.1ms) INSERT INTO "aspree_shipping_methods" ("id","name","display_on","match_all","deleted_at","created_at","updated_at","tracking_url") SELECT "id","name","display_on","match_all","deleted_at","created_at","updated_at","tracking_url" FROM "spree_shipping_methods"  (0.2ms) DROP TABLE "spree_shipping_methods"  (0.2ms) CREATE TABLE "spree_shipping_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "display_on" varchar, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "tracking_url" varchar)  (0.1ms) INSERT INTO "spree_shipping_methods" ("id","name","display_on","deleted_at","created_at","updated_at","tracking_url") SELECT "id","name","display_on","deleted_at","created_at","updated_at","tracking_url" FROM "aspree_shipping_methods"  (0.2ms) DROP TABLE "aspree_shipping_methods" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181875"]]  (109.4ms) commit transaction Migrating to CreateStockMovements (20180516181876)  (0.1ms) begin transaction  (0.6ms) CREATE TABLE "spree_stock_movements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_item_id" integer, "quantity" integer, "action" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE INDEX "index_spree_stock_movements_on_stock_item_id" ON "spree_stock_movements" ("stock_item_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181876"]]  (97.5ms) commit transaction Migrating to AddAddressFieldsToStockLocation (20180516181877)  (0.2ms) begin transaction  (0.5ms) CREATE TEMPORARY TABLE "aspree_stock_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "address_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "default" boolean DEFAULT 'f' NOT NULL)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_address_id' AND type='index'   (0.5ms) CREATE INDEX "tindex_aspree_stock_locations_on_address_id" ON "aspree_stock_locations" ("address_id")  (0.2ms) INSERT INTO "aspree_stock_locations" ("id","name","address_id","created_at","updated_at","default") SELECT "id","name","address_id","created_at","updated_at","default" FROM "spree_stock_locations"  (0.4ms) DROP TABLE "spree_stock_locations"  (0.3ms) CREATE TABLE "spree_stock_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "default" boolean DEFAULT 'f' NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_stock_locations_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_stock_locations_on_address_id' AND type='index'   (0.5ms) INSERT INTO "spree_stock_locations" ("id","name","created_at","updated_at","default") SELECT "id","name","created_at","updated_at","default" FROM "aspree_stock_locations"  (0.4ms) DROP TABLE "aspree_stock_locations"  (0.5ms) ALTER TABLE "spree_stock_locations" ADD "address1" varchar  (0.4ms) ALTER TABLE "spree_stock_locations" ADD "address2" varchar  (0.4ms) ALTER TABLE "spree_stock_locations" ADD "city" varchar  (0.4ms) ALTER TABLE "spree_stock_locations" ADD "state_id" integer  (0.4ms) ALTER TABLE "spree_stock_locations" ADD "state_name" varchar  (0.3ms) ALTER TABLE "spree_stock_locations" ADD "country_id" integer  (0.4ms) ALTER TABLE "spree_stock_locations" ADD "zipcode" varchar  (0.4ms) ALTER TABLE "spree_stock_locations" ADD "phone" varchar Spree::Country Load (0.5ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."iso" = ? ORDER BY "spree_countries"."id" ASC LIMIT ? [["iso", "US"], ["LIMIT", 1]] Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.2ms) UPDATE "spree_stock_locations" SET "country_id" = NULL SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181877"]]  (103.6ms) commit transaction Migrating to AddActiveFieldToStockLocations (20180516181878)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "spree_stock_locations" ADD "active" boolean DEFAULT 't' SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181878"]]  (86.8ms) commit transaction Migrating to AddBackorderableToStockItem (20180516181879)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "spree_stock_items" ADD "backorderable" boolean DEFAULT 't' SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181879"]]  (93.2ms) commit transaction Migrating to AddDefaultQuantityToStockMovement (20180516181880)  (0.1ms) begin transaction  (0.3ms) CREATE TEMPORARY TABLE "aspree_stock_movements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_item_id" integer, "quantity" integer, "action" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index'   (0.3ms) CREATE INDEX "tindex_aspree_stock_movements_on_stock_item_id" ON "aspree_stock_movements" ("stock_item_id")  (0.2ms) INSERT INTO "aspree_stock_movements" ("id","stock_item_id","quantity","action","created_at","updated_at") SELECT "id","stock_item_id","quantity","action","created_at","updated_at" FROM "spree_stock_movements"  (0.6ms) DROP TABLE "spree_stock_movements"  (0.3ms) CREATE TABLE "spree_stock_movements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_item_id" integer, "quantity" integer DEFAULT 0, "action" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_stock_movements_on_stock_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_stock_movements_on_stock_item_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_stock_movements_on_stock_item_id" ON "spree_stock_movements" ("stock_item_id")  (0.2ms) INSERT INTO "spree_stock_movements" ("id","stock_item_id","quantity","action","created_at","updated_at") SELECT "id","stock_item_id","quantity","action","created_at","updated_at" FROM "aspree_stock_movements"  (0.2ms) DROP TABLE "aspree_stock_movements" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181880"]]  (84.7ms) commit transaction Migrating to AddSourceAndDestinationToStockMovements (20180516181881)  (0.2ms) begin transaction  (1.3ms) ALTER TABLE "spree_stock_movements" ADD "source_type" varchar  (0.6ms) ALTER TABLE "spree_stock_movements" ADD "source_id" integer  (0.6ms) ALTER TABLE "spree_stock_movements" ADD "destination_type" varchar  (1.0ms) ALTER TABLE "spree_stock_movements" ADD "destination_id" integer SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181881"]]  (155.4ms) commit transaction Migrating to ChangeOrdersTotalPrecision (20180516181882)  (0.1ms) begin transaction  (0.8ms) CREATE TEMPORARY TABLE "aspree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(15), "item_total" decimal(8,2) DEFAULT '0.0' NOT NULL, "total" decimal(8,2) DEFAULT '0.0' NOT NULL, "state" varchar, "adjustment_total" decimal(8,2) DEFAULT '0.0' NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(8,2) DEFAULT '0.0', "shipping_method_id" integer, "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "last_ip_address" varchar)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.3ms) CREATE INDEX "tindex_aspree_orders_on_number" ON "aspree_orders" ("number")  (0.2ms) INSERT INTO "aspree_orders" ("id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address") SELECT "id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address" FROM "spree_orders"  (0.5ms) DROP TABLE "spree_orders"  (0.3ms) CREATE TABLE "spree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(15), "item_total" decimal(10,2) DEFAULT 0.0 NOT NULL, "total" decimal(8,2) DEFAULT '0.0' NOT NULL, "state" varchar, "adjustment_total" decimal(8,2) DEFAULT '0.0' NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(8,2) DEFAULT '0.0', "shipping_method_id" integer, "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "last_ip_address" varchar)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_number" ON "spree_orders" ("number")  (0.2ms) INSERT INTO "spree_orders" ("id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address") SELECT "id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address" FROM "aspree_orders"  (0.2ms) DROP TABLE "aspree_orders"  (0.2ms) CREATE TEMPORARY TABLE "aspree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(15), "item_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "total" decimal(8,2) DEFAULT '0.0' NOT NULL, "state" varchar, "adjustment_total" decimal(8,2) DEFAULT '0.0' NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(8,2) DEFAULT '0.0', "shipping_method_id" integer, "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "last_ip_address" varchar)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_orders_on_number" ON "aspree_orders" ("number")  (0.2ms) INSERT INTO "aspree_orders" ("id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address") SELECT "id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address" FROM "spree_orders"  (0.5ms) DROP TABLE "spree_orders"  (0.3ms) CREATE TABLE "spree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(15), "item_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "total" decimal(10,2) DEFAULT 0.0 NOT NULL, "state" varchar, "adjustment_total" decimal(8,2) DEFAULT '0.0' NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(8,2) DEFAULT '0.0', "shipping_method_id" integer, "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "last_ip_address" varchar)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_number" ON "spree_orders" ("number")  (0.2ms) INSERT INTO "spree_orders" ("id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address") SELECT "id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address" FROM "aspree_orders"  (0.2ms) DROP TABLE "aspree_orders"  (0.4ms) CREATE TEMPORARY TABLE "aspree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(15), "item_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "total" decimal(10,2) DEFAULT '0.0' NOT NULL, "state" varchar, "adjustment_total" decimal(8,2) DEFAULT '0.0' NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(8,2) DEFAULT '0.0', "shipping_method_id" integer, "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "last_ip_address" varchar)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_orders_on_number" ON "aspree_orders" ("number")  (0.3ms) INSERT INTO "aspree_orders" ("id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address") SELECT "id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address" FROM "spree_orders"  (0.7ms) DROP TABLE "spree_orders"  (0.4ms) CREATE TABLE "spree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(15), "item_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "total" decimal(10,2) DEFAULT '0.0' NOT NULL, "state" varchar, "adjustment_total" decimal(10,2) DEFAULT 0.0 NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(8,2) DEFAULT '0.0', "shipping_method_id" integer, "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "last_ip_address" varchar)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_number" ON "spree_orders" ("number")  (0.2ms) INSERT INTO "spree_orders" ("id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address") SELECT "id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address" FROM "aspree_orders"  (0.2ms) DROP TABLE "aspree_orders"  (0.4ms) CREATE TEMPORARY TABLE "aspree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(15), "item_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "total" decimal(10,2) DEFAULT '0.0' NOT NULL, "state" varchar, "adjustment_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(8,2) DEFAULT '0.0', "shipping_method_id" integer, "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "last_ip_address" varchar)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.3ms) CREATE INDEX "tindex_aspree_orders_on_number" ON "aspree_orders" ("number")  (0.4ms) INSERT INTO "aspree_orders" ("id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address") SELECT "id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address" FROM "spree_orders"  (0.4ms) DROP TABLE "spree_orders"  (0.5ms) CREATE TABLE "spree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(15), "item_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "total" decimal(10,2) DEFAULT '0.0' NOT NULL, "state" varchar, "adjustment_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(10,2) DEFAULT 0.0, "shipping_method_id" integer, "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "last_ip_address" varchar)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_number' AND type='index'   (0.5ms) CREATE INDEX "index_spree_orders_on_number" ON "spree_orders" ("number")  (0.3ms) INSERT INTO "spree_orders" ("id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address") SELECT "id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address" FROM "aspree_orders"  (0.2ms) DROP TABLE "aspree_orders" SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181882"]]  (114.9ms) commit transaction Migrating to ChangeSpreePaymentsAmountPrecision (20180516181883)  (0.2ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "aspree_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" decimal(8,2) DEFAULT '0.0' NOT NULL, "order_id" integer, "source_type" varchar, "source_id" integer, "payment_method_id" integer, "state" varchar, "response_code" varchar, "avs_response" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "identifier" varchar)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_payments_on_order_id" ON "aspree_payments" ("order_id")  (0.1ms) INSERT INTO "aspree_payments" ("id","amount","order_id","source_type","source_id","payment_method_id","state","response_code","avs_response","created_at","updated_at","identifier") SELECT "id","amount","order_id","source_type","source_id","payment_method_id","state","response_code","avs_response","created_at","updated_at","identifier" FROM "spree_payments"  (0.5ms) DROP TABLE "spree_payments"  (0.3ms) CREATE TABLE "spree_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" decimal(10,2) DEFAULT 0.0 NOT NULL, "order_id" integer, "source_type" varchar, "source_id" integer, "payment_method_id" integer, "state" varchar, "response_code" varchar, "avs_response" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "identifier" varchar)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_payments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_payments_on_order_id" ON "spree_payments" ("order_id")  (0.3ms) INSERT INTO "spree_payments" ("id","amount","order_id","source_type","source_id","payment_method_id","state","response_code","avs_response","created_at","updated_at","identifier") SELECT "id","amount","order_id","source_type","source_id","payment_method_id","state","response_code","avs_response","created_at","updated_at","identifier" FROM "aspree_payments"  (0.2ms) DROP TABLE "aspree_payments" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181883"]]  (128.9ms) commit transaction Migrating to ChangeSpreeReturnAuthorizationAmountPrecision (20180516181884)  (0.1ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "aspree_return_authorizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "state" varchar, "amount" decimal(8,2) DEFAULT '0.0' NOT NULL, "order_id" integer, "reason" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "aspree_return_authorizations" ("id","number","state","amount","order_id","reason","created_at","updated_at") SELECT "id","number","state","amount","order_id","reason","created_at","updated_at" FROM "spree_return_authorizations"  (0.3ms) DROP TABLE "spree_return_authorizations"  (0.3ms) CREATE TABLE "spree_return_authorizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "state" varchar, "amount" decimal(10,2) DEFAULT 0.0 NOT NULL, "order_id" integer, "reason" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) INSERT INTO "spree_return_authorizations" ("id","number","state","amount","order_id","reason","created_at","updated_at") SELECT "id","number","state","amount","order_id","reason","created_at","updated_at" FROM "aspree_return_authorizations"  (0.2ms) DROP TABLE "aspree_return_authorizations" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181884"]]  (163.1ms) commit transaction Migrating to ChangeAdjustmentsAmountPrecision (20180516181885)  (0.3ms) begin transaction  (0.6ms) CREATE TEMPORARY TABLE "aspree_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "source_type" varchar, "source_id" integer, "adjustable_type" varchar, "adjustable_id" integer, "originator_type" varchar, "originator_id" integer, "amount" decimal(8,2), "label" varchar, "mandatory" boolean, "eligible" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "state" varchar)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_adjustments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_adjustments_on_order_id" ON "aspree_adjustments" ("adjustable_id")  (0.3ms) INSERT INTO "aspree_adjustments" ("id","source_type","source_id","adjustable_type","adjustable_id","originator_type","originator_id","amount","label","mandatory","eligible","created_at","updated_at","state") SELECT "id","source_type","source_id","adjustable_type","adjustable_id","originator_type","originator_id","amount","label","mandatory","eligible","created_at","updated_at","state" FROM "spree_adjustments"  (0.6ms) DROP TABLE "spree_adjustments"  (0.8ms) CREATE TABLE "spree_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "source_type" varchar, "source_id" integer, "adjustable_type" varchar, "adjustable_id" integer, "originator_type" varchar, "originator_id" integer, "amount" decimal(10,2), "label" varchar, "mandatory" boolean, "eligible" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "state" varchar)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_adjustments_on_order_id' AND type='index'   (0.3ms) CREATE INDEX "index_adjustments_on_order_id" ON "spree_adjustments" ("adjustable_id")  (0.4ms) INSERT INTO "spree_adjustments" ("id","source_type","source_id","adjustable_type","adjustable_id","originator_type","originator_id","amount","label","mandatory","eligible","created_at","updated_at","state") SELECT "id","source_type","source_id","adjustable_type","adjustable_id","originator_type","originator_id","amount","label","mandatory","eligible","created_at","updated_at","state" FROM "aspree_adjustments"  (0.3ms) DROP TABLE "aspree_adjustments" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181885"]]  (92.8ms) commit transaction Migrating to AddOriginatorToStockMovement (20180516181886)  (0.2ms) begin transaction  (0.7ms) ALTER TABLE "spree_stock_movements" ADD "originator_type" varchar  (0.5ms) ALTER TABLE "spree_stock_movements" ADD "originator_id" integer SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181886"]]  (112.9ms) commit transaction Migrating to DropSourceAndDestinationFromStockMovement (20180516181887)  (0.1ms) begin transaction  (0.5ms) CREATE TEMPORARY TABLE "aspree_stock_movements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_item_id" integer, "quantity" integer DEFAULT 0, "action" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "source_type" varchar, "source_id" integer, "destination_type" varchar, "destination_id" integer, "originator_type" varchar, "originator_id" integer)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index'   (0.3ms) CREATE INDEX "tindex_aspree_stock_movements_on_stock_item_id" ON "aspree_stock_movements" ("stock_item_id")  (0.2ms) INSERT INTO "aspree_stock_movements" ("id","stock_item_id","quantity","action","created_at","updated_at","source_type","source_id","destination_type","destination_id","originator_type","originator_id") SELECT "id","stock_item_id","quantity","action","created_at","updated_at","source_type","source_id","destination_type","destination_id","originator_type","originator_id" FROM "spree_stock_movements"  (0.4ms) DROP TABLE "spree_stock_movements"  (0.4ms) CREATE TABLE "spree_stock_movements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_item_id" integer, "quantity" integer DEFAULT 0, "action" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "source_type" varchar, "destination_type" varchar, "destination_id" integer, "originator_type" varchar, "originator_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_stock_movements_on_stock_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_stock_movements_on_stock_item_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_stock_movements_on_stock_item_id" ON "spree_stock_movements" ("stock_item_id")  (0.2ms) INSERT INTO "spree_stock_movements" ("id","stock_item_id","quantity","action","created_at","updated_at","source_type","destination_type","destination_id","originator_type","originator_id") SELECT "id","stock_item_id","quantity","action","created_at","updated_at","source_type","destination_type","destination_id","originator_type","originator_id" FROM "aspree_stock_movements"  (0.2ms) DROP TABLE "aspree_stock_movements"  (0.2ms) CREATE TEMPORARY TABLE "aspree_stock_movements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_item_id" integer, "quantity" integer DEFAULT 0, "action" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "source_type" varchar, "destination_type" varchar, "destination_id" integer, "originator_type" varchar, "originator_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index'   (0.1ms) CREATE INDEX "tindex_aspree_stock_movements_on_stock_item_id" ON "aspree_stock_movements" ("stock_item_id")  (0.1ms) INSERT INTO "aspree_stock_movements" ("id","stock_item_id","quantity","action","created_at","updated_at","source_type","destination_type","destination_id","originator_type","originator_id") SELECT "id","stock_item_id","quantity","action","created_at","updated_at","source_type","destination_type","destination_id","originator_type","originator_id" FROM "spree_stock_movements"  (0.2ms) DROP TABLE "spree_stock_movements"  (0.2ms) CREATE TABLE "spree_stock_movements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_item_id" integer, "quantity" integer DEFAULT 0, "action" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "destination_type" varchar, "destination_id" integer, "originator_type" varchar, "originator_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_stock_movements_on_stock_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_stock_movements_on_stock_item_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_stock_movements_on_stock_item_id" ON "spree_stock_movements" ("stock_item_id")  (0.1ms) INSERT INTO "spree_stock_movements" ("id","stock_item_id","quantity","action","created_at","updated_at","destination_type","destination_id","originator_type","originator_id") SELECT "id","stock_item_id","quantity","action","created_at","updated_at","destination_type","destination_id","originator_type","originator_id" FROM "aspree_stock_movements"  (0.2ms) DROP TABLE "aspree_stock_movements"  (0.3ms) CREATE TEMPORARY TABLE "aspree_stock_movements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_item_id" integer, "quantity" integer DEFAULT 0, "action" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "destination_type" varchar, "destination_id" integer, "originator_type" varchar, "originator_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_stock_movements_on_stock_item_id" ON "aspree_stock_movements" ("stock_item_id")  (0.1ms) INSERT INTO "aspree_stock_movements" ("id","stock_item_id","quantity","action","created_at","updated_at","destination_type","destination_id","originator_type","originator_id") SELECT "id","stock_item_id","quantity","action","created_at","updated_at","destination_type","destination_id","originator_type","originator_id" FROM "spree_stock_movements"  (0.3ms) DROP TABLE "spree_stock_movements"  (0.2ms) CREATE TABLE "spree_stock_movements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_item_id" integer, "quantity" integer DEFAULT 0, "action" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "destination_type" varchar, "originator_type" varchar, "originator_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_stock_movements_on_stock_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_stock_movements_on_stock_item_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_stock_movements_on_stock_item_id" ON "spree_stock_movements" ("stock_item_id")  (0.1ms) INSERT INTO "spree_stock_movements" ("id","stock_item_id","quantity","action","created_at","updated_at","destination_type","originator_type","originator_id") SELECT "id","stock_item_id","quantity","action","created_at","updated_at","destination_type","originator_type","originator_id" FROM "aspree_stock_movements"  (0.2ms) DROP TABLE "aspree_stock_movements"  (0.2ms) CREATE TEMPORARY TABLE "aspree_stock_movements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_item_id" integer, "quantity" integer DEFAULT 0, "action" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "destination_type" varchar, "originator_type" varchar, "originator_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_stock_movements_on_stock_item_id" ON "aspree_stock_movements" ("stock_item_id")  (0.1ms) INSERT INTO "aspree_stock_movements" ("id","stock_item_id","quantity","action","created_at","updated_at","destination_type","originator_type","originator_id") SELECT "id","stock_item_id","quantity","action","created_at","updated_at","destination_type","originator_type","originator_id" FROM "spree_stock_movements"  (0.2ms) DROP TABLE "spree_stock_movements"  (0.2ms) CREATE TABLE "spree_stock_movements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_item_id" integer, "quantity" integer DEFAULT 0, "action" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "originator_type" varchar, "originator_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_stock_movements_on_stock_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_stock_movements_on_stock_item_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_stock_movements_on_stock_item_id" ON "spree_stock_movements" ("stock_item_id")  (0.1ms) INSERT INTO "spree_stock_movements" ("id","stock_item_id","quantity","action","created_at","updated_at","originator_type","originator_id") SELECT "id","stock_item_id","quantity","action","created_at","updated_at","originator_type","originator_id" FROM "aspree_stock_movements"  (0.2ms) DROP TABLE "aspree_stock_movements" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181887"]]  (109.3ms) commit transaction Migrating to MigrateInventoryUnitSoldToOnHand (20180516181888)  (0.1ms) begin transaction SQL (0.3ms) UPDATE "spree_inventory_units" SET "state" = 'on_hand' WHERE "spree_inventory_units"."state" = ? [["state", "sold"]] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181888"]]  (86.0ms) commit transaction Migrating to AddStockLocationToRma (20180516181889)  (0.1ms) begin transaction  (1.0ms) ALTER TABLE "spree_return_authorizations" ADD "stock_location_id" integer SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181889"]]  (83.3ms) commit transaction Migrating to UpdateShipmentStateForCanceledOrders (20180516181890)  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181890"]]  (91.1ms) commit transaction Migrating to AddSeoMetasToTaxons (20180516181891)  (0.3ms) begin transaction  (1.0ms) ALTER TABLE "spree_taxons" ADD "meta_title" varchar  (0.5ms) ALTER TABLE "spree_taxons" ADD "meta_description" varchar  (0.5ms) ALTER TABLE "spree_taxons" ADD "meta_keywords" varchar SQL (1.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181891"]]  (110.5ms) commit transaction Migrating to RemoveStockItemAndVariantLock (20180516181892)  (0.1ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "aspree_stock_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_location_id" integer, "variant_id" integer, "count_on_hand" integer DEFAULT 0 NOT NULL, "lock_version" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "backorderable" boolean DEFAULT 't')  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='stock_item_by_loc_and_var_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='stock_item_by_loc_and_var_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index'   (0.2ms) CREATE INDEX "tstock_item_by_loc_and_var_id" ON "aspree_stock_items" ("stock_location_id", "variant_id")  (0.2ms) CREATE INDEX "tindex_aspree_stock_items_on_stock_location_id" ON "aspree_stock_items" ("stock_location_id")  (0.1ms) INSERT INTO "aspree_stock_items" ("id","stock_location_id","variant_id","count_on_hand","lock_version","created_at","updated_at","backorderable") SELECT "id","stock_location_id","variant_id","count_on_hand","lock_version","created_at","updated_at","backorderable" FROM "spree_stock_items"  (0.4ms) DROP TABLE "spree_stock_items"  (0.3ms) CREATE TABLE "spree_stock_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_location_id" integer, "variant_id" integer, "count_on_hand" integer DEFAULT 0 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "backorderable" boolean DEFAULT 't')  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_stock_items_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_stock_items_on_stock_location_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tstock_item_by_loc_and_var_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tstock_item_by_loc_and_var_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_stock_items_on_stock_location_id" ON "spree_stock_items" ("stock_location_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index'   (0.2ms) CREATE INDEX "stock_item_by_loc_and_var_id" ON "spree_stock_items" ("stock_location_id", "variant_id")  (0.2ms) INSERT INTO "spree_stock_items" ("id","stock_location_id","variant_id","count_on_hand","created_at","updated_at","backorderable") SELECT "id","stock_location_id","variant_id","count_on_hand","created_at","updated_at","backorderable" FROM "aspree_stock_items"  (0.2ms) DROP TABLE "aspree_stock_items"  (0.2ms) CREATE TEMPORARY TABLE "aspree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2), "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "cost_price" decimal(8,2), "position" integer, "lock_version" integer DEFAULT 0, "cost_currency" varchar)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_variants_on_product_id" ON "aspree_variants" ("product_id")  (0.1ms) INSERT INTO "aspree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","lock_version","cost_currency") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","lock_version","cost_currency" FROM "spree_variants"  (0.4ms) DROP TABLE "spree_variants"  (0.3ms) CREATE TABLE "spree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2), "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "cost_price" decimal(8,2), "position" integer, "cost_currency" varchar)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_product_id" ON "spree_variants" ("product_id")  (0.1ms) INSERT INTO "spree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency" FROM "aspree_variants"  (0.2ms) DROP TABLE "aspree_variants" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181892"]]  (139.8ms) commit transaction Migrating to AddNameToSpreeCreditCards (20180516181893)  (0.1ms) begin transaction  (0.7ms) ALTER TABLE "spree_credit_cards" ADD "name" varchar SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181893"]]  (105.2ms) commit transaction Migrating to UpdateNameFieldsOnSpreeCreditCards (20180516181894)  (0.1ms) begin transaction  (0.3ms) UPDATE spree_credit_cards SET name = first_name || ' ' || last_name SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181894"]]  (174.7ms) commit transaction Migrating to AddIndexToSourceColumnsOnAdjustments (20180516181895)  (0.2ms) begin transaction  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_adjustments_on_order_id' AND type='index'   (0.6ms) CREATE INDEX "index_spree_adjustments_on_source_type_and_source_id" ON "spree_adjustments" ("source_type", "source_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181895"]]  (163.8ms) commit transaction Migrating to UpdateAdjustmentStates (20180516181896)  (0.3ms) begin transaction Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE ("spree_orders"."completed_at" IS NOT NULL) ORDER BY "spree_orders"."id" ASC LIMIT ? [["LIMIT", 1000]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."state" = 'shipped' ORDER BY "spree_shipments"."id" ASC LIMIT ? [["LIMIT", 1000]] Creating scope :open. Overwriting existing method Spree::Adjustment.open. SQL (0.1ms) UPDATE "spree_adjustments" SET "state" = 'open' WHERE "spree_adjustments"."state" IS NULL SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181896"]]  (124.6ms) commit transaction Migrating to AddShippingRatesToShipments (20180516181897)  (0.1ms) begin transaction Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" ORDER BY "spree_shipments"."id" ASC LIMIT ? [["LIMIT", 1000]]  (0.4ms) CREATE TEMPORARY TABLE "aspree_shipments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tracking" varchar, "number" varchar, "cost" decimal(8,2), "shipped_at" datetime, "order_id" integer, "shipping_method_id" integer, "address_id" integer, "state" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "stock_location_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_shipments_on_order_id" ON "aspree_shipments" ("order_id")  (0.3ms) CREATE INDEX "tindex_shipments_on_number" ON "aspree_shipments" ("number")  (0.2ms) INSERT INTO "aspree_shipments" ("id","tracking","number","cost","shipped_at","order_id","shipping_method_id","address_id","state","created_at","updated_at","stock_location_id") SELECT "id","tracking","number","cost","shipped_at","order_id","shipping_method_id","address_id","state","created_at","updated_at","stock_location_id" FROM "spree_shipments"  (0.5ms) DROP TABLE "spree_shipments"  (0.3ms) CREATE TABLE "spree_shipments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tracking" varchar, "number" varchar, "cost" decimal(8,2), "shipped_at" datetime, "order_id" integer, "address_id" integer, "state" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "stock_location_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_shipments_on_number' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_shipments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_shipments_on_number" ON "spree_shipments" ("number")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_shipments_on_order_id" ON "spree_shipments" ("order_id")  (0.2ms) INSERT INTO "spree_shipments" ("id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id") SELECT "id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id" FROM "aspree_shipments"  (0.2ms) DROP TABLE "aspree_shipments" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181897"]]  (130.3ms) commit transaction Migrating to CreateSpreeStockTransfers (20180516181898)  (0.2ms) begin transaction  (0.8ms) CREATE TABLE "spree_stock_transfers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "reference_number" varchar, "source_location_id" integer, "destination_location_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.5ms) CREATE INDEX "index_spree_stock_transfers_on_source_location_id" ON "spree_stock_transfers" ("source_location_id")  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_stock_transfers_on_destination_location_id" ON "spree_stock_transfers" ("destination_location_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181898"]]  (152.1ms) commit transaction Migrating to DropProductsCountOnHand (20180516181899)  (0.2ms) begin transaction  (0.6ms) CREATE TEMPORARY TABLE "aspree_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar DEFAULT '' NOT NULL, "description" text, "available_on" datetime, "deleted_at" datetime, "permalink" varchar, "meta_description" text, "meta_keywords" varchar, "tax_category_id" integer, "shipping_category_id" integer, "count_on_hand" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_permalink' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.3ms) CREATE INDEX "tindex_aspree_products_on_permalink" ON "aspree_products" ("permalink")  (0.2ms) CREATE INDEX "tindex_aspree_products_on_name" ON "aspree_products" ("name")  (0.3ms) CREATE INDEX "tindex_aspree_products_on_deleted_at" ON "aspree_products" ("deleted_at")  (0.2ms) CREATE INDEX "tindex_aspree_products_on_available_on" ON "aspree_products" ("available_on")  (0.1ms) INSERT INTO "aspree_products" ("id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","count_on_hand","created_at","updated_at") SELECT "id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","count_on_hand","created_at","updated_at" FROM "spree_products"  (0.5ms) DROP TABLE "spree_products"  (0.6ms) CREATE TABLE "spree_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar DEFAULT '' NOT NULL, "description" text, "available_on" datetime, "deleted_at" datetime, "permalink" varchar, "meta_description" text, "meta_keywords" varchar, "tax_category_id" integer, "shipping_category_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_available_on' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_permalink' AND type='index'   (0.3ms) CREATE INDEX "index_spree_products_on_available_on" ON "spree_products" ("available_on")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_deleted_at" ON "spree_products" ("deleted_at")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.5ms) CREATE INDEX "index_spree_products_on_name" ON "spree_products" ("name")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_permalink" ON "spree_products" ("permalink")  (0.5ms) INSERT INTO "spree_products" ("id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","created_at","updated_at") SELECT "id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","created_at","updated_at" FROM "aspree_products"  (0.4ms) DROP TABLE "aspree_products" SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181899"]]  (105.4ms) commit transaction Migrating to SetDefaultShippingRateCost (20180516181900)  (0.2ms) begin transaction  (0.5ms) CREATE TEMPORARY TABLE "aspree_shipping_rates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "shipment_id" integer, "shipping_method_id" integer, "selected" boolean DEFAULT 'f', "cost" decimal(8,2), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='spree_shipping_rates_join_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_shipping_rates_join_index' AND type='index'   (0.4ms) CREATE UNIQUE INDEX "tspree_shipping_rates_join_index" ON "aspree_shipping_rates" ("shipment_id", "shipping_method_id")  (0.2ms) INSERT INTO "aspree_shipping_rates" ("id","shipment_id","shipping_method_id","selected","cost","created_at","updated_at") SELECT "id","shipment_id","shipping_method_id","selected","cost","created_at","updated_at" FROM "spree_shipping_rates"  (0.5ms) DROP TABLE "spree_shipping_rates"  (0.5ms) CREATE TABLE "spree_shipping_rates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "shipment_id" integer, "shipping_method_id" integer, "selected" boolean DEFAULT 'f', "cost" decimal(8,2) DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tspree_shipping_rates_join_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tspree_shipping_rates_join_index' AND type='index'   (0.4ms) CREATE UNIQUE INDEX "spree_shipping_rates_join_index" ON "spree_shipping_rates" ("shipment_id", "shipping_method_id")  (0.2ms) INSERT INTO "spree_shipping_rates" ("id","shipment_id","shipping_method_id","selected","cost","created_at","updated_at") SELECT "id","shipment_id","shipping_method_id","selected","cost","created_at","updated_at" FROM "aspree_shipping_rates"  (0.3ms) DROP TABLE "aspree_shipping_rates" SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181900"]]  (112.4ms) commit transaction Migrating to AddNumberToStockTransfer (20180516181901)  (0.1ms) begin transaction  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index'   (0.4ms) DROP INDEX "index_spree_stock_transfers_on_source_location_id"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index'   (0.3ms) DROP INDEX "index_spree_stock_transfers_on_destination_location_id"  (0.3ms) CREATE TEMPORARY TABLE "aspree_stock_transfers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "reference" varchar, "source_location_id" integer, "destination_location_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) INSERT INTO "aspree_stock_transfers" ("id","type","reference","source_location_id","destination_location_id","created_at","updated_at") SELECT "id","type","reference_number","source_location_id","destination_location_id","created_at","updated_at" FROM "spree_stock_transfers"  (0.4ms) DROP TABLE "spree_stock_transfers"  (0.8ms) CREATE TABLE "spree_stock_transfers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "reference" varchar, "source_location_id" integer, "destination_location_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) INSERT INTO "spree_stock_transfers" ("id","type","reference","source_location_id","destination_location_id","created_at","updated_at") SELECT "id","type","reference","source_location_id","destination_location_id","created_at","updated_at" FROM "aspree_stock_transfers"  (0.2ms) DROP TABLE "aspree_stock_transfers"  (0.3ms) ALTER TABLE "spree_stock_transfers" ADD "number" varchar Spree::StockTransfer Load (0.1ms) SELECT "spree_stock_transfers".* FROM "spree_stock_transfers" ORDER BY "spree_stock_transfers"."id" ASC LIMIT ? [["LIMIT", 1000]]  (0.2ms) CREATE INDEX "index_spree_stock_transfers_on_number" ON "spree_stock_transfers" ("number")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_number' AND type='index'   (0.3ms) CREATE INDEX "index_spree_stock_transfers_on_source_location_id" ON "spree_stock_transfers" ("source_location_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_stock_transfers_on_destination_location_id" ON "spree_stock_transfers" ("destination_location_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181901"]]  (118.9ms) commit transaction Migrating to AddSkuIndexToSpreeVariants (20180516181902)  (0.2ms) begin transaction  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.4ms) CREATE INDEX "index_spree_variants_on_sku" ON "spree_variants" ("sku") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181902"]]  (117.9ms) commit transaction Migrating to AddBackorderableDefaultToSpreeStockLocation (20180516181903)  (0.1ms) begin transaction  (0.7ms) ALTER TABLE "spree_stock_locations" ADD "backorderable_default" boolean DEFAULT 't' SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181903"]]  (104.4ms) commit transaction Migrating to AddPropageAllVariantsToSpreeStockLocation (20180516181904)  (0.1ms) begin transaction  (1.0ms) ALTER TABLE "spree_stock_locations" ADD "propagate_all_variants" boolean DEFAULT 't' SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181904"]]  (93.9ms) commit transaction Migrating to RenameShippingMethodsZonesToSpreeShippingMethodsZones (20180516181905)  (0.2ms) begin transaction  (0.8ms) ALTER TABLE "shipping_methods_zones" RENAME TO "spree_shipping_methods_zones" SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181905"]]  (94.0ms) commit transaction Migrating to AddUserIdIndexToSpreeOrders (20180516181906)  (0.1ms) begin transaction  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.6ms) CREATE INDEX "index_spree_orders_on_user_id" ON "spree_orders" ("user_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181906"]]  (119.0ms) commit transaction Migrating to AddUpdatedAtToSpreeCountries (20180516181907)  (0.2ms) begin transaction  (1.1ms) ALTER TABLE "spree_countries" ADD "updated_at" datetime SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181907"]]  (122.6ms) commit transaction Migrating to AddUpdatedAtToSpreeStates (20180516181908)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "spree_states" ADD "updated_at" datetime SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181908"]]  (374.0ms) commit transaction Migrating to AddCvvResultCodeAndCvvResultMessageToSpreePayments (20180516181909)  (0.2ms) begin transaction  (1.1ms) ALTER TABLE "spree_payments" ADD "cvv_response_code" varchar  (0.6ms) ALTER TABLE "spree_payments" ADD "cvv_response_message" varchar SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181909"]]  (126.9ms) commit transaction Migrating to AddUniqueIndexToPermalinkOnSpreeProducts (20180516181910)  (0.1ms) begin transaction  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_permalink' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.6ms) CREATE UNIQUE INDEX "permalink_idx_unique" ON "spree_products" ("permalink") SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181910"]]  (164.8ms) commit transaction Migrating to AddUniqueIndexToOrdersShipmentsAndStockTransfers (20180516181911)  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181911"]]  (93.8ms) commit transaction Migrating to AddDeletedAtToSpreeTaxRates (20180516181912)  (0.1ms) begin transaction  (0.9ms) ALTER TABLE "spree_tax_rates" ADD "deleted_at" datetime SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181912"]]  (103.5ms) commit transaction Migrating to RemoveLockVersionFromInventoryUnits (20180516181913)  (0.2ms) begin transaction  (0.5ms) CREATE TEMPORARY TABLE "aspree_inventory_units" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "lock_version" integer DEFAULT 0, "state" varchar, "variant_id" integer, "order_id" integer, "shipment_id" integer, "return_authorization_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "pending" boolean DEFAULT 't')  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_variant_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_shipment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_shipment_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_order_id' AND type='index'   (0.3ms) CREATE INDEX "tindex_inventory_units_on_variant_id" ON "aspree_inventory_units" ("variant_id")  (0.3ms) CREATE INDEX "tindex_inventory_units_on_shipment_id" ON "aspree_inventory_units" ("shipment_id")  (0.3ms) CREATE INDEX "tindex_inventory_units_on_order_id" ON "aspree_inventory_units" ("order_id")  (0.1ms) INSERT INTO "aspree_inventory_units" ("id","lock_version","state","variant_id","order_id","shipment_id","return_authorization_id","created_at","updated_at","pending") SELECT "id","lock_version","state","variant_id","order_id","shipment_id","return_authorization_id","created_at","updated_at","pending" FROM "spree_inventory_units"  (0.4ms) DROP TABLE "spree_inventory_units"  (0.3ms) CREATE TABLE "spree_inventory_units" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar, "variant_id" integer, "order_id" integer, "shipment_id" integer, "return_authorization_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "pending" boolean DEFAULT 't')  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_inventory_units_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_inventory_units_on_shipment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_inventory_units_on_shipment_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_inventory_units_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_inventory_units_on_variant_id' AND type='index'   (0.2ms) CREATE INDEX "index_inventory_units_on_order_id" ON "spree_inventory_units" ("order_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_inventory_units_on_shipment_id" ON "spree_inventory_units" ("shipment_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_shipment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_shipment_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_inventory_units_on_variant_id" ON "spree_inventory_units" ("variant_id")  (0.1ms) INSERT INTO "spree_inventory_units" ("id","state","variant_id","order_id","shipment_id","return_authorization_id","created_at","updated_at","pending") SELECT "id","state","variant_id","order_id","shipment_id","return_authorization_id","created_at","updated_at","pending" FROM "aspree_inventory_units"  (0.2ms) DROP TABLE "aspree_inventory_units" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181913"]]  (146.7ms) commit transaction Migrating to AddCostPriceToLineItem (20180516181914)  (0.1ms) begin transaction  (1.0ms) ALTER TABLE "spree_line_items" ADD "cost_price" decimal(8,2) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181914"]]  (108.8ms) commit transaction Migrating to SetBackorderableToDefaultToFalse (20180516181915)  (0.1ms) begin transaction  (0.5ms) CREATE TEMPORARY TABLE "aspree_stock_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_location_id" integer, "variant_id" integer, "count_on_hand" integer DEFAULT 0 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "backorderable" boolean DEFAULT 't')  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='stock_item_by_loc_and_var_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='stock_item_by_loc_and_var_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index'   (0.3ms) CREATE INDEX "tstock_item_by_loc_and_var_id" ON "aspree_stock_items" ("stock_location_id", "variant_id")  (0.3ms) CREATE INDEX "tindex_aspree_stock_items_on_stock_location_id" ON "aspree_stock_items" ("stock_location_id")  (0.2ms) INSERT INTO "aspree_stock_items" ("id","stock_location_id","variant_id","count_on_hand","created_at","updated_at","backorderable") SELECT "id","stock_location_id","variant_id","count_on_hand","created_at","updated_at","backorderable" FROM "spree_stock_items"  (0.7ms) DROP TABLE "spree_stock_items"  (0.4ms) CREATE TABLE "spree_stock_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_location_id" integer, "variant_id" integer, "count_on_hand" integer DEFAULT 0 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "backorderable" boolean DEFAULT 'f')  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_stock_items_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_stock_items_on_stock_location_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tstock_item_by_loc_and_var_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tstock_item_by_loc_and_var_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_stock_items_on_stock_location_id" ON "spree_stock_items" ("stock_location_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index'   (0.2ms) CREATE INDEX "stock_item_by_loc_and_var_id" ON "spree_stock_items" ("stock_location_id", "variant_id")  (0.2ms) INSERT INTO "spree_stock_items" ("id","stock_location_id","variant_id","count_on_hand","created_at","updated_at","backorderable") SELECT "id","stock_location_id","variant_id","count_on_hand","created_at","updated_at","backorderable" FROM "aspree_stock_items"  (0.2ms) DROP TABLE "aspree_stock_items"  (0.2ms) CREATE TEMPORARY TABLE "aspree_stock_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "default" boolean DEFAULT 'f' NOT NULL, "address1" varchar, "address2" varchar, "city" varchar, "state_id" integer, "state_name" varchar, "country_id" integer, "zipcode" varchar, "phone" varchar, "active" boolean DEFAULT 't', "backorderable_default" boolean DEFAULT 't', "propagate_all_variants" boolean DEFAULT 't')  (0.2ms) INSERT INTO "aspree_stock_locations" ("id","name","created_at","updated_at","default","address1","address2","city","state_id","state_name","country_id","zipcode","phone","active","backorderable_default","propagate_all_variants") SELECT "id","name","created_at","updated_at","default","address1","address2","city","state_id","state_name","country_id","zipcode","phone","active","backorderable_default","propagate_all_variants" FROM "spree_stock_locations"  (0.2ms) DROP TABLE "spree_stock_locations"  (0.3ms) CREATE TABLE "spree_stock_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "default" boolean DEFAULT 'f' NOT NULL, "address1" varchar, "address2" varchar, "city" varchar, "state_id" integer, "state_name" varchar, "country_id" integer, "zipcode" varchar, "phone" varchar, "active" boolean DEFAULT 't', "backorderable_default" boolean DEFAULT 'f', "propagate_all_variants" boolean DEFAULT 't')  (0.2ms) INSERT INTO "spree_stock_locations" ("id","name","created_at","updated_at","default","address1","address2","city","state_id","state_name","country_id","zipcode","phone","active","backorderable_default","propagate_all_variants") SELECT "id","name","created_at","updated_at","default","address1","address2","city","state_id","state_name","country_id","zipcode","phone","active","backorderable_default","propagate_all_variants" FROM "aspree_stock_locations"  (0.3ms) DROP TABLE "aspree_stock_locations" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181915"]]  (158.7ms) commit transaction Migrating to AddCreatedByIdToSpreeOrders (20180516181916)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "spree_orders" ADD "created_by_id" integer SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181916"]]  (118.6ms) commit transaction Migrating to IndexCompletedAtOnSpreeOrders (20180516181917)  (0.1ms) begin transaction  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.6ms) CREATE INDEX "index_spree_orders_on_completed_at" ON "spree_orders" ("completed_at") SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181917"]]  (145.8ms) commit transaction Migrating to AddTaxCategoryIdToSpreeLineItems (20180516181918)  (0.1ms) begin transaction  (1.1ms) ALTER TABLE "spree_line_items" ADD "tax_category_id" integer SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181918"]]  (127.9ms) commit transaction Migrating to MigrateTaxCategoriesToLineItems (20180516181919)  (0.2ms) begin transaction Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" ORDER BY "spree_line_items"."id" ASC LIMIT ? [["LIMIT", 1000]] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181919"]]  (98.8ms) commit transaction Migrating to DropSpreeMailMethods (20180516181920)  (0.1ms) begin transaction  (0.4ms) DROP TABLE "spree_mail_methods" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181920"]]  (126.3ms) commit transaction Migrating to SetDefaultStockLocationOnShipments (20180516181921)  (0.1ms) begin transaction  (0.3ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (stock_location_id IS NULL) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181921"]]  (86.3ms) commit transaction Migrating to UpgradeAdjustments (20180516181922)  (0.1ms) begin transaction Spree::Adjustment Load (0.8ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."source_type" = ? ORDER BY "spree_adjustments"."id" ASC LIMIT ? [["source_type", "Spree::Shipment"], ["LIMIT", 1000]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."originator_type" = ? ORDER BY "spree_adjustments"."id" ASC LIMIT ? [["originator_type", "Spree::TaxRate"], ["LIMIT", 1000]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."originator_type" = ? ORDER BY "spree_adjustments"."id" ASC LIMIT ? [["originator_type", "Spree::PromotionAction"], ["LIMIT", 1000]] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181922"]]  (89.0ms) commit transaction Migrating to RenameAdjustmentFields (20180516181923)  (0.1ms) begin transaction  (0.3ms) CREATE TEMPORARY TABLE "aspree_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "source_type" varchar, "source_id" integer, "adjustable_type" varchar, "adjustable_id" integer, "originator_type" varchar, "originator_id" integer, "amount" decimal(10,2), "label" varchar, "mandatory" boolean, "eligible" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "state" varchar)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_source_type_and_source_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_source_type_and_source_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_adjustments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_adjustments_on_source_type_and_source_id" ON "aspree_adjustments" ("source_type", "source_id")  (0.2ms) CREATE INDEX "tindex_adjustments_on_order_id" ON "aspree_adjustments" ("adjustable_id")  (0.1ms) INSERT INTO "aspree_adjustments" ("id","source_type","source_id","adjustable_type","adjustable_id","originator_type","originator_id","amount","label","mandatory","eligible","created_at","updated_at","state") SELECT "id","source_type","source_id","adjustable_type","adjustable_id","originator_type","originator_id","amount","label","mandatory","eligible","created_at","updated_at","state" FROM "spree_adjustments"  (0.5ms) DROP TABLE "spree_adjustments"  (0.5ms) CREATE TABLE "spree_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "source_type" varchar, "source_id" integer, "adjustable_type" varchar, "adjustable_id" integer, "originator_type" varchar, "amount" decimal(10,2), "label" varchar, "mandatory" boolean, "eligible" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "state" varchar)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_adjustments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_adjustments_on_source_type_and_source_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_adjustments_on_source_type_and_source_id' AND type='index'   (0.6ms) CREATE INDEX "index_adjustments_on_order_id" ON "spree_adjustments" ("adjustable_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_adjustments_on_order_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_adjustments_on_source_type_and_source_id" ON "spree_adjustments" ("source_type", "source_id")  (0.3ms) INSERT INTO "spree_adjustments" ("id","source_type","source_id","adjustable_type","adjustable_id","originator_type","amount","label","mandatory","eligible","created_at","updated_at","state") SELECT "id","source_type","source_id","adjustable_type","adjustable_id","originator_type","amount","label","mandatory","eligible","created_at","updated_at","state" FROM "aspree_adjustments"  (0.3ms) DROP TABLE "aspree_adjustments"  (0.4ms) CREATE TEMPORARY TABLE "aspree_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "source_type" varchar, "source_id" integer, "adjustable_type" varchar, "adjustable_id" integer, "originator_type" varchar, "amount" decimal(10,2), "label" varchar, "mandatory" boolean, "eligible" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "state" varchar)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_source_type_and_source_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_source_type_and_source_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_adjustments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_adjustments_on_source_type_and_source_id" ON "aspree_adjustments" ("source_type", "source_id")  (0.2ms) CREATE INDEX "tindex_adjustments_on_order_id" ON "aspree_adjustments" ("adjustable_id")  (0.2ms) INSERT INTO "aspree_adjustments" ("id","source_type","source_id","adjustable_type","adjustable_id","originator_type","amount","label","mandatory","eligible","created_at","updated_at","state") SELECT "id","source_type","source_id","adjustable_type","adjustable_id","originator_type","amount","label","mandatory","eligible","created_at","updated_at","state" FROM "spree_adjustments"  (0.5ms) DROP TABLE "spree_adjustments"  (0.3ms) CREATE TABLE "spree_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "source_type" varchar, "source_id" integer, "adjustable_type" varchar, "adjustable_id" integer, "amount" decimal(10,2), "label" varchar, "mandatory" boolean, "eligible" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "state" varchar)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_adjustments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_adjustments_on_source_type_and_source_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_adjustments_on_source_type_and_source_id' AND type='index'   (0.2ms) CREATE INDEX "index_adjustments_on_order_id" ON "spree_adjustments" ("adjustable_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_adjustments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_adjustments_on_source_type_and_source_id" ON "spree_adjustments" ("source_type", "source_id")  (0.2ms) INSERT INTO "spree_adjustments" ("id","source_type","source_id","adjustable_type","adjustable_id","amount","label","mandatory","eligible","created_at","updated_at","state") SELECT "id","source_type","source_id","adjustable_type","adjustable_id","amount","label","mandatory","eligible","created_at","updated_at","state" FROM "aspree_adjustments"  (0.2ms) DROP TABLE "aspree_adjustments"  (0.4ms) ALTER TABLE "spree_adjustments" ADD "order_id" integer Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = ? ORDER BY "spree_adjustments"."id" ASC LIMIT ? [["adjustable_type", "Spree::Order"], ["LIMIT", 1000]] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181923"]]  (119.0ms) commit transaction Migrating to AddAdminNameColumnToSpreeShippingMethods (20180516181924)  (0.2ms) begin transaction  (0.9ms) ALTER TABLE "spree_shipping_methods" ADD "admin_name" varchar SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181924"]]  (91.4ms) commit transaction Migrating to AddAdminNameColumnToSpreeStockLocations (20180516181925)  (0.2ms) begin transaction  (1.1ms) ALTER TABLE "spree_stock_locations" ADD "admin_name" varchar SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181925"]]  (129.9ms) commit transaction Migrating to AddShipmentTotalToSpreeOrders (20180516181926)  (0.2ms) begin transaction  (1.1ms) ALTER TABLE "spree_orders" ADD "shipment_total" decimal(10,2) DEFAULT 0.0 NOT NULL SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181926"]]  (103.1ms) commit transaction Migrating to ExpandOrderNumberSize (20180516181927)  (0.2ms) begin transaction  (0.8ms) CREATE TEMPORARY TABLE "aspree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(15), "item_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "total" decimal(10,2) DEFAULT '0.0' NOT NULL, "state" varchar, "adjustment_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(10,2) DEFAULT '0.0', "shipping_method_id" integer, "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "last_ip_address" varchar, "created_by_id" integer, "shipment_total" decimal(10,2) DEFAULT '0.0' NOT NULL)  (0.5ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_orders_on_completed_at" ON "aspree_orders" ("completed_at")  (0.2ms) CREATE INDEX "tindex_aspree_orders_on_user_id" ON "aspree_orders" ("user_id")  (0.2ms) CREATE INDEX "tindex_aspree_orders_on_number" ON "aspree_orders" ("number")  (0.2ms) INSERT INTO "aspree_orders" ("id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address","created_by_id","shipment_total") SELECT "id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address","created_by_id","shipment_total" FROM "spree_orders"  (0.5ms) DROP TABLE "spree_orders"  (0.4ms) CREATE TABLE "spree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(32), "item_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "total" decimal(10,2) DEFAULT '0.0' NOT NULL, "state" varchar, "adjustment_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(10,2) DEFAULT '0.0', "shipping_method_id" integer, "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "last_ip_address" varchar, "created_by_id" integer, "shipment_total" decimal(10,2) DEFAULT '0.0' NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_number' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_completed_at' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_number" ON "spree_orders" ("number")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_user_id" ON "spree_orders" ("user_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_completed_at" ON "spree_orders" ("completed_at")  (0.4ms) INSERT INTO "spree_orders" ("id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address","created_by_id","shipment_total") SELECT "id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address","created_by_id","shipment_total" FROM "aspree_orders"  (0.3ms) DROP TABLE "aspree_orders" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181927"]]  (147.9ms) commit transaction Migrating to RenameActivatorsToPromotions (20180516181928)  (0.2ms) begin transaction  (1.1ms) ALTER TABLE "spree_activators" RENAME TO "spree_promotions" SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181928"]]  (110.8ms) commit transaction Migrating to AddAdjustmentTotalToLineItems (20180516181929)  (0.2ms) begin transaction  (1.1ms) ALTER TABLE "spree_line_items" ADD "adjustment_total" decimal(10,2) DEFAULT 0.0 SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181929"]]  (102.7ms) commit transaction Migrating to AddAdjustmentTotalToShipments (20180516181930)  (0.2ms) begin transaction  (1.1ms) ALTER TABLE "spree_shipments" ADD "adjustment_total" decimal(10,2) DEFAULT 0.0 SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181930"]]  (84.8ms) commit transaction Migrating to AddDepthToSpreeTaxons (20180516181931)  (0.2ms) begin transaction  (0.6ms) ALTER TABLE "spree_taxons" ADD "depth" integer Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181931"]]  (105.4ms) commit transaction Migrating to AddTaxTotalToLineItemsShipmentsAndOrders (20180516181932)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "spree_line_items" ADD "tax_total" decimal(10,2) DEFAULT 0.0  (0.3ms) ALTER TABLE "spree_shipments" ADD "tax_total" decimal(10,2) DEFAULT 0.0  (0.4ms) ALTER TABLE "spree_orders" ADD "tax_total" decimal(10,2) DEFAULT 0.0 SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181932"]]  (92.4ms) commit transaction Migrating to AddShippingCategoryToShippingMethodsAndProducts (20180516181933)  (0.1ms) begin transaction Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT ? [["LIMIT", 1]] Spree::ShippingCategory Exists (0.2ms) SELECT 1 AS one FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."name" = ? LIMIT ? [["name", "Default"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "spree_shipping_categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Default"], ["created_at", "2018-05-16 18:19:22.001025"], ["updated_at", "2018-05-16 18:19:22.001025"]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."deleted_at" IS NULL SQL (0.1ms) UPDATE "spree_products" SET "shipping_category_id" = 1 WHERE "spree_products"."deleted_at" IS NULL AND "spree_products"."shipping_category_id" IS NULL SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181933"]]  (138.3ms) commit transaction Migrating to MigrateOldShippingCalculators (20180516181934)  (0.2ms) begin transaction Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."deleted_at" IS NULL SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181934"]]  (74.9ms) commit transaction Migrating to AddCodeToSpreePromotionRules (20180516181935)  (0.2ms) begin transaction  (1.1ms) ALTER TABLE "spree_promotion_rules" ADD "code" varchar SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181935"]]  (134.6ms) commit transaction Migrating to ChangeStatesRequiredForCountries (20180516181936)  (0.2ms) begin transaction  (0.5ms) CREATE TEMPORARY TABLE "aspree_countries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "iso_name" varchar, "iso" varchar, "iso3" varchar, "name" varchar, "numcode" integer, "states_required" boolean DEFAULT 't', "updated_at" datetime)  (0.3ms) INSERT INTO "aspree_countries" ("id","iso_name","iso","iso3","name","numcode","states_required","updated_at") SELECT "id","iso_name","iso","iso3","name","numcode","states_required","updated_at" FROM "spree_countries"  (0.6ms) DROP TABLE "spree_countries"  (0.3ms) CREATE TABLE "spree_countries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "iso_name" varchar, "iso" varchar, "iso3" varchar, "name" varchar, "numcode" integer, "states_required" boolean DEFAULT 'f', "updated_at" datetime)  (0.2ms) INSERT INTO "spree_countries" ("id","iso_name","iso","iso3","name","numcode","states_required","updated_at") SELECT "id","iso_name","iso","iso3","name","numcode","states_required","updated_at" FROM "aspree_countries"  (0.3ms) DROP TABLE "aspree_countries" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181936"]]  (173.7ms) commit transaction Migrating to AddDeletedAtToSpreeStockItems (20180516181937)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "spree_stock_items" ADD "deleted_at" datetime SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181937"]]  (120.5ms) commit transaction Migrating to RemovePromotionsEventNameField (20180516181938)  (0.1ms) begin transaction  (0.5ms) CREATE TEMPORARY TABLE "aspree_promotions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "description" varchar, "expires_at" datetime, "starts_at" datetime, "name" varchar, "event_name" varchar, "type" varchar, "usage_limit" integer, "match_policy" varchar DEFAULT 'all', "code" varchar, "advertise" boolean DEFAULT 'f', "path" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.3ms) INSERT INTO "aspree_promotions" ("id","description","expires_at","starts_at","name","event_name","type","usage_limit","match_policy","code","advertise","path","created_at","updated_at") SELECT "id","description","expires_at","starts_at","name","event_name","type","usage_limit","match_policy","code","advertise","path","created_at","updated_at" FROM "spree_promotions"  (0.5ms) DROP TABLE "spree_promotions"  (0.3ms) CREATE TABLE "spree_promotions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "description" varchar, "expires_at" datetime, "starts_at" datetime, "name" varchar, "type" varchar, "usage_limit" integer, "match_policy" varchar DEFAULT 'all', "code" varchar, "advertise" boolean DEFAULT 'f', "path" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) INSERT INTO "spree_promotions" ("id","description","expires_at","starts_at","name","type","usage_limit","match_policy","code","advertise","path","created_at","updated_at") SELECT "id","description","expires_at","starts_at","name","type","usage_limit","match_policy","code","advertise","path","created_at","updated_at" FROM "aspree_promotions"  (0.2ms) DROP TABLE "aspree_promotions" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181938"]]  (107.4ms) commit transaction Migrating to AddPromoTotalToLineItemsAndShipmentsAndOrders (20180516181939)  (0.2ms) begin transaction  (1.3ms) ALTER TABLE "spree_line_items" ADD "promo_total" decimal(10,2) DEFAULT 0.0  (0.8ms) ALTER TABLE "spree_shipments" ADD "promo_total" decimal(10,2) DEFAULT 0.0  (0.8ms) ALTER TABLE "spree_orders" ADD "promo_total" decimal(10,2) DEFAULT 0.0 SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181939"]]  (98.3ms) commit transaction Migrating to RemoveUnusedCreditCardFields (20180516181940)  (0.1ms) begin transaction  (0.3ms) CREATE TEMPORARY TABLE "aspree_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "month" varchar, "year" varchar, "cc_type" varchar, "last_digits" varchar, "first_name" varchar, "last_name" varchar, "start_month" varchar, "start_year" varchar, "issue_number" varchar, "address_id" integer, "gateway_customer_profile_id" varchar, "gateway_payment_profile_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "name" varchar)  (0.1ms) INSERT INTO "aspree_credit_cards" ("id","month","year","cc_type","last_digits","first_name","last_name","start_month","start_year","issue_number","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name") SELECT "id","month","year","cc_type","last_digits","first_name","last_name","start_month","start_year","issue_number","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name" FROM "spree_credit_cards"  (0.4ms) DROP TABLE "spree_credit_cards"  (0.4ms) CREATE TABLE "spree_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "month" varchar, "year" varchar, "cc_type" varchar, "last_digits" varchar, "first_name" varchar, "last_name" varchar, "start_year" varchar, "issue_number" varchar, "address_id" integer, "gateway_customer_profile_id" varchar, "gateway_payment_profile_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "name" varchar)  (0.2ms) INSERT INTO "spree_credit_cards" ("id","month","year","cc_type","last_digits","first_name","last_name","start_year","issue_number","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name") SELECT "id","month","year","cc_type","last_digits","first_name","last_name","start_year","issue_number","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name" FROM "aspree_credit_cards"  (0.5ms) DROP TABLE "aspree_credit_cards"  (0.3ms) CREATE TEMPORARY TABLE "aspree_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "month" varchar, "year" varchar, "cc_type" varchar, "last_digits" varchar, "first_name" varchar, "last_name" varchar, "start_year" varchar, "issue_number" varchar, "address_id" integer, "gateway_customer_profile_id" varchar, "gateway_payment_profile_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "name" varchar)  (0.1ms) INSERT INTO "aspree_credit_cards" ("id","month","year","cc_type","last_digits","first_name","last_name","start_year","issue_number","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name") SELECT "id","month","year","cc_type","last_digits","first_name","last_name","start_year","issue_number","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name" FROM "spree_credit_cards"  (0.3ms) DROP TABLE "spree_credit_cards"  (0.2ms) CREATE TABLE "spree_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "month" varchar, "year" varchar, "cc_type" varchar, "last_digits" varchar, "first_name" varchar, "last_name" varchar, "issue_number" varchar, "address_id" integer, "gateway_customer_profile_id" varchar, "gateway_payment_profile_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "name" varchar)  (0.1ms) INSERT INTO "spree_credit_cards" ("id","month","year","cc_type","last_digits","first_name","last_name","issue_number","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name") SELECT "id","month","year","cc_type","last_digits","first_name","last_name","issue_number","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name" FROM "aspree_credit_cards"  (0.2ms) DROP TABLE "aspree_credit_cards"  (0.2ms) CREATE TEMPORARY TABLE "aspree_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "month" varchar, "year" varchar, "cc_type" varchar, "last_digits" varchar, "first_name" varchar, "last_name" varchar, "issue_number" varchar, "address_id" integer, "gateway_customer_profile_id" varchar, "gateway_payment_profile_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "name" varchar)  (0.2ms) INSERT INTO "aspree_credit_cards" ("id","month","year","cc_type","last_digits","first_name","last_name","issue_number","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name") SELECT "id","month","year","cc_type","last_digits","first_name","last_name","issue_number","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name" FROM "spree_credit_cards"  (0.3ms) DROP TABLE "spree_credit_cards"  (0.4ms) CREATE TABLE "spree_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "month" varchar, "year" varchar, "cc_type" varchar, "last_digits" varchar, "first_name" varchar, "last_name" varchar, "address_id" integer, "gateway_customer_profile_id" varchar, "gateway_payment_profile_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "name" varchar)  (0.1ms) INSERT INTO "spree_credit_cards" ("id","month","year","cc_type","last_digits","first_name","last_name","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name") SELECT "id","month","year","cc_type","last_digits","first_name","last_name","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name" FROM "aspree_credit_cards"  (0.2ms) DROP TABLE "aspree_credit_cards" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181940"]]  (130.7ms) commit transaction Migrating to AddTrackInventoryToVariant (20180516181941)  (0.1ms) begin transaction  (0.9ms) ALTER TABLE "spree_variants" ADD "track_inventory" boolean DEFAULT 't' SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181941"]]  (86.7ms) commit transaction Migrating to AddTaxCategoryToVariants (20180516181942)  (0.2ms) begin transaction  (1.0ms) ALTER TABLE "spree_variants" ADD "tax_category_id" integer  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.5ms) CREATE INDEX "index_spree_variants_on_tax_category_id" ON "spree_variants" ("tax_category_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181942"]]  (103.9ms) commit transaction Migrating to AddChannelToSpreeOrders (20180516181943)  (0.1ms) begin transaction  (0.8ms) ALTER TABLE "spree_orders" ADD "channel" varchar DEFAULT 'spree' SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181943"]]  (185.2ms) commit transaction Migrating to AddIncludedToAdjustments (20180516181944)  (0.1ms) begin transaction  (1.1ms) ALTER TABLE "spree_adjustments" ADD "included" boolean DEFAULT 'f' SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181944"]]  (99.3ms) commit transaction Migrating to RenameTaxTotalFields (20180516181945)  (0.1ms) begin transaction  (0.3ms) CREATE TEMPORARY TABLE "aspree_line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer, "order_id" integer, "quantity" integer NOT NULL, "price" decimal(8,2) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "cost_price" decimal(8,2), "tax_category_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0')  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_variant_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_line_items_on_variant_id" ON "aspree_line_items" ("variant_id")  (0.2ms) CREATE INDEX "tindex_aspree_line_items_on_order_id" ON "aspree_line_items" ("order_id")  (0.2ms) INSERT INTO "aspree_line_items" ("id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total") SELECT "id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","tax_total","promo_total" FROM "spree_line_items"  (0.4ms) DROP TABLE "spree_line_items"  (1.0ms) CREATE TABLE "spree_line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer, "order_id" integer, "quantity" integer NOT NULL, "price" decimal(8,2) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "cost_price" decimal(8,2), "tax_category_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0')  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_line_items_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_line_items_on_variant_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_line_items_on_order_id" ON "spree_line_items" ("order_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_line_items_on_variant_id" ON "spree_line_items" ("variant_id")  (0.2ms) INSERT INTO "spree_line_items" ("id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total") SELECT "id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total" FROM "aspree_line_items"  (0.2ms) DROP TABLE "aspree_line_items"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_variant_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.3ms) CREATE TEMPORARY TABLE "aspree_shipments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tracking" varchar, "number" varchar, "cost" decimal(8,2), "shipped_at" datetime, "order_id" integer, "address_id" integer, "state" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "stock_location_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0')  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.3ms) CREATE INDEX "tindex_aspree_shipments_on_order_id" ON "aspree_shipments" ("order_id")  (0.2ms) CREATE INDEX "tindex_shipments_on_number" ON "aspree_shipments" ("number")  (0.1ms) INSERT INTO "aspree_shipments" ("id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total") SELECT "id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","tax_total","promo_total" FROM "spree_shipments"  (0.7ms) DROP TABLE "spree_shipments"  (0.2ms) CREATE TABLE "spree_shipments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tracking" varchar, "number" varchar, "cost" decimal(8,2), "shipped_at" datetime, "order_id" integer, "address_id" integer, "state" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "stock_location_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0')  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_shipments_on_number' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_shipments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_shipments_on_number" ON "spree_shipments" ("number")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_shipments_on_order_id" ON "spree_shipments" ("order_id")  (0.1ms) INSERT INTO "spree_shipments" ("id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total") SELECT "id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total" FROM "aspree_shipments"  (0.2ms) DROP TABLE "aspree_shipments"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.3ms) CREATE TEMPORARY TABLE "aspree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(32), "item_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "total" decimal(10,2) DEFAULT '0.0' NOT NULL, "state" varchar, "adjustment_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(10,2) DEFAULT '0.0', "shipping_method_id" integer, "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "last_ip_address" varchar, "created_by_id" integer, "shipment_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "channel" varchar DEFAULT 'spree')  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_orders_on_completed_at" ON "aspree_orders" ("completed_at")  (0.2ms) CREATE INDEX "tindex_aspree_orders_on_user_id" ON "aspree_orders" ("user_id")  (0.2ms) CREATE INDEX "tindex_aspree_orders_on_number" ON "aspree_orders" ("number")  (0.2ms) INSERT INTO "aspree_orders" ("id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address","created_by_id","shipment_total","additional_tax_total","promo_total","channel") SELECT "id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address","created_by_id","shipment_total","tax_total","promo_total","channel" FROM "spree_orders"  (0.3ms) DROP TABLE "spree_orders"  (0.4ms) CREATE TABLE "spree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(32), "item_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "total" decimal(10,2) DEFAULT '0.0' NOT NULL, "state" varchar, "adjustment_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(10,2) DEFAULT '0.0', "shipping_method_id" integer, "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "last_ip_address" varchar, "created_by_id" integer, "shipment_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "channel" varchar DEFAULT 'spree')  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_number' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_completed_at' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_number" ON "spree_orders" ("number")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_user_id" ON "spree_orders" ("user_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_completed_at" ON "spree_orders" ("completed_at")  (0.2ms) INSERT INTO "spree_orders" ("id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address","created_by_id","shipment_total","additional_tax_total","promo_total","channel") SELECT "id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address","created_by_id","shipment_total","additional_tax_total","promo_total","channel" FROM "aspree_orders"  (0.2ms) DROP TABLE "aspree_orders"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.7ms) ALTER TABLE "spree_line_items" ADD "included_tax_total" decimal(10,2) DEFAULT 0.0 NOT NULL  (0.3ms) ALTER TABLE "spree_shipments" ADD "included_tax_total" decimal(10,2) DEFAULT 0.0 NOT NULL  (0.4ms) ALTER TABLE "spree_orders" ADD "included_tax_total" decimal(10,2) DEFAULT 0.0 NOT NULL SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181945"]]  (118.5ms) commit transaction Migrating to AddLineItemIdToSpreeInventoryUnits (20180516181946)  (0.2ms) begin transaction  (1.0ms) ALTER TABLE "spree_inventory_units" ADD "line_item_id" integer  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_variant_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_shipment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_shipment_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_order_id' AND type='index'   (0.5ms) CREATE INDEX "index_spree_inventory_units_on_line_item_id" ON "spree_inventory_units" ("line_item_id") Spree::Shipment Load (0.4ms) SELECT "spree_shipments".* FROM "spree_shipments" ORDER BY "spree_shipments"."id" ASC LIMIT ? [["LIMIT", 1000]] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181946"]]  (138.7ms) commit transaction Migrating to AddUpdatedAtToVariants (20180516181947)  (0.2ms) begin transaction  (1.0ms) ALTER TABLE "spree_variants" ADD "updated_at" datetime SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181947"]]  (73.3ms) commit transaction Migrating to AddPositionToClassifications (20180516181948)  (0.1ms) begin transaction  (1.0ms) ALTER TABLE "spree_products_taxons" ADD "position" integer SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181948"]]  (116.0ms) commit transaction Migrating to CreateSpreeOrdersPromotions (20180516181949)  (0.1ms) begin transaction  (0.9ms) CREATE TABLE "spree_orders_promotions" ("order_id" integer, "promotion_id" integer) SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181949"]]  (137.2ms) commit transaction Migrating to UniqueShippingMethodCategories (20180516181950)  (0.2ms) begin transaction Spree::ShippingMethodCategory Load (0.2ms) SELECT shipping_category_id,shipping_method_id,COUNT(*) FROM "spree_shipping_method_categories" GROUP BY shipping_category_id,shipping_method_id HAVING (COUNT(*) > 1)  (0.5ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_method_categories_on_shipping_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_method_categories_on_shipping_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_method_categories_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_method_categories_on_shipping_method_id' AND type='index'   (0.4ms) CREATE UNIQUE INDEX "unique_spree_shipping_method_categories" ON "spree_shipping_method_categories" ("shipping_category_id", "shipping_method_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='unique_spree_shipping_method_categories' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='unique_spree_shipping_method_categories' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_method_categories_on_shipping_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_method_categories_on_shipping_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_method_categories_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_method_categories_on_shipping_method_id' AND type='index'   (0.4ms) DROP INDEX "index_spree_shipping_method_categories_on_shipping_category_id" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181950"]]  (158.1ms) commit transaction Migrating to AddItemCountToSpreeOrders (20180516181951)  (0.2ms) begin transaction  (1.2ms) ALTER TABLE "spree_orders" ADD "item_count" integer DEFAULT 0 SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181951"]]  (118.3ms) commit transaction Migrating to RemoveValueTypeFromSpreePreferences (20180516181952)  (0.1ms) begin transaction  (0.4ms) CREATE TEMPORARY TABLE "aspree_preferences" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "value" text, "key" varchar, "value_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_preferences_on_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_preferences_on_key' AND type='index'   (0.7ms) CREATE UNIQUE INDEX "tindex_aspree_preferences_on_key" ON "aspree_preferences" ("key")  (0.1ms) INSERT INTO "aspree_preferences" ("id","value","key","value_type","created_at","updated_at") SELECT "id","value","key","value_type","created_at","updated_at" FROM "spree_preferences"  (0.5ms) DROP TABLE "spree_preferences"  (0.3ms) CREATE TABLE "spree_preferences" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "value" text, "key" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_preferences_on_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_preferences_on_key' AND type='index'   (0.4ms) CREATE UNIQUE INDEX "index_spree_preferences_on_key" ON "spree_preferences" ("key")  (0.1ms) INSERT INTO "spree_preferences" ("id","value","key","created_at","updated_at") SELECT "id","value","key","created_at","updated_at" FROM "aspree_preferences"  (0.2ms) DROP TABLE "aspree_preferences" SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181952"]]  (113.1ms) commit transaction Migrating to RenamePermalinkToSlugForProducts (20180516181953)  (0.1ms) begin transaction  (0.6ms) CREATE TEMPORARY TABLE "aspree_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar DEFAULT '' NOT NULL, "description" text, "available_on" datetime, "deleted_at" datetime, "slug" varchar, "meta_description" text, "meta_keywords" varchar, "tax_category_id" integer, "shipping_category_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='permalink_idx_unique' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='permalink_idx_unique' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_permalink' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE UNIQUE INDEX "tpermalink_idx_unique" ON "aspree_products" ("slug")  (0.2ms) CREATE INDEX "tindex_aspree_products_on_permalink" ON "aspree_products" ("slug")  (0.2ms) CREATE INDEX "tindex_aspree_products_on_name" ON "aspree_products" ("name")  (0.2ms) CREATE INDEX "tindex_aspree_products_on_deleted_at" ON "aspree_products" ("deleted_at")  (0.2ms) CREATE INDEX "tindex_aspree_products_on_available_on" ON "aspree_products" ("available_on")  (0.2ms) INSERT INTO "aspree_products" ("id","name","description","available_on","deleted_at","slug","meta_description","meta_keywords","tax_category_id","shipping_category_id","created_at","updated_at") SELECT "id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","created_at","updated_at" FROM "spree_products"  (0.7ms) DROP TABLE "spree_products"  (0.3ms) CREATE TABLE "spree_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar DEFAULT '' NOT NULL, "description" text, "available_on" datetime, "deleted_at" datetime, "slug" varchar, "meta_description" text, "meta_keywords" varchar, "tax_category_id" integer, "shipping_category_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_available_on' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_permalink' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tpermalink_idx_unique' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tpermalink_idx_unique' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_available_on" ON "spree_products" ("available_on")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_deleted_at" ON "spree_products" ("deleted_at")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_name" ON "spree_products" ("name")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_permalink" ON "spree_products" ("slug")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_permalink' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.4ms) CREATE UNIQUE INDEX "permalink_idx_unique" ON "spree_products" ("slug")  (0.1ms) INSERT INTO "spree_products" ("id","name","description","available_on","deleted_at","slug","meta_description","meta_keywords","tax_category_id","shipping_category_id","created_at","updated_at") SELECT "id","name","description","available_on","deleted_at","slug","meta_description","meta_keywords","tax_category_id","shipping_category_id","created_at","updated_at" FROM "aspree_products"  (0.3ms) DROP TABLE "aspree_products"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='permalink_idx_unique' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='permalink_idx_unique' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_permalink' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='permalink_idx_unique' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='permalink_idx_unique' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_permalink' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='permalink_idx_unique' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='permalink_idx_unique' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_permalink' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_slug" ON "spree_products" ("slug")  (0.2ms) DROP INDEX "index_spree_products_on_permalink" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181953"]]  (183.6ms) commit transaction Migrating to AddIndexToVariantIdAndCurrencyOnPrices (20180516181954)  (0.2ms) begin transaction  (0.5ms) CREATE INDEX "index_spree_prices_on_variant_id_and_currency" ON "spree_prices" ("variant_id", "currency") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181954"]]  (72.5ms) commit transaction Migrating to RenameActivatorIdInRulesAndActionsToPromotionId (20180516181955)  (0.2ms) begin transaction  (0.6ms) CREATE TEMPORARY TABLE "aspree_promotion_rules" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "promotion_id" integer, "user_id" integer, "product_group_id" integer, "type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "code" varchar)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_on_product_group_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_on_product_group_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_promotion_rules_on_user_id" ON "aspree_promotion_rules" ("user_id")  (0.2ms) CREATE INDEX "tindex_promotion_rules_on_product_group_id" ON "aspree_promotion_rules" ("product_group_id")  (0.5ms) INSERT INTO "aspree_promotion_rules" ("id","promotion_id","user_id","product_group_id","type","created_at","updated_at","code") SELECT "id","activator_id","user_id","product_group_id","type","created_at","updated_at","code" FROM "spree_promotion_rules"  (0.6ms) DROP TABLE "spree_promotion_rules"  (0.4ms) CREATE TABLE "spree_promotion_rules" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "promotion_id" integer, "user_id" integer, "product_group_id" integer, "type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "code" varchar)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_promotion_rules_on_product_group_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_promotion_rules_on_product_group_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_promotion_rules_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_promotion_rules_on_user_id' AND type='index'   (0.2ms) CREATE INDEX "index_promotion_rules_on_product_group_id" ON "spree_promotion_rules" ("product_group_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_on_product_group_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_on_product_group_id' AND type='index'   (0.2ms) CREATE INDEX "index_promotion_rules_on_user_id" ON "spree_promotion_rules" ("user_id")  (0.1ms) INSERT INTO "spree_promotion_rules" ("id","promotion_id","user_id","product_group_id","type","created_at","updated_at","code") SELECT "id","promotion_id","user_id","product_group_id","type","created_at","updated_at","code" FROM "aspree_promotion_rules"  (0.6ms) DROP TABLE "aspree_promotion_rules"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_on_product_group_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_on_product_group_id' AND type='index'   (0.2ms) CREATE TEMPORARY TABLE "aspree_promotion_actions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "promotion_id" integer, "position" integer, "type" varchar)  (0.1ms) INSERT INTO "aspree_promotion_actions" ("id","promotion_id","position","type") SELECT "id","activator_id","position","type" FROM "spree_promotion_actions"  (0.3ms) DROP TABLE "spree_promotion_actions"  (0.3ms) CREATE TABLE "spree_promotion_actions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "promotion_id" integer, "position" integer, "type" varchar)  (0.1ms) INSERT INTO "spree_promotion_actions" ("id","promotion_id","position","type") SELECT "id","promotion_id","position","type" FROM "aspree_promotion_actions"  (0.2ms) DROP TABLE "aspree_promotion_actions" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181955"]]  (135.2ms) commit transaction Migrating to AddDeletedAtToSpreePrices (20180516181956)  (0.2ms) begin transaction  (0.9ms) ALTER TABLE "spree_prices" ADD "deleted_at" datetime SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181956"]]  (90.4ms) commit transaction Migrating to AddApproverIdAndApprovedAtToOrders (20180516181957)  (0.1ms) begin transaction  (0.7ms) ALTER TABLE "spree_orders" ADD "approver_id" integer  (0.4ms) ALTER TABLE "spree_orders" ADD "approved_at" datetime SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181957"]]  (95.5ms) commit transaction Migrating to AddConfirmationDeliveredToSpreeOrders (20180516181958)  (0.1ms) begin transaction  (1.2ms) ALTER TABLE "spree_orders" ADD "confirmation_delivered" boolean DEFAULT 'f' SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181958"]]  (89.6ms) commit transaction Migrating to AddAutoCaptureToPaymentMethods (20180516181959)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "spree_payment_methods" ADD "auto_capture" boolean SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181959"]]  (106.3ms) commit transaction Migrating to CreateSpreePaymentCaptureEvents (20180516181960)  (0.1ms) begin transaction  (1.0ms) CREATE TABLE "spree_payment_capture_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" decimal(10,2) DEFAULT 0.0, "payment_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.4ms) CREATE INDEX "index_spree_payment_capture_events_on_payment_id" ON "spree_payment_capture_events" ("payment_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181960"]]  (153.9ms) commit transaction Migrating to AddUncapturedAmountToPayments (20180516181961)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "spree_payments" ADD "uncaptured_amount" decimal(10,2) DEFAULT 0.0 SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181961"]]  (132.9ms) commit transaction Migrating to DefaultVariantWeightToZero (20180516181962)  (0.1ms) begin transaction SQL (0.3ms) UPDATE "spree_variants" SET weight = 0.0 WHERE "spree_variants"."weight" IS NULL  (0.5ms) CREATE TEMPORARY TABLE "aspree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2), "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "cost_price" decimal(8,2), "position" integer, "cost_currency" varchar, "track_inventory" boolean DEFAULT 't', "tax_category_id" integer, "updated_at" datetime)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_variants_on_tax_category_id" ON "aspree_variants" ("tax_category_id")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_sku" ON "aspree_variants" ("sku")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_product_id" ON "aspree_variants" ("product_id")  (0.2ms) INSERT INTO "aspree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at" FROM "spree_variants"  (0.5ms) DROP TABLE "spree_variants"  (0.3ms) CREATE TABLE "spree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2) DEFAULT 0.0, "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "cost_price" decimal(8,2), "position" integer, "cost_currency" varchar, "track_inventory" boolean DEFAULT 't', "tax_category_id" integer, "updated_at" datetime)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_tax_category_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_product_id" ON "spree_variants" ("product_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_sku" ON "spree_variants" ("sku")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_tax_category_id" ON "spree_variants" ("tax_category_id")  (0.3ms) INSERT INTO "spree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at" FROM "aspree_variants"  (0.4ms) DROP TABLE "aspree_variants" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181962"]]  (136.1ms) commit transaction Migrating to AddTaxCategoryIdToShippingMethods (20180516181963)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "spree_shipping_methods" ADD "tax_category_id" integer SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181963"]]  (128.7ms) commit transaction Migrating to AddTaxRateIdToShippingRates (20180516181964)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "spree_shipping_rates" ADD "tax_rate_id" integer SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181964"]]  (107.3ms) commit transaction Migrating to AddPreTaxAmountToLineItemsAndShipments (20180516181965)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "spree_line_items" ADD "pre_tax_amount" decimal(8,2)  (0.4ms) ALTER TABLE "spree_shipments" ADD "pre_tax_amount" decimal(8,2) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181965"]]  (128.9ms) commit transaction Migrating to AddMoreIndexes (20180516181966)  (0.1ms) begin transaction  (0.3ms) CREATE INDEX "index_spree_payment_methods_on_id_and_type" ON "spree_payment_methods" ("id", "type")  (0.2ms) CREATE INDEX "index_spree_calculators_on_id_and_type" ON "spree_calculators" ("id", "type")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_calculators_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_calculators_on_id_and_type' AND type='index'   (0.3ms) CREATE INDEX "index_spree_calculators_on_calculable_id_and_calculable_type" ON "spree_calculators" ("calculable_id", "calculable_type")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_payments_on_payment_method_id" ON "spree_payments" ("payment_method_id")  (0.2ms) CREATE INDEX "index_spree_promotion_actions_on_id_and_type" ON "spree_promotion_actions" ("id", "type")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_actions_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_actions_on_id_and_type' AND type='index'   (0.2ms) CREATE INDEX "index_spree_promotion_actions_on_promotion_id" ON "spree_promotion_actions" ("promotion_id")  (0.2ms) CREATE INDEX "index_spree_promotions_on_id_and_type" ON "spree_promotions" ("id", "type")  (0.2ms) CREATE INDEX "index_spree_option_values_on_option_type_id" ON "spree_option_values" ("option_type_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_shipments_on_stock_location_id" ON "spree_shipments" ("stock_location_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181966"]]  (143.4ms) commit transaction Migrating to AddConsideredRiskyToOrders (20180516181967)  (0.1ms) begin transaction  (1.2ms) ALTER TABLE "spree_orders" ADD "considered_risky" boolean DEFAULT 'f' SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181967"]]  (161.6ms) commit transaction Migrating to AddPreferenceStoreToEverything (20180516181968)  (0.2ms) begin transaction  (0.9ms) ALTER TABLE "spree_calculators" ADD "preferences" text  (0.6ms) ALTER TABLE "spree_gateways" ADD "preferences" text  (0.7ms) ALTER TABLE "spree_payment_methods" ADD "preferences" text  (0.7ms) ALTER TABLE "spree_promotion_rules" ADD "preferences" text SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181968"]]  (99.7ms) commit transaction Migrating to AddUserIdToSpreeCreditCards (20180516181969)  (0.2ms) begin transaction  (0.5ms) ALTER TABLE "spree_credit_cards" ADD "user_id" integer  (0.2ms) CREATE INDEX "index_spree_credit_cards_on_user_id" ON "spree_credit_cards" ("user_id")  (0.3ms) ALTER TABLE "spree_credit_cards" ADD "payment_method_id" integer  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_credit_cards_on_payment_method_id" ON "spree_credit_cards" ("payment_method_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181969"]]  (109.4ms) commit transaction Migrating to MigrateOldPreferences (20180516181970)  (0.2ms) begin transaction Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" ORDER BY "spree_calculators"."id" ASC LIMIT ? [["LIMIT", 1000]] Spree::PaymentMethod Load (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL ORDER BY "spree_payment_methods"."id" ASC LIMIT ? [["LIMIT", 1000]] Spree::PromotionRule Load (0.2ms) SELECT "spree_promotion_rules".* FROM "spree_promotion_rules" ORDER BY "spree_promotion_rules"."id" ASC LIMIT ? [["LIMIT", 1000]] SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181970"]]  (82.9ms) commit transaction Migrating to CreateSpreeStores (20180516181971)  (0.1ms) begin transaction  (1.0ms) CREATE TABLE "spree_stores" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "url" varchar, "meta_description" text, "meta_keywords" text, "seo_title" varchar, "mail_from_address" varchar, "default_currency" varchar, "code" varchar, "default" boolean DEFAULT 'f' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181971"]]  (103.3ms) commit transaction Migrating to CreateStoreFromPreferences (20180516181972)  (0.1ms) begin transaction Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = ? ORDER BY "spree_stores"."id" ASC LIMIT ? [["default", "t"], ["LIMIT", 1]] Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = ? LIMIT ? [["key", "spree/app_configuration/site_name"], ["LIMIT", 1]] Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = ? LIMIT ? [["key", "spree/app_configuration/site_url"], ["LIMIT", 1]] Spree::Preference Load (0.0ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = ? LIMIT ? [["key", "spree/app_configuration/mails_from"], ["LIMIT", 1]] Spree::Preference Load (0.0ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = ? LIMIT ? [["key", "spree/app_configuration/default_meta_description"], ["LIMIT", 1]] Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = ? LIMIT ? [["key", "spree/app_configuration/default_meta_keywords"], ["LIMIT", 1]] Spree::Preference Load (0.0ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = ? LIMIT ? [["key", "spree/app_configuration/default_seo_title"], ["LIMIT", 1]] Spree::Preference Load (0.0ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = ? LIMIT ? [["key", "spree/app_configuration/currency"], ["LIMIT", 1]] Spree::Store Exists (0.2ms) SELECT 1 AS one FROM "spree_stores" WHERE "spree_stores"."code" = ? LIMIT ? [["code", "spree"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_stores" WHERE "spree_stores"."default" = ? [["default", "t"]] SQL (0.3ms) INSERT INTO "spree_stores" ("name", "url", "mail_from_address", "code", "default", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Spree Demo Site"], ["url", "demo.spreecommerce.org"], ["mail_from_address", "spree@example.com"], ["code", "spree"], ["default", "t"], ["created_at", "2018-05-16 18:19:27.403344"], ["updated_at", "2018-05-16 18:19:27.403344"]] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181972"]]  (119.3ms) commit transaction Migrating to AddTimestampsToSpreeAssets (20180516181973)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "spree_assets" ADD "created_at" datetime  (0.3ms) ALTER TABLE "spree_assets" ADD "updated_at" datetime SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181973"]]  (126.5ms) commit transaction Migrating to CreateSpreeTaxonsPromotionRules (20180516181974)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "spree_taxons_promotion_rules" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "taxon_id" integer, "promotion_rule_id" integer)  (0.3ms) CREATE INDEX "index_spree_taxons_promotion_rules_on_taxon_id" ON "spree_taxons_promotion_rules" ("taxon_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_promotion_rules_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_promotion_rules_on_taxon_id' AND type='index'   (0.4ms) CREATE INDEX "index_spree_taxons_promotion_rules_on_promotion_rule_id" ON "spree_taxons_promotion_rules" ("promotion_rule_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181974"]]  (142.6ms) commit transaction Migrating to AddAdditionalStoreFields (20180516181975)  (0.2ms) begin transaction  (0.6ms) CREATE INDEX "index_spree_stores_on_code" ON "spree_stores" ("code")  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stores_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stores_on_code' AND type='index'   (0.2ms) CREATE INDEX "index_spree_stores_on_default" ON "spree_stores" ("default") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181975"]]  (145.0ms) commit transaction Migrating to AddManyMissingIndexes (20180516181976)  (0.1ms) begin transaction  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_source_type_and_source_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_source_type_and_source_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_adjustments_on_order_id' AND type='index'   (0.7ms) CREATE INDEX "index_spree_adjustments_on_adjustable_id_and_adjustable_type" ON "spree_adjustments" ("adjustable_id", "adjustable_type")  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_source_type_and_source_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_source_type_and_source_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_adjustments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_adjustments_on_eligible" ON "spree_adjustments" ("eligible")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_eligible' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_eligible' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_source_type_and_source_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_source_type_and_source_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_adjustments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_adjustments_on_order_id" ON "spree_adjustments" ("order_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index'   (0.3ms) CREATE INDEX "index_spree_promotions_on_code" ON "spree_promotions" ("code")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_code' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index'   (0.2ms) CREATE INDEX "index_spree_promotions_on_expires_at" ON "spree_promotions" ("expires_at")  (0.2ms) CREATE INDEX "index_spree_states_on_country_id" ON "spree_states" ("country_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='stock_item_by_loc_and_var_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='stock_item_by_loc_and_var_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_stock_items_on_deleted_at" ON "spree_stock_items" ("deleted_at")  (0.2ms) CREATE INDEX "index_spree_option_types_on_position" ON "spree_option_types" ("position")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_on_option_type_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_option_values_on_position" ON "spree_option_values" ("position")  (0.2ms) CREATE INDEX "index_spree_product_option_types_on_option_type_id" ON "spree_product_option_types" ("option_type_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_product_option_types_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_product_option_types_on_option_type_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_product_option_types_on_product_id" ON "spree_product_option_types" ("product_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_taxons_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_taxons_on_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_taxons_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_taxons_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_taxons_on_position" ON "spree_products_taxons" ("position")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_expires_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_expires_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_code' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index'   (0.2ms) CREATE INDEX "index_spree_promotions_on_starts_at" ON "spree_promotions" ("starts_at")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stores_on_default' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stores_on_default' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stores_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stores_on_code' AND type='index'   (0.2ms) CREATE INDEX "index_spree_stores_on_url" ON "spree_stores" ("url") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181976"]]  (107.9ms) commit transaction Migrating to CorrectSomePolymorphicIndexAndAddMoreMissing (20180516181977)  (0.2ms) begin transaction  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_addresses_on_lastname' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_lastname' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_addresses_on_firstname' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_firstname' AND type='index'   (0.6ms) CREATE INDEX "index_spree_addresses_on_country_id" ON "spree_addresses" ("country_id")  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_addresses_on_country_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_addresses_on_country_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_addresses_on_lastname' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_lastname' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_addresses_on_firstname' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_firstname' AND type='index'   (0.2ms) CREATE INDEX "index_spree_addresses_on_state_id" ON "spree_addresses" ("state_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_eligible' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_eligible' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_source_type_and_source_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_source_type_and_source_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_adjustments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_eligible' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_eligible' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_source_type_and_source_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_source_type_and_source_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_adjustments_on_order_id' AND type='index'   (0.4ms) DROP INDEX "index_spree_adjustments_on_source_type_and_source_id"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_eligible' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_eligible' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_adjustments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_adjustments_on_source_id_and_source_type" ON "spree_adjustments" ("source_id", "source_type")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_credit_cards_on_address_id" ON "spree_credit_cards" ("address_id")  (0.2ms) CREATE INDEX "index_spree_gateways_on_active" ON "spree_gateways" ("active")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_gateways_on_active' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_gateways_on_active' AND type='index'   (0.2ms) CREATE INDEX "index_spree_gateways_on_test_mode" ON "spree_gateways" ("test_mode")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_inventory_units_on_line_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_inventory_units_on_line_item_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_variant_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_shipment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_shipment_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_inventory_units_on_return_authorization_id" ON "spree_inventory_units" ("return_authorization_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_variant_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_line_items_on_tax_category_id" ON "spree_line_items" ("tax_category_id")  (0.2ms) CREATE INDEX "index_spree_log_entries_on_source_id_and_source_type" ON "spree_log_entries" ("source_id", "source_type")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.8ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_approver_id" ON "spree_orders" ("approver_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_bill_address_id" ON "spree_orders" ("bill_address_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_confirmation_delivered" ON "spree_orders" ("confirmation_delivered")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_considered_risky" ON "spree_orders" ("considered_risky")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_created_by_id" ON "spree_orders" ("created_by_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_ship_address_id" ON "spree_orders" ("ship_address_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_shipping_method_id" ON "spree_orders" ("shipping_method_id")  (0.2ms) CREATE INDEX "index_spree_orders_promotions_on_order_id_and_promotion_id" ON "spree_orders_promotions" ("order_id", "promotion_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_payments_on_source_id_and_source_type" ON "spree_payments" ("source_id", "source_type")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prices_on_variant_id_and_currency' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prices_on_variant_id_and_currency' AND type='index'   (0.2ms) CREATE INDEX "index_spree_prices_on_deleted_at" ON "spree_prices" ("deleted_at")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_product_option_types_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_product_option_types_on_product_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_product_option_types_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_product_option_types_on_option_type_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_product_option_types_on_position" ON "spree_product_option_types" ("position")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_product_properties_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_product_properties_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_product_properties_on_position" ON "spree_product_properties" ("position")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_product_properties_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_product_properties_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_product_properties_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_product_properties_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_product_properties_on_property_id" ON "spree_product_properties" ("property_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_slug' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='permalink_idx_unique' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='permalink_idx_unique' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_shipping_category_id" ON "spree_products" ("shipping_category_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_slug' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='permalink_idx_unique' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='permalink_idx_unique' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_tax_category_id" ON "spree_products" ("tax_category_id")  (0.2ms) CREATE INDEX "index_spree_promotion_action_line_items_on_promotion_action_id" ON "spree_promotion_action_line_items" ("promotion_action_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_action_line_items_on_promotion_action_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_action_line_items_on_promotion_action_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_promotion_action_line_items_on_variant_id" ON "spree_promotion_action_line_items" ("variant_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_on_product_group_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_on_product_group_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_promotion_rules_on_promotion_id" ON "spree_promotion_rules" ("promotion_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_starts_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_starts_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_expires_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_expires_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_code' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index'   (0.2ms) CREATE INDEX "index_spree_promotions_on_advertise" ON "spree_promotions" ("advertise")  (0.2ms) CREATE INDEX "index_spree_return_authorizations_on_number" ON "spree_return_authorizations" ("number")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_authorizations_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_authorizations_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_return_authorizations_on_order_id" ON "spree_return_authorizations" ("order_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_authorizations_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_authorizations_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_authorizations_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_authorizations_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_return_authorizations_on_stock_location_id" ON "spree_return_authorizations" ("stock_location_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_shipments_on_address_id" ON "spree_shipments" ("address_id")  (0.2ms) CREATE INDEX "index_spree_shipping_methods_on_deleted_at" ON "spree_shipping_methods" ("deleted_at")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_methods_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_methods_on_deleted_at' AND type='index'   (0.2ms) CREATE INDEX "index_spree_shipping_methods_on_tax_category_id" ON "spree_shipping_methods" ("tax_category_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='spree_shipping_rates_join_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_shipping_rates_join_index' AND type='index'   (0.2ms) CREATE INDEX "index_spree_shipping_rates_on_selected" ON "spree_shipping_rates" ("selected")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_rates_on_selected' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_rates_on_selected' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='spree_shipping_rates_join_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_shipping_rates_join_index' AND type='index'   (0.2ms) CREATE INDEX "index_spree_shipping_rates_on_tax_rate_id" ON "spree_shipping_rates" ("tax_rate_id")  (0.2ms) CREATE INDEX "index_spree_state_changes_on_stateful_id_and_stateful_type" ON "spree_state_changes" ("stateful_id", "stateful_type")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_state_changes_on_stateful_id_and_stateful_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_state_changes_on_stateful_id_and_stateful_type' AND type='index'   (0.2ms) CREATE INDEX "index_spree_state_changes_on_user_id" ON "spree_state_changes" ("user_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='stock_item_by_loc_and_var_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='stock_item_by_loc_and_var_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_stock_items_on_backorderable" ON "spree_stock_items" ("backorderable")  (0.2ms) CREATE INDEX "index_spree_stock_locations_on_active" ON "spree_stock_locations" ("active")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_active' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_active' AND type='index'   (0.2ms) CREATE INDEX "index_spree_stock_locations_on_backorderable_default" ON "spree_stock_locations" ("backorderable_default")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_backorderable_default' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_backorderable_default' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_active' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_active' AND type='index'   (0.2ms) CREATE INDEX "index_spree_stock_locations_on_country_id" ON "spree_stock_locations" ("country_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_country_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_country_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_backorderable_default' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_backorderable_default' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_active' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_active' AND type='index'   (0.3ms) CREATE INDEX "index_spree_stock_locations_on_propagate_all_variants" ON "spree_stock_locations" ("propagate_all_variants")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_propagate_all_variants' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_propagate_all_variants' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_country_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_country_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_backorderable_default' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_backorderable_default' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_active' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_active' AND type='index'   (0.2ms) CREATE INDEX "index_spree_stock_locations_on_state_id" ON "spree_stock_locations" ("state_id")  (0.2ms) CREATE INDEX "index_spree_tax_categories_on_deleted_at" ON "spree_tax_categories" ("deleted_at")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_categories_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_categories_on_deleted_at' AND type='index'   (0.2ms) CREATE INDEX "index_spree_tax_categories_on_is_default" ON "spree_tax_categories" ("is_default")  (0.2ms) CREATE INDEX "index_spree_tax_rates_on_deleted_at" ON "spree_tax_rates" ("deleted_at")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_deleted_at' AND type='index'   (0.2ms) CREATE INDEX "index_spree_tax_rates_on_included_in_price" ON "spree_tax_rates" ("included_in_price")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_included_in_price' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_included_in_price' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_deleted_at' AND type='index'   (0.2ms) CREATE INDEX "index_spree_tax_rates_on_show_rate_in_label" ON "spree_tax_rates" ("show_rate_in_label")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_show_rate_in_label' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_show_rate_in_label' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_included_in_price' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_included_in_price' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_deleted_at' AND type='index'   (0.2ms) CREATE INDEX "index_spree_tax_rates_on_tax_category_id" ON "spree_tax_rates" ("tax_category_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_tax_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_show_rate_in_label' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_show_rate_in_label' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_included_in_price' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_included_in_price' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_deleted_at' AND type='index'   (0.2ms) CREATE INDEX "index_spree_tax_rates_on_zone_id" ON "spree_tax_rates" ("zone_id")  (0.2ms) CREATE INDEX "index_spree_taxonomies_on_position" ON "spree_taxonomies" ("position")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_taxons_on_position" ON "spree_taxons" ("position")  (0.2ms) CREATE INDEX "index_spree_trackers_on_active" ON "spree_trackers" ("active")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_deleted_at" ON "spree_variants" ("deleted_at")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_is_master" ON "spree_variants" ("is_master")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_position" ON "spree_variants" ("position")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_position' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_track_inventory" ON "spree_variants" ("track_inventory")  (0.2ms) CREATE INDEX "index_spree_zone_members_on_zone_id" ON "spree_zone_members" ("zone_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_zone_members_on_zone_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_zone_members_on_zone_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_zone_members_on_zoneable_id_and_zoneable_type" ON "spree_zone_members" ("zoneable_id", "zoneable_type")  (0.2ms) CREATE INDEX "index_spree_zones_on_default_tax" ON "spree_zones" ("default_tax") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181977"]]  (132.4ms) commit transaction Migrating to AddUserIdCreatedByIdIndexToOrder (20180516181978)  (0.2ms) begin transaction  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.5ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.6ms) CREATE INDEX "index_spree_orders_on_user_id_and_created_by_id" ON "spree_orders" ("user_id", "created_by_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181978"]]  (107.9ms) commit transaction Migrating to ChangeSpreePriceAmountPrecision (20180516181979)  (0.1ms) begin transaction  (0.5ms) CREATE TEMPORARY TABLE "aspree_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer NOT NULL, "amount" decimal(8,2), "currency" varchar, "deleted_at" datetime)  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prices_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prices_on_deleted_at' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prices_on_variant_id_and_currency' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prices_on_variant_id_and_currency' AND type='index'   (0.3ms) CREATE INDEX "tindex_aspree_prices_on_deleted_at" ON "aspree_prices" ("deleted_at")  (0.2ms) CREATE INDEX "tindex_aspree_prices_on_variant_id_and_currency" ON "aspree_prices" ("variant_id", "currency")  (0.1ms) INSERT INTO "aspree_prices" ("id","variant_id","amount","currency","deleted_at") SELECT "id","variant_id","amount","currency","deleted_at" FROM "spree_prices"  (0.5ms) DROP TABLE "spree_prices"  (0.3ms) CREATE TABLE "spree_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer NOT NULL, "amount" decimal(10,2), "currency" varchar, "deleted_at" datetime)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_prices_on_variant_id_and_currency' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_prices_on_variant_id_and_currency' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_prices_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_prices_on_deleted_at' AND type='index'   (0.2ms) CREATE INDEX "index_spree_prices_on_variant_id_and_currency" ON "spree_prices" ("variant_id", "currency")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prices_on_variant_id_and_currency' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prices_on_variant_id_and_currency' AND type='index'   (0.2ms) CREATE INDEX "index_spree_prices_on_deleted_at" ON "spree_prices" ("deleted_at")  (0.2ms) INSERT INTO "spree_prices" ("id","variant_id","amount","currency","deleted_at") SELECT "id","variant_id","amount","currency","deleted_at" FROM "aspree_prices"  (0.2ms) DROP TABLE "aspree_prices"  (0.3ms) CREATE TEMPORARY TABLE "aspree_line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer, "order_id" integer, "quantity" integer NOT NULL, "price" decimal(8,2) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "cost_price" decimal(8,2), "tax_category_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "pre_tax_amount" decimal(8,2))  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_tax_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_variant_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_line_items_on_tax_category_id" ON "aspree_line_items" ("tax_category_id")  (0.2ms) CREATE INDEX "tindex_aspree_line_items_on_variant_id" ON "aspree_line_items" ("variant_id")  (0.2ms) CREATE INDEX "tindex_aspree_line_items_on_order_id" ON "aspree_line_items" ("order_id")  (0.2ms) INSERT INTO "aspree_line_items" ("id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount") SELECT "id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount" FROM "spree_line_items"  (0.4ms) DROP TABLE "spree_line_items"  (0.3ms) CREATE TABLE "spree_line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer, "order_id" integer, "quantity" integer NOT NULL, "price" decimal(10,2) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "cost_price" decimal(8,2), "tax_category_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "pre_tax_amount" decimal(8,2))  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_line_items_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_line_items_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_line_items_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_line_items_on_tax_category_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_line_items_on_order_id" ON "spree_line_items" ("order_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_line_items_on_variant_id" ON "spree_line_items" ("variant_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_variant_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_line_items_on_tax_category_id" ON "spree_line_items" ("tax_category_id")  (0.1ms) INSERT INTO "spree_line_items" ("id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount") SELECT "id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount" FROM "aspree_line_items"  (0.2ms) DROP TABLE "aspree_line_items"  (0.2ms) CREATE TEMPORARY TABLE "aspree_line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer, "order_id" integer, "quantity" integer NOT NULL, "price" decimal(10,2) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "cost_price" decimal(8,2), "tax_category_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "pre_tax_amount" decimal(8,2))  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_tax_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_variant_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.1ms) CREATE INDEX "tindex_aspree_line_items_on_tax_category_id" ON "aspree_line_items" ("tax_category_id")  (0.2ms) CREATE INDEX "tindex_aspree_line_items_on_variant_id" ON "aspree_line_items" ("variant_id")  (0.1ms) CREATE INDEX "tindex_aspree_line_items_on_order_id" ON "aspree_line_items" ("order_id")  (0.1ms) INSERT INTO "aspree_line_items" ("id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount") SELECT "id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount" FROM "spree_line_items"  (0.3ms) DROP TABLE "spree_line_items"  (0.3ms) CREATE TABLE "spree_line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer, "order_id" integer, "quantity" integer NOT NULL, "price" decimal(10,2) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "cost_price" decimal(10,2), "tax_category_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "pre_tax_amount" decimal(8,2))  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_line_items_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_line_items_on_variant_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_line_items_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_line_items_on_tax_category_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_line_items_on_order_id" ON "spree_line_items" ("order_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_line_items_on_variant_id" ON "spree_line_items" ("variant_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_variant_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_line_items_on_tax_category_id" ON "spree_line_items" ("tax_category_id")  (0.1ms) INSERT INTO "spree_line_items" ("id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount") SELECT "id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount" FROM "aspree_line_items"  (0.2ms) DROP TABLE "aspree_line_items"  (0.3ms) CREATE TEMPORARY TABLE "aspree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2) DEFAULT '0.0', "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "cost_price" decimal(8,2), "position" integer, "cost_currency" varchar, "track_inventory" boolean DEFAULT 't', "tax_category_id" integer, "updated_at" datetime)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_track_inventory' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_track_inventory' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_position' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_variants_on_track_inventory" ON "aspree_variants" ("track_inventory")  (0.1ms) CREATE INDEX "tindex_aspree_variants_on_position" ON "aspree_variants" ("position")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_is_master" ON "aspree_variants" ("is_master")  (0.1ms) CREATE INDEX "tindex_aspree_variants_on_deleted_at" ON "aspree_variants" ("deleted_at")  (0.1ms) CREATE INDEX "tindex_aspree_variants_on_tax_category_id" ON "aspree_variants" ("tax_category_id")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_sku" ON "aspree_variants" ("sku")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_product_id" ON "aspree_variants" ("product_id")  (0.2ms) INSERT INTO "aspree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at" FROM "spree_variants"  (0.5ms) DROP TABLE "spree_variants"  (0.3ms) CREATE TABLE "spree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2) DEFAULT '0.0', "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "cost_price" decimal(10,2), "position" integer, "cost_currency" varchar, "track_inventory" boolean DEFAULT 't', "tax_category_id" integer, "updated_at" datetime)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_sku' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_tax_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_is_master' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_position' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_track_inventory' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_track_inventory' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_product_id" ON "spree_variants" ("product_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_sku" ON "spree_variants" ("sku")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_tax_category_id" ON "spree_variants" ("tax_category_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_deleted_at" ON "spree_variants" ("deleted_at")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_is_master" ON "spree_variants" ("is_master")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_position" ON "spree_variants" ("position")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_position' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_track_inventory" ON "spree_variants" ("track_inventory")  (0.2ms) INSERT INTO "spree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at" FROM "aspree_variants"  (0.3ms) DROP TABLE "aspree_variants" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181979"]]  (140.7ms) commit transaction Migrating to AddTokenToSpreeOrders (20180516181980)  (0.2ms) begin transaction  (1.4ms) ALTER TABLE "spree_orders" ADD "guest_token" varchar SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181980"]]  (128.0ms) commit transaction Migrating to MoveOrderTokenFromTokenizedPermission (20180516181981)  (0.1ms) begin transaction Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181981"]]  (79.5ms) commit transaction Migrating to SetShipmentTotalForUsersUpgrading (20180516181982)  (0.1ms) begin transaction Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE ("spree_orders"."completed_at" IS NOT NULL) AND (shipment_total = 0) ORDER BY "spree_orders"."id" ASC LIMIT ? [["LIMIT", 1000]] SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181982"]]  (115.4ms) commit transaction Migrating to DropCreditCardFirstNameAndLastName (20180516181983)  (0.1ms) begin transaction  (0.6ms) CREATE TEMPORARY TABLE "aspree_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "month" varchar, "year" varchar, "cc_type" varchar, "last_digits" varchar, "first_name" varchar, "last_name" varchar, "address_id" integer, "gateway_customer_profile_id" varchar, "gateway_payment_profile_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "name" varchar, "user_id" integer, "payment_method_id" integer)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_address_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_payment_method_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_credit_cards_on_address_id" ON "aspree_credit_cards" ("address_id")  (0.2ms) CREATE INDEX "tindex_aspree_credit_cards_on_payment_method_id" ON "aspree_credit_cards" ("payment_method_id")  (0.2ms) CREATE INDEX "tindex_aspree_credit_cards_on_user_id" ON "aspree_credit_cards" ("user_id")  (0.2ms) INSERT INTO "aspree_credit_cards" ("id","month","year","cc_type","last_digits","first_name","last_name","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name","user_id","payment_method_id") SELECT "id","month","year","cc_type","last_digits","first_name","last_name","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name","user_id","payment_method_id" FROM "spree_credit_cards"  (0.7ms) DROP TABLE "spree_credit_cards"  (0.3ms) CREATE TABLE "spree_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "month" varchar, "year" varchar, "cc_type" varchar, "last_digits" varchar, "last_name" varchar, "address_id" integer, "gateway_customer_profile_id" varchar, "gateway_payment_profile_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "name" varchar, "user_id" integer, "payment_method_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_credit_cards_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_credit_cards_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_credit_cards_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_credit_cards_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_credit_cards_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_credit_cards_on_address_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_credit_cards_on_user_id" ON "spree_credit_cards" ("user_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_credit_cards_on_payment_method_id" ON "spree_credit_cards" ("payment_method_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_credit_cards_on_address_id" ON "spree_credit_cards" ("address_id")  (0.3ms) INSERT INTO "spree_credit_cards" ("id","month","year","cc_type","last_digits","last_name","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name","user_id","payment_method_id") SELECT "id","month","year","cc_type","last_digits","last_name","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name","user_id","payment_method_id" FROM "aspree_credit_cards"  (0.2ms) DROP TABLE "aspree_credit_cards"  (0.2ms) CREATE TEMPORARY TABLE "aspree_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "month" varchar, "year" varchar, "cc_type" varchar, "last_digits" varchar, "last_name" varchar, "address_id" integer, "gateway_customer_profile_id" varchar, "gateway_payment_profile_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "name" varchar, "user_id" integer, "payment_method_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_address_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_credit_cards_on_address_id" ON "aspree_credit_cards" ("address_id")  (0.2ms) CREATE INDEX "tindex_aspree_credit_cards_on_payment_method_id" ON "aspree_credit_cards" ("payment_method_id")  (0.2ms) CREATE INDEX "tindex_aspree_credit_cards_on_user_id" ON "aspree_credit_cards" ("user_id")  (0.1ms) INSERT INTO "aspree_credit_cards" ("id","month","year","cc_type","last_digits","last_name","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name","user_id","payment_method_id") SELECT "id","month","year","cc_type","last_digits","last_name","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name","user_id","payment_method_id" FROM "spree_credit_cards"  (0.3ms) DROP TABLE "spree_credit_cards"  (0.2ms) CREATE TABLE "spree_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "month" varchar, "year" varchar, "cc_type" varchar, "last_digits" varchar, "address_id" integer, "gateway_customer_profile_id" varchar, "gateway_payment_profile_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "name" varchar, "user_id" integer, "payment_method_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_credit_cards_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_credit_cards_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_credit_cards_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_credit_cards_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_credit_cards_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_credit_cards_on_address_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_credit_cards_on_user_id" ON "spree_credit_cards" ("user_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_credit_cards_on_payment_method_id" ON "spree_credit_cards" ("payment_method_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_credit_cards_on_address_id" ON "spree_credit_cards" ("address_id")  (0.1ms) INSERT INTO "spree_credit_cards" ("id","month","year","cc_type","last_digits","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name","user_id","payment_method_id") SELECT "id","month","year","cc_type","last_digits","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name","user_id","payment_method_id" FROM "aspree_credit_cards"  (0.3ms) DROP TABLE "aspree_credit_cards" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181983"]]  (95.5ms) commit transaction Migrating to AddDeletedAtToSpreePromotionActions (20180516181984)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "spree_promotion_actions" ADD "deleted_at" datetime  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_actions_on_promotion_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_actions_on_promotion_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_actions_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_actions_on_id_and_type' AND type='index'   (0.3ms) CREATE INDEX "index_spree_promotion_actions_on_deleted_at" ON "spree_promotion_actions" ("deleted_at") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181984"]]  (131.0ms) commit transaction Migrating to RemoveUncapturedAmountFromSpreePayments (20180516181985)  (0.1ms) begin transaction  (0.3ms) CREATE TEMPORARY TABLE "aspree_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" decimal(10,2) DEFAULT '0.0' NOT NULL, "order_id" integer, "source_type" varchar, "source_id" integer, "payment_method_id" integer, "state" varchar, "response_code" varchar, "avs_response" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "identifier" varchar, "cvv_response_code" varchar, "cvv_response_message" varchar, "uncaptured_amount" decimal(10,2) DEFAULT '0.0')  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_payments_on_source_id_and_source_type" ON "aspree_payments" ("source_id", "source_type")  (0.2ms) CREATE INDEX "tindex_aspree_payments_on_payment_method_id" ON "aspree_payments" ("payment_method_id")  (0.2ms) CREATE INDEX "tindex_aspree_payments_on_order_id" ON "aspree_payments" ("order_id")  (0.2ms) INSERT INTO "aspree_payments" ("id","amount","order_id","source_type","source_id","payment_method_id","state","response_code","avs_response","created_at","updated_at","identifier","cvv_response_code","cvv_response_message","uncaptured_amount") SELECT "id","amount","order_id","source_type","source_id","payment_method_id","state","response_code","avs_response","created_at","updated_at","identifier","cvv_response_code","cvv_response_message","uncaptured_amount" FROM "spree_payments"  (0.6ms) DROP TABLE "spree_payments"  (0.4ms) CREATE TABLE "spree_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" decimal(10,2) DEFAULT '0.0' NOT NULL, "order_id" integer, "source_type" varchar, "source_id" integer, "payment_method_id" integer, "state" varchar, "response_code" varchar, "avs_response" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "identifier" varchar, "cvv_response_code" varchar, "cvv_response_message" varchar)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_payments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_payments_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_payments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_payments_on_source_id_and_source_type' AND type='index'   (0.2ms) CREATE INDEX "index_spree_payments_on_order_id" ON "spree_payments" ("order_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_payments_on_payment_method_id" ON "spree_payments" ("payment_method_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_payments_on_source_id_and_source_type" ON "spree_payments" ("source_id", "source_type")  (0.3ms) INSERT INTO "spree_payments" ("id","amount","order_id","source_type","source_id","payment_method_id","state","response_code","avs_response","created_at","updated_at","identifier","cvv_response_code","cvv_response_message") SELECT "id","amount","order_id","source_type","source_id","payment_method_id","state","response_code","avs_response","created_at","updated_at","identifier","cvv_response_code","cvv_response_message" FROM "aspree_payments"  (0.2ms) DROP TABLE "aspree_payments" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181985"]]  (119.2ms) commit transaction Migrating to CreateSpreeRefunds (20180516181986)  (0.1ms) begin transaction  (0.9ms) CREATE TABLE "spree_refunds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "payment_id" integer, "return_authorization_id" integer, "amount" decimal(10,2) DEFAULT 0.0 NOT NULL, "transaction_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181986"]]  (128.2ms) commit transaction Migrating to CreateSpreeReturnAuthorizationInventoryUnit (20180516181987)  (0.1ms) begin transaction  (0.6ms) CREATE TABLE "spree_return_authorization_inventory_units" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "return_authorization_id" integer, "inventory_unit_id" integer, "exchange_variant_id" integer, "received_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181987"]]  (163.5ms) commit transaction Migrating to RenameReturnAuthorizationInventoryUnitToReturnItems (20180516181988)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "spree_return_authorization_inventory_units" RENAME TO "spree_return_items" SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181988"]]  (92.8ms) commit transaction Migrating to BackfillLineItemPreTaxAmount (20180516181989)  (0.1ms) begin transaction  (0.2ms)  UPDATE spree_line_items SET pre_tax_amount = ((price * quantity) + promo_total) - included_tax_total WHERE pre_tax_amount IS NULL;  SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181989"]]  (105.2ms) commit transaction Migrating to RecreateSpreeReturnAuthorizations (20180516181990)  (0.1ms) begin transaction Spree::ReturnAuthorization Exists (0.2ms) SELECT 1 AS one FROM "spree_return_authorizations" LIMIT ? [["LIMIT", 1]]  (0.7ms) DROP TABLE "spree_return_authorizations"  (0.3ms) CREATE TEMPORARY TABLE "aspree_inventory_units" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar, "variant_id" integer, "order_id" integer, "shipment_id" integer, "return_authorization_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "pending" boolean DEFAULT 't', "line_item_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_inventory_units_on_return_authorization_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_inventory_units_on_return_authorization_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_inventory_units_on_line_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_inventory_units_on_line_item_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_shipment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_shipment_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_inventory_units_on_return_authorization_id" ON "aspree_inventory_units" ("return_authorization_id")  (0.2ms) CREATE INDEX "tindex_aspree_inventory_units_on_line_item_id" ON "aspree_inventory_units" ("line_item_id")  (0.2ms) CREATE INDEX "tindex_inventory_units_on_variant_id" ON "aspree_inventory_units" ("variant_id")  (0.2ms) CREATE INDEX "tindex_inventory_units_on_shipment_id" ON "aspree_inventory_units" ("shipment_id")  (0.2ms) CREATE INDEX "tindex_inventory_units_on_order_id" ON "aspree_inventory_units" ("order_id")  (0.2ms) INSERT INTO "aspree_inventory_units" ("id","state","variant_id","order_id","shipment_id","return_authorization_id","created_at","updated_at","pending","line_item_id") SELECT "id","state","variant_id","order_id","shipment_id","return_authorization_id","created_at","updated_at","pending","line_item_id" FROM "spree_inventory_units"  (0.7ms) DROP TABLE "spree_inventory_units"  (0.3ms) CREATE TABLE "spree_inventory_units" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar, "variant_id" integer, "order_id" integer, "shipment_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "pending" boolean DEFAULT 't', "line_item_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_inventory_units_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_inventory_units_on_shipment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_inventory_units_on_shipment_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_inventory_units_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_inventory_units_on_variant_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_inventory_units_on_line_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_inventory_units_on_line_item_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_inventory_units_on_return_authorization_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_inventory_units_on_return_authorization_id' AND type='index'   (0.2ms) CREATE INDEX "index_inventory_units_on_order_id" ON "spree_inventory_units" ("order_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_order_id' AND type='index'   (0.3ms) CREATE INDEX "index_inventory_units_on_shipment_id" ON "spree_inventory_units" ("shipment_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_shipment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_shipment_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_inventory_units_on_variant_id" ON "spree_inventory_units" ("variant_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_variant_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_shipment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_shipment_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_inventory_units_on_line_item_id" ON "spree_inventory_units" ("line_item_id")  (0.1ms) INSERT INTO "spree_inventory_units" ("id","state","variant_id","order_id","shipment_id","created_at","updated_at","pending","line_item_id") SELECT "id","state","variant_id","order_id","shipment_id","created_at","updated_at","pending","line_item_id" FROM "aspree_inventory_units"  (0.3ms) DROP TABLE "aspree_inventory_units" SQL (0.1ms) UPDATE "spree_adjustments" SET "source_type" = 'Spree::LegacyReturnAuthorization' WHERE "spree_adjustments"."source_type" = ? [["source_type", "Spree::ReturnAuthorization"]]  (0.3ms) CREATE TABLE "spree_return_authorizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "state" varchar, "amount" decimal(10,2) DEFAULT 0.0 NOT NULL, "order_id" integer, "reason" text, "created_at" datetime, "updated_at" datetime, "stock_location_id" integer) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181990"]]  (135.8ms) commit transaction Migrating to AddAmountFieldsToReturnItems (20180516181991)  (0.1ms) begin transaction  (1.1ms) ALTER TABLE "spree_return_items" ADD "pre_tax_amount" decimal(10,2) DEFAULT 0.0 NOT NULL  (0.7ms) ALTER TABLE "spree_return_items" ADD "included_tax_total" decimal(10,2) DEFAULT 0.0 NOT NULL  (0.3ms) ALTER TABLE "spree_return_items" ADD "additional_tax_total" decimal(10,2) DEFAULT 0.0 NOT NULL SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181991"]]  (114.6ms) commit transaction Migrating to DropReturnAuthorizationAmount (20180516181992)  (0.1ms) begin transaction  (0.4ms) CREATE TEMPORARY TABLE "aspree_return_authorizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "state" varchar, "amount" decimal(10,2) DEFAULT '0.0' NOT NULL, "order_id" integer, "reason" text, "created_at" datetime, "updated_at" datetime, "stock_location_id" integer)  (0.2ms) INSERT INTO "aspree_return_authorizations" ("id","number","state","amount","order_id","reason","created_at","updated_at","stock_location_id") SELECT "id","number","state","amount","order_id","reason","created_at","updated_at","stock_location_id" FROM "spree_return_authorizations"  (0.6ms) DROP TABLE "spree_return_authorizations"  (0.6ms) CREATE TABLE "spree_return_authorizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "state" varchar, "order_id" integer, "reason" text, "created_at" datetime, "updated_at" datetime, "stock_location_id" integer)  (0.6ms) INSERT INTO "spree_return_authorizations" ("id","number","state","order_id","reason","created_at","updated_at","stock_location_id") SELECT "id","number","state","order_id","reason","created_at","updated_at","stock_location_id" FROM "aspree_return_authorizations"  (0.3ms) DROP TABLE "aspree_return_authorizations" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181992"]]  (104.8ms) commit transaction Migrating to CreateSpreeReturnAuthorizationReasons (20180516181993)  (0.1ms) begin transaction  (1.0ms) CREATE TABLE "spree_return_authorization_reasons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "active" boolean DEFAULT 't', "mutable" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) Spree::ReturnAuthorizationReason Exists (0.2ms) SELECT 1 AS one FROM "spree_return_authorization_reasons" WHERE LOWER("spree_return_authorization_reasons"."name") = LOWER(?) LIMIT ? [["name", "Better price available"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "spree_return_authorization_reasons" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Better price available"], ["created_at", "2018-05-16 18:19:30.457544"], ["updated_at", "2018-05-16 18:19:30.457544"]] Spree::ReturnAuthorizationReason Exists (0.2ms) SELECT 1 AS one FROM "spree_return_authorization_reasons" WHERE LOWER("spree_return_authorization_reasons"."name") = LOWER(?) LIMIT ? [["name", "Missed estimated delivery date"], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "spree_return_authorization_reasons" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Missed estimated delivery date"], ["created_at", "2018-05-16 18:19:30.461323"], ["updated_at", "2018-05-16 18:19:30.461323"]] Spree::ReturnAuthorizationReason Exists (0.2ms) SELECT 1 AS one FROM "spree_return_authorization_reasons" WHERE LOWER("spree_return_authorization_reasons"."name") = LOWER(?) LIMIT ? [["name", "Missing parts or accessories"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "spree_return_authorization_reasons" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Missing parts or accessories"], ["created_at", "2018-05-16 18:19:30.464340"], ["updated_at", "2018-05-16 18:19:30.464340"]] Spree::ReturnAuthorizationReason Exists (0.1ms) SELECT 1 AS one FROM "spree_return_authorization_reasons" WHERE LOWER("spree_return_authorization_reasons"."name") = LOWER(?) LIMIT ? [["name", "Damaged/Defective"], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "spree_return_authorization_reasons" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Damaged/Defective"], ["created_at", "2018-05-16 18:19:30.467287"], ["updated_at", "2018-05-16 18:19:30.467287"]] Spree::ReturnAuthorizationReason Exists (0.1ms) SELECT 1 AS one FROM "spree_return_authorization_reasons" WHERE LOWER("spree_return_authorization_reasons"."name") = LOWER(?) LIMIT ? [["name", "Different from what was ordered"], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "spree_return_authorization_reasons" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Different from what was ordered"], ["created_at", "2018-05-16 18:19:30.469691"], ["updated_at", "2018-05-16 18:19:30.469691"]] Spree::ReturnAuthorizationReason Exists (0.1ms) SELECT 1 AS one FROM "spree_return_authorization_reasons" WHERE LOWER("spree_return_authorization_reasons"."name") = LOWER(?) LIMIT ? [["name", "Different from description"], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "spree_return_authorization_reasons" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Different from description"], ["created_at", "2018-05-16 18:19:30.472040"], ["updated_at", "2018-05-16 18:19:30.472040"]] Spree::ReturnAuthorizationReason Exists (0.1ms) SELECT 1 AS one FROM "spree_return_authorization_reasons" WHERE LOWER("spree_return_authorization_reasons"."name") = LOWER(?) LIMIT ? [["name", "No longer needed/wanted"], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "spree_return_authorization_reasons" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "No longer needed/wanted"], ["created_at", "2018-05-16 18:19:30.474330"], ["updated_at", "2018-05-16 18:19:30.474330"]] Spree::ReturnAuthorizationReason Exists (0.1ms) SELECT 1 AS one FROM "spree_return_authorization_reasons" WHERE LOWER("spree_return_authorization_reasons"."name") = LOWER(?) LIMIT ? [["name", "Accidental order"], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "spree_return_authorization_reasons" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Accidental order"], ["created_at", "2018-05-16 18:19:30.476636"], ["updated_at", "2018-05-16 18:19:30.476636"]] Spree::ReturnAuthorizationReason Exists (0.1ms) SELECT 1 AS one FROM "spree_return_authorization_reasons" WHERE LOWER("spree_return_authorization_reasons"."name") = LOWER(?) LIMIT ? [["name", "Unauthorized purchase"], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "spree_return_authorization_reasons" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Unauthorized purchase"], ["created_at", "2018-05-16 18:19:30.478895"], ["updated_at", "2018-05-16 18:19:30.478895"]]  (0.4ms) ALTER TABLE "spree_return_authorizations" ADD "return_authorization_reason_id" integer  (0.2ms) CREATE INDEX "index_return_authorizations_on_return_authorization_reason_id" ON "spree_return_authorizations" ("return_authorization_reason_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181993"]]  (135.9ms) commit transaction Migrating to CreateSpreeRefundReasons (20180516181994)  (0.2ms) begin transaction  (0.7ms) CREATE TABLE "spree_refund_reasons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "active" boolean DEFAULT 't', "mutable" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.4ms) ALTER TABLE "spree_refunds" ADD "refund_reason_id" integer  (0.2ms) CREATE INDEX "index_refunds_on_refund_reason_id" ON "spree_refunds" ("refund_reason_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181994"]]  (169.5ms) commit transaction Migrating to RenameReturnAuthorizationReason (20180516181995)  (0.1ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "aspree_return_authorizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "state" varchar, "order_id" integer, "memo" text, "created_at" datetime, "updated_at" datetime, "stock_location_id" integer, "return_authorization_reason_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_return_authorizations_on_return_authorization_reason_id" ON "aspree_return_authorizations" ("return_authorization_reason_id")  (0.1ms) INSERT INTO "aspree_return_authorizations" ("id","number","state","order_id","memo","created_at","updated_at","stock_location_id","return_authorization_reason_id") SELECT "id","number","state","order_id","reason","created_at","updated_at","stock_location_id","return_authorization_reason_id" FROM "spree_return_authorizations"  (0.4ms) DROP TABLE "spree_return_authorizations"  (0.2ms) CREATE TABLE "spree_return_authorizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "state" varchar, "order_id" integer, "memo" text, "created_at" datetime, "updated_at" datetime, "stock_location_id" integer, "return_authorization_reason_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_return_authorizations_on_return_authorization_reason_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_return_authorizations_on_return_authorization_reason_id' AND type='index'   (0.7ms) CREATE INDEX "index_return_authorizations_on_return_authorization_reason_id" ON "spree_return_authorizations" ("return_authorization_reason_id")  (0.3ms) INSERT INTO "spree_return_authorizations" ("id","number","state","order_id","memo","created_at","updated_at","stock_location_id","return_authorization_reason_id") SELECT "id","number","state","order_id","memo","created_at","updated_at","stock_location_id","return_authorization_reason_id" FROM "aspree_return_authorizations"  (0.2ms) DROP TABLE "aspree_return_authorizations"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index'  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181995"]]  (96.1ms) commit transaction Migrating to CreateSpreePromotionCategories (20180516181996)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "spree_promotion_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.5ms) ALTER TABLE "spree_promotions" ADD "promotion_category_id" integer  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_advertise' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_advertise' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_starts_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_starts_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_expires_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_expires_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_code' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index'   (0.3ms) CREATE INDEX "index_spree_promotions_on_promotion_category_id" ON "spree_promotions" ("promotion_category_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181996"]]  (145.5ms) commit transaction Migrating to DropReceivedAtOnReturnItems (20180516181997)  (0.1ms) begin transaction  (0.3ms) CREATE TEMPORARY TABLE "aspree_return_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "return_authorization_id" integer, "inventory_unit_id" integer, "exchange_variant_id" integer, "received_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "pre_tax_amount" decimal(10,2) DEFAULT '0.0' NOT NULL, "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "additional_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL)  (0.1ms) INSERT INTO "aspree_return_items" ("id","return_authorization_id","inventory_unit_id","exchange_variant_id","received_at","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total") SELECT "id","return_authorization_id","inventory_unit_id","exchange_variant_id","received_at","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total" FROM "spree_return_items"  (0.3ms) DROP TABLE "spree_return_items"  (0.3ms) CREATE TABLE "spree_return_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "return_authorization_id" integer, "inventory_unit_id" integer, "exchange_variant_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "pre_tax_amount" decimal(10,2) DEFAULT '0.0' NOT NULL, "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "additional_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL)  (0.1ms) INSERT INTO "spree_return_items" ("id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total") SELECT "id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total" FROM "aspree_return_items"  (0.2ms) DROP TABLE "aspree_return_items" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181997"]]  (135.3ms) commit transaction Migrating to AddReceptionAndAcceptanceStatusToReturnItems (20180516181998)  (0.1ms) begin transaction  (1.2ms) ALTER TABLE "spree_return_items" ADD "reception_status" varchar  (0.7ms) ALTER TABLE "spree_return_items" ADD "acceptance_status" varchar SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181998"]]  (81.5ms) commit transaction Migrating to CreateDefaultRefundReason (20180516181999)  (0.1ms) begin transaction Spree::RefundReason Exists (0.2ms) SELECT 1 AS one FROM "spree_refund_reasons" WHERE LOWER("spree_refund_reasons"."name") = LOWER(?) LIMIT ? [["name", "Return processing"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "spree_refund_reasons" ("name", "mutable", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Return processing"], ["mutable", "f"], ["created_at", "2018-05-16 18:19:31.322419"], ["updated_at", "2018-05-16 18:19:31.322419"]] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181999"]]  (92.2ms) commit transaction Migrating to AddDefaultToSpreeStockLocations (20180516182000)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182000"]]  (104.8ms) commit transaction Migrating to CreateSpreeCustomerReturns (20180516182001)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "spree_customer_returns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "stock_location_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182001"]]  (121.3ms) commit transaction Migrating to AddCustomerReturnIdToReturnItem (20180516182002)  (0.1ms) begin transaction  (1.1ms) ALTER TABLE "spree_return_items" ADD "customer_return_id" integer  (0.5ms) CREATE INDEX "index_return_items_on_customer_return_id" ON "spree_return_items" ("customer_return_id") SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182002"]]  (137.2ms) commit transaction Migrating to CreateFriendlyIdSlugs (20180516182003)  (0.1ms) begin transaction  (0.6ms) CREATE TABLE "friendly_id_slugs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar NOT NULL, "sluggable_id" integer NOT NULL, "sluggable_type" varchar(50), "scope" varchar, "created_at" datetime)  (0.2ms) CREATE INDEX "index_friendly_id_slugs_on_sluggable_id" ON "friendly_id_slugs" ("sluggable_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'   (0.2ms) CREATE INDEX "index_friendly_id_slugs_on_slug_and_sluggable_type" ON "friendly_id_slugs" ("slug", "sluggable_type")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'   (0.3ms) CREATE UNIQUE INDEX "index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope" ON "friendly_id_slugs" ("slug", "sluggable_type", "scope")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'   (0.2ms) CREATE INDEX "index_friendly_id_slugs_on_sluggable_type" ON "friendly_id_slugs" ("sluggable_type") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182003"]]  (123.4ms) commit transaction Migrating to RenameSpreeRefundReturnAuthorizationId (20180516182004)  (0.2ms) begin transaction  (0.5ms) CREATE TEMPORARY TABLE "aspree_refunds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "payment_id" integer, "customer_return_id" integer, "amount" decimal(10,2) DEFAULT '0.0' NOT NULL, "transaction_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "refund_reason_id" integer)  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_refunds_on_refund_reason_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_refunds_on_refund_reason_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_refunds_on_refund_reason_id" ON "aspree_refunds" ("refund_reason_id")  (0.2ms) INSERT INTO "aspree_refunds" ("id","payment_id","customer_return_id","amount","transaction_id","created_at","updated_at","refund_reason_id") SELECT "id","payment_id","return_authorization_id","amount","transaction_id","created_at","updated_at","refund_reason_id" FROM "spree_refunds"  (0.5ms) DROP TABLE "spree_refunds"  (0.4ms) CREATE TABLE "spree_refunds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "payment_id" integer, "customer_return_id" integer, "amount" decimal(10,2) DEFAULT '0.0' NOT NULL, "transaction_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "refund_reason_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_refunds_on_refund_reason_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_refunds_on_refund_reason_id' AND type='index'   (0.2ms) CREATE INDEX "index_refunds_on_refund_reason_id" ON "spree_refunds" ("refund_reason_id")  (0.2ms) INSERT INTO "spree_refunds" ("id","payment_id","customer_return_id","amount","transaction_id","created_at","updated_at","refund_reason_id") SELECT "id","payment_id","customer_return_id","amount","transaction_id","created_at","updated_at","refund_reason_id" FROM "aspree_refunds"  (0.2ms) DROP TABLE "aspree_refunds"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_refunds_on_refund_reason_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_refunds_on_refund_reason_id' AND type='index'  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182004"]]  (109.9ms) commit transaction Migrating to IncreaseReturnItemPreTaxAmountPrecision (20180516182005)  (0.1ms) begin transaction  (0.6ms) CREATE TEMPORARY TABLE "aspree_return_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "return_authorization_id" integer, "inventory_unit_id" integer, "exchange_variant_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "pre_tax_amount" decimal(10,2) DEFAULT '0.0' NOT NULL, "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "additional_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "reception_status" varchar, "acceptance_status" varchar, "customer_return_id" integer)  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_return_items_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_items_on_customer_return_id' AND type='index'   (0.4ms) CREATE INDEX "tindex_return_items_on_customer_return_id" ON "aspree_return_items" ("customer_return_id")  (0.3ms) INSERT INTO "aspree_return_items" ("id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id") SELECT "id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id" FROM "spree_return_items"  (0.5ms) DROP TABLE "spree_return_items"  (0.4ms) CREATE TABLE "spree_return_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "return_authorization_id" integer, "inventory_unit_id" integer, "exchange_variant_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "pre_tax_amount" decimal(12,4) DEFAULT 0.0 NOT NULL, "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "additional_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "reception_status" varchar, "acceptance_status" varchar, "customer_return_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_return_items_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_return_items_on_customer_return_id' AND type='index'   (0.2ms) CREATE INDEX "index_return_items_on_customer_return_id" ON "spree_return_items" ("customer_return_id")  (0.3ms) INSERT INTO "spree_return_items" ("id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id") SELECT "id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id" FROM "aspree_return_items"  (0.3ms) DROP TABLE "aspree_return_items"  (0.2ms) CREATE TEMPORARY TABLE "aspree_return_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "return_authorization_id" integer, "inventory_unit_id" integer, "exchange_variant_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "pre_tax_amount" decimal(12,4) DEFAULT '0.0' NOT NULL, "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "additional_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "reception_status" varchar, "acceptance_status" varchar, "customer_return_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_return_items_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_items_on_customer_return_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_return_items_on_customer_return_id" ON "aspree_return_items" ("customer_return_id")  (0.1ms) INSERT INTO "aspree_return_items" ("id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id") SELECT "id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id" FROM "spree_return_items"  (0.3ms) DROP TABLE "spree_return_items"  (0.3ms) CREATE TABLE "spree_return_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "return_authorization_id" integer, "inventory_unit_id" integer, "exchange_variant_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "pre_tax_amount" decimal(12,4) DEFAULT '0.0' NOT NULL, "included_tax_total" decimal(12,4) DEFAULT 0.0 NOT NULL, "additional_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "reception_status" varchar, "acceptance_status" varchar, "customer_return_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_return_items_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_return_items_on_customer_return_id' AND type='index'   (0.3ms) CREATE INDEX "index_return_items_on_customer_return_id" ON "spree_return_items" ("customer_return_id")  (0.2ms) INSERT INTO "spree_return_items" ("id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id") SELECT "id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id" FROM "aspree_return_items"  (0.2ms) DROP TABLE "aspree_return_items"  (0.3ms) CREATE TEMPORARY TABLE "aspree_return_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "return_authorization_id" integer, "inventory_unit_id" integer, "exchange_variant_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "pre_tax_amount" decimal(12,4) DEFAULT '0.0' NOT NULL, "included_tax_total" decimal(12,4) DEFAULT '0.0' NOT NULL, "additional_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "reception_status" varchar, "acceptance_status" varchar, "customer_return_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_return_items_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_items_on_customer_return_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_return_items_on_customer_return_id" ON "aspree_return_items" ("customer_return_id")  (0.1ms) INSERT INTO "aspree_return_items" ("id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id") SELECT "id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id" FROM "spree_return_items"  (0.3ms) DROP TABLE "spree_return_items"  (0.3ms) CREATE TABLE "spree_return_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "return_authorization_id" integer, "inventory_unit_id" integer, "exchange_variant_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "pre_tax_amount" decimal(12,4) DEFAULT '0.0' NOT NULL, "included_tax_total" decimal(12,4) DEFAULT '0.0' NOT NULL, "additional_tax_total" decimal(12,4) DEFAULT 0.0 NOT NULL, "reception_status" varchar, "acceptance_status" varchar, "customer_return_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_return_items_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_return_items_on_customer_return_id' AND type='index'   (0.3ms) CREATE INDEX "index_return_items_on_customer_return_id" ON "spree_return_items" ("customer_return_id")  (0.1ms) INSERT INTO "spree_return_items" ("id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id") SELECT "id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id" FROM "aspree_return_items"  (0.2ms) DROP TABLE "aspree_return_items" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182005"]]  (97.4ms) commit transaction Migrating to CopyProductSlugsToSlugHistory (20180516182006)  (0.1ms) begin transaction  (0.6ms) INSERT INTO friendly_id_slugs (slug, sluggable_id, sluggable_type, created_at) SELECT slug, id, 'Spree::Product', '2018-05-16 18:19:32.208075' FROM spree_products WHERE slug IS NOT NULL ORDER BY id  SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182006"]]  (104.1ms) commit transaction Migrating to CreateSpreeReimbursements (20180516182007)  (0.1ms) begin transaction  (2.1ms) CREATE TABLE "spree_reimbursements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "reimbursement_status" varchar, "customer_return_id" integer, "order_id" integer, "total" decimal(10,2), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.6ms) CREATE INDEX "index_spree_reimbursements_on_customer_return_id" ON "spree_reimbursements" ("customer_return_id")  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_reimbursements_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_reimbursements_on_customer_return_id' AND type='index'   (0.5ms) CREATE INDEX "index_spree_reimbursements_on_order_id" ON "spree_reimbursements" ("order_id")  (0.5ms) CREATE TEMPORARY TABLE "aspree_refunds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "payment_id" integer, "customer_return_id" integer, "amount" decimal(10,2) DEFAULT '0.0' NOT NULL, "transaction_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "refund_reason_id" integer)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_refunds_on_refund_reason_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_refunds_on_refund_reason_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_refunds_on_refund_reason_id" ON "aspree_refunds" ("refund_reason_id")  (0.2ms) INSERT INTO "aspree_refunds" ("id","payment_id","customer_return_id","amount","transaction_id","created_at","updated_at","refund_reason_id") SELECT "id","payment_id","customer_return_id","amount","transaction_id","created_at","updated_at","refund_reason_id" FROM "spree_refunds"  (0.4ms) DROP TABLE "spree_refunds"  (0.3ms) CREATE TABLE "spree_refunds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "payment_id" integer, "amount" decimal(10,2) DEFAULT '0.0' NOT NULL, "transaction_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "refund_reason_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_refunds_on_refund_reason_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_refunds_on_refund_reason_id' AND type='index'   (0.2ms) CREATE INDEX "index_refunds_on_refund_reason_id" ON "spree_refunds" ("refund_reason_id")  (0.1ms) INSERT INTO "spree_refunds" ("id","payment_id","amount","transaction_id","created_at","updated_at","refund_reason_id") SELECT "id","payment_id","amount","transaction_id","created_at","updated_at","refund_reason_id" FROM "aspree_refunds"  (0.2ms) DROP TABLE "aspree_refunds"  (0.3ms) ALTER TABLE "spree_refunds" ADD "reimbursement_id" integer  (0.3ms) ALTER TABLE "spree_return_items" ADD "reimbursement_id" integer SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182007"]]  (113.2ms) commit transaction Migrating to AddPromotionableToSpreeProducts (20180516182008)  (0.1ms) begin transaction  (1.3ms) ALTER TABLE "spree_products" ADD "promotionable" boolean DEFAULT 't' SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182008"]]  (97.4ms) commit transaction Migrating to AddExchangeInventoryUnitForeignKeys (20180516182009)  (0.1ms) begin transaction  (1.3ms) ALTER TABLE "spree_return_items" ADD "exchange_inventory_unit_id" integer  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_return_items_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_items_on_customer_return_id' AND type='index'   (0.6ms) CREATE INDEX "index_spree_return_items_on_exchange_inventory_unit_id" ON "spree_return_items" ("exchange_inventory_unit_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182009"]]  (133.7ms) commit transaction Migrating to AddAcceptanceStatusErrorsToReturnItem (20180516182010)  (0.1ms) begin transaction  (1.1ms) ALTER TABLE "spree_return_items" ADD "acceptance_status_errors" text SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182010"]]  (87.6ms) commit transaction Migrating to CreateSpreeReimbursementTypes (20180516182011)  (0.1ms) begin transaction  (0.7ms) CREATE TABLE "spree_reimbursement_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "active" boolean DEFAULT 't', "mutable" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) Spree::ReimbursementType Exists (0.2ms) SELECT 1 AS one FROM "spree_reimbursement_types" WHERE LOWER("spree_reimbursement_types"."name") = LOWER(?) LIMIT ? [["name", "original"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "spree_reimbursement_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "original"], ["created_at", "2018-05-16 18:19:32.820182"], ["updated_at", "2018-05-16 18:19:32.820182"]]  (0.5ms) ALTER TABLE "spree_return_items" ADD "preferred_reimbursement_type_id" integer  (0.3ms) ALTER TABLE "spree_return_items" ADD "override_reimbursement_type_id" integer SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182011"]]  (155.8ms) commit transaction Migrating to AddDefaultToShipmentCost (20180516182012)  (0.1ms) begin transaction  (0.6ms) CREATE TEMPORARY TABLE "aspree_shipments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tracking" varchar, "number" varchar, "cost" decimal(8,2), "shipped_at" datetime, "order_id" integer, "address_id" integer, "state" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "stock_location_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "pre_tax_amount" decimal(8,2))  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_address_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_shipments_on_address_id" ON "aspree_shipments" ("address_id")  (0.2ms) CREATE INDEX "tindex_aspree_shipments_on_stock_location_id" ON "aspree_shipments" ("stock_location_id")  (0.2ms) CREATE INDEX "tindex_aspree_shipments_on_order_id" ON "aspree_shipments" ("order_id")  (0.2ms) CREATE INDEX "tindex_shipments_on_number" ON "aspree_shipments" ("number")  (0.2ms) INSERT INTO "aspree_shipments" ("id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount") SELECT "id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount" FROM "spree_shipments"  (0.6ms) DROP TABLE "spree_shipments"  (0.4ms) CREATE TABLE "spree_shipments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tracking" varchar, "number" varchar, "cost" decimal(10,2) DEFAULT 0.0, "shipped_at" datetime, "order_id" integer, "address_id" integer, "state" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "stock_location_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "pre_tax_amount" decimal(8,2))  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_shipments_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_shipments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_shipments_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_shipments_on_stock_location_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_shipments_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_shipments_on_address_id' AND type='index'   (0.2ms) CREATE INDEX "index_shipments_on_number" ON "spree_shipments" ("number")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_shipments_on_order_id" ON "spree_shipments" ("order_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_shipments_on_stock_location_id" ON "spree_shipments" ("stock_location_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_shipments_on_address_id" ON "spree_shipments" ("address_id")  (0.3ms) INSERT INTO "spree_shipments" ("id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount") SELECT "id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount" FROM "aspree_shipments"  (0.3ms) DROP TABLE "aspree_shipments" SQL (0.2ms) UPDATE "spree_shipments" SET "cost" = 0 WHERE "spree_shipments"."cost" IS NULL SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182012"]]  (103.0ms) commit transaction Migrating to AddDefaultToSpreeCreditCards (20180516182013)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "spree_credit_cards" ADD "default" boolean DEFAULT 'f' NOT NULL SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182013"]]  (119.2ms) commit transaction Migrating to MakeExistingCreditCardsDefault (20180516182014)  (0.1ms) begin transaction SQL (0.2ms) UPDATE "spree_credit_cards" SET "default" = 't' WHERE "spree_credit_cards"."id" IN (SELECT "spree_credit_cards"."id" FROM "spree_credit_cards" LEFT OUTER JOIN spree_credit_cards cc2 ON cc2.user_id = spree_credit_cards.user_id AND spree_credit_cards.created_at < cc2.created_at WHERE ("spree_credit_cards"."user_id" IS NOT NULL) AND (cc2.user_id IS NULL)) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182014"]]  (93.3ms) commit transaction Migrating to AddTypeToReimbursementType (20180516182015)  (0.1ms) begin transaction  (1.2ms) ALTER TABLE "spree_reimbursement_types" ADD "type" varchar  (0.5ms) CREATE INDEX "index_spree_reimbursement_types_on_type" ON "spree_reimbursement_types" ("type") Spree::ReimbursementType Load (0.4ms) SELECT "spree_reimbursement_types".* FROM "spree_reimbursement_types" WHERE "spree_reimbursement_types"."name" = ? ORDER BY LOWER(spree_reimbursement_types.name) LIMIT ? [["name", "original"], ["LIMIT", 1]] Spree::ReimbursementType Exists (0.2ms) SELECT 1 AS one FROM "spree_reimbursement_types" WHERE LOWER("spree_reimbursement_types"."name") = LOWER(?) AND ("spree_reimbursement_types"."id" != ?) LIMIT ? [["name", "original"], ["id", 1], ["LIMIT", 1]] SQL (0.4ms) UPDATE "spree_reimbursement_types" SET "type" = ?, "updated_at" = ? WHERE "spree_reimbursement_types"."id" = ? [["type", "Spree::ReimbursementType::OriginalPayment"], ["updated_at", "2018-05-16 18:19:33.381304"], ["id", 1]] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182015"]]  (106.7ms) commit transaction Migrating to CreateSpreeReimbursementCredits (20180516182016)  (0.1ms) begin transaction  (0.7ms) CREATE TABLE "spree_reimbursement_credits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" decimal(10,2) DEFAULT 0.0 NOT NULL, "reimbursement_id" integer, "creditable_id" integer, "creditable_type" varchar) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182016"]]  (156.6ms) commit transaction Migrating to AddMetaTitleToSpreeProducts (20180516182017)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "spree_products" ADD "meta_title" varchar SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182017"]]  (144.1ms) commit transaction Migrating to AddKindToZone (20180516182018)  (0.1ms) begin transaction  (0.8ms) ALTER TABLE "spree_zones" ADD "kind" varchar  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_zones_on_default_tax' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_zones_on_default_tax' AND type='index'   (0.3ms) CREATE INDEX "index_spree_zones_on_kind" ON "spree_zones" ("kind") Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" ORDER BY "spree_zones"."id" ASC LIMIT ? [["LIMIT", 1000]] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182018"]]  (145.2ms) commit transaction Migrating to AddCodeToSpreeTaxCategories (20180516182019)  (0.1ms) begin transaction  (0.9ms) ALTER TABLE "spree_tax_categories" ADD "tax_code" varchar SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182019"]]  (125.3ms) commit transaction Migrating to DefaultPreTaxAmountShouldBeZero (20180516182020)  (0.1ms) begin transaction  (0.4ms) CREATE TEMPORARY TABLE "aspree_line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer, "order_id" integer, "quantity" integer NOT NULL, "price" decimal(10,2) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "cost_price" decimal(10,2), "tax_category_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "pre_tax_amount" decimal(8,2))  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.3ms) CREATE INDEX "tindex_aspree_line_items_on_tax_category_id" ON "aspree_line_items" ("tax_category_id")  (0.2ms) CREATE INDEX "tindex_aspree_line_items_on_variant_id" ON "aspree_line_items" ("variant_id")  (0.2ms) CREATE INDEX "tindex_aspree_line_items_on_order_id" ON "aspree_line_items" ("order_id")  (0.2ms) INSERT INTO "aspree_line_items" ("id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount") SELECT "id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount" FROM "spree_line_items"  (0.5ms) DROP TABLE "spree_line_items"  (0.5ms) CREATE TABLE "spree_line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer, "order_id" integer, "quantity" integer NOT NULL, "price" decimal(10,2) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "cost_price" decimal(10,2), "tax_category_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "pre_tax_amount" decimal(8,2) DEFAULT 0)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_line_items_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_line_items_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_line_items_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_line_items_on_tax_category_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_line_items_on_order_id" ON "spree_line_items" ("order_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_line_items_on_variant_id" ON "spree_line_items" ("variant_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_variant_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_line_items_on_tax_category_id" ON "spree_line_items" ("tax_category_id")  (0.3ms) INSERT INTO "spree_line_items" ("id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount") SELECT "id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount" FROM "aspree_line_items"  (0.3ms) DROP TABLE "aspree_line_items"  (0.3ms) CREATE TEMPORARY TABLE "aspree_shipments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tracking" varchar, "number" varchar, "cost" decimal(10,2) DEFAULT '0.0', "shipped_at" datetime, "order_id" integer, "address_id" integer, "state" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "stock_location_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "pre_tax_amount" decimal(8,2))  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_shipments_on_address_id" ON "aspree_shipments" ("address_id")  (0.2ms) CREATE INDEX "tindex_aspree_shipments_on_stock_location_id" ON "aspree_shipments" ("stock_location_id")  (0.2ms) CREATE INDEX "tindex_aspree_shipments_on_order_id" ON "aspree_shipments" ("order_id")  (0.2ms) CREATE INDEX "tindex_shipments_on_number" ON "aspree_shipments" ("number")  (0.2ms) INSERT INTO "aspree_shipments" ("id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount") SELECT "id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount" FROM "spree_shipments"  (0.4ms) DROP TABLE "spree_shipments"  (0.3ms) CREATE TABLE "spree_shipments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tracking" varchar, "number" varchar, "cost" decimal(10,2) DEFAULT '0.0', "shipped_at" datetime, "order_id" integer, "address_id" integer, "state" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "stock_location_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "pre_tax_amount" decimal(8,2) DEFAULT 0)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_shipments_on_number' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_shipments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_shipments_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_shipments_on_stock_location_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_shipments_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_shipments_on_address_id' AND type='index'   (0.2ms) CREATE INDEX "index_shipments_on_number" ON "spree_shipments" ("number")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.3ms) CREATE INDEX "index_spree_shipments_on_order_id" ON "spree_shipments" ("order_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_shipments_on_stock_location_id" ON "spree_shipments" ("stock_location_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_shipments_on_address_id" ON "spree_shipments" ("address_id")  (0.2ms) INSERT INTO "spree_shipments" ("id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount") SELECT "id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount" FROM "aspree_shipments"  (0.3ms) DROP TABLE "aspree_shipments" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182020"]]  (149.4ms) commit transaction Migrating to AddCodeToSpreeShippingMethods (20180516182021)  (0.1ms) begin transaction  (0.8ms) ALTER TABLE "spree_shipping_methods" ADD "code" varchar SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182021"]]  (88.6ms) commit transaction Migrating to AddCancelAuditFieldsToSpreeOrders (20180516182022)  (0.1ms) begin transaction  (1.6ms) ALTER TABLE "spree_orders" ADD "canceled_at" datetime  (1.0ms) ALTER TABLE "spree_orders" ADD "canceler_id" integer SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182022"]]  (93.8ms) commit transaction Migrating to AddStoreIdToOrders (20180516182023)  (0.1ms) begin transaction  (1.7ms) ALTER TABLE "spree_orders" ADD "store_id" integer Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = ? ORDER BY "spree_stores"."id" ASC LIMIT ? [["default", "t"], ["LIMIT", 1]] SQL (0.2ms) UPDATE "spree_orders" SET "store_id" = 1 WHERE "spree_orders"."store_id" IS NULL SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182023"]]  (96.7ms) commit transaction Migrating to CreateSpreeTaxonsPrototypes (20180516182024)  (0.2ms) begin transaction  (0.9ms) CREATE TABLE "spree_taxons_prototypes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "taxon_id" integer, "prototype_id" integer)  (0.2ms) CREATE INDEX "index_spree_taxons_prototypes_on_taxon_id" ON "spree_taxons_prototypes" ("taxon_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_taxons_prototypes_on_prototype_id" ON "spree_taxons_prototypes" ("prototype_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182024"]]  (121.3ms) commit transaction Migrating to AddStateLockVersionToOrder (20180516182025)  (0.2ms) begin transaction  (1.9ms) ALTER TABLE "spree_orders" ADD "state_lock_version" integer DEFAULT 0 NOT NULL SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182025"]]  (115.7ms) commit transaction Migrating to AddCounterCacheFromSpreeVariantsToSpreeStockItems (20180516182026)  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182026"]]  (98.6ms) commit transaction Migrating to FixAdjustmentOrderPresence (20180516182027)  (0.1ms) begin transaction Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."order_id" IS NULL ORDER BY "spree_adjustments"."id" ASC LIMIT ? [["LIMIT", 1000]] SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182027"]]  (99.1ms) commit transaction Migrating to UpdateClassificationsPositions (20180516182028)  (0.1ms) begin transaction Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182028"]]  (105.6ms) commit transaction Migrating to AddGuestTokenIndexToSpreeOrders (20180516182029)  (0.1ms) begin transaction  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.5ms) CREATE INDEX "index_spree_orders_on_guest_token" ON "spree_orders" ("guest_token") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182029"]]  (98.7ms) commit transaction Migrating to RemoveTokenPermissionsTable (20180516182030)  (0.1ms) begin transaction  (1.0ms) DROP TABLE "spree_tokenized_permissions" SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182030"]]  (82.7ms) commit transaction Migrating to RemoveExtraProductsSlugIndex (20180516182031)  (0.1ms) begin transaction  (0.6ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_tax_category_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_slug' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='permalink_idx_unique' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='permalink_idx_unique' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.8ms) DROP INDEX "permalink_idx_unique" SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182031"]]  (86.4ms) commit transaction Migrating to UpdateProductSlugIndex (20180516182032)  (0.2ms) begin transaction  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_tax_category_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_slug' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_slug' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_tax_category_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_slug' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.6ms) DROP INDEX "index_spree_products_on_slug"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.4ms) CREATE UNIQUE INDEX "index_spree_products_on_slug" ON "spree_products" ("slug") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182032"]]  (99.4ms) commit transaction Migrating to RenameIdentifierToNumberForPayment (20180516182033)  (0.1ms) begin transaction  (0.6ms) CREATE TEMPORARY TABLE "aspree_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" decimal(10,2) DEFAULT '0.0' NOT NULL, "order_id" integer, "source_type" varchar, "source_id" integer, "payment_method_id" integer, "state" varchar, "response_code" varchar, "avs_response" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "number" varchar, "cvv_response_code" varchar, "cvv_response_message" varchar)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_payments_on_source_id_and_source_type" ON "aspree_payments" ("source_id", "source_type")  (0.6ms) CREATE INDEX "tindex_aspree_payments_on_payment_method_id" ON "aspree_payments" ("payment_method_id")  (0.2ms) CREATE INDEX "tindex_aspree_payments_on_order_id" ON "aspree_payments" ("order_id")  (0.2ms) INSERT INTO "aspree_payments" ("id","amount","order_id","source_type","source_id","payment_method_id","state","response_code","avs_response","created_at","updated_at","number","cvv_response_code","cvv_response_message") SELECT "id","amount","order_id","source_type","source_id","payment_method_id","state","response_code","avs_response","created_at","updated_at","identifier","cvv_response_code","cvv_response_message" FROM "spree_payments"  (0.6ms) DROP TABLE "spree_payments"  (0.3ms) CREATE TABLE "spree_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" decimal(10,2) DEFAULT '0.0' NOT NULL, "order_id" integer, "source_type" varchar, "source_id" integer, "payment_method_id" integer, "state" varchar, "response_code" varchar, "avs_response" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "number" varchar, "cvv_response_code" varchar, "cvv_response_message" varchar)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_payments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_payments_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_payments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_payments_on_source_id_and_source_type' AND type='index'   (0.3ms) CREATE INDEX "index_spree_payments_on_order_id" ON "spree_payments" ("order_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_payments_on_payment_method_id" ON "spree_payments" ("payment_method_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_payments_on_source_id_and_source_type" ON "spree_payments" ("source_id", "source_type")  (0.2ms) INSERT INTO "spree_payments" ("id","amount","order_id","source_type","source_id","payment_method_id","state","response_code","avs_response","created_at","updated_at","number","cvv_response_code","cvv_response_message") SELECT "id","amount","order_id","source_type","source_id","payment_method_id","state","response_code","avs_response","created_at","updated_at","number","cvv_response_code","cvv_response_message" FROM "aspree_payments"  (0.4ms) DROP TABLE "aspree_payments"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182033"]]  (102.1ms) commit transaction Migrating to CreateSpreeStoreCredits (20180516182034)  (0.2ms) begin transaction  (1.0ms) CREATE TABLE "spree_store_credits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "category_id" integer, "created_by_id" integer, "amount" decimal(8,2) DEFAULT 0.0 NOT NULL, "amount_used" decimal(8,2) DEFAULT 0.0 NOT NULL, "memo" text, "deleted_at" datetime, "currency" varchar, "amount_authorized" decimal(8,2) DEFAULT 0.0 NOT NULL, "originator_id" integer, "originator_type" varchar, "type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.3ms) CREATE INDEX "index_spree_store_credits_on_deleted_at" ON "spree_store_credits" ("deleted_at")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_store_credits_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_store_credits_on_deleted_at' AND type='index'   (0.3ms) CREATE INDEX "index_spree_store_credits_on_user_id" ON "spree_store_credits" ("user_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_store_credits_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_store_credits_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_store_credits_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_store_credits_on_deleted_at' AND type='index'   (0.3ms) CREATE INDEX "index_spree_store_credits_on_type_id" ON "spree_store_credits" ("type_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_store_credits_on_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_store_credits_on_type_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_store_credits_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_store_credits_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_store_credits_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_store_credits_on_deleted_at' AND type='index'   (0.2ms) CREATE INDEX "spree_store_credits_originator" ON "spree_store_credits" ("originator_id", "originator_type") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182034"]]  (343.0ms) commit transaction Migrating to CreateSpreeStoreCreditCategories (20180516182035)  (0.1ms) begin transaction  (1.0ms) CREATE TABLE "spree_store_credit_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182035"]]  (105.7ms) commit transaction Migrating to CreateSpreeStoreCreditEvents (20180516182036)  (0.2ms) begin transaction  (1.0ms) CREATE TABLE "spree_store_credit_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "store_credit_id" integer NOT NULL, "action" varchar NOT NULL, "amount" decimal(8,2), "authorization_code" varchar NOT NULL, "user_total_amount" decimal(8,2) DEFAULT 0.0 NOT NULL, "originator_id" integer, "originator_type" varchar, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.5ms) CREATE INDEX "index_spree_store_credit_events_on_store_credit_id" ON "spree_store_credit_events" ("store_credit_id")  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_store_credit_events_on_store_credit_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_store_credit_events_on_store_credit_id' AND type='index'   (0.5ms) CREATE INDEX "spree_store_credit_events_originator" ON "spree_store_credit_events" ("originator_id", "originator_type") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182036"]]  (121.5ms) commit transaction Migrating to CreateSpreeStoreCreditTypes (20180516182037)  (0.1ms) begin transaction  (0.7ms) CREATE TABLE "spree_store_credit_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "priority" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.3ms) CREATE INDEX "index_spree_store_credit_types_on_priority" ON "spree_store_credit_types" ("priority") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182037"]]  (138.5ms) commit transaction Migrating to RemoveEnvironmentFromPaymentMethod (20180516182038)  (0.1ms) begin transaction SQL (0.3ms) UPDATE "spree_payment_methods" SET "active" = 'f' WHERE "spree_payment_methods"."deleted_at" IS NULL AND (environment != 'test')  (0.5ms) CREATE TEMPORARY TABLE "aspree_payment_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "name" varchar, "description" text, "active" boolean DEFAULT 't', "environment" varchar DEFAULT 'development', "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "display_on" varchar, "auto_capture" boolean, "preferences" text)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payment_methods_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payment_methods_on_id_and_type' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_payment_methods_on_id_and_type" ON "aspree_payment_methods" ("id", "type")  (0.1ms) INSERT INTO "aspree_payment_methods" ("id","type","name","description","active","environment","deleted_at","created_at","updated_at","display_on","auto_capture","preferences") SELECT "id","type","name","description","active","environment","deleted_at","created_at","updated_at","display_on","auto_capture","preferences" FROM "spree_payment_methods"  (0.5ms) DROP TABLE "spree_payment_methods"  (0.7ms) CREATE TABLE "spree_payment_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "name" varchar, "description" text, "active" boolean DEFAULT 't', "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "display_on" varchar, "auto_capture" boolean, "preferences" text)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_payment_methods_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_payment_methods_on_id_and_type' AND type='index'   (0.2ms) CREATE INDEX "index_spree_payment_methods_on_id_and_type" ON "spree_payment_methods" ("id", "type")  (0.3ms) INSERT INTO "spree_payment_methods" ("id","type","name","description","active","deleted_at","created_at","updated_at","display_on","auto_capture","preferences") SELECT "id","type","name","description","active","deleted_at","created_at","updated_at","display_on","auto_capture","preferences" FROM "aspree_payment_methods"  (0.2ms) DROP TABLE "aspree_payment_methods" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182038"]]  (95.0ms) commit transaction Migrating to AddResellableToReturnItems (20180516182039)  (0.1ms) begin transaction  (0.9ms) ALTER TABLE "spree_return_items" ADD "resellable" boolean DEFAULT 't' NOT NULL SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182039"]]  (116.8ms) commit transaction Migrating to AddCodeToSpreePromotionCategories (20180516182040)  (0.2ms) begin transaction  (1.0ms) ALTER TABLE "spree_promotion_categories" ADD "code" varchar SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182040"]]  (105.6ms) commit transaction Migrating to RemoveEnvironmentFromTracker (20180516182041)  (0.2ms) begin transaction SQL (0.1ms) UPDATE "spree_trackers" SET "active" = 'f' WHERE (environment != 'test')  (0.3ms) CREATE TEMPORARY TABLE "aspree_trackers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "environment" varchar, "analytics_id" varchar, "active" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_trackers_on_active' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_trackers_on_active' AND type='index'   (0.3ms) CREATE INDEX "tindex_aspree_trackers_on_active" ON "aspree_trackers" ("active")  (0.2ms) INSERT INTO "aspree_trackers" ("id","environment","analytics_id","active","created_at","updated_at") SELECT "id","environment","analytics_id","active","created_at","updated_at" FROM "spree_trackers"  (0.5ms) DROP TABLE "spree_trackers"  (0.4ms) CREATE TABLE "spree_trackers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "analytics_id" varchar, "active" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_trackers_on_active' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_trackers_on_active' AND type='index'   (0.2ms) CREATE INDEX "index_spree_trackers_on_active" ON "spree_trackers" ("active")  (0.1ms) INSERT INTO "spree_trackers" ("id","analytics_id","active","created_at","updated_at") SELECT "id","analytics_id","active","created_at","updated_at" FROM "aspree_trackers"  (0.2ms) DROP TABLE "aspree_trackers" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182041"]]  (119.4ms) commit transaction Migrating to RemoveSpreeConfigurations (20180516182042)  (0.2ms) begin transaction  (1.1ms) DROP TABLE "spree_configurations" SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182042"]]  (148.7ms) commit transaction Migrating to AddIndexToSpreeStockItemsVariantId (20180516182043)  (0.1ms) begin transaction  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_backorderable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_backorderable' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_deleted_at' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='stock_item_by_loc_and_var_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='stock_item_by_loc_and_var_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_backorderable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_backorderable' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='stock_item_by_loc_and_var_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='stock_item_by_loc_and_var_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_stock_items_on_variant_id" ON "spree_stock_items" ("variant_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182043"]]  (121.2ms) commit transaction Migrating to EnsurePaymentsHaveNumbers (20180516182044)  (0.1ms) begin transaction  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_payments_on_number" ON "spree_payments" ("number") Scoped order and limit are ignored, it's forced to be batch order and batch size. Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."number" IS NULL ORDER BY "spree_payments"."id" ASC LIMIT ? [["LIMIT", 1000]] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182044"]]  (129.8ms) commit transaction Migrating to AddMissingIndexesOnSpreeTables (20180516182045)  (0.2ms) begin transaction  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_user_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index'   (0.4ms) CREATE INDEX "index_promotion_rules_users_on_user_id_and_promotion_rule_id" ON "spree_promotion_rules_users" ("user_id", "promotion_rule_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_promotion_rule_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_promotion_rule_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index'   (0.3ms) CREATE INDEX "index_products_promotion_rules_on_promotion_rule_and_product" ON "spree_products_promotion_rules" ("promotion_rule_id", "product_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_guest_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_guest_token' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_guest_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_guest_token' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_canceler_id" ON "spree_orders" ("canceler_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_canceler_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_canceler_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_guest_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_guest_token' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_canceler_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_canceler_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_guest_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_guest_token' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_store_id" ON "spree_orders" ("store_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_order_id_and_promotion_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_order_id_and_promotion_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_order_id_and_promotion_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_order_id_and_promotion_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_promotions_on_promotion_id_and_order_id" ON "spree_orders_promotions" ("promotion_id", "order_id")  (0.2ms) CREATE INDEX "index_spree_properties_prototypes_on_prototype_id" ON "spree_properties_prototypes" ("prototype_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_properties_prototypes_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_properties_prototypes_on_prototype_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_properties_prototypes_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_properties_prototypes_on_prototype_id' AND type='index'   (0.2ms) CREATE INDEX "index_properties_prototypes_on_prototype_and_property" ON "spree_properties_prototypes" ("prototype_id", "property_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_prototype_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_prototype_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_taxons_prototypes_on_prototype_id_and_taxon_id" ON "spree_taxons_prototypes" ("prototype_id", "taxon_id")  (0.2ms) CREATE INDEX "index_spree_option_types_prototypes_on_prototype_id" ON "spree_option_types_prototypes" ("prototype_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_types_prototypes_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_types_prototypes_on_prototype_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_types_prototypes_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_types_prototypes_on_prototype_id' AND type='index'   (0.2ms) CREATE INDEX "index_option_types_prototypes_on_prototype_and_option_type" ON "spree_option_types_prototypes" ("prototype_id", "option_type_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_variants_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_variants_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_variants_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_variants_on_variant_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.2ms) CREATE INDEX "index_option_values_variants_on_option_value_and_variant" ON "spree_option_values_variants" ("option_value_id", "variant_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182045"]]  (120.7ms) commit transaction Migrating to RemoveDuplicatedIndexesFromMultiColumns (20180516182046)  (0.2ms) begin transaction  (0.5ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_source_id_and_source_type' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_order_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_eligible' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_eligible' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_adjustments_on_order_id' AND type='index'   (0.7ms) DROP INDEX "index_adjustments_on_order_id"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_types_prototypes_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_types_prototypes_on_prototype_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_types_prototypes_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_types_prototypes_on_prototype_id' AND type='index'   (0.3ms) DROP INDEX "index_spree_option_types_prototypes_on_prototype_id"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index'   (0.3ms) CREATE INDEX "index_spree_option_types_prototypes_on_option_type_id" ON "spree_option_types_prototypes" ("option_type_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_option_value_and_variant' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_option_value_and_variant' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_variants_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_variants_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.3ms) DROP INDEX "index_option_values_variants_on_option_value_and_variant"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_variants_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_variants_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_variants_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_variants_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.3ms) DROP INDEX "index_spree_option_values_variants_on_variant_id"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_option_values_variants_on_option_value_id" ON "spree_option_values_variants" ("option_value_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_store_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_store_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_canceler_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_canceler_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_guest_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_guest_token' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_store_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_store_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_canceler_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_canceler_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_guest_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_guest_token' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) DROP INDEX "index_spree_orders_on_user_id"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_order_id_and_promotion_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_order_id_and_promotion_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_order_id_and_promotion_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_order_id_and_promotion_id' AND type='index'   (0.2ms) DROP INDEX "index_spree_orders_promotions_on_order_id_and_promotion_id"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_promotions_on_order_id" ON "spree_orders_promotions" ("order_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_promotion_rule_and_product' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_promotion_rule_and_product' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_promotion_rule_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index'   (0.2ms) DROP INDEX "index_products_promotion_rules_on_promotion_rule_id"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_user_id_and_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_user_id_and_promotion_rule_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index'   (0.3ms) DROP INDEX "index_promotion_rules_users_on_user_id"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_properties_prototypes_on_prototype_and_property' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_properties_prototypes_on_prototype_and_property' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_properties_prototypes_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_properties_prototypes_on_prototype_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_properties_prototypes_on_prototype_and_property' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_properties_prototypes_on_prototype_and_property' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_properties_prototypes_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_properties_prototypes_on_prototype_id' AND type='index'   (0.2ms) DROP INDEX "index_spree_properties_prototypes_on_prototype_id"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_backorderable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_backorderable' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='stock_item_by_loc_and_var_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='stock_item_by_loc_and_var_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_backorderable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_backorderable' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='stock_item_by_loc_and_var_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='stock_item_by_loc_and_var_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index'   (0.2ms) DROP INDEX "index_spree_stock_items_on_stock_location_id"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_prototype_id_and_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_prototype_id_and_taxon_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_prototype_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_prototype_id_and_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_prototype_id_and_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_prototype_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index'   (0.2ms) DROP INDEX "index_spree_taxons_prototypes_on_prototype_id" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182046"]]  (143.4ms) commit transaction Migrating to RemoveUserIndexFromSpreeStateChanges (20180516182047)  (0.2ms) begin transaction  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_state_changes_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_state_changes_on_user_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_state_changes_on_stateful_id_and_stateful_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_state_changes_on_stateful_id_and_stateful_type' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_state_changes_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_state_changes_on_user_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_state_changes_on_stateful_id_and_stateful_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_state_changes_on_stateful_id_and_stateful_type' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_state_changes_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_state_changes_on_user_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_state_changes_on_stateful_id_and_stateful_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_state_changes_on_stateful_id_and_stateful_type' AND type='index'   (0.8ms) DROP INDEX "index_spree_state_changes_on_user_id" SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182047"]]  (131.2ms) commit transaction Migrating to FixAdjustmentOrderId (20180516182048)  (0.1ms) begin transaction  (0.5ms) UPDATE spree_adjustments SET order_id = adjustable_id WHERE adjustable_type = 'Spree::Order' ;  (0.2ms) UPDATE spree_adjustments SET order_id = (SELECT order_id FROM spree_line_items WHERE spree_line_items.id = spree_adjustments.adjustable_id) WHERE adjustable_type = 'Spree::LineItem'  (0.4ms) CREATE TEMPORARY TABLE "aspree_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "source_type" varchar, "source_id" integer, "adjustable_type" varchar, "adjustable_id" integer, "amount" decimal(10,2), "label" varchar, "mandatory" boolean, "eligible" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "state" varchar, "order_id" integer, "included" boolean DEFAULT 'f')  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_source_id_and_source_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_eligible' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_eligible' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index'   (0.3ms) CREATE INDEX "tindex_aspree_adjustments_on_source_id_and_source_type" ON "aspree_adjustments" ("source_id", "source_type")  (0.3ms) CREATE INDEX "tindex_aspree_adjustments_on_order_id" ON "aspree_adjustments" ("order_id")  (0.2ms) CREATE INDEX "tindex_aspree_adjustments_on_eligible" ON "aspree_adjustments" ("eligible")  (0.2ms) CREATE INDEX "tindex_aspree_adjustments_on_adjustable_id_and_adjustable_type" ON "aspree_adjustments" ("adjustable_id", "adjustable_type")  (0.2ms) INSERT INTO "aspree_adjustments" ("id","source_type","source_id","adjustable_type","adjustable_id","amount","label","mandatory","eligible","created_at","updated_at","state","order_id","included") SELECT "id","source_type","source_id","adjustable_type","adjustable_id","amount","label","mandatory","eligible","created_at","updated_at","state","order_id","included" FROM "spree_adjustments"  (0.6ms) DROP TABLE "spree_adjustments"  (0.4ms) CREATE TABLE "spree_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "source_type" varchar, "source_id" integer, "adjustable_type" varchar, "adjustable_id" integer, "amount" decimal(10,2), "label" varchar, "mandatory" boolean, "eligible" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "state" varchar, "order_id" integer NOT NULL, "included" boolean DEFAULT 'f')  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_adjustments_on_eligible' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_adjustments_on_eligible' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_adjustments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_adjustments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_adjustments_on_source_id_and_source_type' AND type='index'   (0.2ms) CREATE INDEX "index_spree_adjustments_on_adjustable_id_and_adjustable_type" ON "spree_adjustments" ("adjustable_id", "adjustable_type")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index'   (0.2ms) CREATE INDEX "index_spree_adjustments_on_eligible" ON "spree_adjustments" ("eligible")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_eligible' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_eligible' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index'   (0.3ms) CREATE INDEX "index_spree_adjustments_on_order_id" ON "spree_adjustments" ("order_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_eligible' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_eligible' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index'   (0.2ms) CREATE INDEX "index_spree_adjustments_on_source_id_and_source_type" ON "spree_adjustments" ("source_id", "source_type")  (0.5ms) INSERT INTO "spree_adjustments" ("id","source_type","source_id","adjustable_type","adjustable_id","amount","label","mandatory","eligible","created_at","updated_at","state","order_id","included") SELECT "id","source_type","source_id","adjustable_type","adjustable_id","amount","label","mandatory","eligible","created_at","updated_at","state","order_id","included" FROM "aspree_adjustments"  (0.5ms) DROP TABLE "aspree_adjustments" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182048"]]  (130.0ms) commit transaction Migrating to AddPositionToSpreePaymentMethods (20180516182049)  (0.2ms) begin transaction  (1.3ms) ALTER TABLE "spree_payment_methods" ADD "position" integer DEFAULT 0 SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182049"]]  (93.6ms) commit transaction Migrating to AddDeletedAtToFriendlyIdSlugs (20180516182050)  (0.2ms) begin transaction  (1.1ms) ALTER TABLE "friendly_id_slugs" ADD "deleted_at" datetime  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'   (0.6ms) CREATE INDEX "index_friendly_id_slugs_on_deleted_at" ON "friendly_id_slugs" ("deleted_at") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182050"]]  (87.2ms) commit transaction Migrating to IncreaseScaleOnPreTaxAmounts (20180516182051)  (0.1ms) begin transaction  (0.3ms)  UPDATE spree_shipments SET pre_tax_amount = (cost + promo_total) - included_tax_total WHERE pre_tax_amount IS NULL;   (0.6ms) CREATE TEMPORARY TABLE "aspree_line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer, "order_id" integer, "quantity" integer NOT NULL, "price" decimal(10,2) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "cost_price" decimal(10,2), "tax_category_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "pre_tax_amount" decimal(8,2) DEFAULT '0')  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_variant_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_line_items_on_tax_category_id" ON "aspree_line_items" ("tax_category_id")  (1.4ms) CREATE INDEX "tindex_aspree_line_items_on_variant_id" ON "aspree_line_items" ("variant_id")  (0.2ms) CREATE INDEX "tindex_aspree_line_items_on_order_id" ON "aspree_line_items" ("order_id")  (0.2ms) INSERT INTO "aspree_line_items" ("id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount") SELECT "id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount" FROM "spree_line_items"  (0.6ms) DROP TABLE "spree_line_items"  (0.4ms) CREATE TABLE "spree_line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer, "order_id" integer, "quantity" integer NOT NULL, "price" decimal(10,2) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "cost_price" decimal(10,2), "tax_category_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "pre_tax_amount" decimal(12,4) DEFAULT 0.0 NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_line_items_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_line_items_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_line_items_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_line_items_on_tax_category_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_line_items_on_order_id" ON "spree_line_items" ("order_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_line_items_on_variant_id" ON "spree_line_items" ("variant_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_line_items_on_tax_category_id" ON "spree_line_items" ("tax_category_id")  (0.3ms) INSERT INTO "spree_line_items" ("id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount") SELECT "id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount" FROM "aspree_line_items"  (0.2ms) DROP TABLE "aspree_line_items"  (0.2ms) CREATE TEMPORARY TABLE "aspree_shipments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tracking" varchar, "number" varchar, "cost" decimal(10,2) DEFAULT '0.0', "shipped_at" datetime, "order_id" integer, "address_id" integer, "state" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "stock_location_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "pre_tax_amount" decimal(8,2) DEFAULT '0')  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_shipments_on_address_id" ON "aspree_shipments" ("address_id")  (0.2ms) CREATE INDEX "tindex_aspree_shipments_on_stock_location_id" ON "aspree_shipments" ("stock_location_id")  (0.2ms) CREATE INDEX "tindex_aspree_shipments_on_order_id" ON "aspree_shipments" ("order_id")  (0.1ms) CREATE INDEX "tindex_shipments_on_number" ON "aspree_shipments" ("number")  (0.2ms) INSERT INTO "aspree_shipments" ("id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount") SELECT "id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount" FROM "spree_shipments"  (0.4ms) DROP TABLE "spree_shipments"  (0.3ms) CREATE TABLE "spree_shipments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tracking" varchar, "number" varchar, "cost" decimal(10,2) DEFAULT '0.0', "shipped_at" datetime, "order_id" integer, "address_id" integer, "state" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "stock_location_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "pre_tax_amount" decimal(12,4) DEFAULT 0.0 NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_shipments_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_shipments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_shipments_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_shipments_on_stock_location_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_shipments_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_shipments_on_address_id' AND type='index'   (0.2ms) CREATE INDEX "index_shipments_on_number" ON "spree_shipments" ("number")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_shipments_on_order_id" ON "spree_shipments" ("order_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_shipments_on_stock_location_id" ON "spree_shipments" ("stock_location_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.3ms) CREATE INDEX "index_spree_shipments_on_address_id" ON "spree_shipments" ("address_id")  (0.2ms) INSERT INTO "spree_shipments" ("id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount") SELECT "id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount" FROM "aspree_shipments"  (0.3ms) DROP TABLE "aspree_shipments" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182051"]]  (185.9ms) commit transaction Migrating to AddTaxableAdjustmentTotalToLineItem (20180516182052)  (0.1ms) begin transaction  (0.9ms) ALTER TABLE "spree_line_items" ADD "taxable_adjustment_total" decimal(10,2) DEFAULT 0.0 NOT NULL  (0.6ms) ALTER TABLE "spree_line_items" ADD "non_taxable_adjustment_total" decimal(10,2) DEFAULT 0.0 NOT NULL  (0.6ms) ALTER TABLE "spree_shipments" ADD "taxable_adjustment_total" decimal(10,2) DEFAULT 0.0 NOT NULL  (0.5ms) ALTER TABLE "spree_shipments" ADD "non_taxable_adjustment_total" decimal(10,2) DEFAULT 0.0 NOT NULL  (0.8ms) ALTER TABLE "spree_orders" ADD "taxable_adjustment_total" decimal(10,2) DEFAULT 0.0 NOT NULL  (0.7ms) ALTER TABLE "spree_orders" ADD "non_taxable_adjustment_total" decimal(10,2) DEFAULT 0.0 NOT NULL SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182052"]]  (111.1ms) commit transaction Migrating to MigratePaymentMethodsDisplay (20180516182053)  (0.1ms) begin transaction Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.7ms) CREATE TEMPORARY TABLE "aspree_payment_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "name" varchar, "description" text, "active" boolean DEFAULT 't', "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "display_on" varchar, "auto_capture" boolean, "preferences" text, "position" integer DEFAULT 0)  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payment_methods_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payment_methods_on_id_and_type' AND type='index'   (0.3ms) CREATE INDEX "tindex_aspree_payment_methods_on_id_and_type" ON "aspree_payment_methods" ("id", "type")  (0.5ms) INSERT INTO "aspree_payment_methods" ("id","type","name","description","active","deleted_at","created_at","updated_at","display_on","auto_capture","preferences","position") SELECT "id","type","name","description","active","deleted_at","created_at","updated_at","display_on","auto_capture","preferences","position" FROM "spree_payment_methods"  (0.8ms) DROP TABLE "spree_payment_methods"  (0.6ms) CREATE TABLE "spree_payment_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "name" varchar, "description" text, "active" boolean DEFAULT 't', "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "display_on" varchar DEFAULT 'both', "auto_capture" boolean, "preferences" text, "position" integer DEFAULT 0)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_payment_methods_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_payment_methods_on_id_and_type' AND type='index'   (0.2ms) CREATE INDEX "index_spree_payment_methods_on_id_and_type" ON "spree_payment_methods" ("id", "type")  (0.4ms) INSERT INTO "spree_payment_methods" ("id","type","name","description","active","deleted_at","created_at","updated_at","display_on","auto_capture","preferences","position") SELECT "id","type","name","description","active","deleted_at","created_at","updated_at","display_on","auto_capture","preferences","position" FROM "aspree_payment_methods"  (0.3ms) DROP TABLE "aspree_payment_methods" SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182053"]]  (130.3ms) commit transaction Migrating to EnableActsAsParanoidOnCalculators (20180516182054)  (0.2ms) begin transaction  (1.2ms) ALTER TABLE "spree_calculators" ADD "deleted_at" datetime  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_calculators_on_calculable_id_and_calculable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_calculators_on_calculable_id_and_calculable_type' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_calculators_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_calculators_on_id_and_type' AND type='index'   (0.6ms) CREATE INDEX "index_spree_calculators_on_deleted_at" ON "spree_calculators" ("deleted_at") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182054"]]  (133.5ms) commit transaction Migrating to SpreePaymentMethodStoreCredits (20180516182055)  (0.2ms) begin transaction Spree::PaymentMethod::StoreCredit Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."type" IN ('Spree::PaymentMethod::StoreCredit') AND "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."name" = ? AND "spree_payment_methods"."description" = ? AND "spree_payment_methods"."active" = ? AND "spree_payment_methods"."display_on" = ? LIMIT ? [["name", "Store Credit"], ["description", "Store Credit"], ["active", "t"], ["display_on", "back_end"], ["LIMIT", 1]] Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]] SQL (0.3ms) INSERT INTO "spree_payment_methods" ("type", "name", "description", "created_at", "updated_at", "display_on", "position") VALUES (?, ?, ?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::StoreCredit"], ["name", "Store Credit"], ["description", "Store Credit"], ["created_at", "2018-05-16 18:19:39.013299"], ["updated_at", "2018-05-16 18:19:39.013299"], ["display_on", "back_end"], ["position", 1]] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182055"]]  (97.9ms) commit transaction Migrating to RenameHasAndBelongsToAssociationsToModelNames (20180516182056)  (0.2ms) begin transaction  (1.3ms) ALTER TABLE "spree_option_types_prototypes" RENAME TO "spree_option_type_prototypes"  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_types_prototypes_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_types_prototypes_on_option_type_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_types_prototypes_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_types_prototypes_on_option_type_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_types_prototypes_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_types_prototypes_on_option_type_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index'   (0.6ms) CREATE INDEX "index_spree_option_type_prototypes_on_option_type_id" ON "spree_option_type_prototypes" ("option_type_id")  (0.9ms) DROP INDEX "index_spree_option_types_prototypes_on_option_type_id"  (0.7ms) ALTER TABLE "spree_option_values_variants" RENAME TO "spree_option_value_variants"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_variants_on_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_variants_on_option_value_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_variants_on_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_variants_on_option_value_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_variants_on_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_variants_on_option_value_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_option_value_variants_on_option_value_id" ON "spree_option_value_variants" ("option_value_id")  (0.2ms) DROP INDEX "index_spree_option_values_variants_on_option_value_id"  (0.4ms) ALTER TABLE "spree_orders_promotions" RENAME TO "spree_order_promotions"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_order_promotions_on_order_id" ON "spree_order_promotions" ("order_id")  (0.2ms) DROP INDEX "index_spree_orders_promotions_on_order_id"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_order_promotions_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_order_promotions_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_order_promotions_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_order_promotions_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_order_promotions_on_promotion_id_and_order_id" ON "spree_order_promotions" ("promotion_id", "order_id")  (0.2ms) DROP INDEX "index_spree_orders_promotions_on_promotion_id_and_order_id"  (0.5ms) ALTER TABLE "spree_products_promotion_rules" RENAME TO "spree_product_promotion_rules"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_promotion_rule_and_product' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_promotion_rule_and_product' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index'   (0.7ms) ALTER TABLE "spree_taxons_promotion_rules" RENAME TO "spree_promotion_rule_taxons"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_promotion_rules_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_promotion_rules_on_promotion_rule_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_promotion_rules_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_promotion_rules_on_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_promotion_rules_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_promotion_rules_on_promotion_rule_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_promotion_rules_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_promotion_rules_on_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_promotion_rules_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_promotion_rules_on_promotion_rule_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_promotion_rules_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_promotion_rules_on_taxon_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_promotion_rule_taxons_on_promotion_rule_id" ON "spree_promotion_rule_taxons" ("promotion_rule_id")  (0.3ms) DROP INDEX "index_spree_taxons_promotion_rules_on_promotion_rule_id"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_rule_taxons_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_rule_taxons_on_promotion_rule_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_promotion_rules_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_promotion_rules_on_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_rule_taxons_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_rule_taxons_on_promotion_rule_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_promotion_rules_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_promotion_rules_on_taxon_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_promotion_rule_taxons_on_taxon_id" ON "spree_promotion_rule_taxons" ("taxon_id")  (0.2ms) DROP INDEX "index_spree_taxons_promotion_rules_on_taxon_id"  (0.4ms) ALTER TABLE "spree_promotion_rules_users" RENAME TO "spree_promotion_rule_users"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_user_id_and_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_user_id_and_promotion_rule_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index'   (0.4ms) ALTER TABLE "spree_properties_prototypes" RENAME TO "spree_property_prototypes"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_properties_prototypes_on_prototype_and_property' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_properties_prototypes_on_prototype_and_property' AND type='index'   (0.4ms) ALTER TABLE "spree_taxons_prototypes" RENAME TO "spree_prototype_taxons"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_prototype_id_and_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_prototype_id_and_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_prototype_id_and_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_prototype_id_and_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_prototype_id_and_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_prototype_id_and_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_prototype_taxons_on_prototype_id_and_taxon_id" ON "spree_prototype_taxons" ("prototype_id", "taxon_id")  (0.2ms) DROP INDEX "index_spree_taxons_prototypes_on_prototype_id_and_taxon_id"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prototype_taxons_on_prototype_id_and_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prototype_taxons_on_prototype_id_and_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prototype_taxons_on_prototype_id_and_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prototype_taxons_on_prototype_id_and_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_prototype_taxons_on_taxon_id" ON "spree_prototype_taxons" ("taxon_id")  (0.2ms) DROP INDEX "index_spree_taxons_prototypes_on_taxon_id"  (0.4ms) ALTER TABLE "spree_roles_users" RENAME TO "spree_role_users"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_roles_users_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_roles_users_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_roles_users_on_role_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_roles_users_on_role_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_roles_users_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_roles_users_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_roles_users_on_role_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_roles_users_on_role_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_roles_users_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_roles_users_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_roles_users_on_role_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_roles_users_on_role_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_role_users_on_user_id" ON "spree_role_users" ("user_id")  (0.2ms) DROP INDEX "index_spree_roles_users_on_user_id"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_role_users_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_role_users_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_roles_users_on_role_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_roles_users_on_role_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_role_users_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_role_users_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_roles_users_on_role_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_roles_users_on_role_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_role_users_on_role_id" ON "spree_role_users" ("role_id")  (0.2ms) DROP INDEX "index_spree_roles_users_on_role_id"  (0.4ms) ALTER TABLE "spree_shipping_methods_zones" RENAME TO "spree_shipping_method_zones" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182056"]]  (129.7ms) commit transaction Migrating to SpreeStoreCreditTypes (20180516182057)  (0.1ms) begin transaction Spree::StoreCreditType Load (0.2ms) SELECT "spree_store_credit_types".* FROM "spree_store_credit_types" WHERE "spree_store_credit_types"."name" = ? AND "spree_store_credit_types"."priority" = ? LIMIT ? [["name", "Expiring"], ["priority", 1], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "spree_store_credit_types" ("name", "priority", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Expiring"], ["priority", 1], ["created_at", "2018-05-16 18:19:39.336190"], ["updated_at", "2018-05-16 18:19:39.336190"]] Spree::StoreCreditType Load (0.1ms) SELECT "spree_store_credit_types".* FROM "spree_store_credit_types" WHERE "spree_store_credit_types"."name" = ? AND "spree_store_credit_types"."priority" = ? LIMIT ? [["name", "Non-expiring"], ["priority", 2], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "spree_store_credit_types" ("name", "priority", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Non-expiring"], ["priority", 2], ["created_at", "2018-05-16 18:19:39.339370"], ["updated_at", "2018-05-16 18:19:39.339370"]] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182057"]]  (98.7ms) commit transaction Migrating to AddDiscontinuedToProductsAndVariants (20180516182058)  (0.1ms) begin transaction  (1.0ms) ALTER TABLE "spree_products" ADD "discontinue_on" datetime  (0.7ms) ALTER TABLE "spree_variants" ADD "discontinue_on" datetime  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_slug' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_tax_category_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.5ms) CREATE INDEX "index_spree_products_on_discontinue_on" ON "spree_products" ("discontinue_on")  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_track_inventory' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_track_inventory' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.4ms) CREATE INDEX "index_spree_variants_on_discontinue_on" ON "spree_variants" ("discontinue_on") Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE ("spree_products"."deleted_at" IS NOT NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE ("spree_variants"."deleted_at" IS NOT NULL) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182058"]]  (108.9ms) commit transaction Migrating to RemoveShippingMethodIdFromSpreeOrders (20180516182059)  (0.1ms) begin transaction  (1.2ms) CREATE TEMPORARY TABLE "aspree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(32), "item_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "total" decimal(10,2) DEFAULT '0.0' NOT NULL, "state" varchar, "adjustment_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(10,2) DEFAULT '0.0', "shipping_method_id" integer, "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "last_ip_address" varchar, "created_by_id" integer, "shipment_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "channel" varchar DEFAULT 'spree', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "item_count" integer DEFAULT 0, "approver_id" integer, "approved_at" datetime, "confirmation_delivered" boolean DEFAULT 'f', "considered_risky" boolean DEFAULT 'f', "guest_token" varchar, "canceled_at" datetime, "canceler_id" integer, "store_id" integer, "state_lock_version" integer DEFAULT 0 NOT NULL, "taxable_adjustment_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "non_taxable_adjustment_total" decimal(10,2) DEFAULT '0.0' NOT NULL)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_store_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_store_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_canceler_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_canceler_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_guest_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_guest_token' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_orders_on_store_id" ON "aspree_orders" ("store_id")  (0.2ms) CREATE INDEX "tindex_aspree_orders_on_canceler_id" ON "aspree_orders" ("canceler_id")  (0.2ms) CREATE INDEX "tindex_aspree_orders_on_guest_token" ON "aspree_orders" ("guest_token")  (0.3ms) CREATE INDEX "tindex_aspree_orders_on_user_id_and_created_by_id" ON "aspree_orders" ("user_id", "created_by_id")  (0.2ms) CREATE INDEX "tindex_aspree_orders_on_shipping_method_id" ON "aspree_orders" ("shipping_method_id")  (0.2ms) CREATE INDEX "tindex_aspree_orders_on_ship_address_id" ON "aspree_orders" ("ship_address_id")  (0.2ms) CREATE INDEX "tindex_aspree_orders_on_created_by_id" ON "aspree_orders" ("created_by_id")  (0.2ms) CREATE INDEX "tindex_aspree_orders_on_considered_risky" ON "aspree_orders" ("considered_risky")  (0.2ms) CREATE INDEX "tindex_aspree_orders_on_confirmation_delivered" ON "aspree_orders" ("confirmation_delivered")  (0.2ms) CREATE INDEX "tindex_aspree_orders_on_bill_address_id" ON "aspree_orders" ("bill_address_id")  (0.2ms) CREATE INDEX "tindex_aspree_orders_on_approver_id" ON "aspree_orders" ("approver_id")  (0.2ms) CREATE INDEX "tindex_aspree_orders_on_completed_at" ON "aspree_orders" ("completed_at")  (0.3ms) CREATE INDEX "tindex_aspree_orders_on_number" ON "aspree_orders" ("number")  (0.5ms) INSERT INTO "aspree_orders" ("id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address","created_by_id","shipment_total","additional_tax_total","promo_total","channel","included_tax_total","item_count","approver_id","approved_at","confirmation_delivered","considered_risky","guest_token","canceled_at","canceler_id","store_id","state_lock_version","taxable_adjustment_total","non_taxable_adjustment_total") SELECT "id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address","created_by_id","shipment_total","additional_tax_total","promo_total","channel","included_tax_total","item_count","approver_id","approved_at","confirmation_delivered","considered_risky","guest_token","canceled_at","canceler_id","store_id","state_lock_version","taxable_adjustment_total","non_taxable_adjustment_total" FROM "spree_orders"  (1.3ms) DROP TABLE "spree_orders"  (0.9ms) CREATE TABLE "spree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(32), "item_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "total" decimal(10,2) DEFAULT '0.0' NOT NULL, "state" varchar, "adjustment_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(10,2) DEFAULT '0.0', "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "last_ip_address" varchar, "created_by_id" integer, "shipment_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "channel" varchar DEFAULT 'spree', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "item_count" integer DEFAULT 0, "approver_id" integer, "approved_at" datetime, "confirmation_delivered" boolean DEFAULT 'f', "considered_risky" boolean DEFAULT 'f', "guest_token" varchar, "canceled_at" datetime, "canceler_id" integer, "store_id" integer, "state_lock_version" integer DEFAULT 0 NOT NULL, "taxable_adjustment_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "non_taxable_adjustment_total" decimal(10,2) DEFAULT '0.0' NOT NULL)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_approver_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_bill_address_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_confirmation_delivered' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_ship_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_shipping_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_user_id_and_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_guest_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_guest_token' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_canceler_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_canceler_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_store_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_store_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_orders_on_number" ON "spree_orders" ("number")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.4ms) CREATE INDEX "index_spree_orders_on_completed_at" ON "spree_orders" ("completed_at")  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.5ms) CREATE INDEX "index_spree_orders_on_approver_id" ON "spree_orders" ("approver_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.3ms) CREATE INDEX "index_spree_orders_on_bill_address_id" ON "spree_orders" ("bill_address_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.3ms) CREATE INDEX "index_spree_orders_on_confirmation_delivered" ON "spree_orders" ("confirmation_delivered")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.4ms) CREATE INDEX "index_spree_orders_on_considered_risky" ON "spree_orders" ("considered_risky")  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.3ms) CREATE INDEX "index_spree_orders_on_created_by_id" ON "spree_orders" ("created_by_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.4ms) CREATE INDEX "index_spree_orders_on_ship_address_id" ON "spree_orders" ("ship_address_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.4ms) CREATE INDEX "index_spree_orders_on_user_id_and_created_by_id" ON "spree_orders" ("user_id", "created_by_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.3ms) CREATE INDEX "index_spree_orders_on_guest_token" ON "spree_orders" ("guest_token")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_guest_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_guest_token' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.3ms) CREATE INDEX "index_spree_orders_on_canceler_id" ON "spree_orders" ("canceler_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_canceler_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_canceler_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_guest_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_guest_token' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_store_id" ON "spree_orders" ("store_id")  (0.4ms) INSERT INTO "spree_orders" ("id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address","created_by_id","shipment_total","additional_tax_total","promo_total","channel","included_tax_total","item_count","approver_id","approved_at","confirmation_delivered","considered_risky","guest_token","canceled_at","canceler_id","store_id","state_lock_version","taxable_adjustment_total","non_taxable_adjustment_total") SELECT "id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address","created_by_id","shipment_total","additional_tax_total","promo_total","channel","included_tax_total","item_count","approver_id","approved_at","confirmation_delivered","considered_risky","guest_token","canceled_at","canceler_id","store_id","state_lock_version","taxable_adjustment_total","non_taxable_adjustment_total" FROM "aspree_orders"  (0.5ms) DROP TABLE "aspree_orders" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182059"]]  (123.8ms) commit transaction Migrating to AddIdColumnToEarlierHabtmTables (20180516182060)  (0.1ms) begin transaction  (0.3ms) CREATE TEMPORARY TABLE "aspree_option_type_prototypes" ("prototype_id" integer, "option_type_id" integer)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_type_prototypes_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_type_prototypes_on_option_type_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index'   (0.3ms) CREATE INDEX "tindex_aspree_option_type_prototypes_on_option_type_id" ON "aspree_option_type_prototypes" ("option_type_id")  (0.3ms) CREATE INDEX "tindex_option_types_prototypes_on_prototype_and_option_type" ON "aspree_option_type_prototypes" ("prototype_id", "option_type_id")  (0.1ms) INSERT INTO "aspree_option_type_prototypes" ("prototype_id","option_type_id") SELECT "prototype_id","option_type_id" FROM "spree_option_type_prototypes"  (0.6ms) DROP TABLE "spree_option_type_prototypes"  (0.5ms) CREATE TABLE "spree_option_type_prototypes" ("prototype_id" integer, "option_type_id" integer, "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='tindex_option_types_prototypes_on_prototype_and_option_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_option_types_prototypes_on_prototype_and_option_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_option_type_prototypes_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_option_type_prototypes_on_option_type_id' AND type='index'   (0.3ms) CREATE INDEX "index_option_types_prototypes_on_prototype_and_option_type" ON "spree_option_type_prototypes" ("prototype_id", "option_type_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index'   (0.2ms) CREATE INDEX "index_spree_option_type_prototypes_on_option_type_id" ON "spree_option_type_prototypes" ("option_type_id")  (0.1ms) INSERT INTO "spree_option_type_prototypes" ("prototype_id","option_type_id") SELECT "prototype_id","option_type_id" FROM "aspree_option_type_prototypes"  (0.2ms) DROP TABLE "aspree_option_type_prototypes"  (0.2ms) CREATE TEMPORARY TABLE "aspree_option_value_variants" ("variant_id" integer, "option_value_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_value_variants_on_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_value_variants_on_option_value_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_option_value_variants_on_option_value_id" ON "aspree_option_value_variants" ("option_value_id")  (0.2ms) CREATE INDEX "tindex_option_values_variants_on_variant_id_and_option_value_id" ON "aspree_option_value_variants" ("variant_id", "option_value_id")  (0.1ms) INSERT INTO "aspree_option_value_variants" ("variant_id","option_value_id") SELECT "variant_id","option_value_id" FROM "spree_option_value_variants"  (0.4ms) DROP TABLE "spree_option_value_variants"  (0.2ms) CREATE TABLE "spree_option_value_variants" ("variant_id" integer, "option_value_id" integer, "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_option_value_variants_on_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_option_value_variants_on_option_value_id' AND type='index'   (0.3ms) CREATE INDEX "index_option_values_variants_on_variant_id_and_option_value_id" ON "spree_option_value_variants" ("variant_id", "option_value_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_option_value_variants_on_option_value_id" ON "spree_option_value_variants" ("option_value_id")  (0.1ms) INSERT INTO "spree_option_value_variants" ("variant_id","option_value_id") SELECT "variant_id","option_value_id" FROM "aspree_option_value_variants"  (0.2ms) DROP TABLE "aspree_option_value_variants"  (0.2ms) CREATE TEMPORARY TABLE "aspree_order_promotions" ("order_id" integer, "promotion_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_order_promotions_on_promotion_id_and_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_order_promotions_on_promotion_id_and_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_order_promotions_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_order_promotions_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_order_promotions_on_promotion_id_and_order_id" ON "aspree_order_promotions" ("promotion_id", "order_id")  (0.2ms) CREATE INDEX "tindex_aspree_order_promotions_on_order_id" ON "aspree_order_promotions" ("order_id")  (0.1ms) INSERT INTO "aspree_order_promotions" ("order_id","promotion_id") SELECT "order_id","promotion_id" FROM "spree_order_promotions"  (0.3ms) DROP TABLE "spree_order_promotions"  (0.3ms) CREATE TABLE "spree_order_promotions" ("order_id" integer, "promotion_id" integer, "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_order_promotions_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_order_promotions_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_order_promotions_on_promotion_id_and_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_order_promotions_on_promotion_id_and_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_order_promotions_on_order_id" ON "spree_order_promotions" ("order_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_order_promotions_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_order_promotions_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_order_promotions_on_promotion_id_and_order_id" ON "spree_order_promotions" ("promotion_id", "order_id")  (0.1ms) INSERT INTO "spree_order_promotions" ("order_id","promotion_id") SELECT "order_id","promotion_id" FROM "aspree_order_promotions"  (0.2ms) DROP TABLE "aspree_order_promotions"  (0.2ms) CREATE TEMPORARY TABLE "aspree_product_promotion_rules" ("product_id" integer, "promotion_rule_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_promotion_rule_and_product' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_promotion_rule_and_product' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_products_promotion_rules_on_promotion_rule_and_product" ON "aspree_product_promotion_rules" ("promotion_rule_id", "product_id")  (0.2ms) CREATE INDEX "tindex_products_promotion_rules_on_product_id" ON "aspree_product_promotion_rules" ("product_id")  (0.1ms) INSERT INTO "aspree_product_promotion_rules" ("product_id","promotion_rule_id") SELECT "product_id","promotion_rule_id" FROM "spree_product_promotion_rules"  (0.4ms) DROP TABLE "spree_product_promotion_rules"  (0.2ms) CREATE TABLE "spree_product_promotion_rules" ("product_id" integer, "promotion_rule_id" integer, "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_products_promotion_rules_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_products_promotion_rules_on_product_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_products_promotion_rules_on_promotion_rule_and_product' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_products_promotion_rules_on_promotion_rule_and_product' AND type='index'   (0.2ms) CREATE INDEX "index_products_promotion_rules_on_product_id" ON "spree_product_promotion_rules" ("product_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_products_promotion_rules_on_promotion_rule_and_product" ON "spree_product_promotion_rules" ("promotion_rule_id", "product_id")  (0.1ms) INSERT INTO "spree_product_promotion_rules" ("product_id","promotion_rule_id") SELECT "product_id","promotion_rule_id" FROM "aspree_product_promotion_rules"  (0.2ms) DROP TABLE "aspree_product_promotion_rules"  (0.2ms) CREATE TEMPORARY TABLE "aspree_promotion_rule_users" ("user_id" integer, "promotion_rule_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_user_id_and_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_user_id_and_promotion_rule_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_promotion_rules_users_on_user_id_and_promotion_rule_id" ON "aspree_promotion_rule_users" ("user_id", "promotion_rule_id")  (0.2ms) CREATE INDEX "tindex_promotion_rules_users_on_promotion_rule_id" ON "aspree_promotion_rule_users" ("promotion_rule_id")  (0.1ms) INSERT INTO "aspree_promotion_rule_users" ("user_id","promotion_rule_id") SELECT "user_id","promotion_rule_id" FROM "spree_promotion_rule_users"  (0.3ms) DROP TABLE "spree_promotion_rule_users"  (0.3ms) CREATE TABLE "spree_promotion_rule_users" ("user_id" integer, "promotion_rule_id" integer, "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_promotion_rules_users_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_promotion_rules_users_on_promotion_rule_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_promotion_rules_users_on_user_id_and_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_promotion_rules_users_on_user_id_and_promotion_rule_id' AND type='index'   (0.3ms) CREATE INDEX "index_promotion_rules_users_on_promotion_rule_id" ON "spree_promotion_rule_users" ("promotion_rule_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index'   (0.2ms) CREATE INDEX "index_promotion_rules_users_on_user_id_and_promotion_rule_id" ON "spree_promotion_rule_users" ("user_id", "promotion_rule_id")  (0.1ms) INSERT INTO "spree_promotion_rule_users" ("user_id","promotion_rule_id") SELECT "user_id","promotion_rule_id" FROM "aspree_promotion_rule_users"  (0.2ms) DROP TABLE "aspree_promotion_rule_users"  (0.2ms) CREATE TEMPORARY TABLE "aspree_property_prototypes" ("prototype_id" integer, "property_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_properties_prototypes_on_prototype_and_property' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_properties_prototypes_on_prototype_and_property' AND type='index'   (0.2ms) CREATE INDEX "tindex_properties_prototypes_on_prototype_and_property" ON "aspree_property_prototypes" ("prototype_id", "property_id")  (0.1ms) INSERT INTO "aspree_property_prototypes" ("prototype_id","property_id") SELECT "prototype_id","property_id" FROM "spree_property_prototypes"  (0.3ms) DROP TABLE "spree_property_prototypes"  (0.2ms) CREATE TABLE "spree_property_prototypes" ("prototype_id" integer, "property_id" integer, "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)  (13.8ms)  SELECT sql FROM sqlite_master WHERE name='tindex_properties_prototypes_on_prototype_and_property' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_properties_prototypes_on_prototype_and_property' AND type='index'   (0.3ms) CREATE INDEX "index_properties_prototypes_on_prototype_and_property" ON "spree_property_prototypes" ("prototype_id", "property_id")  (0.1ms) INSERT INTO "spree_property_prototypes" ("prototype_id","property_id") SELECT "prototype_id","property_id" FROM "aspree_property_prototypes"  (0.2ms) DROP TABLE "aspree_property_prototypes"  (0.3ms) CREATE TEMPORARY TABLE "aspree_role_users" ("role_id" integer, "user_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_role_users_on_role_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_role_users_on_role_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_role_users_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_role_users_on_user_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_role_users_on_role_id" ON "aspree_role_users" ("role_id")  (0.2ms) CREATE INDEX "tindex_aspree_role_users_on_user_id" ON "aspree_role_users" ("user_id")  (0.1ms) INSERT INTO "aspree_role_users" ("role_id","user_id") SELECT "role_id","user_id" FROM "spree_role_users"  (0.3ms) DROP TABLE "spree_role_users"  (0.2ms) CREATE TABLE "spree_role_users" ("role_id" integer, "user_id" integer, "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_role_users_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_role_users_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_role_users_on_role_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_role_users_on_role_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_role_users_on_user_id" ON "spree_role_users" ("user_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_role_users_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_role_users_on_user_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_role_users_on_role_id" ON "spree_role_users" ("role_id")  (0.1ms) INSERT INTO "spree_role_users" ("role_id","user_id") SELECT "role_id","user_id" FROM "aspree_role_users"  (0.2ms) DROP TABLE "aspree_role_users"  (0.2ms) CREATE TEMPORARY TABLE "aspree_shipping_method_zones" ("shipping_method_id" integer, "zone_id" integer)  (0.1ms) INSERT INTO "aspree_shipping_method_zones" ("shipping_method_id","zone_id") SELECT "shipping_method_id","zone_id" FROM "spree_shipping_method_zones"  (0.2ms) DROP TABLE "spree_shipping_method_zones"  (0.2ms) CREATE TABLE "spree_shipping_method_zones" ("shipping_method_id" integer, "zone_id" integer, "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)  (0.1ms) INSERT INTO "spree_shipping_method_zones" ("shipping_method_id","zone_id") SELECT "shipping_method_id","zone_id" FROM "aspree_shipping_method_zones"  (0.1ms) DROP TABLE "aspree_shipping_method_zones" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182060"]]  (140.7ms) commit transaction Migrating to AddIndexes (20180516182061)  (0.1ms) begin transaction  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_assets_on_viewable_type_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_assets_on_viewable_type_and_type' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_assets_on_viewable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_assets_on_viewable_id' AND type='index'   (0.6ms) CREATE INDEX "index_spree_assets_on_position" ON "spree_assets" ("position")  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_types_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_types_on_position' AND type='index'   (0.3ms) CREATE INDEX "index_spree_option_types_on_name" ON "spree_option_types" ("name")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_on_option_type_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_option_values_on_name" ON "spree_option_values" ("name")  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prices_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prices_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prices_on_variant_id_and_currency' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prices_on_variant_id_and_currency' AND type='index'   (0.3ms) CREATE INDEX "index_spree_prices_on_variant_id" ON "spree_prices" ("variant_id")  (0.3ms) CREATE INDEX "index_spree_properties_on_name" ON "spree_properties" ("name")  (0.3ms) CREATE INDEX "index_spree_roles_on_name" ON "spree_roles" ("name")  (0.2ms) CREATE INDEX "index_spree_shipping_categories_on_name" ON "spree_shipping_categories" ("name")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_taxons_on_lft" ON "spree_taxons" ("lft")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_lft' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_lft' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_taxons_on_rgt" ON "spree_taxons" ("rgt")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_rgt' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_rgt' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_lft' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_lft' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_taxons_on_name" ON "spree_taxons" ("name") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182061"]]  (118.0ms) commit transaction Migrating to RemoveCounterCacheFromSpreeVariantsToSpreeStockItems (20180516182062)  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182062"]]  (95.5ms) commit transaction Migrating to ActsAsTaggableOnSpreeMigration (20180516182063)  (0.2ms) begin transaction  (0.6ms) CREATE TABLE "spree_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "taggings_count" integer DEFAULT 0)  (0.2ms) CREATE TABLE "spree_taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_type" varchar, "taggable_id" integer, "tagger_type" varchar, "tagger_id" integer, "context" varchar(128), "created_at" datetime)  (0.3ms) CREATE UNIQUE INDEX "index_spree_tags_on_name" ON "spree_tags" ("name")  (0.2ms) CREATE UNIQUE INDEX "spree_taggings_idx" ON "spree_taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182063"]]  (133.3ms) commit transaction Migrating to ChangeCollationForSpreeTagNames (20180516182064)  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182064"]]  (96.3ms) commit transaction Migrating to AddMissingIndexesToSpreeTaggings (20180516182065)  (0.1ms) begin transaction  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='spree_taggings_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_taggings_idx' AND type='index'   (0.4ms) CREATE INDEX "index_spree_taggings_on_tag_id" ON "spree_taggings" ("tag_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_tag_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_tag_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='spree_taggings_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_taggings_idx' AND type='index'   (0.3ms) CREATE INDEX "index_spree_taggings_on_taggable_id" ON "spree_taggings" ("taggable_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_taggable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_taggable_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_tag_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_tag_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='spree_taggings_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_taggings_idx' AND type='index'   (0.3ms) CREATE INDEX "index_spree_taggings_on_taggable_type" ON "spree_taggings" ("taggable_type")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_taggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_taggable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_taggable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_taggable_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_tag_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_tag_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='spree_taggings_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_taggings_idx' AND type='index'   (0.2ms) CREATE INDEX "index_spree_taggings_on_tagger_id" ON "spree_taggings" ("tagger_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_tagger_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_tagger_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_taggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_taggable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_taggable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_taggable_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_tag_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_tag_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='spree_taggings_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_taggings_idx' AND type='index'   (0.3ms) CREATE INDEX "index_spree_taggings_on_context" ON "spree_taggings" ("context")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_context' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_context' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_tagger_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_tagger_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_taggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_taggable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_taggable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_taggable_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_tag_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_tag_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='spree_taggings_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_taggings_idx' AND type='index'   (0.2ms) CREATE INDEX "index_spree_taggings_on_tagger_id_and_tagger_type" ON "spree_taggings" ("tagger_id", "tagger_type")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_tagger_id_and_tagger_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_tagger_id_and_tagger_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_context' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_context' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_tagger_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_tagger_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_taggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_taggable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_taggable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_taggable_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_tag_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_tag_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='spree_taggings_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_taggings_idx' AND type='index'   (0.2ms) CREATE INDEX "spree_taggings_idy" ON "spree_taggings" ("taggable_id", "taggable_type", "tagger_id", "context") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182065"]]  (132.3ms) commit transaction Migrating to AddZipcodeRequiredToSpreeCountries (20180516182066)  (0.2ms) begin transaction  (1.2ms) ALTER TABLE "spree_countries" ADD "zipcode_required" boolean DEFAULT 't' SQL (0.2ms) UPDATE "spree_countries" SET "zipcode_required" = 'f' WHERE "spree_countries"."iso" IN ('AO', 'AG', 'AW', 'BS', 'BZ', 'BJ', 'BM', 'BO', 'BW', 'BF', 'BI', 'CM', 'CF', 'KM', 'CG', 'CD', 'CK', 'CUW', 'CI', 'DJ', 'DM', 'GQ', 'ER', 'FJ', 'TF', 'GAB', 'GM', 'GH', 'GD', 'GN', 'GY', 'HK', 'IE', 'KI', 'KP', 'LY', 'MO', 'MW', 'ML', 'MR', 'NR', 'AN', 'NU', 'KP', 'PA', 'QA', 'RW', 'KN', 'LC', 'ST', 'SC', 'SL', 'SB', 'SO', 'SR', 'SY', 'TZ', 'TL', 'TK', 'TG', 'TO', 'TV', 'UG', 'AE', 'VU', 'YE', 'ZW') SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182066"]]  (162.9ms) commit transaction Migrating to AddCreatedAtToVariant (20180516182067)  (0.2ms) begin transaction  (1.4ms) ALTER TABLE "spree_variants" ADD "created_at" datetime SQL (0.2ms) UPDATE "spree_variants" SET created_at = updated_at WHERE ("spree_variants"."updated_at" IS NOT NULL) SQL (0.1ms) UPDATE "spree_variants" SET "created_at" = '2018-05-16 18:19:40.976289', "updated_at" = '2018-05-16 18:19:40.976479' WHERE "spree_variants"."updated_at" IS NULL SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182067"]]  (123.7ms) commit transaction Migrating to AddNullFalseToSpreeVariantsTimestamps (20180516182068)  (0.1ms) begin transaction  (0.4ms) CREATE TEMPORARY TABLE "aspree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2) DEFAULT '0.0', "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "cost_price" decimal(10,2), "position" integer, "cost_currency" varchar, "track_inventory" boolean DEFAULT 't', "tax_category_id" integer, "updated_at" datetime, "discontinue_on" datetime, "created_at" datetime)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_discontinue_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_discontinue_on' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_track_inventory' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_track_inventory' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_variants_on_discontinue_on" ON "aspree_variants" ("discontinue_on")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_track_inventory" ON "aspree_variants" ("track_inventory")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_position" ON "aspree_variants" ("position")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_is_master" ON "aspree_variants" ("is_master")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_deleted_at" ON "aspree_variants" ("deleted_at")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_tax_category_id" ON "aspree_variants" ("tax_category_id")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_sku" ON "aspree_variants" ("sku")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_product_id" ON "aspree_variants" ("product_id")  (0.2ms) INSERT INTO "aspree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at","discontinue_on","created_at") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at","discontinue_on","created_at" FROM "spree_variants"  (0.7ms) DROP TABLE "spree_variants"  (0.3ms) CREATE TABLE "spree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2) DEFAULT '0.0', "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "cost_price" decimal(10,2), "position" integer, "cost_currency" varchar, "track_inventory" boolean DEFAULT 't', "tax_category_id" integer, "updated_at" datetime, "discontinue_on" datetime, "created_at" datetime NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_is_master' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_track_inventory' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_track_inventory' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_discontinue_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_discontinue_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_product_id" ON "spree_variants" ("product_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_sku" ON "spree_variants" ("sku")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_tax_category_id" ON "spree_variants" ("tax_category_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_deleted_at" ON "spree_variants" ("deleted_at")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_is_master" ON "spree_variants" ("is_master")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_position" ON "spree_variants" ("position")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_track_inventory" ON "spree_variants" ("track_inventory")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_track_inventory' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_track_inventory' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_discontinue_on" ON "spree_variants" ("discontinue_on")  (0.2ms) INSERT INTO "spree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at","discontinue_on","created_at") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at","discontinue_on","created_at" FROM "aspree_variants"  (0.3ms) DROP TABLE "aspree_variants"  (0.2ms) CREATE TEMPORARY TABLE "aspree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2) DEFAULT '0.0', "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "cost_price" decimal(10,2), "position" integer, "cost_currency" varchar, "track_inventory" boolean DEFAULT 't', "tax_category_id" integer, "updated_at" datetime, "discontinue_on" datetime, "created_at" datetime NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_discontinue_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_discontinue_on' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_track_inventory' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_track_inventory' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_variants_on_discontinue_on" ON "aspree_variants" ("discontinue_on")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_track_inventory" ON "aspree_variants" ("track_inventory")  (0.3ms) CREATE INDEX "tindex_aspree_variants_on_position" ON "aspree_variants" ("position")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_is_master" ON "aspree_variants" ("is_master")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_deleted_at" ON "aspree_variants" ("deleted_at")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_tax_category_id" ON "aspree_variants" ("tax_category_id")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_sku" ON "aspree_variants" ("sku")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_product_id" ON "aspree_variants" ("product_id")  (0.2ms) INSERT INTO "aspree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at","discontinue_on","created_at") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at","discontinue_on","created_at" FROM "spree_variants"  (0.6ms) DROP TABLE "spree_variants"  (0.3ms) CREATE TABLE "spree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2) DEFAULT '0.0', "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "cost_price" decimal(10,2), "position" integer, "cost_currency" varchar, "track_inventory" boolean DEFAULT 't', "tax_category_id" integer, "updated_at" datetime NOT NULL, "discontinue_on" datetime, "created_at" datetime NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_is_master' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_track_inventory' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_track_inventory' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_discontinue_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_discontinue_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_product_id" ON "spree_variants" ("product_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_sku" ON "spree_variants" ("sku")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_tax_category_id" ON "spree_variants" ("tax_category_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_deleted_at" ON "spree_variants" ("deleted_at")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_is_master" ON "spree_variants" ("is_master")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_position" ON "spree_variants" ("position")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_track_inventory" ON "spree_variants" ("track_inventory")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_track_inventory' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_track_inventory' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_discontinue_on" ON "spree_variants" ("discontinue_on")  (0.2ms) INSERT INTO "spree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at","discontinue_on","created_at") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at","discontinue_on","created_at" FROM "aspree_variants"  (0.3ms) DROP TABLE "aspree_variants" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182068"]]  (131.4ms) commit transaction Migrating to CreateSpreePurchaseOrders (20180516182069)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "spree_purchase_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "po_number" varchar, "organization_name" varchar, "created_at" datetime, "updated_at" datetime)  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]  (141.1ms) CREATE TABLE "spree_purchase_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "po_number" varchar, "organization_name" varchar, "created_at" datetime, "updated_at" datetime, "payment_method_id" integer, "user_id" integer)  (0.1ms) select sqlite_version(*)  (99.3ms) CREATE INDEX "index_spree_purchase_orders_on_payment_method_id" ON "spree_purchase_orders" ("payment_method_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_purchase_orders_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_purchase_orders_on_payment_method_id' AND type='index'   (109.7ms) CREATE INDEX "index_spree_purchase_orders_on_user_id" ON "spree_purchase_orders" ("user_id")  (110.5ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)  (0.2ms) SELECT version FROM "schema_migrations"  (64.9ms) INSERT INTO "schema_migrations" (version) VALUES (20161214191512)  (92.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-05-16 18:21:33.578935"], ["updated_at", "2018-05-16 18:21:33.578935"]]  (86.1ms) commit transaction ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.1ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]  (139.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)  (96.0ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to SpreeOneTwo (20180516181839)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "spree_activators" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "description" varchar, "expires_at" datetime, "starts_at" datetime, "name" varchar, "event_name" varchar, "type" varchar, "usage_limit" integer, "match_policy" varchar DEFAULT 'all', "code" varchar, "advertise" boolean DEFAULT 'f', "path" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "firstname" varchar, "lastname" varchar, "address1" varchar, "address2" varchar, "city" varchar, "zipcode" varchar, "phone" varchar, "state_name" varchar, "alternative_phone" varchar, "company" varchar, "state_id" integer, "country_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) select sqlite_version(*)  (0.2ms) CREATE INDEX "index_addresses_on_firstname" ON "spree_addresses" ("firstname")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_addresses_on_firstname' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_firstname' AND type='index'   (0.1ms) CREATE INDEX "index_addresses_on_lastname" ON "spree_addresses" ("lastname")  (0.2ms) CREATE TABLE "spree_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "source_type" varchar, "source_id" integer, "adjustable_type" varchar, "adjustable_id" integer, "originator_type" varchar, "originator_id" integer, "amount" decimal(8,2), "label" varchar, "mandatory" boolean, "locked" boolean, "eligible" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) CREATE INDEX "index_adjustments_on_order_id" ON "spree_adjustments" ("adjustable_id")  (0.2ms) CREATE TABLE "spree_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "viewable_type" varchar, "viewable_id" integer, "attachment_width" integer, "attachment_height" integer, "attachment_file_size" integer, "position" integer, "attachment_content_type" varchar, "attachment_file_name" varchar, "type" varchar(75), "attachment_updated_at" datetime, "alt" text)  (0.2ms) CREATE INDEX "index_assets_on_viewable_id" ON "spree_assets" ("viewable_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_assets_on_viewable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_assets_on_viewable_id' AND type='index'   (0.1ms) CREATE INDEX "index_assets_on_viewable_type_and_type" ON "spree_assets" ("viewable_type", "type")  (0.3ms) CREATE TABLE "spree_calculators" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "calculable_type" varchar, "calculable_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_configurations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "type" varchar(50), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE INDEX "index_spree_configurations_on_name_and_type" ON "spree_configurations" ("name", "type")  (0.2ms) CREATE TABLE "spree_countries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "iso_name" varchar, "iso" varchar, "iso3" varchar, "name" varchar, "numcode" integer)  (0.2ms) CREATE TABLE "spree_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "month" varchar, "year" varchar, "cc_type" varchar, "last_digits" varchar, "first_name" varchar, "last_name" varchar, "start_month" varchar, "start_year" varchar, "issue_number" varchar, "address_id" integer, "gateway_customer_profile_id" varchar, "gateway_payment_profile_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_gateways" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "name" varchar, "description" text, "active" boolean DEFAULT 't', "environment" varchar DEFAULT 'development', "server" varchar DEFAULT 'test', "test_mode" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_inventory_units" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "lock_version" integer DEFAULT 0, "state" varchar, "variant_id" integer, "order_id" integer, "shipment_id" integer, "return_authorization_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE INDEX "index_inventory_units_on_order_id" ON "spree_inventory_units" ("order_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_inventory_units_on_shipment_id" ON "spree_inventory_units" ("shipment_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_shipment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_shipment_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_inventory_units_on_variant_id" ON "spree_inventory_units" ("variant_id")  (0.3ms) CREATE TABLE "spree_line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer, "order_id" integer, "quantity" integer NOT NULL, "price" decimal(8,2) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE INDEX "index_spree_line_items_on_order_id" ON "spree_line_items" ("order_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_line_items_on_variant_id" ON "spree_line_items" ("variant_id")  (0.2ms) CREATE TABLE "spree_log_entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "source_type" varchar, "source_id" integer, "details" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_mail_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "environment" varchar, "active" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_option_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(100), "presentation" varchar(100), "position" integer DEFAULT 0 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_option_types_prototypes" ("prototype_id" integer, "option_type_id" integer)  (0.3ms) CREATE TABLE "spree_option_values" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "position" integer, "name" varchar, "presentation" varchar, "option_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_option_values_variants" ("variant_id" integer, "option_value_id" integer)  (0.3ms) CREATE INDEX "index_option_values_variants_on_variant_id_and_option_value_id" ON "spree_option_values_variants" ("variant_id", "option_value_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_option_values_variants_on_variant_id" ON "spree_option_values_variants" ("variant_id")  (0.2ms) CREATE TABLE "spree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(15), "item_total" decimal(8,2) DEFAULT 0.0 NOT NULL, "total" decimal(8,2) DEFAULT 0.0 NOT NULL, "state" varchar, "adjustment_total" decimal(8,2) DEFAULT 0.0 NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(8,2) DEFAULT 0.0, "shipping_method_id" integer, "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE INDEX "index_spree_orders_on_number" ON "spree_orders" ("number")  (0.2ms) CREATE TABLE "spree_payment_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "name" varchar, "description" text, "active" boolean DEFAULT 't', "environment" varchar DEFAULT 'development', "deleted_at" datetime, "display_on" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" decimal(8,2) DEFAULT 0.0 NOT NULL, "order_id" integer, "source_type" varchar, "source_id" integer, "payment_method_id" integer, "state" varchar, "response_code" varchar, "avs_response" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_preferences" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(100), "owner_type" varchar, "owner_id" integer, "value" text, "key" varchar, "value_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.3ms) CREATE UNIQUE INDEX "index_spree_preferences_on_key" ON "spree_preferences" ("key")  (0.2ms) CREATE TABLE "spree_product_option_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "position" integer, "product_id" integer, "option_type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.3ms) CREATE TABLE "spree_product_properties" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "value" varchar, "product_id" integer, "property_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE INDEX "index_product_properties_on_product_id" ON "spree_product_properties" ("product_id")  (0.2ms) CREATE TABLE "spree_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar DEFAULT '' NOT NULL, "description" text, "available_on" datetime, "deleted_at" datetime, "permalink" varchar, "meta_description" varchar, "meta_keywords" varchar, "tax_category_id" integer, "shipping_category_id" integer, "count_on_hand" integer DEFAULT 0 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE INDEX "index_spree_products_on_available_on" ON "spree_products" ("available_on")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_deleted_at" ON "spree_products" ("deleted_at")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_name" ON "spree_products" ("name")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_permalink" ON "spree_products" ("permalink")  (0.2ms) CREATE TABLE "spree_products_taxons" ("product_id" integer, "taxon_id" integer)  (0.2ms) CREATE INDEX "index_spree_products_taxons_on_product_id" ON "spree_products_taxons" ("product_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_taxons_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_taxons_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_taxons_on_taxon_id" ON "spree_products_taxons" ("taxon_id")  (0.2ms) CREATE TABLE "spree_properties" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "presentation" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_properties_prototypes" ("prototype_id" integer, "property_id" integer)  (0.2ms) CREATE TABLE "spree_prototypes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_return_authorizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "state" varchar, "amount" decimal(8,2) DEFAULT 0.0 NOT NULL, "order_id" integer, "reason" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (0.2ms) CREATE TABLE "spree_roles_users" ("role_id" integer, "user_id" integer)  (0.2ms) CREATE INDEX "index_spree_roles_users_on_role_id" ON "spree_roles_users" ("role_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_roles_users_on_role_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_roles_users_on_role_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_roles_users_on_user_id" ON "spree_roles_users" ("user_id")  (0.2ms) CREATE TABLE "spree_shipments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tracking" varchar, "number" varchar, "cost" decimal(8,2), "shipped_at" datetime, "order_id" integer, "shipping_method_id" integer, "address_id" integer, "state" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE INDEX "index_shipments_on_number" ON "spree_shipments" ("number")  (0.2ms) CREATE TABLE "spree_shipping_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_shipping_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "zone_id" integer, "display_on" varchar, "shipping_category_id" integer, "match_none" boolean, "match_all" boolean, "match_one" boolean, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_state_changes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "previous_state" varchar, "stateful_id" integer, "user_id" integer, "stateful_type" varchar, "next_state" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_states" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "abbr" varchar, "country_id" integer)  (0.2ms) CREATE TABLE "spree_tax_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" varchar, "is_default" boolean DEFAULT 'f', "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_tax_rates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" decimal(8,5), "zone_id" integer, "tax_category_id" integer, "included_in_price" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_taxonomies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.4ms) CREATE TABLE "spree_taxons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "parent_id" integer, "position" integer DEFAULT 0, "name" varchar NOT NULL, "permalink" varchar, "taxonomy_id" integer, "lft" integer, "rgt" integer, "icon_file_name" varchar, "icon_content_type" varchar, "icon_file_size" integer, "icon_updated_at" datetime, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.3ms) CREATE INDEX "index_taxons_on_parent_id" ON "spree_taxons" ("parent_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_taxons_on_permalink" ON "spree_taxons" ("permalink")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_taxons_on_taxonomy_id" ON "spree_taxons" ("taxonomy_id")  (0.3ms) CREATE TABLE "spree_tokenized_permissions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "permissable_type" varchar, "permissable_id" integer, "token" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE INDEX "index_tokenized_name_and_type" ON "spree_tokenized_permissions" ("permissable_id", "permissable_type")  (0.2ms) CREATE TABLE "spree_trackers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "environment" varchar, "analytics_id" varchar, "active" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.4ms) CREATE TABLE "spree_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "encrypted_password" varchar(128), "password_salt" varchar(128), "email" varchar, "remember_token" varchar, "persistence_token" varchar, "reset_password_token" varchar, "perishable_token" varchar, "sign_in_count" integer DEFAULT 0 NOT NULL, "failed_attempts" integer DEFAULT 0 NOT NULL, "last_request_at" datetime, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar, "last_sign_in_ip" varchar, "login" varchar, "ship_address_id" integer, "bill_address_id" integer, "authentication_token" varchar, "unlock_token" varchar, "locked_at" datetime, "remember_created_at" datetime, "reset_password_sent_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "price" decimal(8,2) NOT NULL, "weight" decimal(8,2), "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "count_on_hand" integer DEFAULT 0 NOT NULL, "cost_price" decimal(8,2), "position" integer)  (0.2ms) CREATE INDEX "index_spree_variants_on_product_id" ON "spree_variants" ("product_id")  (0.2ms) CREATE TABLE "spree_zone_members" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "zoneable_type" varchar, "zoneable_id" integer, "zone_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE TABLE "spree_zones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" varchar, "default_tax" boolean DEFAULT 'f', "zone_members_count" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181839"]]  (126.6ms) commit transaction Migrating to SpreePromoOneTwo (20180516181840)  (0.2ms) begin transaction  (0.5ms) CREATE TABLE "spree_products_promotion_rules" ("product_id" integer, "promotion_rule_id" integer)  (0.3ms) CREATE INDEX "index_products_promotion_rules_on_product_id" ON "spree_products_promotion_rules" ("product_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index'   (0.4ms) CREATE INDEX "index_products_promotion_rules_on_promotion_rule_id" ON "spree_products_promotion_rules" ("promotion_rule_id")  (0.3ms) CREATE TABLE "spree_promotion_action_line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "promotion_action_id" integer, "variant_id" integer, "quantity" integer DEFAULT 1)  (0.3ms) CREATE TABLE "spree_promotion_actions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "activator_id" integer, "position" integer, "type" varchar)  (0.2ms) CREATE TABLE "spree_promotion_rules" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "activator_id" integer, "user_id" integer, "product_group_id" integer, "type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE INDEX "index_promotion_rules_on_product_group_id" ON "spree_promotion_rules" ("product_group_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_on_product_group_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_on_product_group_id' AND type='index'   (0.2ms) CREATE INDEX "index_promotion_rules_on_user_id" ON "spree_promotion_rules" ("user_id")  (0.2ms) CREATE TABLE "spree_promotion_rules_users" ("user_id" integer, "promotion_rule_id" integer)  (0.2ms) CREATE INDEX "index_promotion_rules_users_on_promotion_rule_id" ON "spree_promotion_rules_users" ("promotion_rule_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index'   (0.2ms) CREATE INDEX "index_promotion_rules_users_on_user_id" ON "spree_promotion_rules_users" ("user_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181840"]]  (92.3ms) commit transaction Migrating to AddTaxRateLabel (20180516181841)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "spree_tax_rates" ADD "name" varchar SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181841"]]  (74.5ms) commit transaction Migrating to AddToggleTaxRateDisplay (20180516181842)  (0.1ms) begin transaction  (0.7ms) ALTER TABLE "spree_tax_rates" ADD "show_rate_in_label" boolean DEFAULT 't' SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181842"]]  (84.3ms) commit transaction Migrating to RemoveUnusedPreferenceColumns (20180516181843)  (0.1ms) begin transaction  (0.6ms) CREATE TEMPORARY TABLE "aspree_preferences" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(100), "owner_type" varchar, "owner_id" integer, "value" text, "key" varchar, "value_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_preferences_on_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_preferences_on_key' AND type='index'   (0.4ms) CREATE UNIQUE INDEX "tindex_aspree_preferences_on_key" ON "aspree_preferences" ("key")  (0.1ms) INSERT INTO "aspree_preferences" ("id","name","owner_type","owner_id","value","key","value_type","created_at","updated_at") SELECT "id","name","owner_type","owner_id","value","key","value_type","created_at","updated_at" FROM "spree_preferences"  (0.4ms) DROP TABLE "spree_preferences"  (0.3ms) CREATE TABLE "spree_preferences" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_type" varchar, "owner_id" integer, "value" text, "key" varchar, "value_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_preferences_on_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_preferences_on_key' AND type='index'   (0.5ms) CREATE UNIQUE INDEX "index_spree_preferences_on_key" ON "spree_preferences" ("key")  (0.1ms) INSERT INTO "spree_preferences" ("id","owner_type","owner_id","value","key","value_type","created_at","updated_at") SELECT "id","owner_type","owner_id","value","key","value_type","created_at","updated_at" FROM "aspree_preferences"  (0.2ms) DROP TABLE "aspree_preferences"  (0.2ms) CREATE TEMPORARY TABLE "aspree_preferences" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_type" varchar, "owner_id" integer, "value" text, "key" varchar, "value_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_preferences_on_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_preferences_on_key' AND type='index'   (0.2ms) CREATE UNIQUE INDEX "tindex_aspree_preferences_on_key" ON "aspree_preferences" ("key")  (0.1ms) INSERT INTO "aspree_preferences" ("id","owner_type","owner_id","value","key","value_type","created_at","updated_at") SELECT "id","owner_type","owner_id","value","key","value_type","created_at","updated_at" FROM "spree_preferences"  (0.2ms) DROP TABLE "spree_preferences"  (0.2ms) CREATE TABLE "spree_preferences" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_type" varchar, "value" text, "key" varchar, "value_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_preferences_on_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_preferences_on_key' AND type='index'   (0.2ms) CREATE UNIQUE INDEX "index_spree_preferences_on_key" ON "spree_preferences" ("key")  (0.1ms) INSERT INTO "spree_preferences" ("id","owner_type","value","key","value_type","created_at","updated_at") SELECT "id","owner_type","value","key","value_type","created_at","updated_at" FROM "aspree_preferences"  (0.2ms) DROP TABLE "aspree_preferences"  (0.2ms) CREATE TEMPORARY TABLE "aspree_preferences" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "owner_type" varchar, "value" text, "key" varchar, "value_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_preferences_on_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_preferences_on_key' AND type='index'   (0.2ms) CREATE UNIQUE INDEX "tindex_aspree_preferences_on_key" ON "aspree_preferences" ("key")  (0.2ms) INSERT INTO "aspree_preferences" ("id","owner_type","value","key","value_type","created_at","updated_at") SELECT "id","owner_type","value","key","value_type","created_at","updated_at" FROM "spree_preferences"  (0.3ms) DROP TABLE "spree_preferences"  (0.2ms) CREATE TABLE "spree_preferences" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "value" text, "key" varchar, "value_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_preferences_on_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_preferences_on_key' AND type='index'   (0.3ms) CREATE UNIQUE INDEX "index_spree_preferences_on_key" ON "spree_preferences" ("key")  (0.1ms) INSERT INTO "spree_preferences" ("id","value","key","value_type","created_at","updated_at") SELECT "id","value","key","value_type","created_at","updated_at" FROM "aspree_preferences"  (0.2ms) DROP TABLE "aspree_preferences" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181843"]]  (99.8ms) commit transaction Migrating to AddLockVersionToVariant (20180516181844)  (0.1ms) begin transaction  (0.9ms) ALTER TABLE "spree_variants" ADD "lock_version" integer DEFAULT 0 SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181844"]]  (80.1ms) commit transaction Migrating to AddStatesRequiredToCountries (20180516181845)  (0.1ms) begin transaction  (1.0ms) ALTER TABLE "spree_countries" ADD "states_required" boolean DEFAULT 't' SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181845"]]  (67.9ms) commit transaction Migrating to AddOnDemandToProductAndVariant (20180516181846)  (0.1ms) begin transaction  (1.1ms) ALTER TABLE "spree_products" ADD "on_demand" boolean DEFAULT 'f'  (0.9ms) ALTER TABLE "spree_variants" ADD "on_demand" boolean DEFAULT 'f' SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181846"]]  (92.2ms) commit transaction Migrating to RemoveNotNullConstraintFromProductsOnHand (20180516181847)  (0.1ms) begin transaction  (0.5ms) CREATE TEMPORARY TABLE "aspree_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar DEFAULT '' NOT NULL, "description" text, "available_on" datetime, "deleted_at" datetime, "permalink" varchar, "meta_description" varchar, "meta_keywords" varchar, "tax_category_id" integer, "shipping_category_id" integer, "count_on_hand" integer DEFAULT 0 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "on_demand" boolean DEFAULT 'f')  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_permalink' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_products_on_permalink" ON "aspree_products" ("permalink")  (0.3ms) CREATE INDEX "tindex_aspree_products_on_name" ON "aspree_products" ("name")  (0.3ms) CREATE INDEX "tindex_aspree_products_on_deleted_at" ON "aspree_products" ("deleted_at")  (0.3ms) CREATE INDEX "tindex_aspree_products_on_available_on" ON "aspree_products" ("available_on")  (0.2ms) INSERT INTO "aspree_products" ("id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","count_on_hand","created_at","updated_at","on_demand") SELECT "id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","count_on_hand","created_at","updated_at","on_demand" FROM "spree_products"  (0.6ms) DROP TABLE "spree_products"  (0.3ms) CREATE TABLE "spree_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar DEFAULT '' NOT NULL, "description" text, "available_on" datetime, "deleted_at" datetime, "permalink" varchar, "meta_description" varchar, "meta_keywords" varchar, "tax_category_id" integer, "shipping_category_id" integer, "count_on_hand" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "on_demand" boolean DEFAULT 'f')  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_available_on' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_permalink' AND type='index'   (0.3ms) CREATE INDEX "index_spree_products_on_available_on" ON "spree_products" ("available_on")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_deleted_at" ON "spree_products" ("deleted_at")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_name" ON "spree_products" ("name")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_permalink" ON "spree_products" ("permalink")  (0.2ms) INSERT INTO "spree_products" ("id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","count_on_hand","created_at","updated_at","on_demand") SELECT "id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","count_on_hand","created_at","updated_at","on_demand" FROM "aspree_products"  (0.3ms) DROP TABLE "aspree_products"  (0.2ms) CREATE TEMPORARY TABLE "aspree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "price" decimal(8,2) NOT NULL, "weight" decimal(8,2), "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "count_on_hand" integer DEFAULT 0 NOT NULL, "cost_price" decimal(8,2), "position" integer, "lock_version" integer DEFAULT 0, "on_demand" boolean DEFAULT 'f')  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_variants_on_product_id" ON "aspree_variants" ("product_id")  (0.2ms) INSERT INTO "aspree_variants" ("id","sku","price","weight","height","width","depth","deleted_at","is_master","product_id","count_on_hand","cost_price","position","lock_version","on_demand") SELECT "id","sku","price","weight","height","width","depth","deleted_at","is_master","product_id","count_on_hand","cost_price","position","lock_version","on_demand" FROM "spree_variants"  (0.4ms) DROP TABLE "spree_variants"  (0.2ms) CREATE TABLE "spree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "price" decimal(8,2) NOT NULL, "weight" decimal(8,2), "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "count_on_hand" integer DEFAULT 0, "cost_price" decimal(8,2), "position" integer, "lock_version" integer DEFAULT 0, "on_demand" boolean DEFAULT 'f')  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_product_id" ON "spree_variants" ("product_id")  (0.1ms) INSERT INTO "spree_variants" ("id","sku","price","weight","height","width","depth","deleted_at","is_master","product_id","count_on_hand","cost_price","position","lock_version","on_demand") SELECT "id","sku","price","weight","height","width","depth","deleted_at","is_master","product_id","count_on_hand","cost_price","position","lock_version","on_demand" FROM "aspree_variants"  (0.2ms) DROP TABLE "aspree_variants" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181847"]]  (95.1ms) commit transaction Migrating to SplitPricesFromVariants (20180516181848)  (0.1ms) begin transaction  (0.8ms) CREATE TABLE "spree_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer NOT NULL, "amount" decimal(8,2) NOT NULL, "currency" varchar) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL  (0.3ms) CREATE TEMPORARY TABLE "aspree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "price" decimal(8,2) NOT NULL, "weight" decimal(8,2), "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "count_on_hand" integer DEFAULT 0, "cost_price" decimal(8,2), "position" integer, "lock_version" integer DEFAULT 0, "on_demand" boolean DEFAULT 'f')  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_variants_on_product_id" ON "aspree_variants" ("product_id")  (0.1ms) INSERT INTO "aspree_variants" ("id","sku","price","weight","height","width","depth","deleted_at","is_master","product_id","count_on_hand","cost_price","position","lock_version","on_demand") SELECT "id","sku","price","weight","height","width","depth","deleted_at","is_master","product_id","count_on_hand","cost_price","position","lock_version","on_demand" FROM "spree_variants"  (0.4ms) DROP TABLE "spree_variants"  (0.2ms) CREATE TABLE "spree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2), "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "count_on_hand" integer DEFAULT 0, "cost_price" decimal(8,2), "position" integer, "lock_version" integer DEFAULT 0, "on_demand" boolean DEFAULT 'f')  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_product_id" ON "spree_variants" ("product_id")  (0.1ms) INSERT INTO "spree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","count_on_hand","cost_price","position","lock_version","on_demand") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","count_on_hand","cost_price","position","lock_version","on_demand" FROM "aspree_variants"  (0.2ms) DROP TABLE "aspree_variants" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181848"]]  (304.7ms) commit transaction Migrating to RemoveNotNullFromSpreePricesAmount (20180516181849)  (0.1ms) begin transaction  (0.3ms) CREATE TEMPORARY TABLE "aspree_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer NOT NULL, "amount" decimal(8,2) NOT NULL, "currency" varchar)  (0.1ms) INSERT INTO "aspree_prices" ("id","variant_id","amount","currency") SELECT "id","variant_id","amount","currency" FROM "spree_prices"  (0.3ms) DROP TABLE "spree_prices"  (0.3ms) CREATE TABLE "spree_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer NOT NULL, "amount" decimal(8,2), "currency" varchar)  (0.2ms) INSERT INTO "spree_prices" ("id","variant_id","amount","currency") SELECT "id","variant_id","amount","currency" FROM "aspree_prices"  (0.2ms) DROP TABLE "aspree_prices" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181849"]]  (105.1ms) commit transaction Migrating to AddCurrencyToLineItems (20180516181850)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "spree_line_items" ADD "currency" varchar SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181850"]]  (70.5ms) commit transaction Migrating to AddCurrencyToOrders (20180516181851)  (0.1ms) begin transaction  (0.8ms) ALTER TABLE "spree_orders" ADD "currency" varchar SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181851"]]  (73.3ms) commit transaction Migrating to AddCostCurrencyToVariants (20180516181852)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "spree_variants" ADD "cost_currency" varchar SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181852"]]  (85.5ms) commit transaction Migrating to RemoveDisplayOnFromPaymentMethods (20180516181853)  (0.1ms) begin transaction  (0.3ms) CREATE TEMPORARY TABLE "aspree_payment_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "name" varchar, "description" text, "active" boolean DEFAULT 't', "environment" varchar DEFAULT 'development', "deleted_at" datetime, "display_on" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "aspree_payment_methods" ("id","type","name","description","active","environment","deleted_at","display_on","created_at","updated_at") SELECT "id","type","name","description","active","environment","deleted_at","display_on","created_at","updated_at" FROM "spree_payment_methods"  (0.3ms) DROP TABLE "spree_payment_methods"  (0.2ms) CREATE TABLE "spree_payment_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "name" varchar, "description" text, "active" boolean DEFAULT 't', "environment" varchar DEFAULT 'development', "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "spree_payment_methods" ("id","type","name","description","active","environment","deleted_at","created_at","updated_at") SELECT "id","type","name","description","active","environment","deleted_at","created_at","updated_at" FROM "aspree_payment_methods"  (0.2ms) DROP TABLE "aspree_payment_methods" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181853"]]  (69.1ms) commit transaction Migrating to AddPositionToTaxonomies (20180516181854)  (0.1ms) begin transaction  (0.7ms) ALTER TABLE "spree_taxonomies" ADD "position" integer DEFAULT 0 SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181854"]]  (72.8ms) commit transaction Migrating to AddLastIpToSpreeOrders (20180516181855)  (0.1ms) begin transaction  (0.8ms) ALTER TABLE "spree_orders" ADD "last_ip_address" varchar SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181855"]]  (83.7ms) commit transaction Migrating to AddStateToSpreeAdjustments (20180516181856)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "spree_adjustments" ADD "state" varchar  (0.4ms) CREATE TEMPORARY TABLE "aspree_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "source_type" varchar, "source_id" integer, "adjustable_type" varchar, "adjustable_id" integer, "originator_type" varchar, "originator_id" integer, "amount" decimal(8,2), "label" varchar, "mandatory" boolean, "locked" boolean, "eligible" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "state" varchar)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_adjustments_on_order_id' AND type='index'   (0.3ms) CREATE INDEX "tindex_adjustments_on_order_id" ON "aspree_adjustments" ("adjustable_id")  (0.2ms) INSERT INTO "aspree_adjustments" ("id","source_type","source_id","adjustable_type","adjustable_id","originator_type","originator_id","amount","label","mandatory","locked","eligible","created_at","updated_at","state") SELECT "id","source_type","source_id","adjustable_type","adjustable_id","originator_type","originator_id","amount","label","mandatory","locked","eligible","created_at","updated_at","state" FROM "spree_adjustments"  (0.5ms) DROP TABLE "spree_adjustments"  (0.6ms) CREATE TABLE "spree_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "source_type" varchar, "source_id" integer, "adjustable_type" varchar, "adjustable_id" integer, "originator_type" varchar, "originator_id" integer, "amount" decimal(8,2), "label" varchar, "mandatory" boolean, "eligible" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "state" varchar)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_adjustments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_adjustments_on_order_id" ON "spree_adjustments" ("adjustable_id")  (0.2ms) INSERT INTO "spree_adjustments" ("id","source_type","source_id","adjustable_type","adjustable_id","originator_type","originator_id","amount","label","mandatory","eligible","created_at","updated_at","state") SELECT "id","source_type","source_id","adjustable_type","adjustable_id","originator_type","originator_id","amount","label","mandatory","eligible","created_at","updated_at","state" FROM "aspree_adjustments"  (0.3ms) DROP TABLE "aspree_adjustments" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181856"]]  (105.5ms) commit transaction Migrating to AddDisplayOnToSpreePaymentMethods (20180516181857)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "spree_payment_methods" ADD "display_on" varchar SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181857"]]  (249.0ms) commit transaction Migrating to AddPositionToProductProperties (20180516181858)  (0.1ms) begin transaction  (1.0ms) ALTER TABLE "spree_product_properties" ADD "position" integer DEFAULT 0 SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181858"]]  (71.3ms) commit transaction Migrating to AddIdentifierToSpreePayments (20180516181859)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "spree_payments" ADD "identifier" varchar SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181859"]]  (62.8ms) commit transaction Migrating to AddOrderIdIndexToPayments (20180516181860)  (0.1ms) begin transaction  (0.3ms) CREATE INDEX "index_spree_payments_on_order_id" ON "spree_payments" ("order_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181860"]]  (111.9ms) commit transaction Migrating to AddPrimaryToSpreeProductsTaxons (20180516181861)  (0.2ms) begin transaction  (0.4ms) CREATE TEMPORARY TABLE "aspree_products_taxons" ("product_id" integer, "taxon_id" integer)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_taxons_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_taxons_on_taxon_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_taxons_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_taxons_on_product_id' AND type='index'   (0.3ms) CREATE INDEX "tindex_aspree_products_taxons_on_taxon_id" ON "aspree_products_taxons" ("taxon_id")  (0.3ms) CREATE INDEX "tindex_aspree_products_taxons_on_product_id" ON "aspree_products_taxons" ("product_id")  (0.1ms) INSERT INTO "aspree_products_taxons" ("product_id","taxon_id") SELECT "product_id","taxon_id" FROM "spree_products_taxons"  (0.4ms) DROP TABLE "spree_products_taxons"  (0.3ms) CREATE TABLE "spree_products_taxons" ("product_id" integer, "taxon_id" integer, "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_taxons_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_taxons_on_product_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_taxons_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_taxons_on_taxon_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_products_taxons_on_product_id" ON "spree_products_taxons" ("product_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_taxons_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_taxons_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_taxons_on_taxon_id" ON "spree_products_taxons" ("taxon_id")  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id","taxon_id") SELECT "product_id","taxon_id" FROM "aspree_products_taxons"  (0.2ms) DROP TABLE "aspree_products_taxons" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181861"]]  (112.3ms) commit transaction Migrating to CreateSpreeStockItems (20180516181862)  (0.1ms) begin transaction  (0.8ms) CREATE TABLE "spree_stock_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_location_id" integer, "variant_id" integer, "count_on_hand" integer DEFAULT 0 NOT NULL, "lock_version" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.6ms) CREATE INDEX "index_spree_stock_items_on_stock_location_id" ON "spree_stock_items" ("stock_location_id")  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index'   (0.5ms) CREATE INDEX "stock_item_by_loc_and_var_id" ON "spree_stock_items" ("stock_location_id", "variant_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181862"]]  (112.8ms) commit transaction Migrating to CreateSpreeStockLocations (20180516181863)  (0.1ms) begin transaction  (1.0ms) CREATE TABLE "spree_stock_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "address_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.4ms) CREATE INDEX "index_spree_stock_locations_on_address_id" ON "spree_stock_locations" ("address_id") SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181863"]]  (81.5ms) commit transaction Migrating to CreateDefaultStock (20180516181864)  (0.2ms) begin transaction  (0.9ms) ALTER TABLE "spree_stock_locations" ADD "default" boolean DEFAULT 'f' NOT NULL SQL (0.3ms) INSERT INTO "spree_stock_locations" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "default"], ["created_at", "2018-05-16 18:23:29.736546"], ["updated_at", "2018-05-16 18:23:29.736546"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT ? [["LIMIT", 1000]]  (0.3ms) CREATE TEMPORARY TABLE "aspree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2), "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "count_on_hand" integer DEFAULT 0, "cost_price" decimal(8,2), "position" integer, "lock_version" integer DEFAULT 0, "on_demand" boolean DEFAULT 'f', "cost_currency" varchar)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_variants_on_product_id" ON "aspree_variants" ("product_id")  (0.2ms) INSERT INTO "aspree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","count_on_hand","cost_price","position","lock_version","on_demand","cost_currency") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","count_on_hand","cost_price","position","lock_version","on_demand","cost_currency" FROM "spree_variants"  (0.5ms) DROP TABLE "spree_variants"  (0.3ms) CREATE TABLE "spree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2), "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "cost_price" decimal(8,2), "position" integer, "lock_version" integer DEFAULT 0, "on_demand" boolean DEFAULT 'f', "cost_currency" varchar)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_product_id" ON "spree_variants" ("product_id")  (0.1ms) INSERT INTO "spree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","lock_version","on_demand","cost_currency") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","lock_version","on_demand","cost_currency" FROM "aspree_variants"  (0.2ms) DROP TABLE "aspree_variants" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181864"]]  (79.3ms) commit transaction Migrating to AddOrderIdIndexToShipments (20180516181865)  (0.2ms) begin transaction  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.6ms) CREATE INDEX "index_spree_shipments_on_order_id" ON "spree_shipments" ("order_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181865"]]  (102.4ms) commit transaction Migrating to ChangeMetaDescriptionOnSpreeProductsToText (20180516181866)  (0.2ms) begin transaction  (0.5ms) CREATE TEMPORARY TABLE "aspree_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar DEFAULT '' NOT NULL, "description" text, "available_on" datetime, "deleted_at" datetime, "permalink" varchar, "meta_description" varchar, "meta_keywords" varchar, "tax_category_id" integer, "shipping_category_id" integer, "count_on_hand" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "on_demand" boolean DEFAULT 'f')  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_permalink' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_products_on_permalink" ON "aspree_products" ("permalink")  (0.2ms) CREATE INDEX "tindex_aspree_products_on_name" ON "aspree_products" ("name")  (0.2ms) CREATE INDEX "tindex_aspree_products_on_deleted_at" ON "aspree_products" ("deleted_at")  (0.2ms) CREATE INDEX "tindex_aspree_products_on_available_on" ON "aspree_products" ("available_on")  (0.2ms) INSERT INTO "aspree_products" ("id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","count_on_hand","created_at","updated_at","on_demand") SELECT "id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","count_on_hand","created_at","updated_at","on_demand" FROM "spree_products"  (0.5ms) DROP TABLE "spree_products"  (0.3ms) CREATE TABLE "spree_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar DEFAULT '' NOT NULL, "description" text, "available_on" datetime, "deleted_at" datetime, "permalink" varchar, "meta_description" text, "meta_keywords" varchar, "tax_category_id" integer, "shipping_category_id" integer, "count_on_hand" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "on_demand" boolean DEFAULT 'f')  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_available_on' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_permalink' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_available_on" ON "spree_products" ("available_on")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_deleted_at" ON "spree_products" ("deleted_at")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_name" ON "spree_products" ("name")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_permalink" ON "spree_products" ("permalink")  (0.3ms) INSERT INTO "spree_products" ("id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","count_on_hand","created_at","updated_at","on_demand") SELECT "id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","count_on_hand","created_at","updated_at","on_demand" FROM "aspree_products"  (0.3ms) DROP TABLE "aspree_products" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181866"]]  (80.6ms) commit transaction Migrating to AddStockLocationIdToSpreeShipments (20180516181867)  (0.1ms) begin transaction  (0.7ms) ALTER TABLE "spree_shipments" ADD "stock_location_id" integer SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181867"]]  (72.5ms) commit transaction Migrating to AddPendingToInventoryUnit (20180516181868)  (0.2ms) begin transaction  (0.9ms) ALTER TABLE "spree_inventory_units" ADD "pending" boolean DEFAULT 't' SQL (0.1ms) UPDATE "spree_inventory_units" SET "pending" = 'f' SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181868"]]  (91.3ms) commit transaction Migrating to RemoveOnDemandFromProductAndVariant (20180516181869)  (0.1ms) begin transaction  (0.4ms) CREATE TEMPORARY TABLE "aspree_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar DEFAULT '' NOT NULL, "description" text, "available_on" datetime, "deleted_at" datetime, "permalink" varchar, "meta_description" text, "meta_keywords" varchar, "tax_category_id" integer, "shipping_category_id" integer, "count_on_hand" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "on_demand" boolean DEFAULT 'f')  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_products_on_permalink" ON "aspree_products" ("permalink")  (0.2ms) CREATE INDEX "tindex_aspree_products_on_name" ON "aspree_products" ("name")  (0.2ms) CREATE INDEX "tindex_aspree_products_on_deleted_at" ON "aspree_products" ("deleted_at")  (0.2ms) CREATE INDEX "tindex_aspree_products_on_available_on" ON "aspree_products" ("available_on")  (0.2ms) INSERT INTO "aspree_products" ("id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","count_on_hand","created_at","updated_at","on_demand") SELECT "id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","count_on_hand","created_at","updated_at","on_demand" FROM "spree_products"  (0.5ms) DROP TABLE "spree_products"  (0.2ms) CREATE TABLE "spree_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar DEFAULT '' NOT NULL, "description" text, "available_on" datetime, "deleted_at" datetime, "permalink" varchar, "meta_description" text, "meta_keywords" varchar, "tax_category_id" integer, "shipping_category_id" integer, "count_on_hand" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_available_on' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_permalink' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_available_on" ON "spree_products" ("available_on")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_deleted_at" ON "spree_products" ("deleted_at")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_name" ON "spree_products" ("name")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_permalink" ON "spree_products" ("permalink")  (0.3ms) INSERT INTO "spree_products" ("id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","count_on_hand","created_at","updated_at") SELECT "id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","count_on_hand","created_at","updated_at" FROM "aspree_products"  (0.3ms) DROP TABLE "aspree_products"  (0.2ms) CREATE TEMPORARY TABLE "aspree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2), "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "cost_price" decimal(8,2), "position" integer, "lock_version" integer DEFAULT 0, "on_demand" boolean DEFAULT 'f', "cost_currency" varchar)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_variants_on_product_id" ON "aspree_variants" ("product_id")  (0.1ms) INSERT INTO "aspree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","lock_version","on_demand","cost_currency") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","lock_version","on_demand","cost_currency" FROM "spree_variants"  (0.3ms) DROP TABLE "spree_variants"  (0.3ms) CREATE TABLE "spree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2), "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "cost_price" decimal(8,2), "position" integer, "lock_version" integer DEFAULT 0, "cost_currency" varchar)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_product_id" ON "spree_variants" ("product_id")  (0.1ms) INSERT INTO "spree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","lock_version","cost_currency") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","lock_version","cost_currency" FROM "aspree_variants"  (0.2ms) DROP TABLE "aspree_variants" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181869"]]  (92.9ms) commit transaction Migrating to CreateShippingMethodZone (20180516181870)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "shipping_methods_zones" ("shipping_method_id" integer, "zone_id" integer) Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."deleted_at" IS NULL  (0.3ms) CREATE TEMPORARY TABLE "aspree_shipping_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "zone_id" integer, "display_on" varchar, "shipping_category_id" integer, "match_none" boolean, "match_all" boolean, "match_one" boolean, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "aspree_shipping_methods" ("id","name","zone_id","display_on","shipping_category_id","match_none","match_all","match_one","deleted_at","created_at","updated_at") SELECT "id","name","zone_id","display_on","shipping_category_id","match_none","match_all","match_one","deleted_at","created_at","updated_at" FROM "spree_shipping_methods"  (0.3ms) DROP TABLE "spree_shipping_methods"  (0.3ms) CREATE TABLE "spree_shipping_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "display_on" varchar, "shipping_category_id" integer, "match_none" boolean, "match_all" boolean, "match_one" boolean, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "spree_shipping_methods" ("id","name","display_on","shipping_category_id","match_none","match_all","match_one","deleted_at","created_at","updated_at") SELECT "id","name","display_on","shipping_category_id","match_none","match_all","match_one","deleted_at","created_at","updated_at" FROM "aspree_shipping_methods"  (0.2ms) DROP TABLE "aspree_shipping_methods" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181870"]]  (117.2ms) commit transaction Migrating to RemoveShippingCategoryIdFromShippingMethod (20180516181871)  (0.1ms) begin transaction  (0.2ms) CREATE TEMPORARY TABLE "aspree_shipping_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "display_on" varchar, "shipping_category_id" integer, "match_none" boolean, "match_all" boolean, "match_one" boolean, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms) INSERT INTO "aspree_shipping_methods" ("id","name","display_on","shipping_category_id","match_none","match_all","match_one","deleted_at","created_at","updated_at") SELECT "id","name","display_on","shipping_category_id","match_none","match_all","match_one","deleted_at","created_at","updated_at" FROM "spree_shipping_methods"  (0.3ms) DROP TABLE "spree_shipping_methods"  (0.3ms) CREATE TABLE "spree_shipping_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "display_on" varchar, "match_none" boolean, "match_all" boolean, "match_one" boolean, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) INSERT INTO "spree_shipping_methods" ("id","name","display_on","match_none","match_all","match_one","deleted_at","created_at","updated_at") SELECT "id","name","display_on","match_none","match_all","match_one","deleted_at","created_at","updated_at" FROM "aspree_shipping_methods"  (0.2ms) DROP TABLE "aspree_shipping_methods" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181871"]]  (101.0ms) commit transaction Migrating to CreateShippingMethodCategories (20180516181872)  (0.1ms) begin transaction  (0.8ms) CREATE TABLE "spree_shipping_method_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "shipping_method_id" integer NOT NULL, "shipping_category_id" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.6ms) CREATE INDEX "index_spree_shipping_method_categories_on_shipping_method_id" ON "spree_shipping_method_categories" ("shipping_method_id")  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_method_categories_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_method_categories_on_shipping_method_id' AND type='index'   (0.4ms) CREATE INDEX "index_spree_shipping_method_categories_on_shipping_category_id" ON "spree_shipping_method_categories" ("shipping_category_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181872"]]  (114.6ms) commit transaction Migrating to AddTrackingUrlToSpreeShippingMethods (20180516181873)  (0.1ms) begin transaction  (0.9ms) ALTER TABLE "spree_shipping_methods" ADD "tracking_url" varchar SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181873"]]  (69.7ms) commit transaction Migrating to CreateSpreeShippingRates (20180516181874)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "spree_shipping_rates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "shipment_id" integer, "shipping_method_id" integer, "selected" boolean DEFAULT 'f', "cost" decimal(8,2), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.3ms) CREATE UNIQUE INDEX "spree_shipping_rates_join_index" ON "spree_shipping_rates" ("shipment_id", "shipping_method_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181874"]]  (120.1ms) commit transaction Migrating to RemoveCategoryMatchAttributesFromShippingMethod (20180516181875)  (0.1ms) begin transaction  (0.5ms) CREATE TEMPORARY TABLE "aspree_shipping_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "display_on" varchar, "match_none" boolean, "match_all" boolean, "match_one" boolean, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "tracking_url" varchar)  (0.3ms) INSERT INTO "aspree_shipping_methods" ("id","name","display_on","match_none","match_all","match_one","deleted_at","created_at","updated_at","tracking_url") SELECT "id","name","display_on","match_none","match_all","match_one","deleted_at","created_at","updated_at","tracking_url" FROM "spree_shipping_methods"  (0.7ms) DROP TABLE "spree_shipping_methods"  (0.4ms) CREATE TABLE "spree_shipping_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "display_on" varchar, "match_all" boolean, "match_one" boolean, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "tracking_url" varchar)  (1.2ms) INSERT INTO "spree_shipping_methods" ("id","name","display_on","match_all","match_one","deleted_at","created_at","updated_at","tracking_url") SELECT "id","name","display_on","match_all","match_one","deleted_at","created_at","updated_at","tracking_url" FROM "aspree_shipping_methods"  (0.2ms) DROP TABLE "aspree_shipping_methods"  (0.2ms) CREATE TEMPORARY TABLE "aspree_shipping_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "display_on" varchar, "match_all" boolean, "match_one" boolean, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "tracking_url" varchar)  (0.1ms) INSERT INTO "aspree_shipping_methods" ("id","name","display_on","match_all","match_one","deleted_at","created_at","updated_at","tracking_url") SELECT "id","name","display_on","match_all","match_one","deleted_at","created_at","updated_at","tracking_url" FROM "spree_shipping_methods"  (0.2ms) DROP TABLE "spree_shipping_methods"  (0.2ms) CREATE TABLE "spree_shipping_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "display_on" varchar, "match_all" boolean, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "tracking_url" varchar)  (0.1ms) INSERT INTO "spree_shipping_methods" ("id","name","display_on","match_all","deleted_at","created_at","updated_at","tracking_url") SELECT "id","name","display_on","match_all","deleted_at","created_at","updated_at","tracking_url" FROM "aspree_shipping_methods"  (0.2ms) DROP TABLE "aspree_shipping_methods"  (0.2ms) CREATE TEMPORARY TABLE "aspree_shipping_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "display_on" varchar, "match_all" boolean, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "tracking_url" varchar)  (0.1ms) INSERT INTO "aspree_shipping_methods" ("id","name","display_on","match_all","deleted_at","created_at","updated_at","tracking_url") SELECT "id","name","display_on","match_all","deleted_at","created_at","updated_at","tracking_url" FROM "spree_shipping_methods"  (0.2ms) DROP TABLE "spree_shipping_methods"  (0.2ms) CREATE TABLE "spree_shipping_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "display_on" varchar, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "tracking_url" varchar)  (0.1ms) INSERT INTO "spree_shipping_methods" ("id","name","display_on","deleted_at","created_at","updated_at","tracking_url") SELECT "id","name","display_on","deleted_at","created_at","updated_at","tracking_url" FROM "aspree_shipping_methods"  (0.2ms) DROP TABLE "aspree_shipping_methods" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181875"]]  (90.8ms) commit transaction Migrating to CreateStockMovements (20180516181876)  (0.1ms) begin transaction  (0.8ms) CREATE TABLE "spree_stock_movements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_item_id" integer, "quantity" integer, "action" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.4ms) CREATE INDEX "index_spree_stock_movements_on_stock_item_id" ON "spree_stock_movements" ("stock_item_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181876"]]  (97.5ms) commit transaction Migrating to AddAddressFieldsToStockLocation (20180516181877)  (0.1ms) begin transaction  (0.4ms) CREATE TEMPORARY TABLE "aspree_stock_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "address_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "default" boolean DEFAULT 'f' NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_address_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_stock_locations_on_address_id" ON "aspree_stock_locations" ("address_id")  (0.1ms) INSERT INTO "aspree_stock_locations" ("id","name","address_id","created_at","updated_at","default") SELECT "id","name","address_id","created_at","updated_at","default" FROM "spree_stock_locations"  (0.3ms) DROP TABLE "spree_stock_locations"  (0.2ms) CREATE TABLE "spree_stock_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "default" boolean DEFAULT 'f' NOT NULL)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_stock_locations_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_stock_locations_on_address_id' AND type='index'   (0.2ms) INSERT INTO "spree_stock_locations" ("id","name","created_at","updated_at","default") SELECT "id","name","created_at","updated_at","default" FROM "aspree_stock_locations"  (0.2ms) DROP TABLE "aspree_stock_locations"  (0.2ms) ALTER TABLE "spree_stock_locations" ADD "address1" varchar  (0.3ms) ALTER TABLE "spree_stock_locations" ADD "address2" varchar  (0.3ms) ALTER TABLE "spree_stock_locations" ADD "city" varchar  (0.6ms) ALTER TABLE "spree_stock_locations" ADD "state_id" integer  (0.3ms) ALTER TABLE "spree_stock_locations" ADD "state_name" varchar  (0.2ms) ALTER TABLE "spree_stock_locations" ADD "country_id" integer  (0.3ms) ALTER TABLE "spree_stock_locations" ADD "zipcode" varchar  (0.3ms) ALTER TABLE "spree_stock_locations" ADD "phone" varchar Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."iso" = ? ORDER BY "spree_countries"."id" ASC LIMIT ? [["iso", "US"], ["LIMIT", 1]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."id" ASC LIMIT ? [["LIMIT", 1]] SQL (0.2ms) UPDATE "spree_stock_locations" SET "country_id" = NULL SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181877"]]  (62.8ms) commit transaction Migrating to AddActiveFieldToStockLocations (20180516181878)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "spree_stock_locations" ADD "active" boolean DEFAULT 't' SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181878"]]  (95.9ms) commit transaction Migrating to AddBackorderableToStockItem (20180516181879)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "spree_stock_items" ADD "backorderable" boolean DEFAULT 't' SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181879"]]  (74.0ms) commit transaction Migrating to AddDefaultQuantityToStockMovement (20180516181880)  (0.1ms) begin transaction  (0.4ms) CREATE TEMPORARY TABLE "aspree_stock_movements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_item_id" integer, "quantity" integer, "action" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_stock_movements_on_stock_item_id" ON "aspree_stock_movements" ("stock_item_id")  (0.2ms) INSERT INTO "aspree_stock_movements" ("id","stock_item_id","quantity","action","created_at","updated_at") SELECT "id","stock_item_id","quantity","action","created_at","updated_at" FROM "spree_stock_movements"  (0.6ms) DROP TABLE "spree_stock_movements"  (0.2ms) CREATE TABLE "spree_stock_movements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_item_id" integer, "quantity" integer DEFAULT 0, "action" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_stock_movements_on_stock_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_stock_movements_on_stock_item_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_stock_movements_on_stock_item_id" ON "spree_stock_movements" ("stock_item_id")  (0.2ms) INSERT INTO "spree_stock_movements" ("id","stock_item_id","quantity","action","created_at","updated_at") SELECT "id","stock_item_id","quantity","action","created_at","updated_at" FROM "aspree_stock_movements"  (0.3ms) DROP TABLE "aspree_stock_movements" SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181880"]]  (73.0ms) commit transaction Migrating to AddSourceAndDestinationToStockMovements (20180516181881)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "spree_stock_movements" ADD "source_type" varchar  (0.3ms) ALTER TABLE "spree_stock_movements" ADD "source_id" integer  (0.3ms) ALTER TABLE "spree_stock_movements" ADD "destination_type" varchar  (0.4ms) ALTER TABLE "spree_stock_movements" ADD "destination_id" integer SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181881"]]  (94.1ms) commit transaction Migrating to ChangeOrdersTotalPrecision (20180516181882)  (0.1ms) begin transaction  (0.6ms) CREATE TEMPORARY TABLE "aspree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(15), "item_total" decimal(8,2) DEFAULT '0.0' NOT NULL, "total" decimal(8,2) DEFAULT '0.0' NOT NULL, "state" varchar, "adjustment_total" decimal(8,2) DEFAULT '0.0' NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(8,2) DEFAULT '0.0', "shipping_method_id" integer, "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "last_ip_address" varchar)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.3ms) CREATE INDEX "tindex_aspree_orders_on_number" ON "aspree_orders" ("number")  (0.5ms) INSERT INTO "aspree_orders" ("id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address") SELECT "id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address" FROM "spree_orders"  (0.8ms) DROP TABLE "spree_orders"  (0.4ms) CREATE TABLE "spree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(15), "item_total" decimal(10,2) DEFAULT 0.0 NOT NULL, "total" decimal(8,2) DEFAULT '0.0' NOT NULL, "state" varchar, "adjustment_total" decimal(8,2) DEFAULT '0.0' NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(8,2) DEFAULT '0.0', "shipping_method_id" integer, "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "last_ip_address" varchar)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_number" ON "spree_orders" ("number")  (0.2ms) INSERT INTO "spree_orders" ("id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address") SELECT "id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address" FROM "aspree_orders"  (0.2ms) DROP TABLE "aspree_orders"  (0.2ms) CREATE TEMPORARY TABLE "aspree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(15), "item_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "total" decimal(8,2) DEFAULT '0.0' NOT NULL, "state" varchar, "adjustment_total" decimal(8,2) DEFAULT '0.0' NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(8,2) DEFAULT '0.0', "shipping_method_id" integer, "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "last_ip_address" varchar)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_orders_on_number" ON "aspree_orders" ("number")  (0.2ms) INSERT INTO "aspree_orders" ("id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address") SELECT "id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address" FROM "spree_orders"  (0.4ms) DROP TABLE "spree_orders"  (0.3ms) CREATE TABLE "spree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(15), "item_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "total" decimal(10,2) DEFAULT 0.0 NOT NULL, "state" varchar, "adjustment_total" decimal(8,2) DEFAULT '0.0' NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(8,2) DEFAULT '0.0', "shipping_method_id" integer, "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "last_ip_address" varchar)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_number" ON "spree_orders" ("number")  (0.3ms) INSERT INTO "spree_orders" ("id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address") SELECT "id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address" FROM "aspree_orders"  (0.3ms) DROP TABLE "aspree_orders"  (0.3ms) CREATE TEMPORARY TABLE "aspree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(15), "item_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "total" decimal(10,2) DEFAULT '0.0' NOT NULL, "state" varchar, "adjustment_total" decimal(8,2) DEFAULT '0.0' NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(8,2) DEFAULT '0.0', "shipping_method_id" integer, "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "last_ip_address" varchar)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_orders_on_number" ON "aspree_orders" ("number")  (0.2ms) INSERT INTO "aspree_orders" ("id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address") SELECT "id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address" FROM "spree_orders"  (0.2ms) DROP TABLE "spree_orders"  (0.3ms) CREATE TABLE "spree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(15), "item_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "total" decimal(10,2) DEFAULT '0.0' NOT NULL, "state" varchar, "adjustment_total" decimal(10,2) DEFAULT 0.0 NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(8,2) DEFAULT '0.0', "shipping_method_id" integer, "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "last_ip_address" varchar)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_number" ON "spree_orders" ("number")  (0.1ms) INSERT INTO "spree_orders" ("id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address") SELECT "id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address" FROM "aspree_orders"  (0.2ms) DROP TABLE "aspree_orders"  (0.2ms) CREATE TEMPORARY TABLE "aspree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(15), "item_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "total" decimal(10,2) DEFAULT '0.0' NOT NULL, "state" varchar, "adjustment_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(8,2) DEFAULT '0.0', "shipping_method_id" integer, "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "last_ip_address" varchar)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_orders_on_number" ON "aspree_orders" ("number")  (0.2ms) INSERT INTO "aspree_orders" ("id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address") SELECT "id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address" FROM "spree_orders"  (0.2ms) DROP TABLE "spree_orders"  (0.3ms) CREATE TABLE "spree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(15), "item_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "total" decimal(10,2) DEFAULT '0.0' NOT NULL, "state" varchar, "adjustment_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(10,2) DEFAULT 0.0, "shipping_method_id" integer, "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "last_ip_address" varchar)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_number" ON "spree_orders" ("number")  (0.2ms) INSERT INTO "spree_orders" ("id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address") SELECT "id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address" FROM "aspree_orders"  (0.2ms) DROP TABLE "aspree_orders" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181882"]]  (97.3ms) commit transaction Migrating to ChangeSpreePaymentsAmountPrecision (20180516181883)  (0.2ms) begin transaction  (0.5ms) CREATE TEMPORARY TABLE "aspree_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" decimal(8,2) DEFAULT '0.0' NOT NULL, "order_id" integer, "source_type" varchar, "source_id" integer, "payment_method_id" integer, "state" varchar, "response_code" varchar, "avs_response" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "identifier" varchar)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.3ms) CREATE INDEX "tindex_aspree_payments_on_order_id" ON "aspree_payments" ("order_id")  (0.3ms) INSERT INTO "aspree_payments" ("id","amount","order_id","source_type","source_id","payment_method_id","state","response_code","avs_response","created_at","updated_at","identifier") SELECT "id","amount","order_id","source_type","source_id","payment_method_id","state","response_code","avs_response","created_at","updated_at","identifier" FROM "spree_payments"  (0.8ms) DROP TABLE "spree_payments"  (0.4ms) CREATE TABLE "spree_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" decimal(10,2) DEFAULT 0.0 NOT NULL, "order_id" integer, "source_type" varchar, "source_id" integer, "payment_method_id" integer, "state" varchar, "response_code" varchar, "avs_response" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "identifier" varchar)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_payments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_payments_on_order_id" ON "spree_payments" ("order_id")  (0.2ms) INSERT INTO "spree_payments" ("id","amount","order_id","source_type","source_id","payment_method_id","state","response_code","avs_response","created_at","updated_at","identifier") SELECT "id","amount","order_id","source_type","source_id","payment_method_id","state","response_code","avs_response","created_at","updated_at","identifier" FROM "aspree_payments"  (0.2ms) DROP TABLE "aspree_payments" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181883"]]  (101.1ms) commit transaction Migrating to ChangeSpreeReturnAuthorizationAmountPrecision (20180516181884)  (0.1ms) begin transaction  (0.3ms) CREATE TEMPORARY TABLE "aspree_return_authorizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "state" varchar, "amount" decimal(8,2) DEFAULT '0.0' NOT NULL, "order_id" integer, "reason" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.3ms) INSERT INTO "aspree_return_authorizations" ("id","number","state","amount","order_id","reason","created_at","updated_at") SELECT "id","number","state","amount","order_id","reason","created_at","updated_at" FROM "spree_return_authorizations"  (0.6ms) DROP TABLE "spree_return_authorizations"  (0.6ms) CREATE TABLE "spree_return_authorizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "state" varchar, "amount" decimal(10,2) DEFAULT 0.0 NOT NULL, "order_id" integer, "reason" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.3ms) INSERT INTO "spree_return_authorizations" ("id","number","state","amount","order_id","reason","created_at","updated_at") SELECT "id","number","state","amount","order_id","reason","created_at","updated_at" FROM "aspree_return_authorizations"  (0.4ms) DROP TABLE "aspree_return_authorizations" SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181884"]]  (73.3ms) commit transaction Migrating to ChangeAdjustmentsAmountPrecision (20180516181885)  (0.1ms) begin transaction  (0.5ms) CREATE TEMPORARY TABLE "aspree_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "source_type" varchar, "source_id" integer, "adjustable_type" varchar, "adjustable_id" integer, "originator_type" varchar, "originator_id" integer, "amount" decimal(8,2), "label" varchar, "mandatory" boolean, "eligible" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "state" varchar)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_adjustments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_adjustments_on_order_id" ON "aspree_adjustments" ("adjustable_id")  (0.2ms) INSERT INTO "aspree_adjustments" ("id","source_type","source_id","adjustable_type","adjustable_id","originator_type","originator_id","amount","label","mandatory","eligible","created_at","updated_at","state") SELECT "id","source_type","source_id","adjustable_type","adjustable_id","originator_type","originator_id","amount","label","mandatory","eligible","created_at","updated_at","state" FROM "spree_adjustments"  (0.5ms) DROP TABLE "spree_adjustments"  (0.5ms) CREATE TABLE "spree_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "source_type" varchar, "source_id" integer, "adjustable_type" varchar, "adjustable_id" integer, "originator_type" varchar, "originator_id" integer, "amount" decimal(10,2), "label" varchar, "mandatory" boolean, "eligible" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "state" varchar)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='tindex_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_adjustments_on_order_id' AND type='index'   (0.3ms) CREATE INDEX "index_adjustments_on_order_id" ON "spree_adjustments" ("adjustable_id")  (0.3ms) INSERT INTO "spree_adjustments" ("id","source_type","source_id","adjustable_type","adjustable_id","originator_type","originator_id","amount","label","mandatory","eligible","created_at","updated_at","state") SELECT "id","source_type","source_id","adjustable_type","adjustable_id","originator_type","originator_id","amount","label","mandatory","eligible","created_at","updated_at","state" FROM "aspree_adjustments"  (0.2ms) DROP TABLE "aspree_adjustments" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181885"]]  (69.4ms) commit transaction Migrating to AddOriginatorToStockMovement (20180516181886)  (0.2ms) begin transaction  (1.0ms) ALTER TABLE "spree_stock_movements" ADD "originator_type" varchar  (0.6ms) ALTER TABLE "spree_stock_movements" ADD "originator_id" integer SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181886"]]  (69.5ms) commit transaction Migrating to DropSourceAndDestinationFromStockMovement (20180516181887)  (0.1ms) begin transaction  (0.5ms) CREATE TEMPORARY TABLE "aspree_stock_movements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_item_id" integer, "quantity" integer DEFAULT 0, "action" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "source_type" varchar, "source_id" integer, "destination_type" varchar, "destination_id" integer, "originator_type" varchar, "originator_id" integer)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_stock_movements_on_stock_item_id" ON "aspree_stock_movements" ("stock_item_id")  (0.1ms) INSERT INTO "aspree_stock_movements" ("id","stock_item_id","quantity","action","created_at","updated_at","source_type","source_id","destination_type","destination_id","originator_type","originator_id") SELECT "id","stock_item_id","quantity","action","created_at","updated_at","source_type","source_id","destination_type","destination_id","originator_type","originator_id" FROM "spree_stock_movements"  (0.4ms) DROP TABLE "spree_stock_movements"  (0.4ms) CREATE TABLE "spree_stock_movements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_item_id" integer, "quantity" integer DEFAULT 0, "action" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "source_type" varchar, "destination_type" varchar, "destination_id" integer, "originator_type" varchar, "originator_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_stock_movements_on_stock_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_stock_movements_on_stock_item_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_stock_movements_on_stock_item_id" ON "spree_stock_movements" ("stock_item_id")  (0.3ms) INSERT INTO "spree_stock_movements" ("id","stock_item_id","quantity","action","created_at","updated_at","source_type","destination_type","destination_id","originator_type","originator_id") SELECT "id","stock_item_id","quantity","action","created_at","updated_at","source_type","destination_type","destination_id","originator_type","originator_id" FROM "aspree_stock_movements"  (0.2ms) DROP TABLE "aspree_stock_movements"  (0.2ms) CREATE TEMPORARY TABLE "aspree_stock_movements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_item_id" integer, "quantity" integer DEFAULT 0, "action" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "source_type" varchar, "destination_type" varchar, "destination_id" integer, "originator_type" varchar, "originator_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index'   (0.3ms) CREATE INDEX "tindex_aspree_stock_movements_on_stock_item_id" ON "aspree_stock_movements" ("stock_item_id")  (0.1ms) INSERT INTO "aspree_stock_movements" ("id","stock_item_id","quantity","action","created_at","updated_at","source_type","destination_type","destination_id","originator_type","originator_id") SELECT "id","stock_item_id","quantity","action","created_at","updated_at","source_type","destination_type","destination_id","originator_type","originator_id" FROM "spree_stock_movements"  (0.2ms) DROP TABLE "spree_stock_movements"  (0.3ms) CREATE TABLE "spree_stock_movements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_item_id" integer, "quantity" integer DEFAULT 0, "action" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "destination_type" varchar, "destination_id" integer, "originator_type" varchar, "originator_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_stock_movements_on_stock_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_stock_movements_on_stock_item_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_stock_movements_on_stock_item_id" ON "spree_stock_movements" ("stock_item_id")  (0.1ms) INSERT INTO "spree_stock_movements" ("id","stock_item_id","quantity","action","created_at","updated_at","destination_type","destination_id","originator_type","originator_id") SELECT "id","stock_item_id","quantity","action","created_at","updated_at","destination_type","destination_id","originator_type","originator_id" FROM "aspree_stock_movements"  (0.2ms) DROP TABLE "aspree_stock_movements"  (0.3ms) CREATE TEMPORARY TABLE "aspree_stock_movements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_item_id" integer, "quantity" integer DEFAULT 0, "action" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "destination_type" varchar, "destination_id" integer, "originator_type" varchar, "originator_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_stock_movements_on_stock_item_id" ON "aspree_stock_movements" ("stock_item_id")  (0.2ms) INSERT INTO "aspree_stock_movements" ("id","stock_item_id","quantity","action","created_at","updated_at","destination_type","destination_id","originator_type","originator_id") SELECT "id","stock_item_id","quantity","action","created_at","updated_at","destination_type","destination_id","originator_type","originator_id" FROM "spree_stock_movements"  (0.5ms) DROP TABLE "spree_stock_movements"  (0.2ms) CREATE TABLE "spree_stock_movements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_item_id" integer, "quantity" integer DEFAULT 0, "action" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "destination_type" varchar, "originator_type" varchar, "originator_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_stock_movements_on_stock_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_stock_movements_on_stock_item_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_stock_movements_on_stock_item_id" ON "spree_stock_movements" ("stock_item_id")  (0.1ms) INSERT INTO "spree_stock_movements" ("id","stock_item_id","quantity","action","created_at","updated_at","destination_type","originator_type","originator_id") SELECT "id","stock_item_id","quantity","action","created_at","updated_at","destination_type","originator_type","originator_id" FROM "aspree_stock_movements"  (0.2ms) DROP TABLE "aspree_stock_movements"  (0.2ms) CREATE TEMPORARY TABLE "aspree_stock_movements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_item_id" integer, "quantity" integer DEFAULT 0, "action" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "destination_type" varchar, "originator_type" varchar, "originator_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_stock_movements_on_stock_item_id" ON "aspree_stock_movements" ("stock_item_id")  (0.1ms) INSERT INTO "aspree_stock_movements" ("id","stock_item_id","quantity","action","created_at","updated_at","destination_type","originator_type","originator_id") SELECT "id","stock_item_id","quantity","action","created_at","updated_at","destination_type","originator_type","originator_id" FROM "spree_stock_movements"  (0.2ms) DROP TABLE "spree_stock_movements"  (0.2ms) CREATE TABLE "spree_stock_movements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_item_id" integer, "quantity" integer DEFAULT 0, "action" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "originator_type" varchar, "originator_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_stock_movements_on_stock_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_stock_movements_on_stock_item_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_stock_movements_on_stock_item_id" ON "spree_stock_movements" ("stock_item_id")  (0.1ms) INSERT INTO "spree_stock_movements" ("id","stock_item_id","quantity","action","created_at","updated_at","originator_type","originator_id") SELECT "id","stock_item_id","quantity","action","created_at","updated_at","originator_type","originator_id" FROM "aspree_stock_movements"  (0.2ms) DROP TABLE "aspree_stock_movements" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181887"]]  (109.8ms) commit transaction Migrating to MigrateInventoryUnitSoldToOnHand (20180516181888)  (0.2ms) begin transaction SQL (0.3ms) UPDATE "spree_inventory_units" SET "state" = 'on_hand' WHERE "spree_inventory_units"."state" = ? [["state", "sold"]] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181888"]]  (69.9ms) commit transaction Migrating to AddStockLocationToRma (20180516181889)  (0.2ms) begin transaction  (0.5ms) ALTER TABLE "spree_return_authorizations" ADD "stock_location_id" integer SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181889"]]  (132.6ms) commit transaction Migrating to UpdateShipmentStateForCanceledOrders (20180516181890)  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181890"]]  (88.8ms) commit transaction Migrating to AddSeoMetasToTaxons (20180516181891)  (0.2ms) begin transaction  (1.0ms) ALTER TABLE "spree_taxons" ADD "meta_title" varchar  (0.6ms) ALTER TABLE "spree_taxons" ADD "meta_description" varchar  (0.7ms) ALTER TABLE "spree_taxons" ADD "meta_keywords" varchar SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181891"]]  (78.2ms) commit transaction Migrating to RemoveStockItemAndVariantLock (20180516181892)  (0.1ms) begin transaction  (0.3ms) CREATE TEMPORARY TABLE "aspree_stock_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_location_id" integer, "variant_id" integer, "count_on_hand" integer DEFAULT 0 NOT NULL, "lock_version" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "backorderable" boolean DEFAULT 't')  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='stock_item_by_loc_and_var_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='stock_item_by_loc_and_var_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index'   (0.2ms) CREATE INDEX "tstock_item_by_loc_and_var_id" ON "aspree_stock_items" ("stock_location_id", "variant_id")  (0.2ms) CREATE INDEX "tindex_aspree_stock_items_on_stock_location_id" ON "aspree_stock_items" ("stock_location_id")  (0.1ms) INSERT INTO "aspree_stock_items" ("id","stock_location_id","variant_id","count_on_hand","lock_version","created_at","updated_at","backorderable") SELECT "id","stock_location_id","variant_id","count_on_hand","lock_version","created_at","updated_at","backorderable" FROM "spree_stock_items"  (0.3ms) DROP TABLE "spree_stock_items"  (0.2ms) CREATE TABLE "spree_stock_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_location_id" integer, "variant_id" integer, "count_on_hand" integer DEFAULT 0 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "backorderable" boolean DEFAULT 't')  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_stock_items_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_stock_items_on_stock_location_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tstock_item_by_loc_and_var_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tstock_item_by_loc_and_var_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_stock_items_on_stock_location_id" ON "spree_stock_items" ("stock_location_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index'   (0.2ms) CREATE INDEX "stock_item_by_loc_and_var_id" ON "spree_stock_items" ("stock_location_id", "variant_id")  (0.2ms) INSERT INTO "spree_stock_items" ("id","stock_location_id","variant_id","count_on_hand","created_at","updated_at","backorderable") SELECT "id","stock_location_id","variant_id","count_on_hand","created_at","updated_at","backorderable" FROM "aspree_stock_items"  (0.2ms) DROP TABLE "aspree_stock_items"  (0.2ms) CREATE TEMPORARY TABLE "aspree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2), "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "cost_price" decimal(8,2), "position" integer, "lock_version" integer DEFAULT 0, "cost_currency" varchar)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_variants_on_product_id" ON "aspree_variants" ("product_id")  (0.1ms) INSERT INTO "aspree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","lock_version","cost_currency") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","lock_version","cost_currency" FROM "spree_variants"  (0.4ms) DROP TABLE "spree_variants"  (0.3ms) CREATE TABLE "spree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2), "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "cost_price" decimal(8,2), "position" integer, "cost_currency" varchar)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_product_id" ON "spree_variants" ("product_id")  (0.1ms) INSERT INTO "spree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency" FROM "aspree_variants"  (0.2ms) DROP TABLE "aspree_variants" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181892"]]  (105.4ms) commit transaction Migrating to AddNameToSpreeCreditCards (20180516181893)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "spree_credit_cards" ADD "name" varchar SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181893"]]  (74.1ms) commit transaction Migrating to UpdateNameFieldsOnSpreeCreditCards (20180516181894)  (0.2ms) begin transaction  (0.2ms) UPDATE spree_credit_cards SET name = first_name || ' ' || last_name SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181894"]]  (73.0ms) commit transaction Migrating to AddIndexToSourceColumnsOnAdjustments (20180516181895)  (0.1ms) begin transaction  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_adjustments_on_order_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_adjustments_on_source_type_and_source_id" ON "spree_adjustments" ("source_type", "source_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181895"]]  (113.2ms) commit transaction Migrating to UpdateAdjustmentStates (20180516181896)  (0.2ms) begin transaction Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE ("spree_orders"."completed_at" IS NOT NULL) ORDER BY "spree_orders"."id" ASC LIMIT ? [["LIMIT", 1000]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."state" = 'shipped' ORDER BY "spree_shipments"."id" ASC LIMIT ? [["LIMIT", 1000]] Creating scope :open. Overwriting existing method Spree::Adjustment.open. SQL (0.1ms) UPDATE "spree_adjustments" SET "state" = 'open' WHERE "spree_adjustments"."state" IS NULL SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181896"]]  (66.4ms) commit transaction Migrating to AddShippingRatesToShipments (20180516181897)  (0.1ms) begin transaction Spree::Shipment Load (0.4ms) SELECT "spree_shipments".* FROM "spree_shipments" ORDER BY "spree_shipments"."id" ASC LIMIT ? [["LIMIT", 1000]]  (0.3ms) CREATE TEMPORARY TABLE "aspree_shipments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tracking" varchar, "number" varchar, "cost" decimal(8,2), "shipped_at" datetime, "order_id" integer, "shipping_method_id" integer, "address_id" integer, "state" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "stock_location_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_shipments_on_order_id" ON "aspree_shipments" ("order_id")  (0.2ms) CREATE INDEX "tindex_shipments_on_number" ON "aspree_shipments" ("number")  (0.1ms) INSERT INTO "aspree_shipments" ("id","tracking","number","cost","shipped_at","order_id","shipping_method_id","address_id","state","created_at","updated_at","stock_location_id") SELECT "id","tracking","number","cost","shipped_at","order_id","shipping_method_id","address_id","state","created_at","updated_at","stock_location_id" FROM "spree_shipments"  (0.5ms) DROP TABLE "spree_shipments"  (0.4ms) CREATE TABLE "spree_shipments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tracking" varchar, "number" varchar, "cost" decimal(8,2), "shipped_at" datetime, "order_id" integer, "address_id" integer, "state" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "stock_location_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_shipments_on_number' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_shipments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_shipments_on_number" ON "spree_shipments" ("number")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.3ms) CREATE INDEX "index_spree_shipments_on_order_id" ON "spree_shipments" ("order_id")  (0.2ms) INSERT INTO "spree_shipments" ("id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id") SELECT "id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id" FROM "aspree_shipments"  (0.3ms) DROP TABLE "aspree_shipments" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181897"]]  (102.1ms) commit transaction Migrating to CreateSpreeStockTransfers (20180516181898)  (0.2ms) begin transaction  (0.6ms) CREATE TABLE "spree_stock_transfers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "reference_number" varchar, "source_location_id" integer, "destination_location_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.3ms) CREATE INDEX "index_spree_stock_transfers_on_source_location_id" ON "spree_stock_transfers" ("source_location_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_stock_transfers_on_destination_location_id" ON "spree_stock_transfers" ("destination_location_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181898"]]  (95.2ms) commit transaction Migrating to DropProductsCountOnHand (20180516181899)  (0.1ms) begin transaction  (0.3ms) CREATE TEMPORARY TABLE "aspree_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar DEFAULT '' NOT NULL, "description" text, "available_on" datetime, "deleted_at" datetime, "permalink" varchar, "meta_description" text, "meta_keywords" varchar, "tax_category_id" integer, "shipping_category_id" integer, "count_on_hand" integer DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_permalink' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_products_on_permalink" ON "aspree_products" ("permalink")  (0.2ms) CREATE INDEX "tindex_aspree_products_on_name" ON "aspree_products" ("name")  (0.2ms) CREATE INDEX "tindex_aspree_products_on_deleted_at" ON "aspree_products" ("deleted_at")  (0.2ms) CREATE INDEX "tindex_aspree_products_on_available_on" ON "aspree_products" ("available_on")  (0.2ms) INSERT INTO "aspree_products" ("id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","count_on_hand","created_at","updated_at") SELECT "id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","count_on_hand","created_at","updated_at" FROM "spree_products"  (0.5ms) DROP TABLE "spree_products"  (0.3ms) CREATE TABLE "spree_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar DEFAULT '' NOT NULL, "description" text, "available_on" datetime, "deleted_at" datetime, "permalink" varchar, "meta_description" text, "meta_keywords" varchar, "tax_category_id" integer, "shipping_category_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_available_on' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_permalink' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_available_on" ON "spree_products" ("available_on")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_deleted_at" ON "spree_products" ("deleted_at")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_name" ON "spree_products" ("name")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_permalink" ON "spree_products" ("permalink")  (0.3ms) INSERT INTO "spree_products" ("id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","created_at","updated_at") SELECT "id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","created_at","updated_at" FROM "aspree_products"  (0.3ms) DROP TABLE "aspree_products" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181899"]]  (71.2ms) commit transaction Migrating to SetDefaultShippingRateCost (20180516181900)  (0.2ms) begin transaction  (0.5ms) CREATE TEMPORARY TABLE "aspree_shipping_rates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "shipment_id" integer, "shipping_method_id" integer, "selected" boolean DEFAULT 'f', "cost" decimal(8,2), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='spree_shipping_rates_join_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_shipping_rates_join_index' AND type='index'   (0.4ms) CREATE UNIQUE INDEX "tspree_shipping_rates_join_index" ON "aspree_shipping_rates" ("shipment_id", "shipping_method_id")  (0.3ms) INSERT INTO "aspree_shipping_rates" ("id","shipment_id","shipping_method_id","selected","cost","created_at","updated_at") SELECT "id","shipment_id","shipping_method_id","selected","cost","created_at","updated_at" FROM "spree_shipping_rates"  (0.8ms) DROP TABLE "spree_shipping_rates"  (0.9ms) CREATE TABLE "spree_shipping_rates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "shipment_id" integer, "shipping_method_id" integer, "selected" boolean DEFAULT 'f', "cost" decimal(8,2) DEFAULT 0, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='tspree_shipping_rates_join_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tspree_shipping_rates_join_index' AND type='index'   (0.4ms) CREATE UNIQUE INDEX "spree_shipping_rates_join_index" ON "spree_shipping_rates" ("shipment_id", "shipping_method_id")  (0.1ms) INSERT INTO "spree_shipping_rates" ("id","shipment_id","shipping_method_id","selected","cost","created_at","updated_at") SELECT "id","shipment_id","shipping_method_id","selected","cost","created_at","updated_at" FROM "aspree_shipping_rates"  (0.2ms) DROP TABLE "aspree_shipping_rates" SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181900"]]  (97.4ms) commit transaction Migrating to AddNumberToStockTransfer (20180516181901)  (0.3ms) begin transaction  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index'   (0.4ms) DROP INDEX "index_spree_stock_transfers_on_source_location_id"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index'   (0.2ms) DROP INDEX "index_spree_stock_transfers_on_destination_location_id"  (0.2ms) CREATE TEMPORARY TABLE "aspree_stock_transfers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "reference" varchar, "source_location_id" integer, "destination_location_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) INSERT INTO "aspree_stock_transfers" ("id","type","reference","source_location_id","destination_location_id","created_at","updated_at") SELECT "id","type","reference_number","source_location_id","destination_location_id","created_at","updated_at" FROM "spree_stock_transfers"  (0.2ms) DROP TABLE "spree_stock_transfers"  (0.4ms) CREATE TABLE "spree_stock_transfers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "reference" varchar, "source_location_id" integer, "destination_location_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) INSERT INTO "spree_stock_transfers" ("id","type","reference","source_location_id","destination_location_id","created_at","updated_at") SELECT "id","type","reference","source_location_id","destination_location_id","created_at","updated_at" FROM "aspree_stock_transfers"  (0.2ms) DROP TABLE "aspree_stock_transfers"  (0.3ms) ALTER TABLE "spree_stock_transfers" ADD "number" varchar Spree::StockTransfer Load (0.1ms) SELECT "spree_stock_transfers".* FROM "spree_stock_transfers" ORDER BY "spree_stock_transfers"."id" ASC LIMIT ? [["LIMIT", 1000]]  (0.2ms) CREATE INDEX "index_spree_stock_transfers_on_number" ON "spree_stock_transfers" ("number")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_number' AND type='index'   (1.2ms) CREATE INDEX "index_spree_stock_transfers_on_source_location_id" ON "spree_stock_transfers" ("source_location_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_stock_transfers_on_destination_location_id" ON "spree_stock_transfers" ("destination_location_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181901"]]  (113.2ms) commit transaction Migrating to AddSkuIndexToSpreeVariants (20180516181902)  (0.1ms) begin transaction  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.7ms) CREATE INDEX "index_spree_variants_on_sku" ON "spree_variants" ("sku") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181902"]]  (91.1ms) commit transaction Migrating to AddBackorderableDefaultToSpreeStockLocation (20180516181903)  (0.2ms) begin transaction  (1.1ms) ALTER TABLE "spree_stock_locations" ADD "backorderable_default" boolean DEFAULT 't' SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181903"]]  (70.2ms) commit transaction Migrating to AddPropageAllVariantsToSpreeStockLocation (20180516181904)  (0.1ms) begin transaction  (0.8ms) ALTER TABLE "spree_stock_locations" ADD "propagate_all_variants" boolean DEFAULT 't' SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181904"]]  (95.6ms) commit transaction Migrating to RenameShippingMethodsZonesToSpreeShippingMethodsZones (20180516181905)  (0.1ms) begin transaction  (0.9ms) ALTER TABLE "shipping_methods_zones" RENAME TO "spree_shipping_methods_zones" SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181905"]]  (72.4ms) commit transaction Migrating to AddUserIdIndexToSpreeOrders (20180516181906)  (0.1ms) begin transaction  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.3ms) CREATE INDEX "index_spree_orders_on_user_id" ON "spree_orders" ("user_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181906"]]  (109.4ms) commit transaction Migrating to AddUpdatedAtToSpreeCountries (20180516181907)  (0.2ms) begin transaction  (0.9ms) ALTER TABLE "spree_countries" ADD "updated_at" datetime SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181907"]]  (57.5ms) commit transaction Migrating to AddUpdatedAtToSpreeStates (20180516181908)  (0.1ms) begin transaction  (1.1ms) ALTER TABLE "spree_states" ADD "updated_at" datetime SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181908"]]  (94.7ms) commit transaction Migrating to AddCvvResultCodeAndCvvResultMessageToSpreePayments (20180516181909)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "spree_payments" ADD "cvv_response_code" varchar  (0.3ms) ALTER TABLE "spree_payments" ADD "cvv_response_message" varchar SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181909"]]  (62.3ms) commit transaction Migrating to AddUniqueIndexToPermalinkOnSpreeProducts (20180516181910)  (0.1ms) begin transaction  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_permalink' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.3ms) CREATE UNIQUE INDEX "permalink_idx_unique" ON "spree_products" ("permalink") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181910"]]  (87.5ms) commit transaction Migrating to AddUniqueIndexToOrdersShipmentsAndStockTransfers (20180516181911)  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181911"]]  (90.7ms) commit transaction Migrating to AddDeletedAtToSpreeTaxRates (20180516181912)  (0.1ms) begin transaction  (1.0ms) ALTER TABLE "spree_tax_rates" ADD "deleted_at" datetime SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181912"]]  (60.7ms) commit transaction Migrating to RemoveLockVersionFromInventoryUnits (20180516181913)  (0.1ms) begin transaction  (0.6ms) CREATE TEMPORARY TABLE "aspree_inventory_units" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "lock_version" integer DEFAULT 0, "state" varchar, "variant_id" integer, "order_id" integer, "shipment_id" integer, "return_authorization_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "pending" boolean DEFAULT 't')  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_variant_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_shipment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_shipment_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_order_id' AND type='index'   (0.4ms) CREATE INDEX "tindex_inventory_units_on_variant_id" ON "aspree_inventory_units" ("variant_id")  (0.3ms) CREATE INDEX "tindex_inventory_units_on_shipment_id" ON "aspree_inventory_units" ("shipment_id")  (0.3ms) CREATE INDEX "tindex_inventory_units_on_order_id" ON "aspree_inventory_units" ("order_id")  (0.2ms) INSERT INTO "aspree_inventory_units" ("id","lock_version","state","variant_id","order_id","shipment_id","return_authorization_id","created_at","updated_at","pending") SELECT "id","lock_version","state","variant_id","order_id","shipment_id","return_authorization_id","created_at","updated_at","pending" FROM "spree_inventory_units"  (0.6ms) DROP TABLE "spree_inventory_units"  (0.3ms) CREATE TABLE "spree_inventory_units" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar, "variant_id" integer, "order_id" integer, "shipment_id" integer, "return_authorization_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "pending" boolean DEFAULT 't')  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_inventory_units_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_inventory_units_on_shipment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_inventory_units_on_shipment_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_inventory_units_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_inventory_units_on_variant_id' AND type='index'   (0.2ms) CREATE INDEX "index_inventory_units_on_order_id" ON "spree_inventory_units" ("order_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_inventory_units_on_shipment_id" ON "spree_inventory_units" ("shipment_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_shipment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_shipment_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_order_id' AND type='index'   (0.3ms) CREATE INDEX "index_inventory_units_on_variant_id" ON "spree_inventory_units" ("variant_id")  (0.2ms) INSERT INTO "spree_inventory_units" ("id","state","variant_id","order_id","shipment_id","return_authorization_id","created_at","updated_at","pending") SELECT "id","state","variant_id","order_id","shipment_id","return_authorization_id","created_at","updated_at","pending" FROM "aspree_inventory_units"  (0.3ms) DROP TABLE "aspree_inventory_units" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181913"]]  (85.3ms) commit transaction Migrating to AddCostPriceToLineItem (20180516181914)  (0.2ms) begin transaction  (0.8ms) ALTER TABLE "spree_line_items" ADD "cost_price" decimal(8,2) SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181914"]]  (87.9ms) commit transaction Migrating to SetBackorderableToDefaultToFalse (20180516181915)  (0.1ms) begin transaction  (0.3ms) CREATE TEMPORARY TABLE "aspree_stock_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_location_id" integer, "variant_id" integer, "count_on_hand" integer DEFAULT 0 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "backorderable" boolean DEFAULT 't')  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='stock_item_by_loc_and_var_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='stock_item_by_loc_and_var_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index'   (0.2ms) CREATE INDEX "tstock_item_by_loc_and_var_id" ON "aspree_stock_items" ("stock_location_id", "variant_id")  (0.2ms) CREATE INDEX "tindex_aspree_stock_items_on_stock_location_id" ON "aspree_stock_items" ("stock_location_id")  (0.2ms) INSERT INTO "aspree_stock_items" ("id","stock_location_id","variant_id","count_on_hand","created_at","updated_at","backorderable") SELECT "id","stock_location_id","variant_id","count_on_hand","created_at","updated_at","backorderable" FROM "spree_stock_items"  (0.7ms) DROP TABLE "spree_stock_items"  (0.7ms) CREATE TABLE "spree_stock_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "stock_location_id" integer, "variant_id" integer, "count_on_hand" integer DEFAULT 0 NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "backorderable" boolean DEFAULT 'f')  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_stock_items_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_stock_items_on_stock_location_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='tstock_item_by_loc_and_var_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tstock_item_by_loc_and_var_id' AND type='index'   (0.4ms) CREATE INDEX "index_spree_stock_items_on_stock_location_id" ON "spree_stock_items" ("stock_location_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index'   (0.2ms) CREATE INDEX "stock_item_by_loc_and_var_id" ON "spree_stock_items" ("stock_location_id", "variant_id")  (0.3ms) INSERT INTO "spree_stock_items" ("id","stock_location_id","variant_id","count_on_hand","created_at","updated_at","backorderable") SELECT "id","stock_location_id","variant_id","count_on_hand","created_at","updated_at","backorderable" FROM "aspree_stock_items"  (0.3ms) DROP TABLE "aspree_stock_items"  (0.3ms) CREATE TEMPORARY TABLE "aspree_stock_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "default" boolean DEFAULT 'f' NOT NULL, "address1" varchar, "address2" varchar, "city" varchar, "state_id" integer, "state_name" varchar, "country_id" integer, "zipcode" varchar, "phone" varchar, "active" boolean DEFAULT 't', "backorderable_default" boolean DEFAULT 't', "propagate_all_variants" boolean DEFAULT 't')  (0.2ms) INSERT INTO "aspree_stock_locations" ("id","name","created_at","updated_at","default","address1","address2","city","state_id","state_name","country_id","zipcode","phone","active","backorderable_default","propagate_all_variants") SELECT "id","name","created_at","updated_at","default","address1","address2","city","state_id","state_name","country_id","zipcode","phone","active","backorderable_default","propagate_all_variants" FROM "spree_stock_locations"  (0.3ms) DROP TABLE "spree_stock_locations"  (0.4ms) CREATE TABLE "spree_stock_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "default" boolean DEFAULT 'f' NOT NULL, "address1" varchar, "address2" varchar, "city" varchar, "state_id" integer, "state_name" varchar, "country_id" integer, "zipcode" varchar, "phone" varchar, "active" boolean DEFAULT 't', "backorderable_default" boolean DEFAULT 'f', "propagate_all_variants" boolean DEFAULT 't')  (0.2ms) INSERT INTO "spree_stock_locations" ("id","name","created_at","updated_at","default","address1","address2","city","state_id","state_name","country_id","zipcode","phone","active","backorderable_default","propagate_all_variants") SELECT "id","name","created_at","updated_at","default","address1","address2","city","state_id","state_name","country_id","zipcode","phone","active","backorderable_default","propagate_all_variants" FROM "aspree_stock_locations"  (0.2ms) DROP TABLE "aspree_stock_locations" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181915"]]  (77.4ms) commit transaction Migrating to AddCreatedByIdToSpreeOrders (20180516181916)  (0.2ms) begin transaction  (1.0ms) ALTER TABLE "spree_orders" ADD "created_by_id" integer SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181916"]]  (71.8ms) commit transaction Migrating to IndexCompletedAtOnSpreeOrders (20180516181917)  (0.2ms) begin transaction  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.4ms) CREATE INDEX "index_spree_orders_on_completed_at" ON "spree_orders" ("completed_at") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181917"]]  (101.7ms) commit transaction Migrating to AddTaxCategoryIdToSpreeLineItems (20180516181918)  (0.1ms) begin transaction  (1.0ms) ALTER TABLE "spree_line_items" ADD "tax_category_id" integer SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181918"]]  (53.0ms) commit transaction Migrating to MigrateTaxCategoriesToLineItems (20180516181919)  (0.1ms) begin transaction Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" ORDER BY "spree_line_items"."id" ASC LIMIT ? [["LIMIT", 1000]] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181919"]]  (76.9ms) commit transaction Migrating to DropSpreeMailMethods (20180516181920)  (0.2ms) begin transaction  (0.8ms) DROP TABLE "spree_mail_methods" SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181920"]]  (82.6ms) commit transaction Migrating to SetDefaultStockLocationOnShipments (20180516181921)  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (stock_location_id IS NULL) SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181921"]]  (94.3ms) commit transaction Migrating to UpgradeAdjustments (20180516181922)  (0.1ms) begin transaction Spree::Adjustment Load (0.7ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."source_type" = ? ORDER BY "spree_adjustments"."id" ASC LIMIT ? [["source_type", "Spree::Shipment"], ["LIMIT", 1000]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."originator_type" = ? ORDER BY "spree_adjustments"."id" ASC LIMIT ? [["originator_type", "Spree::TaxRate"], ["LIMIT", 1000]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."originator_type" = ? ORDER BY "spree_adjustments"."id" ASC LIMIT ? [["originator_type", "Spree::PromotionAction"], ["LIMIT", 1000]] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181922"]]  (67.7ms) commit transaction Migrating to RenameAdjustmentFields (20180516181923)  (0.2ms) begin transaction  (0.6ms) CREATE TEMPORARY TABLE "aspree_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "source_type" varchar, "source_id" integer, "adjustable_type" varchar, "adjustable_id" integer, "originator_type" varchar, "originator_id" integer, "amount" decimal(10,2), "label" varchar, "mandatory" boolean, "eligible" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "state" varchar)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_source_type_and_source_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_source_type_and_source_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_adjustments_on_order_id' AND type='index'   (0.5ms) CREATE INDEX "tindex_aspree_adjustments_on_source_type_and_source_id" ON "aspree_adjustments" ("source_type", "source_id")  (0.2ms) CREATE INDEX "tindex_adjustments_on_order_id" ON "aspree_adjustments" ("adjustable_id")  (0.2ms) INSERT INTO "aspree_adjustments" ("id","source_type","source_id","adjustable_type","adjustable_id","originator_type","originator_id","amount","label","mandatory","eligible","created_at","updated_at","state") SELECT "id","source_type","source_id","adjustable_type","adjustable_id","originator_type","originator_id","amount","label","mandatory","eligible","created_at","updated_at","state" FROM "spree_adjustments"  (0.5ms) DROP TABLE "spree_adjustments"  (0.3ms) CREATE TABLE "spree_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "source_type" varchar, "source_id" integer, "adjustable_type" varchar, "adjustable_id" integer, "originator_type" varchar, "amount" decimal(10,2), "label" varchar, "mandatory" boolean, "eligible" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "state" varchar)  (0.8ms)  SELECT sql FROM sqlite_master WHERE name='tindex_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_adjustments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_adjustments_on_source_type_and_source_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_adjustments_on_source_type_and_source_id' AND type='index'   (0.2ms) CREATE INDEX "index_adjustments_on_order_id" ON "spree_adjustments" ("adjustable_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_adjustments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_adjustments_on_source_type_and_source_id" ON "spree_adjustments" ("source_type", "source_id")  (0.3ms) INSERT INTO "spree_adjustments" ("id","source_type","source_id","adjustable_type","adjustable_id","originator_type","amount","label","mandatory","eligible","created_at","updated_at","state") SELECT "id","source_type","source_id","adjustable_type","adjustable_id","originator_type","amount","label","mandatory","eligible","created_at","updated_at","state" FROM "aspree_adjustments"  (0.3ms) DROP TABLE "aspree_adjustments"  (0.2ms) CREATE TEMPORARY TABLE "aspree_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "source_type" varchar, "source_id" integer, "adjustable_type" varchar, "adjustable_id" integer, "originator_type" varchar, "amount" decimal(10,2), "label" varchar, "mandatory" boolean, "eligible" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "state" varchar)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_source_type_and_source_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_source_type_and_source_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_adjustments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_adjustments_on_source_type_and_source_id" ON "aspree_adjustments" ("source_type", "source_id")  (0.2ms) CREATE INDEX "tindex_adjustments_on_order_id" ON "aspree_adjustments" ("adjustable_id")  (0.1ms) INSERT INTO "aspree_adjustments" ("id","source_type","source_id","adjustable_type","adjustable_id","originator_type","amount","label","mandatory","eligible","created_at","updated_at","state") SELECT "id","source_type","source_id","adjustable_type","adjustable_id","originator_type","amount","label","mandatory","eligible","created_at","updated_at","state" FROM "spree_adjustments"  (0.3ms) DROP TABLE "spree_adjustments"  (0.3ms) CREATE TABLE "spree_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "source_type" varchar, "source_id" integer, "adjustable_type" varchar, "adjustable_id" integer, "amount" decimal(10,2), "label" varchar, "mandatory" boolean, "eligible" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "state" varchar)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_adjustments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_adjustments_on_source_type_and_source_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_adjustments_on_source_type_and_source_id' AND type='index'   (0.2ms) CREATE INDEX "index_adjustments_on_order_id" ON "spree_adjustments" ("adjustable_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_adjustments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_adjustments_on_source_type_and_source_id" ON "spree_adjustments" ("source_type", "source_id")  (0.1ms) INSERT INTO "spree_adjustments" ("id","source_type","source_id","adjustable_type","adjustable_id","amount","label","mandatory","eligible","created_at","updated_at","state") SELECT "id","source_type","source_id","adjustable_type","adjustable_id","amount","label","mandatory","eligible","created_at","updated_at","state" FROM "aspree_adjustments"  (0.2ms) DROP TABLE "aspree_adjustments"  (0.3ms) ALTER TABLE "spree_adjustments" ADD "order_id" integer Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = ? ORDER BY "spree_adjustments"."id" ASC LIMIT ? [["adjustable_type", "Spree::Order"], ["LIMIT", 1000]] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181923"]]  (69.0ms) commit transaction Migrating to AddAdminNameColumnToSpreeShippingMethods (20180516181924)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "spree_shipping_methods" ADD "admin_name" varchar SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181924"]]  (73.4ms) commit transaction Migrating to AddAdminNameColumnToSpreeStockLocations (20180516181925)  (0.1ms) begin transaction  (1.0ms) ALTER TABLE "spree_stock_locations" ADD "admin_name" varchar SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181925"]]  (93.9ms) commit transaction Migrating to AddShipmentTotalToSpreeOrders (20180516181926)  (0.1ms) begin transaction  (1.2ms) ALTER TABLE "spree_orders" ADD "shipment_total" decimal(10,2) DEFAULT 0.0 NOT NULL SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181926"]]  (70.5ms) commit transaction Migrating to ExpandOrderNumberSize (20180516181927)  (0.2ms) begin transaction  (0.3ms) CREATE TEMPORARY TABLE "aspree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(15), "item_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "total" decimal(10,2) DEFAULT '0.0' NOT NULL, "state" varchar, "adjustment_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(10,2) DEFAULT '0.0', "shipping_method_id" integer, "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "last_ip_address" varchar, "created_by_id" integer, "shipment_total" decimal(10,2) DEFAULT '0.0' NOT NULL)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_orders_on_completed_at" ON "aspree_orders" ("completed_at")  (0.2ms) CREATE INDEX "tindex_aspree_orders_on_user_id" ON "aspree_orders" ("user_id")  (0.2ms) CREATE INDEX "tindex_aspree_orders_on_number" ON "aspree_orders" ("number")  (0.2ms) INSERT INTO "aspree_orders" ("id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address","created_by_id","shipment_total") SELECT "id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address","created_by_id","shipment_total" FROM "spree_orders"  (0.5ms) DROP TABLE "spree_orders"  (0.4ms) CREATE TABLE "spree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(32), "item_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "total" decimal(10,2) DEFAULT '0.0' NOT NULL, "state" varchar, "adjustment_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(10,2) DEFAULT '0.0', "shipping_method_id" integer, "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "last_ip_address" varchar, "created_by_id" integer, "shipment_total" decimal(10,2) DEFAULT '0.0' NOT NULL)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_number' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_completed_at' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_number" ON "spree_orders" ("number")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.5ms) CREATE INDEX "index_spree_orders_on_user_id" ON "spree_orders" ("user_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.3ms) CREATE INDEX "index_spree_orders_on_completed_at" ON "spree_orders" ("completed_at")  (0.4ms) INSERT INTO "spree_orders" ("id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address","created_by_id","shipment_total") SELECT "id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address","created_by_id","shipment_total" FROM "aspree_orders"  (0.4ms) DROP TABLE "aspree_orders" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181927"]]  (140.5ms) commit transaction Migrating to RenameActivatorsToPromotions (20180516181928)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "spree_activators" RENAME TO "spree_promotions" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181928"]]  (92.7ms) commit transaction Migrating to AddAdjustmentTotalToLineItems (20180516181929)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "spree_line_items" ADD "adjustment_total" decimal(10,2) DEFAULT 0.0 SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181929"]]  (83.4ms) commit transaction Migrating to AddAdjustmentTotalToShipments (20180516181930)  (0.1ms) begin transaction  (1.1ms) ALTER TABLE "spree_shipments" ADD "adjustment_total" decimal(10,2) DEFAULT 0.0 SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181930"]]  (83.0ms) commit transaction Migrating to AddDepthToSpreeTaxons (20180516181931)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "spree_taxons" ADD "depth" integer Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181931"]]  (64.8ms) commit transaction Migrating to AddTaxTotalToLineItemsShipmentsAndOrders (20180516181932)  (0.2ms) begin transaction  (1.3ms) ALTER TABLE "spree_line_items" ADD "tax_total" decimal(10,2) DEFAULT 0.0  (0.8ms) ALTER TABLE "spree_shipments" ADD "tax_total" decimal(10,2) DEFAULT 0.0  (0.9ms) ALTER TABLE "spree_orders" ADD "tax_total" decimal(10,2) DEFAULT 0.0 SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181932"]]  (86.3ms) commit transaction Migrating to AddShippingCategoryToShippingMethodsAndProducts (20180516181933)  (0.1ms) begin transaction Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" ORDER BY "spree_shipping_categories"."id" ASC LIMIT ? [["LIMIT", 1]] Spree::ShippingCategory Exists (0.5ms) SELECT 1 AS one FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."name" = ? LIMIT ? [["name", "Default"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "spree_shipping_categories" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Default"], ["created_at", "2018-05-16 18:23:37.005264"], ["updated_at", "2018-05-16 18:23:37.005264"]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."deleted_at" IS NULL SQL (0.1ms) UPDATE "spree_products" SET "shipping_category_id" = 1 WHERE "spree_products"."deleted_at" IS NULL AND "spree_products"."shipping_category_id" IS NULL SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181933"]]  (81.8ms) commit transaction Migrating to MigrateOldShippingCalculators (20180516181934)  (0.5ms) begin transaction Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."deleted_at" IS NULL SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181934"]]  (82.3ms) commit transaction Migrating to AddCodeToSpreePromotionRules (20180516181935)  (0.1ms) begin transaction  (0.9ms) ALTER TABLE "spree_promotion_rules" ADD "code" varchar SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181935"]]  (62.0ms) commit transaction Migrating to ChangeStatesRequiredForCountries (20180516181936)  (0.1ms) begin transaction  (0.4ms) CREATE TEMPORARY TABLE "aspree_countries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "iso_name" varchar, "iso" varchar, "iso3" varchar, "name" varchar, "numcode" integer, "states_required" boolean DEFAULT 't', "updated_at" datetime)  (0.2ms) INSERT INTO "aspree_countries" ("id","iso_name","iso","iso3","name","numcode","states_required","updated_at") SELECT "id","iso_name","iso","iso3","name","numcode","states_required","updated_at" FROM "spree_countries"  (0.4ms) DROP TABLE "spree_countries"  (0.3ms) CREATE TABLE "spree_countries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "iso_name" varchar, "iso" varchar, "iso3" varchar, "name" varchar, "numcode" integer, "states_required" boolean DEFAULT 'f', "updated_at" datetime)  (0.1ms) INSERT INTO "spree_countries" ("id","iso_name","iso","iso3","name","numcode","states_required","updated_at") SELECT "id","iso_name","iso","iso3","name","numcode","states_required","updated_at" FROM "aspree_countries"  (0.2ms) DROP TABLE "aspree_countries" SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181936"]]  (93.9ms) commit transaction Migrating to AddDeletedAtToSpreeStockItems (20180516181937)  (0.2ms) begin transaction  (1.0ms) ALTER TABLE "spree_stock_items" ADD "deleted_at" datetime SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181937"]]  (100.1ms) commit transaction Migrating to RemovePromotionsEventNameField (20180516181938)  (0.1ms) begin transaction  (0.6ms) CREATE TEMPORARY TABLE "aspree_promotions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "description" varchar, "expires_at" datetime, "starts_at" datetime, "name" varchar, "event_name" varchar, "type" varchar, "usage_limit" integer, "match_policy" varchar DEFAULT 'all', "code" varchar, "advertise" boolean DEFAULT 'f', "path" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) INSERT INTO "aspree_promotions" ("id","description","expires_at","starts_at","name","event_name","type","usage_limit","match_policy","code","advertise","path","created_at","updated_at") SELECT "id","description","expires_at","starts_at","name","event_name","type","usage_limit","match_policy","code","advertise","path","created_at","updated_at" FROM "spree_promotions"  (0.5ms) DROP TABLE "spree_promotions"  (0.5ms) CREATE TABLE "spree_promotions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "description" varchar, "expires_at" datetime, "starts_at" datetime, "name" varchar, "type" varchar, "usage_limit" integer, "match_policy" varchar DEFAULT 'all', "code" varchar, "advertise" boolean DEFAULT 'f', "path" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.3ms) INSERT INTO "spree_promotions" ("id","description","expires_at","starts_at","name","type","usage_limit","match_policy","code","advertise","path","created_at","updated_at") SELECT "id","description","expires_at","starts_at","name","type","usage_limit","match_policy","code","advertise","path","created_at","updated_at" FROM "aspree_promotions"  (0.2ms) DROP TABLE "aspree_promotions" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181938"]]  (80.2ms) commit transaction Migrating to AddPromoTotalToLineItemsAndShipmentsAndOrders (20180516181939)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "spree_line_items" ADD "promo_total" decimal(10,2) DEFAULT 0.0  (0.3ms) ALTER TABLE "spree_shipments" ADD "promo_total" decimal(10,2) DEFAULT 0.0  (0.4ms) ALTER TABLE "spree_orders" ADD "promo_total" decimal(10,2) DEFAULT 0.0 SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181939"]]  (125.4ms) commit transaction Migrating to RemoveUnusedCreditCardFields (20180516181940)  (0.4ms) begin transaction  (0.6ms) CREATE TEMPORARY TABLE "aspree_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "month" varchar, "year" varchar, "cc_type" varchar, "last_digits" varchar, "first_name" varchar, "last_name" varchar, "start_month" varchar, "start_year" varchar, "issue_number" varchar, "address_id" integer, "gateway_customer_profile_id" varchar, "gateway_payment_profile_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "name" varchar)  (0.2ms) INSERT INTO "aspree_credit_cards" ("id","month","year","cc_type","last_digits","first_name","last_name","start_month","start_year","issue_number","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name") SELECT "id","month","year","cc_type","last_digits","first_name","last_name","start_month","start_year","issue_number","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name" FROM "spree_credit_cards"  (0.4ms) DROP TABLE "spree_credit_cards"  (0.5ms) CREATE TABLE "spree_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "month" varchar, "year" varchar, "cc_type" varchar, "last_digits" varchar, "first_name" varchar, "last_name" varchar, "start_year" varchar, "issue_number" varchar, "address_id" integer, "gateway_customer_profile_id" varchar, "gateway_payment_profile_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "name" varchar)  (0.2ms) INSERT INTO "spree_credit_cards" ("id","month","year","cc_type","last_digits","first_name","last_name","start_year","issue_number","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name") SELECT "id","month","year","cc_type","last_digits","first_name","last_name","start_year","issue_number","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name" FROM "aspree_credit_cards"  (0.2ms) DROP TABLE "aspree_credit_cards"  (0.2ms) CREATE TEMPORARY TABLE "aspree_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "month" varchar, "year" varchar, "cc_type" varchar, "last_digits" varchar, "first_name" varchar, "last_name" varchar, "start_year" varchar, "issue_number" varchar, "address_id" integer, "gateway_customer_profile_id" varchar, "gateway_payment_profile_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "name" varchar)  (0.1ms) INSERT INTO "aspree_credit_cards" ("id","month","year","cc_type","last_digits","first_name","last_name","start_year","issue_number","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name") SELECT "id","month","year","cc_type","last_digits","first_name","last_name","start_year","issue_number","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name" FROM "spree_credit_cards"  (0.3ms) DROP TABLE "spree_credit_cards"  (0.2ms) CREATE TABLE "spree_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "month" varchar, "year" varchar, "cc_type" varchar, "last_digits" varchar, "first_name" varchar, "last_name" varchar, "issue_number" varchar, "address_id" integer, "gateway_customer_profile_id" varchar, "gateway_payment_profile_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "name" varchar)  (0.1ms) INSERT INTO "spree_credit_cards" ("id","month","year","cc_type","last_digits","first_name","last_name","issue_number","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name") SELECT "id","month","year","cc_type","last_digits","first_name","last_name","issue_number","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name" FROM "aspree_credit_cards"  (0.2ms) DROP TABLE "aspree_credit_cards"  (0.5ms) CREATE TEMPORARY TABLE "aspree_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "month" varchar, "year" varchar, "cc_type" varchar, "last_digits" varchar, "first_name" varchar, "last_name" varchar, "issue_number" varchar, "address_id" integer, "gateway_customer_profile_id" varchar, "gateway_payment_profile_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "name" varchar)  (0.2ms) INSERT INTO "aspree_credit_cards" ("id","month","year","cc_type","last_digits","first_name","last_name","issue_number","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name") SELECT "id","month","year","cc_type","last_digits","first_name","last_name","issue_number","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name" FROM "spree_credit_cards"  (0.3ms) DROP TABLE "spree_credit_cards"  (0.3ms) CREATE TABLE "spree_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "month" varchar, "year" varchar, "cc_type" varchar, "last_digits" varchar, "first_name" varchar, "last_name" varchar, "address_id" integer, "gateway_customer_profile_id" varchar, "gateway_payment_profile_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "name" varchar)  (0.1ms) INSERT INTO "spree_credit_cards" ("id","month","year","cc_type","last_digits","first_name","last_name","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name") SELECT "id","month","year","cc_type","last_digits","first_name","last_name","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name" FROM "aspree_credit_cards"  (0.2ms) DROP TABLE "aspree_credit_cards" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181940"]]  (73.5ms) commit transaction Migrating to AddTrackInventoryToVariant (20180516181941)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "spree_variants" ADD "track_inventory" boolean DEFAULT 't' SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181941"]]  (84.8ms) commit transaction Migrating to AddTaxCategoryToVariants (20180516181942)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "spree_variants" ADD "tax_category_id" integer  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_variants_on_tax_category_id" ON "spree_variants" ("tax_category_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181942"]]  (93.1ms) commit transaction Migrating to AddChannelToSpreeOrders (20180516181943)  (0.1ms) begin transaction  (0.9ms) ALTER TABLE "spree_orders" ADD "channel" varchar DEFAULT 'spree' SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181943"]]  (72.9ms) commit transaction Migrating to AddIncludedToAdjustments (20180516181944)  (0.1ms) begin transaction  (1.0ms) ALTER TABLE "spree_adjustments" ADD "included" boolean DEFAULT 'f' SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181944"]]  (94.8ms) commit transaction Migrating to RenameTaxTotalFields (20180516181945)  (0.1ms) begin transaction  (0.4ms) CREATE TEMPORARY TABLE "aspree_line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer, "order_id" integer, "quantity" integer NOT NULL, "price" decimal(8,2) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "cost_price" decimal(8,2), "tax_category_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0')  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.3ms) CREATE INDEX "tindex_aspree_line_items_on_variant_id" ON "aspree_line_items" ("variant_id")  (0.2ms) CREATE INDEX "tindex_aspree_line_items_on_order_id" ON "aspree_line_items" ("order_id")  (0.2ms) INSERT INTO "aspree_line_items" ("id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total") SELECT "id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","tax_total","promo_total" FROM "spree_line_items"  (0.6ms) DROP TABLE "spree_line_items"  (0.3ms) CREATE TABLE "spree_line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer, "order_id" integer, "quantity" integer NOT NULL, "price" decimal(8,2) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "cost_price" decimal(8,2), "tax_category_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0')  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_line_items_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_line_items_on_variant_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_line_items_on_order_id" ON "spree_line_items" ("order_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_line_items_on_variant_id" ON "spree_line_items" ("variant_id")  (0.2ms) INSERT INTO "spree_line_items" ("id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total") SELECT "id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total" FROM "aspree_line_items"  (0.4ms) DROP TABLE "aspree_line_items"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_variant_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms) CREATE TEMPORARY TABLE "aspree_shipments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tracking" varchar, "number" varchar, "cost" decimal(8,2), "shipped_at" datetime, "order_id" integer, "address_id" integer, "state" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "stock_location_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0')  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_shipments_on_order_id" ON "aspree_shipments" ("order_id")  (0.2ms) CREATE INDEX "tindex_shipments_on_number" ON "aspree_shipments" ("number")  (0.3ms) INSERT INTO "aspree_shipments" ("id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total") SELECT "id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","tax_total","promo_total" FROM "spree_shipments"  (0.6ms) DROP TABLE "spree_shipments"  (0.3ms) CREATE TABLE "spree_shipments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tracking" varchar, "number" varchar, "cost" decimal(8,2), "shipped_at" datetime, "order_id" integer, "address_id" integer, "state" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "stock_location_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0')  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_shipments_on_number' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_shipments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_shipments_on_number" ON "spree_shipments" ("number")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_shipments_on_order_id" ON "spree_shipments" ("order_id")  (0.1ms) INSERT INTO "spree_shipments" ("id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total") SELECT "id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total" FROM "aspree_shipments"  (0.2ms) DROP TABLE "aspree_shipments"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.3ms) CREATE TEMPORARY TABLE "aspree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(32), "item_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "total" decimal(10,2) DEFAULT '0.0' NOT NULL, "state" varchar, "adjustment_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(10,2) DEFAULT '0.0', "shipping_method_id" integer, "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "last_ip_address" varchar, "created_by_id" integer, "shipment_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "channel" varchar DEFAULT 'spree')  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_orders_on_completed_at" ON "aspree_orders" ("completed_at")  (0.2ms) CREATE INDEX "tindex_aspree_orders_on_user_id" ON "aspree_orders" ("user_id")  (0.2ms) CREATE INDEX "tindex_aspree_orders_on_number" ON "aspree_orders" ("number")  (0.2ms) INSERT INTO "aspree_orders" ("id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address","created_by_id","shipment_total","additional_tax_total","promo_total","channel") SELECT "id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address","created_by_id","shipment_total","tax_total","promo_total","channel" FROM "spree_orders"  (0.4ms) DROP TABLE "spree_orders"  (0.3ms) CREATE TABLE "spree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(32), "item_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "total" decimal(10,2) DEFAULT '0.0' NOT NULL, "state" varchar, "adjustment_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(10,2) DEFAULT '0.0', "shipping_method_id" integer, "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "last_ip_address" varchar, "created_by_id" integer, "shipment_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "channel" varchar DEFAULT 'spree')  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_number' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_completed_at' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_number" ON "spree_orders" ("number")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.4ms) CREATE INDEX "index_spree_orders_on_user_id" ON "spree_orders" ("user_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_completed_at" ON "spree_orders" ("completed_at")  (0.2ms) INSERT INTO "spree_orders" ("id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address","created_by_id","shipment_total","additional_tax_total","promo_total","channel") SELECT "id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address","created_by_id","shipment_total","additional_tax_total","promo_total","channel" FROM "aspree_orders"  (0.2ms) DROP TABLE "aspree_orders"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.3ms) ALTER TABLE "spree_line_items" ADD "included_tax_total" decimal(10,2) DEFAULT 0.0 NOT NULL  (0.3ms) ALTER TABLE "spree_shipments" ADD "included_tax_total" decimal(10,2) DEFAULT 0.0 NOT NULL  (0.3ms) ALTER TABLE "spree_orders" ADD "included_tax_total" decimal(10,2) DEFAULT 0.0 NOT NULL SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181945"]]  (78.2ms) commit transaction Migrating to AddLineItemIdToSpreeInventoryUnits (20180516181946)  (0.2ms) begin transaction  (0.9ms) ALTER TABLE "spree_inventory_units" ADD "line_item_id" integer  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_variant_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_shipment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_shipment_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_order_id' AND type='index'   (0.5ms) CREATE INDEX "index_spree_inventory_units_on_line_item_id" ON "spree_inventory_units" ("line_item_id") Spree::Shipment Load (0.4ms) SELECT "spree_shipments".* FROM "spree_shipments" ORDER BY "spree_shipments"."id" ASC LIMIT ? [["LIMIT", 1000]] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181946"]]  (111.2ms) commit transaction Migrating to AddUpdatedAtToVariants (20180516181947)  (0.2ms) begin transaction  (1.1ms) ALTER TABLE "spree_variants" ADD "updated_at" datetime SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181947"]]  (89.8ms) commit transaction Migrating to AddPositionToClassifications (20180516181948)  (0.2ms) begin transaction  (0.6ms) ALTER TABLE "spree_products_taxons" ADD "position" integer SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181948"]]  (73.8ms) commit transaction Migrating to CreateSpreeOrdersPromotions (20180516181949)  (0.2ms) begin transaction  (0.7ms) CREATE TABLE "spree_orders_promotions" ("order_id" integer, "promotion_id" integer) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181949"]]  (88.5ms) commit transaction Migrating to UniqueShippingMethodCategories (20180516181950)  (0.2ms) begin transaction Spree::ShippingMethodCategory Load (0.2ms) SELECT shipping_category_id,shipping_method_id,COUNT(*) FROM "spree_shipping_method_categories" GROUP BY shipping_category_id,shipping_method_id HAVING (COUNT(*) > 1)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_method_categories_on_shipping_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_method_categories_on_shipping_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_method_categories_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_method_categories_on_shipping_method_id' AND type='index'   (0.3ms) CREATE UNIQUE INDEX "unique_spree_shipping_method_categories" ON "spree_shipping_method_categories" ("shipping_category_id", "shipping_method_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='unique_spree_shipping_method_categories' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='unique_spree_shipping_method_categories' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_method_categories_on_shipping_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_method_categories_on_shipping_category_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_method_categories_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_method_categories_on_shipping_method_id' AND type='index'   (0.5ms) DROP INDEX "index_spree_shipping_method_categories_on_shipping_category_id" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181950"]]  (84.2ms) commit transaction Migrating to AddItemCountToSpreeOrders (20180516181951)  (0.2ms) begin transaction  (1.2ms) ALTER TABLE "spree_orders" ADD "item_count" integer DEFAULT 0 SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181951"]]  (87.1ms) commit transaction Migrating to RemoveValueTypeFromSpreePreferences (20180516181952)  (0.1ms) begin transaction  (0.3ms) CREATE TEMPORARY TABLE "aspree_preferences" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "value" text, "key" varchar, "value_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_preferences_on_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_preferences_on_key' AND type='index'   (0.2ms) CREATE UNIQUE INDEX "tindex_aspree_preferences_on_key" ON "aspree_preferences" ("key")  (0.1ms) INSERT INTO "aspree_preferences" ("id","value","key","value_type","created_at","updated_at") SELECT "id","value","key","value_type","created_at","updated_at" FROM "spree_preferences"  (0.4ms) DROP TABLE "spree_preferences"  (0.3ms) CREATE TABLE "spree_preferences" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "value" text, "key" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_preferences_on_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_preferences_on_key' AND type='index'   (0.3ms) CREATE UNIQUE INDEX "index_spree_preferences_on_key" ON "spree_preferences" ("key")  (0.1ms) INSERT INTO "spree_preferences" ("id","value","key","created_at","updated_at") SELECT "id","value","key","created_at","updated_at" FROM "aspree_preferences"  (0.2ms) DROP TABLE "aspree_preferences" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181952"]]  (66.5ms) commit transaction Migrating to RenamePermalinkToSlugForProducts (20180516181953)  (0.1ms) begin transaction  (0.5ms) CREATE TEMPORARY TABLE "aspree_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar DEFAULT '' NOT NULL, "description" text, "available_on" datetime, "deleted_at" datetime, "slug" varchar, "meta_description" text, "meta_keywords" varchar, "tax_category_id" integer, "shipping_category_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='permalink_idx_unique' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='permalink_idx_unique' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_permalink' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.3ms) CREATE UNIQUE INDEX "tpermalink_idx_unique" ON "aspree_products" ("slug")  (0.2ms) CREATE INDEX "tindex_aspree_products_on_permalink" ON "aspree_products" ("slug")  (0.2ms) CREATE INDEX "tindex_aspree_products_on_name" ON "aspree_products" ("name")  (0.2ms) CREATE INDEX "tindex_aspree_products_on_deleted_at" ON "aspree_products" ("deleted_at")  (0.2ms) CREATE INDEX "tindex_aspree_products_on_available_on" ON "aspree_products" ("available_on")  (0.1ms) INSERT INTO "aspree_products" ("id","name","description","available_on","deleted_at","slug","meta_description","meta_keywords","tax_category_id","shipping_category_id","created_at","updated_at") SELECT "id","name","description","available_on","deleted_at","permalink","meta_description","meta_keywords","tax_category_id","shipping_category_id","created_at","updated_at" FROM "spree_products"  (0.8ms) DROP TABLE "spree_products"  (0.3ms) CREATE TABLE "spree_products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar DEFAULT '' NOT NULL, "description" text, "available_on" datetime, "deleted_at" datetime, "slug" varchar, "meta_description" text, "meta_keywords" varchar, "tax_category_id" integer, "shipping_category_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_available_on' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_products_on_permalink' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tpermalink_idx_unique' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tpermalink_idx_unique' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_available_on" ON "spree_products" ("available_on")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.3ms) CREATE INDEX "index_spree_products_on_deleted_at" ON "spree_products" ("deleted_at")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_name" ON "spree_products" ("name")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_permalink" ON "spree_products" ("slug")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_permalink' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.3ms) CREATE UNIQUE INDEX "permalink_idx_unique" ON "spree_products" ("slug")  (0.1ms) INSERT INTO "spree_products" ("id","name","description","available_on","deleted_at","slug","meta_description","meta_keywords","tax_category_id","shipping_category_id","created_at","updated_at") SELECT "id","name","description","available_on","deleted_at","slug","meta_description","meta_keywords","tax_category_id","shipping_category_id","created_at","updated_at" FROM "aspree_products"  (0.3ms) DROP TABLE "aspree_products"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='permalink_idx_unique' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='permalink_idx_unique' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_permalink' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='permalink_idx_unique' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='permalink_idx_unique' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_permalink' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='permalink_idx_unique' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='permalink_idx_unique' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_slug" ON "spree_products" ("slug")  (0.2ms) DROP INDEX "index_spree_products_on_permalink" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181953"]]  (92.4ms) commit transaction Migrating to AddIndexToVariantIdAndCurrencyOnPrices (20180516181954)  (0.1ms) begin transaction  (0.6ms) CREATE INDEX "index_spree_prices_on_variant_id_and_currency" ON "spree_prices" ("variant_id", "currency") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181954"]]  (63.8ms) commit transaction Migrating to RenameActivatorIdInRulesAndActionsToPromotionId (20180516181955)  (0.1ms) begin transaction  (0.4ms) CREATE TEMPORARY TABLE "aspree_promotion_rules" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "promotion_id" integer, "user_id" integer, "product_group_id" integer, "type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "code" varchar)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_on_product_group_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_on_product_group_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_promotion_rules_on_user_id" ON "aspree_promotion_rules" ("user_id")  (0.2ms) CREATE INDEX "tindex_promotion_rules_on_product_group_id" ON "aspree_promotion_rules" ("product_group_id")  (0.3ms) INSERT INTO "aspree_promotion_rules" ("id","promotion_id","user_id","product_group_id","type","created_at","updated_at","code") SELECT "id","activator_id","user_id","product_group_id","type","created_at","updated_at","code" FROM "spree_promotion_rules"  (0.9ms) DROP TABLE "spree_promotion_rules"  (0.4ms) CREATE TABLE "spree_promotion_rules" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "promotion_id" integer, "user_id" integer, "product_group_id" integer, "type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "code" varchar)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_promotion_rules_on_product_group_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_promotion_rules_on_product_group_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_promotion_rules_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_promotion_rules_on_user_id' AND type='index'   (0.2ms) CREATE INDEX "index_promotion_rules_on_product_group_id" ON "spree_promotion_rules" ("product_group_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_on_product_group_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_on_product_group_id' AND type='index'   (0.2ms) CREATE INDEX "index_promotion_rules_on_user_id" ON "spree_promotion_rules" ("user_id")  (0.1ms) INSERT INTO "spree_promotion_rules" ("id","promotion_id","user_id","product_group_id","type","created_at","updated_at","code") SELECT "id","promotion_id","user_id","product_group_id","type","created_at","updated_at","code" FROM "aspree_promotion_rules"  (0.2ms) DROP TABLE "aspree_promotion_rules"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_on_product_group_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_on_product_group_id' AND type='index'   (0.2ms) CREATE TEMPORARY TABLE "aspree_promotion_actions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "promotion_id" integer, "position" integer, "type" varchar)  (0.1ms) INSERT INTO "aspree_promotion_actions" ("id","promotion_id","position","type") SELECT "id","activator_id","position","type" FROM "spree_promotion_actions"  (0.3ms) DROP TABLE "spree_promotion_actions"  (0.2ms) CREATE TABLE "spree_promotion_actions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "promotion_id" integer, "position" integer, "type" varchar)  (0.1ms) INSERT INTO "spree_promotion_actions" ("id","promotion_id","position","type") SELECT "id","promotion_id","position","type" FROM "aspree_promotion_actions"  (0.2ms) DROP TABLE "aspree_promotion_actions" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181955"]]  (101.2ms) commit transaction Migrating to AddDeletedAtToSpreePrices (20180516181956)  (0.2ms) begin transaction  (1.1ms) ALTER TABLE "spree_prices" ADD "deleted_at" datetime SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181956"]]  (73.3ms) commit transaction Migrating to AddApproverIdAndApprovedAtToOrders (20180516181957)  (0.1ms) begin transaction  (1.1ms) ALTER TABLE "spree_orders" ADD "approver_id" integer  (0.7ms) ALTER TABLE "spree_orders" ADD "approved_at" datetime SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181957"]]  (80.9ms) commit transaction Migrating to AddConfirmationDeliveredToSpreeOrders (20180516181958)  (0.1ms) begin transaction  (1.0ms) ALTER TABLE "spree_orders" ADD "confirmation_delivered" boolean DEFAULT 'f' SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181958"]]  (73.8ms) commit transaction Migrating to AddAutoCaptureToPaymentMethods (20180516181959)  (0.1ms) begin transaction  (1.0ms) ALTER TABLE "spree_payment_methods" ADD "auto_capture" boolean SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181959"]]  (94.1ms) commit transaction Migrating to CreateSpreePaymentCaptureEvents (20180516181960)  (0.1ms) begin transaction  (0.9ms) CREATE TABLE "spree_payment_capture_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" decimal(10,2) DEFAULT 0.0, "payment_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE INDEX "index_spree_payment_capture_events_on_payment_id" ON "spree_payment_capture_events" ("payment_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181960"]]  (81.8ms) commit transaction Migrating to AddUncapturedAmountToPayments (20180516181961)  (0.2ms) begin transaction  (1.1ms) ALTER TABLE "spree_payments" ADD "uncaptured_amount" decimal(10,2) DEFAULT 0.0 SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181961"]]  (59.8ms) commit transaction Migrating to DefaultVariantWeightToZero (20180516181962)  (0.1ms) begin transaction SQL (0.3ms) UPDATE "spree_variants" SET weight = 0.0 WHERE "spree_variants"."weight" IS NULL  (0.3ms) CREATE TEMPORARY TABLE "aspree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2), "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "cost_price" decimal(8,2), "position" integer, "cost_currency" varchar, "track_inventory" boolean DEFAULT 't', "tax_category_id" integer, "updated_at" datetime)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_variants_on_tax_category_id" ON "aspree_variants" ("tax_category_id")  (0.1ms) CREATE INDEX "tindex_aspree_variants_on_sku" ON "aspree_variants" ("sku")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_product_id" ON "aspree_variants" ("product_id")  (0.1ms) INSERT INTO "aspree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at" FROM "spree_variants"  (1.5ms) DROP TABLE "spree_variants"  (0.4ms) CREATE TABLE "spree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2) DEFAULT 0.0, "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "cost_price" decimal(8,2), "position" integer, "cost_currency" varchar, "track_inventory" boolean DEFAULT 't', "tax_category_id" integer, "updated_at" datetime)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_sku' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_tax_category_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_product_id" ON "spree_variants" ("product_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_sku" ON "spree_variants" ("sku")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_tax_category_id" ON "spree_variants" ("tax_category_id")  (0.3ms) INSERT INTO "spree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at" FROM "aspree_variants"  (0.2ms) DROP TABLE "aspree_variants" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181962"]]  (95.0ms) commit transaction Migrating to AddTaxCategoryIdToShippingMethods (20180516181963)  (0.1ms) begin transaction  (1.1ms) ALTER TABLE "spree_shipping_methods" ADD "tax_category_id" integer SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181963"]]  (71.8ms) commit transaction Migrating to AddTaxRateIdToShippingRates (20180516181964)  (0.2ms) begin transaction  (1.1ms) ALTER TABLE "spree_shipping_rates" ADD "tax_rate_id" integer SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181964"]]  (71.3ms) commit transaction Migrating to AddPreTaxAmountToLineItemsAndShipments (20180516181965)  (0.2ms) begin transaction  (1.1ms) ALTER TABLE "spree_line_items" ADD "pre_tax_amount" decimal(8,2)  (0.4ms) ALTER TABLE "spree_shipments" ADD "pre_tax_amount" decimal(8,2) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181965"]]  (82.4ms) commit transaction Migrating to AddMoreIndexes (20180516181966)  (0.1ms) begin transaction  (0.3ms) CREATE INDEX "index_spree_payment_methods_on_id_and_type" ON "spree_payment_methods" ("id", "type")  (0.2ms) CREATE INDEX "index_spree_calculators_on_id_and_type" ON "spree_calculators" ("id", "type")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_calculators_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_calculators_on_id_and_type' AND type='index'   (0.4ms) CREATE INDEX "index_spree_calculators_on_calculable_id_and_calculable_type" ON "spree_calculators" ("calculable_id", "calculable_type")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_payments_on_payment_method_id" ON "spree_payments" ("payment_method_id")  (0.3ms) CREATE INDEX "index_spree_promotion_actions_on_id_and_type" ON "spree_promotion_actions" ("id", "type")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_actions_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_actions_on_id_and_type' AND type='index'   (0.3ms) CREATE INDEX "index_spree_promotion_actions_on_promotion_id" ON "spree_promotion_actions" ("promotion_id")  (0.3ms) CREATE INDEX "index_spree_promotions_on_id_and_type" ON "spree_promotions" ("id", "type")  (0.6ms) CREATE INDEX "index_spree_option_values_on_option_type_id" ON "spree_option_values" ("option_type_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.3ms) CREATE INDEX "index_spree_shipments_on_stock_location_id" ON "spree_shipments" ("stock_location_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181966"]]  (85.9ms) commit transaction Migrating to AddConsideredRiskyToOrders (20180516181967)  (0.1ms) begin transaction  (1.2ms) ALTER TABLE "spree_orders" ADD "considered_risky" boolean DEFAULT 'f' SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181967"]]  (86.0ms) commit transaction Migrating to AddPreferenceStoreToEverything (20180516181968)  (0.2ms) begin transaction  (1.0ms) ALTER TABLE "spree_calculators" ADD "preferences" text  (0.6ms) ALTER TABLE "spree_gateways" ADD "preferences" text  (0.7ms) ALTER TABLE "spree_payment_methods" ADD "preferences" text  (0.7ms) ALTER TABLE "spree_promotion_rules" ADD "preferences" text SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181968"]]  (73.2ms) commit transaction Migrating to AddUserIdToSpreeCreditCards (20180516181969)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "spree_credit_cards" ADD "user_id" integer  (0.3ms) CREATE INDEX "index_spree_credit_cards_on_user_id" ON "spree_credit_cards" ("user_id")  (0.3ms) ALTER TABLE "spree_credit_cards" ADD "payment_method_id" integer  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_credit_cards_on_payment_method_id" ON "spree_credit_cards" ("payment_method_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181969"]]  (118.6ms) commit transaction Migrating to MigrateOldPreferences (20180516181970)  (0.1ms) begin transaction Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" ORDER BY "spree_calculators"."id" ASC LIMIT ? [["LIMIT", 1000]] Spree::PaymentMethod Load (0.2ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL ORDER BY "spree_payment_methods"."id" ASC LIMIT ? [["LIMIT", 1000]] Spree::PromotionRule Load (0.2ms) SELECT "spree_promotion_rules".* FROM "spree_promotion_rules" ORDER BY "spree_promotion_rules"."id" ASC LIMIT ? [["LIMIT", 1000]] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181970"]]  (91.6ms) commit transaction Migrating to CreateSpreeStores (20180516181971)  (0.1ms) begin transaction  (0.7ms) CREATE TABLE "spree_stores" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "url" varchar, "meta_description" text, "meta_keywords" text, "seo_title" varchar, "mail_from_address" varchar, "default_currency" varchar, "code" varchar, "default" boolean DEFAULT 'f' NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181971"]]  (111.1ms) commit transaction Migrating to CreateStoreFromPreferences (20180516181972)  (0.2ms) begin transaction Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = ? ORDER BY "spree_stores"."id" ASC LIMIT ? [["default", "t"], ["LIMIT", 1]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = ? LIMIT ? [["key", "spree/app_configuration/default_meta_description"], ["LIMIT", 1]] Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = ? LIMIT ? [["key", "spree/app_configuration/default_meta_keywords"], ["LIMIT", 1]] Spree::Preference Load (0.0ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = ? LIMIT ? [["key", "spree/app_configuration/default_seo_title"], ["LIMIT", 1]] Spree::Preference Load (0.0ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = ? LIMIT ? [["key", "spree/app_configuration/currency"], ["LIMIT", 1]] Spree::Store Exists (0.2ms) SELECT 1 AS one FROM "spree_stores" WHERE "spree_stores"."code" = ? LIMIT ? [["code", "spree"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_stores" WHERE "spree_stores"."default" = ? [["default", "t"]] SQL (0.3ms) INSERT INTO "spree_stores" ("name", "url", "mail_from_address", "code", "default", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Spree Demo Site"], ["url", "demo.spreecommerce.org"], ["mail_from_address", "spree@example.com"], ["code", "spree"], ["default", "t"], ["created_at", "2018-05-16 18:23:41.002565"], ["updated_at", "2018-05-16 18:23:41.002565"]] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181972"]]  (90.3ms) commit transaction Migrating to AddTimestampsToSpreeAssets (20180516181973)  (0.2ms) begin transaction  (0.8ms) ALTER TABLE "spree_assets" ADD "created_at" datetime  (0.4ms) ALTER TABLE "spree_assets" ADD "updated_at" datetime SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181973"]]  (70.0ms) commit transaction Migrating to CreateSpreeTaxonsPromotionRules (20180516181974)  (0.1ms) begin transaction  (1.0ms) CREATE TABLE "spree_taxons_promotion_rules" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "taxon_id" integer, "promotion_rule_id" integer)  (0.4ms) CREATE INDEX "index_spree_taxons_promotion_rules_on_taxon_id" ON "spree_taxons_promotion_rules" ("taxon_id")  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_promotion_rules_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_promotion_rules_on_taxon_id' AND type='index'   (0.6ms) CREATE INDEX "index_spree_taxons_promotion_rules_on_promotion_rule_id" ON "spree_taxons_promotion_rules" ("promotion_rule_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181974"]]  (131.1ms) commit transaction Migrating to AddAdditionalStoreFields (20180516181975)  (0.1ms) begin transaction  (0.7ms) CREATE INDEX "index_spree_stores_on_code" ON "spree_stores" ("code")  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stores_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stores_on_code' AND type='index'   (0.4ms) CREATE INDEX "index_spree_stores_on_default" ON "spree_stores" ("default") SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181975"]]  (110.7ms) commit transaction Migrating to AddManyMissingIndexes (20180516181976)  (0.2ms) begin transaction  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_source_type_and_source_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_source_type_and_source_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_adjustments_on_order_id' AND type='index'   (0.6ms) CREATE INDEX "index_spree_adjustments_on_adjustable_id_and_adjustable_type" ON "spree_adjustments" ("adjustable_id", "adjustable_type")  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_source_type_and_source_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_source_type_and_source_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_adjustments_on_order_id' AND type='index'   (0.6ms) CREATE INDEX "index_spree_adjustments_on_eligible" ON "spree_adjustments" ("eligible")  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_eligible' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_eligible' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_source_type_and_source_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_source_type_and_source_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_adjustments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_adjustments_on_order_id" ON "spree_adjustments" ("order_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index'   (0.2ms) CREATE INDEX "index_spree_promotions_on_code" ON "spree_promotions" ("code")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_code' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index'   (0.2ms) CREATE INDEX "index_spree_promotions_on_expires_at" ON "spree_promotions" ("expires_at")  (0.2ms) CREATE INDEX "index_spree_states_on_country_id" ON "spree_states" ("country_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='stock_item_by_loc_and_var_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='stock_item_by_loc_and_var_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_stock_items_on_deleted_at" ON "spree_stock_items" ("deleted_at")  (0.2ms) CREATE INDEX "index_spree_option_types_on_position" ON "spree_option_types" ("position")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_on_option_type_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_option_values_on_position" ON "spree_option_values" ("position")  (0.2ms) CREATE INDEX "index_spree_product_option_types_on_option_type_id" ON "spree_product_option_types" ("option_type_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_product_option_types_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_product_option_types_on_option_type_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_product_option_types_on_product_id" ON "spree_product_option_types" ("product_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_taxons_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_taxons_on_taxon_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_taxons_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_taxons_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_taxons_on_position" ON "spree_products_taxons" ("position")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_expires_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_expires_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_code' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index'   (0.2ms) CREATE INDEX "index_spree_promotions_on_starts_at" ON "spree_promotions" ("starts_at")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stores_on_default' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stores_on_default' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stores_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stores_on_code' AND type='index'   (0.3ms) CREATE INDEX "index_spree_stores_on_url" ON "spree_stores" ("url") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181976"]]  (91.6ms) commit transaction Migrating to CorrectSomePolymorphicIndexAndAddMoreMissing (20180516181977)  (0.2ms) begin transaction  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_addresses_on_lastname' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_lastname' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_addresses_on_firstname' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_firstname' AND type='index'   (0.7ms) CREATE INDEX "index_spree_addresses_on_country_id" ON "spree_addresses" ("country_id")  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_addresses_on_country_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_addresses_on_country_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_addresses_on_lastname' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_lastname' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_addresses_on_firstname' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_firstname' AND type='index'   (0.5ms) CREATE INDEX "index_spree_addresses_on_state_id" ON "spree_addresses" ("state_id")  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_order_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_eligible' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_eligible' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_source_type_and_source_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_source_type_and_source_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_adjustments_on_order_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_order_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_eligible' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_eligible' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_source_type_and_source_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_source_type_and_source_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_adjustments_on_order_id' AND type='index'   (0.3ms) DROP INDEX "index_spree_adjustments_on_source_type_and_source_id"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_eligible' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_eligible' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_adjustments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_adjustments_on_source_id_and_source_type" ON "spree_adjustments" ("source_id", "source_type")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_credit_cards_on_address_id" ON "spree_credit_cards" ("address_id")  (0.2ms) CREATE INDEX "index_spree_gateways_on_active" ON "spree_gateways" ("active")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_gateways_on_active' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_gateways_on_active' AND type='index'   (0.2ms) CREATE INDEX "index_spree_gateways_on_test_mode" ON "spree_gateways" ("test_mode")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_inventory_units_on_line_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_inventory_units_on_line_item_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_variant_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_shipment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_shipment_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_inventory_units_on_return_authorization_id" ON "spree_inventory_units" ("return_authorization_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_variant_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_line_items_on_tax_category_id" ON "spree_line_items" ("tax_category_id")  (0.3ms) CREATE INDEX "index_spree_log_entries_on_source_id_and_source_type" ON "spree_log_entries" ("source_id", "source_type")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_approver_id" ON "spree_orders" ("approver_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_bill_address_id" ON "spree_orders" ("bill_address_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_confirmation_delivered" ON "spree_orders" ("confirmation_delivered")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_considered_risky" ON "spree_orders" ("considered_risky")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_created_by_id" ON "spree_orders" ("created_by_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_ship_address_id" ON "spree_orders" ("ship_address_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_shipping_method_id" ON "spree_orders" ("shipping_method_id")  (0.2ms) CREATE INDEX "index_spree_orders_promotions_on_order_id_and_promotion_id" ON "spree_orders_promotions" ("order_id", "promotion_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_payments_on_source_id_and_source_type" ON "spree_payments" ("source_id", "source_type")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prices_on_variant_id_and_currency' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prices_on_variant_id_and_currency' AND type='index'   (0.2ms) CREATE INDEX "index_spree_prices_on_deleted_at" ON "spree_prices" ("deleted_at")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_product_option_types_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_product_option_types_on_product_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_product_option_types_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_product_option_types_on_option_type_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_product_option_types_on_position" ON "spree_product_option_types" ("position")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_product_properties_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_product_properties_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_product_properties_on_position" ON "spree_product_properties" ("position")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_product_properties_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_product_properties_on_position' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_product_properties_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_product_properties_on_product_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_product_properties_on_property_id" ON "spree_product_properties" ("property_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_slug' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='permalink_idx_unique' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='permalink_idx_unique' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.3ms) CREATE INDEX "index_spree_products_on_shipping_category_id" ON "spree_products" ("shipping_category_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_slug' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='permalink_idx_unique' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='permalink_idx_unique' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_products_on_tax_category_id" ON "spree_products" ("tax_category_id")  (0.2ms) CREATE INDEX "index_spree_promotion_action_line_items_on_promotion_action_id" ON "spree_promotion_action_line_items" ("promotion_action_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_action_line_items_on_promotion_action_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_action_line_items_on_promotion_action_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_promotion_action_line_items_on_variant_id" ON "spree_promotion_action_line_items" ("variant_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_on_product_group_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_on_product_group_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_promotion_rules_on_promotion_id" ON "spree_promotion_rules" ("promotion_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_starts_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_starts_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_expires_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_expires_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_code' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index'   (0.2ms) CREATE INDEX "index_spree_promotions_on_advertise" ON "spree_promotions" ("advertise")  (0.2ms) CREATE INDEX "index_spree_return_authorizations_on_number" ON "spree_return_authorizations" ("number")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_authorizations_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_authorizations_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_return_authorizations_on_order_id" ON "spree_return_authorizations" ("order_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_authorizations_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_authorizations_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_authorizations_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_authorizations_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_return_authorizations_on_stock_location_id" ON "spree_return_authorizations" ("stock_location_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_shipments_on_address_id" ON "spree_shipments" ("address_id")  (0.2ms) CREATE INDEX "index_spree_shipping_methods_on_deleted_at" ON "spree_shipping_methods" ("deleted_at")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_methods_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_methods_on_deleted_at' AND type='index'   (0.2ms) CREATE INDEX "index_spree_shipping_methods_on_tax_category_id" ON "spree_shipping_methods" ("tax_category_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='spree_shipping_rates_join_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_shipping_rates_join_index' AND type='index'   (0.2ms) CREATE INDEX "index_spree_shipping_rates_on_selected" ON "spree_shipping_rates" ("selected")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_rates_on_selected' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_rates_on_selected' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='spree_shipping_rates_join_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_shipping_rates_join_index' AND type='index'   (0.2ms) CREATE INDEX "index_spree_shipping_rates_on_tax_rate_id" ON "spree_shipping_rates" ("tax_rate_id")  (0.2ms) CREATE INDEX "index_spree_state_changes_on_stateful_id_and_stateful_type" ON "spree_state_changes" ("stateful_id", "stateful_type")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_state_changes_on_stateful_id_and_stateful_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_state_changes_on_stateful_id_and_stateful_type' AND type='index'   (0.2ms) CREATE INDEX "index_spree_state_changes_on_user_id" ON "spree_state_changes" ("user_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='stock_item_by_loc_and_var_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='stock_item_by_loc_and_var_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_stock_items_on_backorderable" ON "spree_stock_items" ("backorderable")  (0.2ms) CREATE INDEX "index_spree_stock_locations_on_active" ON "spree_stock_locations" ("active")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_active' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_active' AND type='index'   (0.2ms) CREATE INDEX "index_spree_stock_locations_on_backorderable_default" ON "spree_stock_locations" ("backorderable_default")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_backorderable_default' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_backorderable_default' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_active' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_active' AND type='index'   (0.2ms) CREATE INDEX "index_spree_stock_locations_on_country_id" ON "spree_stock_locations" ("country_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_country_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_country_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_backorderable_default' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_backorderable_default' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_active' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_active' AND type='index'   (0.4ms) CREATE INDEX "index_spree_stock_locations_on_propagate_all_variants" ON "spree_stock_locations" ("propagate_all_variants")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_propagate_all_variants' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_propagate_all_variants' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_country_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_country_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_backorderable_default' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_backorderable_default' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_active' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_active' AND type='index'   (0.5ms) CREATE INDEX "index_spree_stock_locations_on_state_id" ON "spree_stock_locations" ("state_id")  (0.2ms) CREATE INDEX "index_spree_tax_categories_on_deleted_at" ON "spree_tax_categories" ("deleted_at")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_categories_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_categories_on_deleted_at' AND type='index'   (0.2ms) CREATE INDEX "index_spree_tax_categories_on_is_default" ON "spree_tax_categories" ("is_default")  (0.2ms) CREATE INDEX "index_spree_tax_rates_on_deleted_at" ON "spree_tax_rates" ("deleted_at")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_deleted_at' AND type='index'   (0.2ms) CREATE INDEX "index_spree_tax_rates_on_included_in_price" ON "spree_tax_rates" ("included_in_price")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_included_in_price' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_included_in_price' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_deleted_at' AND type='index'   (0.2ms) CREATE INDEX "index_spree_tax_rates_on_show_rate_in_label" ON "spree_tax_rates" ("show_rate_in_label")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_show_rate_in_label' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_show_rate_in_label' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_included_in_price' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_included_in_price' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_deleted_at' AND type='index'   (0.2ms) CREATE INDEX "index_spree_tax_rates_on_tax_category_id" ON "spree_tax_rates" ("tax_category_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_tax_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_show_rate_in_label' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_show_rate_in_label' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_included_in_price' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_included_in_price' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_deleted_at' AND type='index'   (0.2ms) CREATE INDEX "index_spree_tax_rates_on_zone_id" ON "spree_tax_rates" ("zone_id")  (0.2ms) CREATE INDEX "index_spree_taxonomies_on_position" ON "spree_taxonomies" ("position")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_taxons_on_position" ON "spree_taxons" ("position")  (0.2ms) CREATE INDEX "index_spree_trackers_on_active" ON "spree_trackers" ("active")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_deleted_at" ON "spree_variants" ("deleted_at")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_is_master" ON "spree_variants" ("is_master")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_position" ON "spree_variants" ("position")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_position' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_track_inventory" ON "spree_variants" ("track_inventory")  (0.2ms) CREATE INDEX "index_spree_zone_members_on_zone_id" ON "spree_zone_members" ("zone_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_zone_members_on_zone_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_zone_members_on_zone_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_zone_members_on_zoneable_id_and_zoneable_type" ON "spree_zone_members" ("zoneable_id", "zoneable_type")  (0.2ms) CREATE INDEX "index_spree_zones_on_default_tax" ON "spree_zones" ("default_tax") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181977"]]  (147.2ms) commit transaction Migrating to AddUserIdCreatedByIdIndexToOrder (20180516181978)  (0.1ms) begin transaction  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.7ms) CREATE INDEX "index_spree_orders_on_user_id_and_created_by_id" ON "spree_orders" ("user_id", "created_by_id") SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181978"]]  (118.2ms) commit transaction Migrating to ChangeSpreePriceAmountPrecision (20180516181979)  (0.2ms) begin transaction  (0.5ms) CREATE TEMPORARY TABLE "aspree_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer NOT NULL, "amount" decimal(8,2), "currency" varchar, "deleted_at" datetime)  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prices_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prices_on_deleted_at' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prices_on_variant_id_and_currency' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prices_on_variant_id_and_currency' AND type='index'   (0.4ms) CREATE INDEX "tindex_aspree_prices_on_deleted_at" ON "aspree_prices" ("deleted_at")  (0.3ms) CREATE INDEX "tindex_aspree_prices_on_variant_id_and_currency" ON "aspree_prices" ("variant_id", "currency")  (0.2ms) INSERT INTO "aspree_prices" ("id","variant_id","amount","currency","deleted_at") SELECT "id","variant_id","amount","currency","deleted_at" FROM "spree_prices"  (0.8ms) DROP TABLE "spree_prices"  (0.3ms) CREATE TABLE "spree_prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer NOT NULL, "amount" decimal(10,2), "currency" varchar, "deleted_at" datetime)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_prices_on_variant_id_and_currency' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_prices_on_variant_id_and_currency' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_prices_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_prices_on_deleted_at' AND type='index'   (0.2ms) CREATE INDEX "index_spree_prices_on_variant_id_and_currency" ON "spree_prices" ("variant_id", "currency")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prices_on_variant_id_and_currency' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prices_on_variant_id_and_currency' AND type='index'   (0.2ms) CREATE INDEX "index_spree_prices_on_deleted_at" ON "spree_prices" ("deleted_at")  (0.2ms) INSERT INTO "spree_prices" ("id","variant_id","amount","currency","deleted_at") SELECT "id","variant_id","amount","currency","deleted_at" FROM "aspree_prices"  (0.2ms) DROP TABLE "aspree_prices"  (0.2ms) CREATE TEMPORARY TABLE "aspree_line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer, "order_id" integer, "quantity" integer NOT NULL, "price" decimal(8,2) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "cost_price" decimal(8,2), "tax_category_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "pre_tax_amount" decimal(8,2))  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_tax_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_variant_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_line_items_on_tax_category_id" ON "aspree_line_items" ("tax_category_id")  (0.2ms) CREATE INDEX "tindex_aspree_line_items_on_variant_id" ON "aspree_line_items" ("variant_id")  (0.2ms) CREATE INDEX "tindex_aspree_line_items_on_order_id" ON "aspree_line_items" ("order_id")  (0.1ms) INSERT INTO "aspree_line_items" ("id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount") SELECT "id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount" FROM "spree_line_items"  (0.4ms) DROP TABLE "spree_line_items"  (0.4ms) CREATE TABLE "spree_line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer, "order_id" integer, "quantity" integer NOT NULL, "price" decimal(10,2) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "cost_price" decimal(8,2), "tax_category_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "pre_tax_amount" decimal(8,2))  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_line_items_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_line_items_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_line_items_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_line_items_on_tax_category_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_line_items_on_order_id" ON "spree_line_items" ("order_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_line_items_on_variant_id" ON "spree_line_items" ("variant_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_variant_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_line_items_on_tax_category_id" ON "spree_line_items" ("tax_category_id")  (0.2ms) INSERT INTO "spree_line_items" ("id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount") SELECT "id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount" FROM "aspree_line_items"  (0.3ms) DROP TABLE "aspree_line_items"  (0.2ms) CREATE TEMPORARY TABLE "aspree_line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer, "order_id" integer, "quantity" integer NOT NULL, "price" decimal(10,2) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "cost_price" decimal(8,2), "tax_category_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "pre_tax_amount" decimal(8,2))  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_tax_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_line_items_on_tax_category_id" ON "aspree_line_items" ("tax_category_id")  (0.2ms) CREATE INDEX "tindex_aspree_line_items_on_variant_id" ON "aspree_line_items" ("variant_id")  (0.2ms) CREATE INDEX "tindex_aspree_line_items_on_order_id" ON "aspree_line_items" ("order_id")  (0.2ms) INSERT INTO "aspree_line_items" ("id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount") SELECT "id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount" FROM "spree_line_items"  (0.4ms) DROP TABLE "spree_line_items"  (0.4ms) CREATE TABLE "spree_line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer, "order_id" integer, "quantity" integer NOT NULL, "price" decimal(10,2) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "cost_price" decimal(10,2), "tax_category_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "pre_tax_amount" decimal(8,2))  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_line_items_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_line_items_on_variant_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_line_items_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_line_items_on_tax_category_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_line_items_on_order_id" ON "spree_line_items" ("order_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_line_items_on_variant_id" ON "spree_line_items" ("variant_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_variant_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_line_items_on_tax_category_id" ON "spree_line_items" ("tax_category_id")  (0.2ms) INSERT INTO "spree_line_items" ("id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount") SELECT "id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount" FROM "aspree_line_items"  (0.3ms) DROP TABLE "aspree_line_items"  (0.2ms) CREATE TEMPORARY TABLE "aspree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2) DEFAULT '0.0', "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "cost_price" decimal(8,2), "position" integer, "cost_currency" varchar, "track_inventory" boolean DEFAULT 't', "tax_category_id" integer, "updated_at" datetime)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_track_inventory' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_track_inventory' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_position' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_variants_on_track_inventory" ON "aspree_variants" ("track_inventory")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_position" ON "aspree_variants" ("position")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_is_master" ON "aspree_variants" ("is_master")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_deleted_at" ON "aspree_variants" ("deleted_at")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_tax_category_id" ON "aspree_variants" ("tax_category_id")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_sku" ON "aspree_variants" ("sku")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_product_id" ON "aspree_variants" ("product_id")  (0.1ms) INSERT INTO "aspree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at" FROM "spree_variants"  (0.5ms) DROP TABLE "spree_variants"  (0.3ms) CREATE TABLE "spree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2) DEFAULT '0.0', "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "cost_price" decimal(10,2), "position" integer, "cost_currency" varchar, "track_inventory" boolean DEFAULT 't', "tax_category_id" integer, "updated_at" datetime)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_sku' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_tax_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_is_master' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_position' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_track_inventory' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_track_inventory' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_product_id" ON "spree_variants" ("product_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_variants_on_sku" ON "spree_variants" ("sku")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_tax_category_id" ON "spree_variants" ("tax_category_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_deleted_at" ON "spree_variants" ("deleted_at")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_is_master" ON "spree_variants" ("is_master")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_position" ON "spree_variants" ("position")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_position' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_track_inventory" ON "spree_variants" ("track_inventory")  (0.2ms) INSERT INTO "spree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at" FROM "aspree_variants"  (0.3ms) DROP TABLE "aspree_variants" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181979"]]  (104.1ms) commit transaction Migrating to AddTokenToSpreeOrders (20180516181980)  (0.2ms) begin transaction  (1.5ms) ALTER TABLE "spree_orders" ADD "guest_token" varchar SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181980"]]  (116.1ms) commit transaction Migrating to MoveOrderTokenFromTokenizedPermission (20180516181981)  (0.2ms) begin transaction Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181981"]]  (97.8ms) commit transaction Migrating to SetShipmentTotalForUsersUpgrading (20180516181982)  (0.1ms) begin transaction Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE ("spree_orders"."completed_at" IS NOT NULL) AND (shipment_total = 0) ORDER BY "spree_orders"."id" ASC LIMIT ? [["LIMIT", 1000]] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181982"]]  (73.3ms) commit transaction Migrating to DropCreditCardFirstNameAndLastName (20180516181983)  (0.1ms) begin transaction  (0.4ms) CREATE TEMPORARY TABLE "aspree_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "month" varchar, "year" varchar, "cc_type" varchar, "last_digits" varchar, "first_name" varchar, "last_name" varchar, "address_id" integer, "gateway_customer_profile_id" varchar, "gateway_payment_profile_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "name" varchar, "user_id" integer, "payment_method_id" integer)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_payment_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index'   (0.3ms) CREATE INDEX "tindex_aspree_credit_cards_on_address_id" ON "aspree_credit_cards" ("address_id")  (0.2ms) CREATE INDEX "tindex_aspree_credit_cards_on_payment_method_id" ON "aspree_credit_cards" ("payment_method_id")  (0.2ms) CREATE INDEX "tindex_aspree_credit_cards_on_user_id" ON "aspree_credit_cards" ("user_id")  (0.2ms) INSERT INTO "aspree_credit_cards" ("id","month","year","cc_type","last_digits","first_name","last_name","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name","user_id","payment_method_id") SELECT "id","month","year","cc_type","last_digits","first_name","last_name","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name","user_id","payment_method_id" FROM "spree_credit_cards"  (0.7ms) DROP TABLE "spree_credit_cards"  (0.4ms) CREATE TABLE "spree_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "month" varchar, "year" varchar, "cc_type" varchar, "last_digits" varchar, "last_name" varchar, "address_id" integer, "gateway_customer_profile_id" varchar, "gateway_payment_profile_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "name" varchar, "user_id" integer, "payment_method_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_credit_cards_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_credit_cards_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_credit_cards_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_credit_cards_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_credit_cards_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_credit_cards_on_address_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_credit_cards_on_user_id" ON "spree_credit_cards" ("user_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_credit_cards_on_payment_method_id" ON "spree_credit_cards" ("payment_method_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_credit_cards_on_address_id" ON "spree_credit_cards" ("address_id")  (0.2ms) INSERT INTO "spree_credit_cards" ("id","month","year","cc_type","last_digits","last_name","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name","user_id","payment_method_id") SELECT "id","month","year","cc_type","last_digits","last_name","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name","user_id","payment_method_id" FROM "aspree_credit_cards"  (0.3ms) DROP TABLE "aspree_credit_cards"  (0.2ms) CREATE TEMPORARY TABLE "aspree_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "month" varchar, "year" varchar, "cc_type" varchar, "last_digits" varchar, "last_name" varchar, "address_id" integer, "gateway_customer_profile_id" varchar, "gateway_payment_profile_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "name" varchar, "user_id" integer, "payment_method_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_address_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_payment_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_credit_cards_on_address_id" ON "aspree_credit_cards" ("address_id")  (0.2ms) CREATE INDEX "tindex_aspree_credit_cards_on_payment_method_id" ON "aspree_credit_cards" ("payment_method_id")  (0.2ms) CREATE INDEX "tindex_aspree_credit_cards_on_user_id" ON "aspree_credit_cards" ("user_id")  (0.1ms) INSERT INTO "aspree_credit_cards" ("id","month","year","cc_type","last_digits","last_name","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name","user_id","payment_method_id") SELECT "id","month","year","cc_type","last_digits","last_name","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name","user_id","payment_method_id" FROM "spree_credit_cards"  (0.3ms) DROP TABLE "spree_credit_cards"  (0.2ms) CREATE TABLE "spree_credit_cards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "month" varchar, "year" varchar, "cc_type" varchar, "last_digits" varchar, "address_id" integer, "gateway_customer_profile_id" varchar, "gateway_payment_profile_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "name" varchar, "user_id" integer, "payment_method_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_credit_cards_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_credit_cards_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_credit_cards_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_credit_cards_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_credit_cards_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_credit_cards_on_address_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_credit_cards_on_user_id" ON "spree_credit_cards" ("user_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_credit_cards_on_payment_method_id" ON "spree_credit_cards" ("payment_method_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_credit_cards_on_address_id" ON "spree_credit_cards" ("address_id")  (0.1ms) INSERT INTO "spree_credit_cards" ("id","month","year","cc_type","last_digits","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name","user_id","payment_method_id") SELECT "id","month","year","cc_type","last_digits","address_id","gateway_customer_profile_id","gateway_payment_profile_id","created_at","updated_at","name","user_id","payment_method_id" FROM "aspree_credit_cards"  (0.2ms) DROP TABLE "aspree_credit_cards" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181983"]]  (88.0ms) commit transaction Migrating to AddDeletedAtToSpreePromotionActions (20180516181984)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "spree_promotion_actions" ADD "deleted_at" datetime  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_actions_on_promotion_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_actions_on_promotion_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_actions_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_actions_on_id_and_type' AND type='index'   (0.3ms) CREATE INDEX "index_spree_promotion_actions_on_deleted_at" ON "spree_promotion_actions" ("deleted_at") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181984"]]  (107.6ms) commit transaction Migrating to RemoveUncapturedAmountFromSpreePayments (20180516181985)  (0.2ms) begin transaction  (0.4ms) CREATE TEMPORARY TABLE "aspree_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" decimal(10,2) DEFAULT '0.0' NOT NULL, "order_id" integer, "source_type" varchar, "source_id" integer, "payment_method_id" integer, "state" varchar, "response_code" varchar, "avs_response" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "identifier" varchar, "cvv_response_code" varchar, "cvv_response_message" varchar, "uncaptured_amount" decimal(10,2) DEFAULT '0.0')  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_payments_on_source_id_and_source_type" ON "aspree_payments" ("source_id", "source_type")  (0.2ms) CREATE INDEX "tindex_aspree_payments_on_payment_method_id" ON "aspree_payments" ("payment_method_id")  (0.2ms) CREATE INDEX "tindex_aspree_payments_on_order_id" ON "aspree_payments" ("order_id")  (0.3ms) INSERT INTO "aspree_payments" ("id","amount","order_id","source_type","source_id","payment_method_id","state","response_code","avs_response","created_at","updated_at","identifier","cvv_response_code","cvv_response_message","uncaptured_amount") SELECT "id","amount","order_id","source_type","source_id","payment_method_id","state","response_code","avs_response","created_at","updated_at","identifier","cvv_response_code","cvv_response_message","uncaptured_amount" FROM "spree_payments"  (0.9ms) DROP TABLE "spree_payments"  (0.6ms) CREATE TABLE "spree_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" decimal(10,2) DEFAULT '0.0' NOT NULL, "order_id" integer, "source_type" varchar, "source_id" integer, "payment_method_id" integer, "state" varchar, "response_code" varchar, "avs_response" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "identifier" varchar, "cvv_response_code" varchar, "cvv_response_message" varchar)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_payments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_payments_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_payments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_payments_on_source_id_and_source_type' AND type='index'   (0.2ms) CREATE INDEX "index_spree_payments_on_order_id" ON "spree_payments" ("order_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_payments_on_payment_method_id" ON "spree_payments" ("payment_method_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_payments_on_source_id_and_source_type" ON "spree_payments" ("source_id", "source_type")  (0.2ms) INSERT INTO "spree_payments" ("id","amount","order_id","source_type","source_id","payment_method_id","state","response_code","avs_response","created_at","updated_at","identifier","cvv_response_code","cvv_response_message") SELECT "id","amount","order_id","source_type","source_id","payment_method_id","state","response_code","avs_response","created_at","updated_at","identifier","cvv_response_code","cvv_response_message" FROM "aspree_payments"  (0.2ms) DROP TABLE "aspree_payments" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181985"]]  (67.7ms) commit transaction Migrating to CreateSpreeRefunds (20180516181986)  (0.2ms) begin transaction  (0.9ms) CREATE TABLE "spree_refunds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "payment_id" integer, "return_authorization_id" integer, "amount" decimal(10,2) DEFAULT 0.0 NOT NULL, "transaction_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181986"]]  (109.8ms) commit transaction Migrating to CreateSpreeReturnAuthorizationInventoryUnit (20180516181987)  (0.1ms) begin transaction  (0.9ms) CREATE TABLE "spree_return_authorization_inventory_units" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "return_authorization_id" integer, "inventory_unit_id" integer, "exchange_variant_id" integer, "received_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181987"]]  (72.2ms) commit transaction Migrating to RenameReturnAuthorizationInventoryUnitToReturnItems (20180516181988)  (0.1ms) begin transaction  (1.1ms) ALTER TABLE "spree_return_authorization_inventory_units" RENAME TO "spree_return_items" SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181988"]]  (116.9ms) commit transaction Migrating to BackfillLineItemPreTaxAmount (20180516181989)  (0.1ms) begin transaction  (0.3ms)  UPDATE spree_line_items SET pre_tax_amount = ((price * quantity) + promo_total) - included_tax_total WHERE pre_tax_amount IS NULL;  SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181989"]]  (87.3ms) commit transaction Migrating to RecreateSpreeReturnAuthorizations (20180516181990)  (0.2ms) begin transaction Spree::ReturnAuthorization Exists (0.2ms) SELECT 1 AS one FROM "spree_return_authorizations" LIMIT ? [["LIMIT", 1]]  (0.6ms) DROP TABLE "spree_return_authorizations"  (0.2ms) CREATE TEMPORARY TABLE "aspree_inventory_units" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar, "variant_id" integer, "order_id" integer, "shipment_id" integer, "return_authorization_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "pending" boolean DEFAULT 't', "line_item_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_inventory_units_on_return_authorization_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_inventory_units_on_return_authorization_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_inventory_units_on_line_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_inventory_units_on_line_item_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_variant_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_shipment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_shipment_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_inventory_units_on_return_authorization_id" ON "aspree_inventory_units" ("return_authorization_id")  (0.2ms) CREATE INDEX "tindex_aspree_inventory_units_on_line_item_id" ON "aspree_inventory_units" ("line_item_id")  (0.2ms) CREATE INDEX "tindex_inventory_units_on_variant_id" ON "aspree_inventory_units" ("variant_id")  (0.2ms) CREATE INDEX "tindex_inventory_units_on_shipment_id" ON "aspree_inventory_units" ("shipment_id")  (0.2ms) CREATE INDEX "tindex_inventory_units_on_order_id" ON "aspree_inventory_units" ("order_id")  (0.1ms) INSERT INTO "aspree_inventory_units" ("id","state","variant_id","order_id","shipment_id","return_authorization_id","created_at","updated_at","pending","line_item_id") SELECT "id","state","variant_id","order_id","shipment_id","return_authorization_id","created_at","updated_at","pending","line_item_id" FROM "spree_inventory_units"  (0.7ms) DROP TABLE "spree_inventory_units"  (0.3ms) CREATE TABLE "spree_inventory_units" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar, "variant_id" integer, "order_id" integer, "shipment_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "pending" boolean DEFAULT 't', "line_item_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_inventory_units_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_inventory_units_on_shipment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_inventory_units_on_shipment_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_inventory_units_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_inventory_units_on_variant_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_inventory_units_on_line_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_inventory_units_on_line_item_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_inventory_units_on_return_authorization_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_inventory_units_on_return_authorization_id' AND type='index'   (0.2ms) CREATE INDEX "index_inventory_units_on_order_id" ON "spree_inventory_units" ("order_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_inventory_units_on_shipment_id" ON "spree_inventory_units" ("shipment_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_shipment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_shipment_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_inventory_units_on_variant_id" ON "spree_inventory_units" ("variant_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_shipment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_shipment_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_inventory_units_on_line_item_id" ON "spree_inventory_units" ("line_item_id")  (0.1ms) INSERT INTO "spree_inventory_units" ("id","state","variant_id","order_id","shipment_id","created_at","updated_at","pending","line_item_id") SELECT "id","state","variant_id","order_id","shipment_id","created_at","updated_at","pending","line_item_id" FROM "aspree_inventory_units"  (0.3ms) DROP TABLE "aspree_inventory_units" SQL (0.1ms) UPDATE "spree_adjustments" SET "source_type" = 'Spree::LegacyReturnAuthorization' WHERE "spree_adjustments"."source_type" = ? [["source_type", "Spree::ReturnAuthorization"]]  (0.3ms) CREATE TABLE "spree_return_authorizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "state" varchar, "amount" decimal(10,2) DEFAULT 0.0 NOT NULL, "order_id" integer, "reason" text, "created_at" datetime, "updated_at" datetime, "stock_location_id" integer) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181990"]]  (101.3ms) commit transaction Migrating to AddAmountFieldsToReturnItems (20180516181991)  (0.2ms) begin transaction  (0.8ms) ALTER TABLE "spree_return_items" ADD "pre_tax_amount" decimal(10,2) DEFAULT 0.0 NOT NULL  (0.5ms) ALTER TABLE "spree_return_items" ADD "included_tax_total" decimal(10,2) DEFAULT 0.0 NOT NULL  (0.5ms) ALTER TABLE "spree_return_items" ADD "additional_tax_total" decimal(10,2) DEFAULT 0.0 NOT NULL SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181991"]]  (70.6ms) commit transaction Migrating to DropReturnAuthorizationAmount (20180516181992)  (0.1ms) begin transaction  (0.4ms) CREATE TEMPORARY TABLE "aspree_return_authorizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "state" varchar, "amount" decimal(10,2) DEFAULT '0.0' NOT NULL, "order_id" integer, "reason" text, "created_at" datetime, "updated_at" datetime, "stock_location_id" integer)  (0.2ms) INSERT INTO "aspree_return_authorizations" ("id","number","state","amount","order_id","reason","created_at","updated_at","stock_location_id") SELECT "id","number","state","amount","order_id","reason","created_at","updated_at","stock_location_id" FROM "spree_return_authorizations"  (0.5ms) DROP TABLE "spree_return_authorizations"  (0.4ms) CREATE TABLE "spree_return_authorizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "state" varchar, "order_id" integer, "reason" text, "created_at" datetime, "updated_at" datetime, "stock_location_id" integer)  (0.2ms) INSERT INTO "spree_return_authorizations" ("id","number","state","order_id","reason","created_at","updated_at","stock_location_id") SELECT "id","number","state","order_id","reason","created_at","updated_at","stock_location_id" FROM "aspree_return_authorizations"  (0.2ms) DROP TABLE "aspree_return_authorizations" SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181992"]]  (63.6ms) commit transaction Migrating to CreateSpreeReturnAuthorizationReasons (20180516181993)  (0.1ms) begin transaction  (0.7ms) CREATE TABLE "spree_return_authorization_reasons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "active" boolean DEFAULT 't', "mutable" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) Spree::ReturnAuthorizationReason Exists (0.2ms) SELECT 1 AS one FROM "spree_return_authorization_reasons" WHERE LOWER("spree_return_authorization_reasons"."name") = LOWER(?) LIMIT ? [["name", "Better price available"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "spree_return_authorization_reasons" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Better price available"], ["created_at", "2018-05-16 18:23:43.585164"], ["updated_at", "2018-05-16 18:23:43.585164"]] Spree::ReturnAuthorizationReason Exists (0.2ms) SELECT 1 AS one FROM "spree_return_authorization_reasons" WHERE LOWER("spree_return_authorization_reasons"."name") = LOWER(?) LIMIT ? [["name", "Missed estimated delivery date"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "spree_return_authorization_reasons" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Missed estimated delivery date"], ["created_at", "2018-05-16 18:23:43.588739"], ["updated_at", "2018-05-16 18:23:43.588739"]] Spree::ReturnAuthorizationReason Exists (0.2ms) SELECT 1 AS one FROM "spree_return_authorization_reasons" WHERE LOWER("spree_return_authorization_reasons"."name") = LOWER(?) LIMIT ? [["name", "Missing parts or accessories"], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "spree_return_authorization_reasons" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Missing parts or accessories"], ["created_at", "2018-05-16 18:23:43.591816"], ["updated_at", "2018-05-16 18:23:43.591816"]] Spree::ReturnAuthorizationReason Exists (0.2ms) SELECT 1 AS one FROM "spree_return_authorization_reasons" WHERE LOWER("spree_return_authorization_reasons"."name") = LOWER(?) LIMIT ? [["name", "Damaged/Defective"], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "spree_return_authorization_reasons" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Damaged/Defective"], ["created_at", "2018-05-16 18:23:43.595211"], ["updated_at", "2018-05-16 18:23:43.595211"]] Spree::ReturnAuthorizationReason Exists (0.2ms) SELECT 1 AS one FROM "spree_return_authorization_reasons" WHERE LOWER("spree_return_authorization_reasons"."name") = LOWER(?) LIMIT ? [["name", "Different from what was ordered"], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "spree_return_authorization_reasons" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Different from what was ordered"], ["created_at", "2018-05-16 18:23:43.598042"], ["updated_at", "2018-05-16 18:23:43.598042"]] Spree::ReturnAuthorizationReason Exists (0.2ms) SELECT 1 AS one FROM "spree_return_authorization_reasons" WHERE LOWER("spree_return_authorization_reasons"."name") = LOWER(?) LIMIT ? [["name", "Different from description"], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "spree_return_authorization_reasons" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Different from description"], ["created_at", "2018-05-16 18:23:43.600762"], ["updated_at", "2018-05-16 18:23:43.600762"]] Spree::ReturnAuthorizationReason Exists (0.1ms) SELECT 1 AS one FROM "spree_return_authorization_reasons" WHERE LOWER("spree_return_authorization_reasons"."name") = LOWER(?) LIMIT ? [["name", "No longer needed/wanted"], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "spree_return_authorization_reasons" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "No longer needed/wanted"], ["created_at", "2018-05-16 18:23:43.603309"], ["updated_at", "2018-05-16 18:23:43.603309"]] Spree::ReturnAuthorizationReason Exists (0.1ms) SELECT 1 AS one FROM "spree_return_authorization_reasons" WHERE LOWER("spree_return_authorization_reasons"."name") = LOWER(?) LIMIT ? [["name", "Accidental order"], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "spree_return_authorization_reasons" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Accidental order"], ["created_at", "2018-05-16 18:23:43.605843"], ["updated_at", "2018-05-16 18:23:43.605843"]] Spree::ReturnAuthorizationReason Exists (0.1ms) SELECT 1 AS one FROM "spree_return_authorization_reasons" WHERE LOWER("spree_return_authorization_reasons"."name") = LOWER(?) LIMIT ? [["name", "Unauthorized purchase"], ["LIMIT", 1]] SQL (0.1ms) INSERT INTO "spree_return_authorization_reasons" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "Unauthorized purchase"], ["created_at", "2018-05-16 18:23:43.608350"], ["updated_at", "2018-05-16 18:23:43.608350"]]  (0.4ms) ALTER TABLE "spree_return_authorizations" ADD "return_authorization_reason_id" integer  (0.2ms) CREATE INDEX "index_return_authorizations_on_return_authorization_reason_id" ON "spree_return_authorizations" ("return_authorization_reason_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181993"]]  (82.0ms) commit transaction Migrating to CreateSpreeRefundReasons (20180516181994)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "spree_refund_reasons" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "active" boolean DEFAULT 't', "mutable" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.4ms) ALTER TABLE "spree_refunds" ADD "refund_reason_id" integer  (0.2ms) CREATE INDEX "index_refunds_on_refund_reason_id" ON "spree_refunds" ("refund_reason_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181994"]]  (103.1ms) commit transaction Migrating to RenameReturnAuthorizationReason (20180516181995)  (0.1ms) begin transaction  (0.3ms) CREATE TEMPORARY TABLE "aspree_return_authorizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "state" varchar, "order_id" integer, "memo" text, "created_at" datetime, "updated_at" datetime, "stock_location_id" integer, "return_authorization_reason_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_return_authorizations_on_return_authorization_reason_id" ON "aspree_return_authorizations" ("return_authorization_reason_id")  (0.1ms) INSERT INTO "aspree_return_authorizations" ("id","number","state","order_id","memo","created_at","updated_at","stock_location_id","return_authorization_reason_id") SELECT "id","number","state","order_id","reason","created_at","updated_at","stock_location_id","return_authorization_reason_id" FROM "spree_return_authorizations"  (0.5ms) DROP TABLE "spree_return_authorizations"  (0.3ms) CREATE TABLE "spree_return_authorizations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "state" varchar, "order_id" integer, "memo" text, "created_at" datetime, "updated_at" datetime, "stock_location_id" integer, "return_authorization_reason_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_return_authorizations_on_return_authorization_reason_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_return_authorizations_on_return_authorization_reason_id' AND type='index'   (0.3ms) CREATE INDEX "index_return_authorizations_on_return_authorization_reason_id" ON "spree_return_authorizations" ("return_authorization_reason_id")  (0.3ms) INSERT INTO "spree_return_authorizations" ("id","number","state","order_id","memo","created_at","updated_at","stock_location_id","return_authorization_reason_id") SELECT "id","number","state","order_id","memo","created_at","updated_at","stock_location_id","return_authorization_reason_id" FROM "aspree_return_authorizations"  (0.3ms) DROP TABLE "aspree_return_authorizations"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index'  SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181995"]]  (90.1ms) commit transaction Migrating to CreateSpreePromotionCategories (20180516181996)  (0.2ms) begin transaction  (0.8ms) CREATE TABLE "spree_promotion_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.9ms) ALTER TABLE "spree_promotions" ADD "promotion_category_id" integer  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_advertise' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_advertise' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_starts_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_starts_at' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_expires_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_expires_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_code' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index'   (0.2ms) CREATE INDEX "index_spree_promotions_on_promotion_category_id" ON "spree_promotions" ("promotion_category_id") SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181996"]]  (126.4ms) commit transaction Migrating to DropReceivedAtOnReturnItems (20180516181997)  (0.1ms) begin transaction  (0.6ms) CREATE TEMPORARY TABLE "aspree_return_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "return_authorization_id" integer, "inventory_unit_id" integer, "exchange_variant_id" integer, "received_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "pre_tax_amount" decimal(10,2) DEFAULT '0.0' NOT NULL, "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "additional_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL)  (0.3ms) INSERT INTO "aspree_return_items" ("id","return_authorization_id","inventory_unit_id","exchange_variant_id","received_at","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total") SELECT "id","return_authorization_id","inventory_unit_id","exchange_variant_id","received_at","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total" FROM "spree_return_items"  (0.6ms) DROP TABLE "spree_return_items"  (0.6ms) CREATE TABLE "spree_return_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "return_authorization_id" integer, "inventory_unit_id" integer, "exchange_variant_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "pre_tax_amount" decimal(10,2) DEFAULT '0.0' NOT NULL, "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "additional_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL)  (0.2ms) INSERT INTO "spree_return_items" ("id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total") SELECT "id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total" FROM "aspree_return_items"  (0.2ms) DROP TABLE "aspree_return_items" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181997"]]  (94.2ms) commit transaction Migrating to AddReceptionAndAcceptanceStatusToReturnItems (20180516181998)  (0.2ms) begin transaction  (0.9ms) ALTER TABLE "spree_return_items" ADD "reception_status" varchar  (0.4ms) ALTER TABLE "spree_return_items" ADD "acceptance_status" varchar SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181998"]]  (82.6ms) commit transaction Migrating to CreateDefaultRefundReason (20180516181999)  (0.2ms) begin transaction Spree::RefundReason Exists (0.2ms) SELECT 1 AS one FROM "spree_refund_reasons" WHERE LOWER("spree_refund_reasons"."name") = LOWER(?) LIMIT ? [["name", "Return processing"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "spree_refund_reasons" ("name", "mutable", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Return processing"], ["mutable", "f"], ["created_at", "2018-05-16 18:23:44.274749"], ["updated_at", "2018-05-16 18:23:44.274749"]] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516181999"]]  (71.1ms) commit transaction Migrating to AddDefaultToSpreeStockLocations (20180516182000)  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182000"]]  (93.9ms) commit transaction Migrating to CreateSpreeCustomerReturns (20180516182001)  (0.1ms) begin transaction  (0.9ms) CREATE TABLE "spree_customer_returns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "stock_location_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182001"]]  (115.9ms) commit transaction Migrating to AddCustomerReturnIdToReturnItem (20180516182002)  (0.1ms) begin transaction  (1.1ms) ALTER TABLE "spree_return_items" ADD "customer_return_id" integer  (0.3ms) CREATE INDEX "index_return_items_on_customer_return_id" ON "spree_return_items" ("customer_return_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182002"]]  (127.5ms) commit transaction Migrating to CreateFriendlyIdSlugs (20180516182003)  (0.1ms) begin transaction  (1.0ms) CREATE TABLE "friendly_id_slugs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "slug" varchar NOT NULL, "sluggable_id" integer NOT NULL, "sluggable_type" varchar(50), "scope" varchar, "created_at" datetime)  (0.2ms) CREATE INDEX "index_friendly_id_slugs_on_sluggable_id" ON "friendly_id_slugs" ("sluggable_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'   (0.2ms) CREATE INDEX "index_friendly_id_slugs_on_slug_and_sluggable_type" ON "friendly_id_slugs" ("slug", "sluggable_type")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'   (0.3ms) CREATE UNIQUE INDEX "index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope" ON "friendly_id_slugs" ("slug", "sluggable_type", "scope")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'   (0.2ms) CREATE INDEX "index_friendly_id_slugs_on_sluggable_type" ON "friendly_id_slugs" ("sluggable_type") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182003"]]  (121.4ms) commit transaction Migrating to RenameSpreeRefundReturnAuthorizationId (20180516182004)  (0.1ms) begin transaction  (0.5ms) CREATE TEMPORARY TABLE "aspree_refunds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "payment_id" integer, "customer_return_id" integer, "amount" decimal(10,2) DEFAULT '0.0' NOT NULL, "transaction_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "refund_reason_id" integer)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_refunds_on_refund_reason_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_refunds_on_refund_reason_id' AND type='index'   (0.3ms) CREATE INDEX "tindex_refunds_on_refund_reason_id" ON "aspree_refunds" ("refund_reason_id")  (0.2ms) INSERT INTO "aspree_refunds" ("id","payment_id","customer_return_id","amount","transaction_id","created_at","updated_at","refund_reason_id") SELECT "id","payment_id","return_authorization_id","amount","transaction_id","created_at","updated_at","refund_reason_id" FROM "spree_refunds"  (0.6ms) DROP TABLE "spree_refunds"  (0.5ms) CREATE TABLE "spree_refunds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "payment_id" integer, "customer_return_id" integer, "amount" decimal(10,2) DEFAULT '0.0' NOT NULL, "transaction_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "refund_reason_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_refunds_on_refund_reason_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_refunds_on_refund_reason_id' AND type='index'   (0.2ms) CREATE INDEX "index_refunds_on_refund_reason_id" ON "spree_refunds" ("refund_reason_id")  (0.1ms) INSERT INTO "spree_refunds" ("id","payment_id","customer_return_id","amount","transaction_id","created_at","updated_at","refund_reason_id") SELECT "id","payment_id","customer_return_id","amount","transaction_id","created_at","updated_at","refund_reason_id" FROM "aspree_refunds"  (0.2ms) DROP TABLE "aspree_refunds"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_refunds_on_refund_reason_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_refunds_on_refund_reason_id' AND type='index'  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182004"]]  (107.8ms) commit transaction Migrating to IncreaseReturnItemPreTaxAmountPrecision (20180516182005)  (0.1ms) begin transaction  (0.3ms) CREATE TEMPORARY TABLE "aspree_return_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "return_authorization_id" integer, "inventory_unit_id" integer, "exchange_variant_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "pre_tax_amount" decimal(10,2) DEFAULT '0.0' NOT NULL, "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "additional_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "reception_status" varchar, "acceptance_status" varchar, "customer_return_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_return_items_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_items_on_customer_return_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_return_items_on_customer_return_id" ON "aspree_return_items" ("customer_return_id")  (0.1ms) INSERT INTO "aspree_return_items" ("id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id") SELECT "id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id" FROM "spree_return_items"  (0.5ms) DROP TABLE "spree_return_items"  (0.4ms) CREATE TABLE "spree_return_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "return_authorization_id" integer, "inventory_unit_id" integer, "exchange_variant_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "pre_tax_amount" decimal(12,4) DEFAULT 0.0 NOT NULL, "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "additional_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "reception_status" varchar, "acceptance_status" varchar, "customer_return_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_return_items_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_return_items_on_customer_return_id' AND type='index'   (0.2ms) CREATE INDEX "index_return_items_on_customer_return_id" ON "spree_return_items" ("customer_return_id")  (0.3ms) INSERT INTO "spree_return_items" ("id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id") SELECT "id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id" FROM "aspree_return_items"  (0.3ms) DROP TABLE "aspree_return_items"  (0.3ms) CREATE TEMPORARY TABLE "aspree_return_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "return_authorization_id" integer, "inventory_unit_id" integer, "exchange_variant_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "pre_tax_amount" decimal(12,4) DEFAULT '0.0' NOT NULL, "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "additional_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "reception_status" varchar, "acceptance_status" varchar, "customer_return_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_return_items_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_items_on_customer_return_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_return_items_on_customer_return_id" ON "aspree_return_items" ("customer_return_id")  (0.1ms) INSERT INTO "aspree_return_items" ("id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id") SELECT "id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id" FROM "spree_return_items"  (0.3ms) DROP TABLE "spree_return_items"  (0.3ms) CREATE TABLE "spree_return_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "return_authorization_id" integer, "inventory_unit_id" integer, "exchange_variant_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "pre_tax_amount" decimal(12,4) DEFAULT '0.0' NOT NULL, "included_tax_total" decimal(12,4) DEFAULT 0.0 NOT NULL, "additional_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "reception_status" varchar, "acceptance_status" varchar, "customer_return_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_return_items_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_return_items_on_customer_return_id' AND type='index'   (0.2ms) CREATE INDEX "index_return_items_on_customer_return_id" ON "spree_return_items" ("customer_return_id")  (0.1ms) INSERT INTO "spree_return_items" ("id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id") SELECT "id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id" FROM "aspree_return_items"  (0.2ms) DROP TABLE "aspree_return_items"  (0.2ms) CREATE TEMPORARY TABLE "aspree_return_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "return_authorization_id" integer, "inventory_unit_id" integer, "exchange_variant_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "pre_tax_amount" decimal(12,4) DEFAULT '0.0' NOT NULL, "included_tax_total" decimal(12,4) DEFAULT '0.0' NOT NULL, "additional_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "reception_status" varchar, "acceptance_status" varchar, "customer_return_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_return_items_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_items_on_customer_return_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_return_items_on_customer_return_id" ON "aspree_return_items" ("customer_return_id")  (0.1ms) INSERT INTO "aspree_return_items" ("id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id") SELECT "id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id" FROM "spree_return_items"  (0.2ms) DROP TABLE "spree_return_items"  (0.2ms) CREATE TABLE "spree_return_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "return_authorization_id" integer, "inventory_unit_id" integer, "exchange_variant_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "pre_tax_amount" decimal(12,4) DEFAULT '0.0' NOT NULL, "included_tax_total" decimal(12,4) DEFAULT '0.0' NOT NULL, "additional_tax_total" decimal(12,4) DEFAULT 0.0 NOT NULL, "reception_status" varchar, "acceptance_status" varchar, "customer_return_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_return_items_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_return_items_on_customer_return_id' AND type='index'   (0.2ms) CREATE INDEX "index_return_items_on_customer_return_id" ON "spree_return_items" ("customer_return_id")  (0.1ms) INSERT INTO "spree_return_items" ("id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id") SELECT "id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id" FROM "aspree_return_items"  (0.2ms) DROP TABLE "aspree_return_items" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182005"]]  (100.1ms) commit transaction Migrating to CopyProductSlugsToSlugHistory (20180516182006)  (0.1ms) begin transaction  (0.6ms) INSERT INTO friendly_id_slugs (slug, sluggable_id, sluggable_type, created_at) SELECT slug, id, 'Spree::Product', '2018-05-16 18:23:45.128036' FROM spree_products WHERE slug IS NOT NULL ORDER BY id  SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182006"]]  (71.6ms) commit transaction Migrating to CreateSpreeReimbursements (20180516182007)  (0.2ms) begin transaction  (1.1ms) CREATE TABLE "spree_reimbursements" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar, "reimbursement_status" varchar, "customer_return_id" integer, "order_id" integer, "total" decimal(10,2), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.5ms) CREATE INDEX "index_spree_reimbursements_on_customer_return_id" ON "spree_reimbursements" ("customer_return_id")  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_reimbursements_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_reimbursements_on_customer_return_id' AND type='index'   (0.5ms) CREATE INDEX "index_spree_reimbursements_on_order_id" ON "spree_reimbursements" ("order_id")  (0.2ms) CREATE TEMPORARY TABLE "aspree_refunds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "payment_id" integer, "customer_return_id" integer, "amount" decimal(10,2) DEFAULT '0.0' NOT NULL, "transaction_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "refund_reason_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_refunds_on_refund_reason_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_refunds_on_refund_reason_id' AND type='index'   (0.3ms) CREATE INDEX "tindex_refunds_on_refund_reason_id" ON "aspree_refunds" ("refund_reason_id")  (0.1ms) INSERT INTO "aspree_refunds" ("id","payment_id","customer_return_id","amount","transaction_id","created_at","updated_at","refund_reason_id") SELECT "id","payment_id","customer_return_id","amount","transaction_id","created_at","updated_at","refund_reason_id" FROM "spree_refunds"  (0.5ms) DROP TABLE "spree_refunds"  (0.3ms) CREATE TABLE "spree_refunds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "payment_id" integer, "amount" decimal(10,2) DEFAULT '0.0' NOT NULL, "transaction_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "refund_reason_id" integer)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_refunds_on_refund_reason_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_refunds_on_refund_reason_id' AND type='index'   (0.2ms) CREATE INDEX "index_refunds_on_refund_reason_id" ON "spree_refunds" ("refund_reason_id")  (0.1ms) INSERT INTO "spree_refunds" ("id","payment_id","amount","transaction_id","created_at","updated_at","refund_reason_id") SELECT "id","payment_id","amount","transaction_id","created_at","updated_at","refund_reason_id" FROM "aspree_refunds"  (0.2ms) DROP TABLE "aspree_refunds"  (0.3ms) ALTER TABLE "spree_refunds" ADD "reimbursement_id" integer  (0.3ms) ALTER TABLE "spree_return_items" ADD "reimbursement_id" integer SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182007"]]  (105.7ms) commit transaction Migrating to AddPromotionableToSpreeProducts (20180516182008)  (0.1ms) begin transaction  (0.9ms) ALTER TABLE "spree_products" ADD "promotionable" boolean DEFAULT 't' SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182008"]]  (75.5ms) commit transaction Migrating to AddExchangeInventoryUnitForeignKeys (20180516182009)  (0.1ms) begin transaction  (1.1ms) ALTER TABLE "spree_return_items" ADD "exchange_inventory_unit_id" integer  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_return_items_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_items_on_customer_return_id' AND type='index'   (0.6ms) CREATE INDEX "index_spree_return_items_on_exchange_inventory_unit_id" ON "spree_return_items" ("exchange_inventory_unit_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182009"]]  (134.1ms) commit transaction Migrating to AddAcceptanceStatusErrorsToReturnItem (20180516182010)  (0.1ms) begin transaction  (1.2ms) ALTER TABLE "spree_return_items" ADD "acceptance_status_errors" text SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182010"]]  (84.9ms) commit transaction Migrating to CreateSpreeReimbursementTypes (20180516182011)  (0.2ms) begin transaction  (0.9ms) CREATE TABLE "spree_reimbursement_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "active" boolean DEFAULT 't', "mutable" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) Spree::ReimbursementType Exists (0.3ms) SELECT 1 AS one FROM "spree_reimbursement_types" WHERE LOWER("spree_reimbursement_types"."name") = LOWER(?) LIMIT ? [["name", "original"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "spree_reimbursement_types" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "original"], ["created_at", "2018-05-16 18:23:45.673172"], ["updated_at", "2018-05-16 18:23:45.673172"]]  (0.7ms) ALTER TABLE "spree_return_items" ADD "preferred_reimbursement_type_id" integer  (0.4ms) ALTER TABLE "spree_return_items" ADD "override_reimbursement_type_id" integer SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182011"]]  (145.7ms) commit transaction Migrating to AddDefaultToShipmentCost (20180516182012)  (0.2ms) begin transaction  (0.6ms) CREATE TEMPORARY TABLE "aspree_shipments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tracking" varchar, "number" varchar, "cost" decimal(8,2), "shipped_at" datetime, "order_id" integer, "address_id" integer, "state" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "stock_location_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "pre_tax_amount" decimal(8,2))  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_address_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_shipments_on_address_id" ON "aspree_shipments" ("address_id")  (0.3ms) CREATE INDEX "tindex_aspree_shipments_on_stock_location_id" ON "aspree_shipments" ("stock_location_id")  (0.2ms) CREATE INDEX "tindex_aspree_shipments_on_order_id" ON "aspree_shipments" ("order_id")  (0.1ms) CREATE INDEX "tindex_shipments_on_number" ON "aspree_shipments" ("number")  (0.1ms) INSERT INTO "aspree_shipments" ("id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount") SELECT "id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount" FROM "spree_shipments"  (0.7ms) DROP TABLE "spree_shipments"  (0.5ms) CREATE TABLE "spree_shipments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tracking" varchar, "number" varchar, "cost" decimal(10,2) DEFAULT 0.0, "shipped_at" datetime, "order_id" integer, "address_id" integer, "state" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "stock_location_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "pre_tax_amount" decimal(8,2))  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_shipments_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_shipments_on_order_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_shipments_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_shipments_on_stock_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_shipments_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_shipments_on_address_id' AND type='index'   (0.3ms) CREATE INDEX "index_shipments_on_number" ON "spree_shipments" ("number")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.3ms) CREATE INDEX "index_spree_shipments_on_order_id" ON "spree_shipments" ("order_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.4ms) CREATE INDEX "index_spree_shipments_on_stock_location_id" ON "spree_shipments" ("stock_location_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_shipments_on_address_id" ON "spree_shipments" ("address_id")  (0.3ms) INSERT INTO "spree_shipments" ("id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount") SELECT "id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount" FROM "aspree_shipments"  (0.3ms) DROP TABLE "aspree_shipments" SQL (0.1ms) UPDATE "spree_shipments" SET "cost" = 0 WHERE "spree_shipments"."cost" IS NULL SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182012"]]  (88.7ms) commit transaction Migrating to AddDefaultToSpreeCreditCards (20180516182013)  (0.1ms) begin transaction  (1.2ms) ALTER TABLE "spree_credit_cards" ADD "default" boolean DEFAULT 'f' NOT NULL SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182013"]]  (85.0ms) commit transaction Migrating to MakeExistingCreditCardsDefault (20180516182014)  (0.2ms) begin transaction SQL (0.4ms) UPDATE "spree_credit_cards" SET "default" = 't' WHERE "spree_credit_cards"."id" IN (SELECT "spree_credit_cards"."id" FROM "spree_credit_cards" LEFT OUTER JOIN spree_credit_cards cc2 ON cc2.user_id = spree_credit_cards.user_id AND spree_credit_cards.created_at < cc2.created_at WHERE ("spree_credit_cards"."user_id" IS NOT NULL) AND (cc2.user_id IS NULL)) SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182014"]]  (90.4ms) commit transaction Migrating to AddTypeToReimbursementType (20180516182015)  (0.1ms) begin transaction  (1.2ms) ALTER TABLE "spree_reimbursement_types" ADD "type" varchar  (0.6ms) CREATE INDEX "index_spree_reimbursement_types_on_type" ON "spree_reimbursement_types" ("type") Spree::ReimbursementType Load (0.2ms) SELECT "spree_reimbursement_types".* FROM "spree_reimbursement_types" WHERE "spree_reimbursement_types"."name" = ? ORDER BY LOWER(spree_reimbursement_types.name) LIMIT ? [["name", "original"], ["LIMIT", 1]] Spree::ReimbursementType Exists (0.3ms) SELECT 1 AS one FROM "spree_reimbursement_types" WHERE LOWER("spree_reimbursement_types"."name") = LOWER(?) AND ("spree_reimbursement_types"."id" != ?) LIMIT ? [["name", "original"], ["id", 1], ["LIMIT", 1]] SQL (0.4ms) UPDATE "spree_reimbursement_types" SET "type" = ?, "updated_at" = ? WHERE "spree_reimbursement_types"."id" = ? [["type", "Spree::ReimbursementType::OriginalPayment"], ["updated_at", "2018-05-16 18:23:46.166433"], ["id", 1]] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182015"]]  (75.5ms) commit transaction Migrating to CreateSpreeReimbursementCredits (20180516182016)  (0.1ms) begin transaction  (0.8ms) CREATE TABLE "spree_reimbursement_credits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" decimal(10,2) DEFAULT 0.0 NOT NULL, "reimbursement_id" integer, "creditable_id" integer, "creditable_type" varchar) SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182016"]]  (83.9ms) commit transaction Migrating to AddMetaTitleToSpreeProducts (20180516182017)  (0.1ms) begin transaction  (0.8ms) ALTER TABLE "spree_products" ADD "meta_title" varchar SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182017"]]  (71.5ms) commit transaction Migrating to AddKindToZone (20180516182018)  (0.2ms) begin transaction  (0.9ms) ALTER TABLE "spree_zones" ADD "kind" varchar  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_zones_on_default_tax' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_zones_on_default_tax' AND type='index'   (0.3ms) CREATE INDEX "index_spree_zones_on_kind" ON "spree_zones" ("kind") Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" ORDER BY "spree_zones"."id" ASC LIMIT ? [["LIMIT", 1000]] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182018"]]  (105.8ms) commit transaction Migrating to AddCodeToSpreeTaxCategories (20180516182019)  (0.2ms) begin transaction  (1.2ms) ALTER TABLE "spree_tax_categories" ADD "tax_code" varchar SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182019"]]  (80.0ms) commit transaction Migrating to DefaultPreTaxAmountShouldBeZero (20180516182020)  (0.1ms) begin transaction  (0.4ms) CREATE TEMPORARY TABLE "aspree_line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer, "order_id" integer, "quantity" integer NOT NULL, "price" decimal(10,2) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "cost_price" decimal(10,2), "tax_category_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "pre_tax_amount" decimal(8,2))  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_line_items_on_tax_category_id" ON "aspree_line_items" ("tax_category_id")  (0.2ms) CREATE INDEX "tindex_aspree_line_items_on_variant_id" ON "aspree_line_items" ("variant_id")  (0.2ms) CREATE INDEX "tindex_aspree_line_items_on_order_id" ON "aspree_line_items" ("order_id")  (0.2ms) INSERT INTO "aspree_line_items" ("id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount") SELECT "id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount" FROM "spree_line_items"  (0.6ms) DROP TABLE "spree_line_items"  (0.9ms) CREATE TABLE "spree_line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer, "order_id" integer, "quantity" integer NOT NULL, "price" decimal(10,2) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "cost_price" decimal(10,2), "tax_category_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "pre_tax_amount" decimal(8,2) DEFAULT 0)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_line_items_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_line_items_on_variant_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_line_items_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_line_items_on_tax_category_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_line_items_on_order_id" ON "spree_line_items" ("order_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_line_items_on_variant_id" ON "spree_line_items" ("variant_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_variant_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_line_items_on_tax_category_id" ON "spree_line_items" ("tax_category_id")  (0.3ms) INSERT INTO "spree_line_items" ("id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount") SELECT "id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount" FROM "aspree_line_items"  (0.2ms) DROP TABLE "aspree_line_items"  (0.3ms) CREATE TEMPORARY TABLE "aspree_shipments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tracking" varchar, "number" varchar, "cost" decimal(10,2) DEFAULT '0.0', "shipped_at" datetime, "order_id" integer, "address_id" integer, "state" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "stock_location_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "pre_tax_amount" decimal(8,2))  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_shipments_on_address_id" ON "aspree_shipments" ("address_id")  (0.2ms) CREATE INDEX "tindex_aspree_shipments_on_stock_location_id" ON "aspree_shipments" ("stock_location_id")  (0.2ms) CREATE INDEX "tindex_aspree_shipments_on_order_id" ON "aspree_shipments" ("order_id")  (0.2ms) CREATE INDEX "tindex_shipments_on_number" ON "aspree_shipments" ("number")  (0.1ms) INSERT INTO "aspree_shipments" ("id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount") SELECT "id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount" FROM "spree_shipments"  (0.5ms) DROP TABLE "spree_shipments"  (0.3ms) CREATE TABLE "spree_shipments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tracking" varchar, "number" varchar, "cost" decimal(10,2) DEFAULT '0.0', "shipped_at" datetime, "order_id" integer, "address_id" integer, "state" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "stock_location_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "pre_tax_amount" decimal(8,2) DEFAULT 0)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_shipments_on_number' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_shipments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_shipments_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_shipments_on_stock_location_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_shipments_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_shipments_on_address_id' AND type='index'   (0.2ms) CREATE INDEX "index_shipments_on_number" ON "spree_shipments" ("number")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_shipments_on_order_id" ON "spree_shipments" ("order_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_shipments_on_stock_location_id" ON "spree_shipments" ("stock_location_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_shipments_on_address_id" ON "spree_shipments" ("address_id")  (0.2ms) INSERT INTO "spree_shipments" ("id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount") SELECT "id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount" FROM "aspree_shipments"  (0.3ms) DROP TABLE "aspree_shipments" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182020"]]  (104.9ms) commit transaction Migrating to AddCodeToSpreeShippingMethods (20180516182021)  (0.1ms) begin transaction  (0.8ms) ALTER TABLE "spree_shipping_methods" ADD "code" varchar SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182021"]]  (80.0ms) commit transaction Migrating to AddCancelAuditFieldsToSpreeOrders (20180516182022)  (0.1ms) begin transaction  (1.2ms) ALTER TABLE "spree_orders" ADD "canceled_at" datetime  (0.7ms) ALTER TABLE "spree_orders" ADD "canceler_id" integer SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182022"]]  (93.8ms) commit transaction Migrating to AddStoreIdToOrders (20180516182023)  (0.1ms) begin transaction  (1.5ms) ALTER TABLE "spree_orders" ADD "store_id" integer Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = ? ORDER BY "spree_stores"."id" ASC LIMIT ? [["default", "t"], ["LIMIT", 1]] SQL (0.3ms) UPDATE "spree_orders" SET "store_id" = 1 WHERE "spree_orders"."store_id" IS NULL SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182023"]]  (74.1ms) commit transaction Migrating to CreateSpreeTaxonsPrototypes (20180516182024)  (0.2ms) begin transaction  (1.0ms) CREATE TABLE "spree_taxons_prototypes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "taxon_id" integer, "prototype_id" integer)  (0.5ms) CREATE INDEX "index_spree_taxons_prototypes_on_taxon_id" ON "spree_taxons_prototypes" ("taxon_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_taxons_prototypes_on_prototype_id" ON "spree_taxons_prototypes" ("prototype_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182024"]]  (106.2ms) commit transaction Migrating to AddStateLockVersionToOrder (20180516182025)  (0.2ms) begin transaction  (1.7ms) ALTER TABLE "spree_orders" ADD "state_lock_version" integer DEFAULT 0 NOT NULL SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182025"]]  (104.4ms) commit transaction Migrating to AddCounterCacheFromSpreeVariantsToSpreeStockItems (20180516182026)  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182026"]]  (78.2ms) commit transaction Migrating to FixAdjustmentOrderPresence (20180516182027)  (0.1ms) begin transaction Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."order_id" IS NULL ORDER BY "spree_adjustments"."id" ASC LIMIT ? [["LIMIT", 1000]] SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182027"]]  (101.1ms) commit transaction Migrating to UpdateClassificationsPositions (20180516182028)  (0.1ms) begin transaction Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182028"]]  (72.4ms) commit transaction Migrating to AddGuestTokenIndexToSpreeOrders (20180516182029)  (0.1ms) begin transaction  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.6ms) CREATE INDEX "index_spree_orders_on_guest_token" ON "spree_orders" ("guest_token") SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182029"]]  (95.6ms) commit transaction Migrating to RemoveTokenPermissionsTable (20180516182030)  (0.2ms) begin transaction  (1.0ms) DROP TABLE "spree_tokenized_permissions" SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182030"]]  (71.0ms) commit transaction Migrating to RemoveExtraProductsSlugIndex (20180516182031)  (0.1ms) begin transaction  (0.5ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_tax_category_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_slug' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='permalink_idx_unique' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='permalink_idx_unique' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.3ms) DROP INDEX "permalink_idx_unique" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182031"]]  (90.5ms) commit transaction Migrating to UpdateProductSlugIndex (20180516182032)  (0.1ms) begin transaction  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_tax_category_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_slug' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_slug' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_tax_category_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_slug' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.6ms) DROP INDEX "index_spree_products_on_slug"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.4ms) CREATE UNIQUE INDEX "index_spree_products_on_slug" ON "spree_products" ("slug") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182032"]]  (89.8ms) commit transaction Migrating to RenameIdentifierToNumberForPayment (20180516182033)  (0.1ms) begin transaction  (0.5ms) CREATE TEMPORARY TABLE "aspree_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" decimal(10,2) DEFAULT '0.0' NOT NULL, "order_id" integer, "source_type" varchar, "source_id" integer, "payment_method_id" integer, "state" varchar, "response_code" varchar, "avs_response" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "number" varchar, "cvv_response_code" varchar, "cvv_response_message" varchar)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_payments_on_source_id_and_source_type" ON "aspree_payments" ("source_id", "source_type")  (0.2ms) CREATE INDEX "tindex_aspree_payments_on_payment_method_id" ON "aspree_payments" ("payment_method_id")  (0.2ms) CREATE INDEX "tindex_aspree_payments_on_order_id" ON "aspree_payments" ("order_id")  (0.1ms) INSERT INTO "aspree_payments" ("id","amount","order_id","source_type","source_id","payment_method_id","state","response_code","avs_response","created_at","updated_at","number","cvv_response_code","cvv_response_message") SELECT "id","amount","order_id","source_type","source_id","payment_method_id","state","response_code","avs_response","created_at","updated_at","identifier","cvv_response_code","cvv_response_message" FROM "spree_payments"  (0.5ms) DROP TABLE "spree_payments"  (0.3ms) CREATE TABLE "spree_payments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "amount" decimal(10,2) DEFAULT '0.0' NOT NULL, "order_id" integer, "source_type" varchar, "source_id" integer, "payment_method_id" integer, "state" varchar, "response_code" varchar, "avs_response" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "number" varchar, "cvv_response_code" varchar, "cvv_response_message" varchar)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_payments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_payments_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_payments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_payments_on_source_id_and_source_type' AND type='index'   (0.2ms) CREATE INDEX "index_spree_payments_on_order_id" ON "spree_payments" ("order_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_payments_on_payment_method_id" ON "spree_payments" ("payment_method_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_payments_on_source_id_and_source_type" ON "spree_payments" ("source_id", "source_type")  (0.3ms) INSERT INTO "spree_payments" ("id","amount","order_id","source_type","source_id","payment_method_id","state","response_code","avs_response","created_at","updated_at","number","cvv_response_code","cvv_response_message") SELECT "id","amount","order_id","source_type","source_id","payment_method_id","state","response_code","avs_response","created_at","updated_at","number","cvv_response_code","cvv_response_message" FROM "aspree_payments"  (0.2ms) DROP TABLE "aspree_payments"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182033"]]  (100.9ms) commit transaction Migrating to CreateSpreeStoreCredits (20180516182034)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "spree_store_credits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "category_id" integer, "created_by_id" integer, "amount" decimal(8,2) DEFAULT 0.0 NOT NULL, "amount_used" decimal(8,2) DEFAULT 0.0 NOT NULL, "memo" text, "deleted_at" datetime, "currency" varchar, "amount_authorized" decimal(8,2) DEFAULT 0.0 NOT NULL, "originator_id" integer, "originator_type" varchar, "type_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE INDEX "index_spree_store_credits_on_deleted_at" ON "spree_store_credits" ("deleted_at")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_store_credits_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_store_credits_on_deleted_at' AND type='index'   (0.2ms) CREATE INDEX "index_spree_store_credits_on_user_id" ON "spree_store_credits" ("user_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_store_credits_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_store_credits_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_store_credits_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_store_credits_on_deleted_at' AND type='index'   (0.2ms) CREATE INDEX "index_spree_store_credits_on_type_id" ON "spree_store_credits" ("type_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_store_credits_on_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_store_credits_on_type_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_store_credits_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_store_credits_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_store_credits_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_store_credits_on_deleted_at' AND type='index'   (0.2ms) CREATE INDEX "spree_store_credits_originator" ON "spree_store_credits" ("originator_id", "originator_type") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182034"]]  (115.0ms) commit transaction Migrating to CreateSpreeStoreCreditCategories (20180516182035)  (0.2ms) begin transaction  (1.0ms) CREATE TABLE "spree_store_credit_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182035"]]  (82.2ms) commit transaction Migrating to CreateSpreeStoreCreditEvents (20180516182036)  (0.1ms) begin transaction  (0.9ms) CREATE TABLE "spree_store_credit_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "store_credit_id" integer NOT NULL, "action" varchar NOT NULL, "amount" decimal(8,2), "authorization_code" varchar NOT NULL, "user_total_amount" decimal(8,2) DEFAULT 0.0 NOT NULL, "originator_id" integer, "originator_type" varchar, "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.5ms) CREATE INDEX "index_spree_store_credit_events_on_store_credit_id" ON "spree_store_credit_events" ("store_credit_id")  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_store_credit_events_on_store_credit_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_store_credit_events_on_store_credit_id' AND type='index'   (0.4ms) CREATE INDEX "spree_store_credit_events_originator" ON "spree_store_credit_events" ("originator_id", "originator_type") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182036"]]  (98.7ms) commit transaction Migrating to CreateSpreeStoreCreditTypes (20180516182037)  (0.1ms) begin transaction  (2.5ms) CREATE TABLE "spree_store_credit_types" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "priority" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.7ms) CREATE INDEX "index_spree_store_credit_types_on_priority" ON "spree_store_credit_types" ("priority") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182037"]]  (112.7ms) commit transaction Migrating to RemoveEnvironmentFromPaymentMethod (20180516182038)  (0.1ms) begin transaction SQL (0.2ms) UPDATE "spree_payment_methods" SET "active" = 'f' WHERE "spree_payment_methods"."deleted_at" IS NULL AND (environment != 'test')  (0.3ms) CREATE TEMPORARY TABLE "aspree_payment_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "name" varchar, "description" text, "active" boolean DEFAULT 't', "environment" varchar DEFAULT 'development', "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "display_on" varchar, "auto_capture" boolean, "preferences" text)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payment_methods_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payment_methods_on_id_and_type' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_payment_methods_on_id_and_type" ON "aspree_payment_methods" ("id", "type")  (0.2ms) INSERT INTO "aspree_payment_methods" ("id","type","name","description","active","environment","deleted_at","created_at","updated_at","display_on","auto_capture","preferences") SELECT "id","type","name","description","active","environment","deleted_at","created_at","updated_at","display_on","auto_capture","preferences" FROM "spree_payment_methods"  (0.7ms) DROP TABLE "spree_payment_methods"  (0.5ms) CREATE TABLE "spree_payment_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "name" varchar, "description" text, "active" boolean DEFAULT 't', "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "display_on" varchar, "auto_capture" boolean, "preferences" text)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_payment_methods_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_payment_methods_on_id_and_type' AND type='index'   (0.3ms) CREATE INDEX "index_spree_payment_methods_on_id_and_type" ON "spree_payment_methods" ("id", "type")  (0.3ms) INSERT INTO "spree_payment_methods" ("id","type","name","description","active","deleted_at","created_at","updated_at","display_on","auto_capture","preferences") SELECT "id","type","name","description","active","deleted_at","created_at","updated_at","display_on","auto_capture","preferences" FROM "aspree_payment_methods"  (0.3ms) DROP TABLE "aspree_payment_methods" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182038"]]  (65.1ms) commit transaction Migrating to AddResellableToReturnItems (20180516182039)  (0.1ms) begin transaction  (0.7ms) ALTER TABLE "spree_return_items" ADD "resellable" boolean DEFAULT 't' NOT NULL SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182039"]]  (97.2ms) commit transaction Migrating to AddCodeToSpreePromotionCategories (20180516182040)  (0.1ms) begin transaction  (0.9ms) ALTER TABLE "spree_promotion_categories" ADD "code" varchar SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182040"]]  (72.7ms) commit transaction Migrating to RemoveEnvironmentFromTracker (20180516182041)  (0.1ms) begin transaction SQL (0.1ms) UPDATE "spree_trackers" SET "active" = 'f' WHERE (environment != 'test')  (0.3ms) CREATE TEMPORARY TABLE "aspree_trackers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "environment" varchar, "analytics_id" varchar, "active" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_trackers_on_active' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_trackers_on_active' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_trackers_on_active" ON "aspree_trackers" ("active")  (0.2ms) INSERT INTO "aspree_trackers" ("id","environment","analytics_id","active","created_at","updated_at") SELECT "id","environment","analytics_id","active","created_at","updated_at" FROM "spree_trackers"  (0.8ms) DROP TABLE "spree_trackers"  (0.3ms) CREATE TABLE "spree_trackers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "analytics_id" varchar, "active" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_trackers_on_active' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_trackers_on_active' AND type='index'   (0.2ms) CREATE INDEX "index_spree_trackers_on_active" ON "spree_trackers" ("active")  (0.1ms) INSERT INTO "spree_trackers" ("id","analytics_id","active","created_at","updated_at") SELECT "id","analytics_id","active","created_at","updated_at" FROM "aspree_trackers"  (0.2ms) DROP TABLE "aspree_trackers" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182041"]]  (120.9ms) commit transaction Migrating to RemoveSpreeConfigurations (20180516182042)  (0.2ms) begin transaction  (0.7ms) DROP TABLE "spree_configurations" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182042"]]  (94.9ms) commit transaction Migrating to AddIndexToSpreeStockItemsVariantId (20180516182043)  (0.1ms) begin transaction  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_backorderable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_backorderable' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_deleted_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='stock_item_by_loc_and_var_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='stock_item_by_loc_and_var_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_backorderable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_backorderable' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_deleted_at' AND type='index'   (0.5ms)  SELECT sql FROM sqlite_master WHERE name='stock_item_by_loc_and_var_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='stock_item_by_loc_and_var_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index'   (0.8ms) CREATE INDEX "index_spree_stock_items_on_variant_id" ON "spree_stock_items" ("variant_id") SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182043"]]  (59.7ms) commit transaction Migrating to EnsurePaymentsHaveNumbers (20180516182044)  (0.1ms) begin transaction  (0.5ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.6ms) CREATE INDEX "index_spree_payments_on_number" ON "spree_payments" ("number") Scoped order and limit are ignored, it's forced to be batch order and batch size. Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."number" IS NULL ORDER BY "spree_payments"."id" ASC LIMIT ? [["LIMIT", 1000]] SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182044"]]  (82.2ms) commit transaction Migrating to AddMissingIndexesOnSpreeTables (20180516182045)  (0.1ms) begin transaction  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index'   (0.5ms) CREATE INDEX "index_promotion_rules_users_on_user_id_and_promotion_rule_id" ON "spree_promotion_rules_users" ("user_id", "promotion_rule_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_promotion_rule_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_promotion_rule_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_products_promotion_rules_on_promotion_rule_and_product" ON "spree_products_promotion_rules" ("promotion_rule_id", "product_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_guest_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_guest_token' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_guest_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_guest_token' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_canceler_id" ON "spree_orders" ("canceler_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_canceler_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_canceler_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_guest_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_guest_token' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_canceler_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_canceler_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_guest_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_guest_token' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_store_id" ON "spree_orders" ("store_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_order_id_and_promotion_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_order_id_and_promotion_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_order_id_and_promotion_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_order_id_and_promotion_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_promotions_on_promotion_id_and_order_id" ON "spree_orders_promotions" ("promotion_id", "order_id")  (0.2ms) CREATE INDEX "index_spree_properties_prototypes_on_prototype_id" ON "spree_properties_prototypes" ("prototype_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_properties_prototypes_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_properties_prototypes_on_prototype_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_properties_prototypes_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_properties_prototypes_on_prototype_id' AND type='index'   (0.3ms) CREATE INDEX "index_properties_prototypes_on_prototype_and_property" ON "spree_properties_prototypes" ("prototype_id", "property_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_prototype_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_prototype_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_taxons_prototypes_on_prototype_id_and_taxon_id" ON "spree_taxons_prototypes" ("prototype_id", "taxon_id")  (0.2ms) CREATE INDEX "index_spree_option_types_prototypes_on_prototype_id" ON "spree_option_types_prototypes" ("prototype_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_types_prototypes_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_types_prototypes_on_prototype_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_types_prototypes_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_types_prototypes_on_prototype_id' AND type='index'   (0.2ms) CREATE INDEX "index_option_types_prototypes_on_prototype_and_option_type" ON "spree_option_types_prototypes" ("prototype_id", "option_type_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_variants_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_variants_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_variants_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_variants_on_variant_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.2ms) CREATE INDEX "index_option_values_variants_on_option_value_and_variant" ON "spree_option_values_variants" ("option_value_id", "variant_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182045"]]  (143.1ms) commit transaction Migrating to RemoveDuplicatedIndexesFromMultiColumns (20180516182046)  (0.1ms) begin transaction  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_source_id_and_source_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_eligible' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_eligible' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_adjustments_on_order_id' AND type='index'   (0.5ms) DROP INDEX "index_adjustments_on_order_id"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_types_prototypes_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_types_prototypes_on_prototype_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_types_prototypes_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_types_prototypes_on_prototype_id' AND type='index'   (0.5ms) DROP INDEX "index_spree_option_types_prototypes_on_prototype_id"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index'   (0.4ms) CREATE INDEX "index_spree_option_types_prototypes_on_option_type_id" ON "spree_option_types_prototypes" ("option_type_id")  (0.5ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_option_value_and_variant' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_option_value_and_variant' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_variants_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_variants_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.3ms) DROP INDEX "index_option_values_variants_on_option_value_and_variant"  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_variants_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_variants_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_variants_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_variants_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.3ms) DROP INDEX "index_spree_option_values_variants_on_variant_id"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_option_values_variants_on_option_value_id" ON "spree_option_values_variants" ("option_value_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_store_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_store_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_canceler_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_canceler_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_guest_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_guest_token' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_store_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_store_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_canceler_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_canceler_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_guest_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_guest_token' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.3ms) DROP INDEX "index_spree_orders_on_user_id"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_order_id_and_promotion_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_order_id_and_promotion_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_order_id_and_promotion_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_order_id_and_promotion_id' AND type='index'   (0.3ms) DROP INDEX "index_spree_orders_promotions_on_order_id_and_promotion_id"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_promotions_on_order_id" ON "spree_orders_promotions" ("order_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_promotion_rule_and_product' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_promotion_rule_and_product' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_promotion_rule_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index'   (0.2ms) DROP INDEX "index_products_promotion_rules_on_promotion_rule_id"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_user_id_and_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_user_id_and_promotion_rule_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index'   (0.3ms) DROP INDEX "index_promotion_rules_users_on_user_id"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_properties_prototypes_on_prototype_and_property' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_properties_prototypes_on_prototype_and_property' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_properties_prototypes_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_properties_prototypes_on_prototype_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_properties_prototypes_on_prototype_and_property' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_properties_prototypes_on_prototype_and_property' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_properties_prototypes_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_properties_prototypes_on_prototype_id' AND type='index'   (0.2ms) DROP INDEX "index_spree_properties_prototypes_on_prototype_id"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_variant_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_backorderable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_backorderable' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='stock_item_by_loc_and_var_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='stock_item_by_loc_and_var_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_backorderable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_backorderable' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='stock_item_by_loc_and_var_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='stock_item_by_loc_and_var_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index'   (0.3ms) DROP INDEX "index_spree_stock_items_on_stock_location_id"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_prototype_id_and_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_prototype_id_and_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_prototype_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_prototype_id_and_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_prototype_id_and_taxon_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_prototype_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index'   (0.2ms) DROP INDEX "index_spree_taxons_prototypes_on_prototype_id" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182046"]]  (77.7ms) commit transaction Migrating to RemoveUserIndexFromSpreeStateChanges (20180516182047)  (0.2ms) begin transaction  (0.6ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_state_changes_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_state_changes_on_user_id' AND type='index'   (0.5ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_state_changes_on_stateful_id_and_stateful_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_state_changes_on_stateful_id_and_stateful_type' AND type='index'   (0.5ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_state_changes_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_state_changes_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_state_changes_on_stateful_id_and_stateful_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_state_changes_on_stateful_id_and_stateful_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_state_changes_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_state_changes_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_state_changes_on_stateful_id_and_stateful_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_state_changes_on_stateful_id_and_stateful_type' AND type='index'   (0.8ms) DROP INDEX "index_spree_state_changes_on_user_id" SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182047"]]  (86.1ms) commit transaction Migrating to FixAdjustmentOrderId (20180516182048)  (0.2ms) begin transaction  (0.3ms) UPDATE spree_adjustments SET order_id = adjustable_id WHERE adjustable_type = 'Spree::Order' ;  (0.2ms) UPDATE spree_adjustments SET order_id = (SELECT order_id FROM spree_line_items WHERE spree_line_items.id = spree_adjustments.adjustable_id) WHERE adjustable_type = 'Spree::LineItem'  (0.3ms) CREATE TEMPORARY TABLE "aspree_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "source_type" varchar, "source_id" integer, "adjustable_type" varchar, "adjustable_id" integer, "amount" decimal(10,2), "label" varchar, "mandatory" boolean, "eligible" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "state" varchar, "order_id" integer, "included" boolean DEFAULT 'f')  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_source_id_and_source_type' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_eligible' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_eligible' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_adjustments_on_source_id_and_source_type" ON "aspree_adjustments" ("source_id", "source_type")  (0.2ms) CREATE INDEX "tindex_aspree_adjustments_on_order_id" ON "aspree_adjustments" ("order_id")  (0.3ms) CREATE INDEX "tindex_aspree_adjustments_on_eligible" ON "aspree_adjustments" ("eligible")  (0.2ms) CREATE INDEX "tindex_aspree_adjustments_on_adjustable_id_and_adjustable_type" ON "aspree_adjustments" ("adjustable_id", "adjustable_type")  (0.2ms) INSERT INTO "aspree_adjustments" ("id","source_type","source_id","adjustable_type","adjustable_id","amount","label","mandatory","eligible","created_at","updated_at","state","order_id","included") SELECT "id","source_type","source_id","adjustable_type","adjustable_id","amount","label","mandatory","eligible","created_at","updated_at","state","order_id","included" FROM "spree_adjustments"  (0.7ms) DROP TABLE "spree_adjustments"  (0.4ms) CREATE TABLE "spree_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "source_type" varchar, "source_id" integer, "adjustable_type" varchar, "adjustable_id" integer, "amount" decimal(10,2), "label" varchar, "mandatory" boolean, "eligible" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "state" varchar, "order_id" integer NOT NULL, "included" boolean DEFAULT 'f')  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_adjustments_on_eligible' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_adjustments_on_eligible' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_adjustments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_adjustments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_adjustments_on_source_id_and_source_type' AND type='index'   (0.3ms) CREATE INDEX "index_spree_adjustments_on_adjustable_id_and_adjustable_type" ON "spree_adjustments" ("adjustable_id", "adjustable_type")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index'   (0.2ms) CREATE INDEX "index_spree_adjustments_on_eligible" ON "spree_adjustments" ("eligible")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_eligible' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_eligible' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index'   (0.3ms) CREATE INDEX "index_spree_adjustments_on_order_id" ON "spree_adjustments" ("order_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_eligible' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_eligible' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index'   (0.2ms) CREATE INDEX "index_spree_adjustments_on_source_id_and_source_type" ON "spree_adjustments" ("source_id", "source_type")  (0.3ms) INSERT INTO "spree_adjustments" ("id","source_type","source_id","adjustable_type","adjustable_id","amount","label","mandatory","eligible","created_at","updated_at","state","order_id","included") SELECT "id","source_type","source_id","adjustable_type","adjustable_id","amount","label","mandatory","eligible","created_at","updated_at","state","order_id","included" FROM "aspree_adjustments"  (0.3ms) DROP TABLE "aspree_adjustments" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182048"]]  (72.7ms) commit transaction Migrating to AddPositionToSpreePaymentMethods (20180516182049)  (0.1ms) begin transaction  (1.1ms) ALTER TABLE "spree_payment_methods" ADD "position" integer DEFAULT 0 SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182049"]]  (61.4ms) commit transaction Migrating to AddDeletedAtToFriendlyIdSlugs (20180516182050)  (0.1ms) begin transaction  (1.1ms) ALTER TABLE "friendly_id_slugs" ADD "deleted_at" datetime  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'   (0.3ms) CREATE INDEX "index_friendly_id_slugs_on_deleted_at" ON "friendly_id_slugs" ("deleted_at") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182050"]]  (101.1ms) commit transaction Migrating to IncreaseScaleOnPreTaxAmounts (20180516182051)  (0.1ms) begin transaction  (0.2ms)  UPDATE spree_shipments SET pre_tax_amount = (cost + promo_total) - included_tax_total WHERE pre_tax_amount IS NULL;   (0.3ms) CREATE TEMPORARY TABLE "aspree_line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer, "order_id" integer, "quantity" integer NOT NULL, "price" decimal(10,2) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "cost_price" decimal(10,2), "tax_category_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "pre_tax_amount" decimal(8,2) DEFAULT '0')  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_tax_category_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_line_items_on_tax_category_id" ON "aspree_line_items" ("tax_category_id")  (0.2ms) CREATE INDEX "tindex_aspree_line_items_on_variant_id" ON "aspree_line_items" ("variant_id")  (0.2ms) CREATE INDEX "tindex_aspree_line_items_on_order_id" ON "aspree_line_items" ("order_id")  (0.1ms) INSERT INTO "aspree_line_items" ("id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount") SELECT "id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount" FROM "spree_line_items"  (0.6ms) DROP TABLE "spree_line_items"  (0.6ms) CREATE TABLE "spree_line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "variant_id" integer, "order_id" integer, "quantity" integer NOT NULL, "price" decimal(10,2) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "cost_price" decimal(10,2), "tax_category_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "pre_tax_amount" decimal(12,4) DEFAULT 0.0 NOT NULL)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_line_items_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_line_items_on_variant_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_line_items_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_line_items_on_tax_category_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_line_items_on_order_id" ON "spree_line_items" ("order_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_line_items_on_variant_id" ON "spree_line_items" ("variant_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_variant_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_line_items_on_tax_category_id" ON "spree_line_items" ("tax_category_id")  (0.3ms) INSERT INTO "spree_line_items" ("id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount") SELECT "id","variant_id","order_id","quantity","price","created_at","updated_at","currency","cost_price","tax_category_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount" FROM "aspree_line_items"  (0.2ms) DROP TABLE "aspree_line_items"  (0.2ms) CREATE TEMPORARY TABLE "aspree_shipments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tracking" varchar, "number" varchar, "cost" decimal(10,2) DEFAULT '0.0', "shipped_at" datetime, "order_id" integer, "address_id" integer, "state" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "stock_location_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "pre_tax_amount" decimal(8,2) DEFAULT '0')  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_shipments_on_address_id" ON "aspree_shipments" ("address_id")  (0.2ms) CREATE INDEX "tindex_aspree_shipments_on_stock_location_id" ON "aspree_shipments" ("stock_location_id")  (0.2ms) CREATE INDEX "tindex_aspree_shipments_on_order_id" ON "aspree_shipments" ("order_id")  (0.2ms) CREATE INDEX "tindex_shipments_on_number" ON "aspree_shipments" ("number")  (0.2ms) INSERT INTO "aspree_shipments" ("id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount") SELECT "id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount" FROM "spree_shipments"  (0.4ms) DROP TABLE "spree_shipments"  (0.3ms) CREATE TABLE "spree_shipments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tracking" varchar, "number" varchar, "cost" decimal(10,2) DEFAULT '0.0', "shipped_at" datetime, "order_id" integer, "address_id" integer, "state" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "stock_location_id" integer, "adjustment_total" decimal(10,2) DEFAULT '0.0', "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "pre_tax_amount" decimal(12,4) DEFAULT 0.0 NOT NULL)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_shipments_on_number' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_shipments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_shipments_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_shipments_on_stock_location_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_shipments_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_shipments_on_address_id' AND type='index'   (0.2ms) CREATE INDEX "index_shipments_on_number" ON "spree_shipments" ("number")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_shipments_on_order_id" ON "spree_shipments" ("order_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_shipments_on_stock_location_id" ON "spree_shipments" ("stock_location_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_shipments_on_address_id" ON "spree_shipments" ("address_id")  (0.2ms) INSERT INTO "spree_shipments" ("id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount") SELECT "id","tracking","number","cost","shipped_at","order_id","address_id","state","created_at","updated_at","stock_location_id","adjustment_total","additional_tax_total","promo_total","included_tax_total","pre_tax_amount" FROM "aspree_shipments"  (0.3ms) DROP TABLE "aspree_shipments" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182051"]]  (89.8ms) commit transaction Migrating to AddTaxableAdjustmentTotalToLineItem (20180516182052)  (0.1ms) begin transaction  (1.3ms) ALTER TABLE "spree_line_items" ADD "taxable_adjustment_total" decimal(10,2) DEFAULT 0.0 NOT NULL  (0.7ms) ALTER TABLE "spree_line_items" ADD "non_taxable_adjustment_total" decimal(10,2) DEFAULT 0.0 NOT NULL  (0.6ms) ALTER TABLE "spree_shipments" ADD "taxable_adjustment_total" decimal(10,2) DEFAULT 0.0 NOT NULL  (0.5ms) ALTER TABLE "spree_shipments" ADD "non_taxable_adjustment_total" decimal(10,2) DEFAULT 0.0 NOT NULL  (0.8ms) ALTER TABLE "spree_orders" ADD "taxable_adjustment_total" decimal(10,2) DEFAULT 0.0 NOT NULL  (0.7ms) ALTER TABLE "spree_orders" ADD "non_taxable_adjustment_total" decimal(10,2) DEFAULT 0.0 NOT NULL SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182052"]]  (77.2ms) commit transaction Migrating to MigratePaymentMethodsDisplay (20180516182053)  (0.1ms) begin transaction Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.5ms) CREATE TEMPORARY TABLE "aspree_payment_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "name" varchar, "description" text, "active" boolean DEFAULT 't', "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "display_on" varchar, "auto_capture" boolean, "preferences" text, "position" integer DEFAULT 0)  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payment_methods_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payment_methods_on_id_and_type' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_payment_methods_on_id_and_type" ON "aspree_payment_methods" ("id", "type")  (0.1ms) INSERT INTO "aspree_payment_methods" ("id","type","name","description","active","deleted_at","created_at","updated_at","display_on","auto_capture","preferences","position") SELECT "id","type","name","description","active","deleted_at","created_at","updated_at","display_on","auto_capture","preferences","position" FROM "spree_payment_methods"  (0.5ms) DROP TABLE "spree_payment_methods"  (0.5ms) CREATE TABLE "spree_payment_methods" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar, "name" varchar, "description" text, "active" boolean DEFAULT 't', "deleted_at" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "display_on" varchar DEFAULT 'both', "auto_capture" boolean, "preferences" text, "position" integer DEFAULT 0)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_payment_methods_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_payment_methods_on_id_and_type' AND type='index'   (0.2ms) CREATE INDEX "index_spree_payment_methods_on_id_and_type" ON "spree_payment_methods" ("id", "type")  (0.3ms) INSERT INTO "spree_payment_methods" ("id","type","name","description","active","deleted_at","created_at","updated_at","display_on","auto_capture","preferences","position") SELECT "id","type","name","description","active","deleted_at","created_at","updated_at","display_on","auto_capture","preferences","position" FROM "aspree_payment_methods"  (0.2ms) DROP TABLE "aspree_payment_methods" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182053"]]  (88.3ms) commit transaction Migrating to EnableActsAsParanoidOnCalculators (20180516182054)  (0.1ms) begin transaction  (0.7ms) ALTER TABLE "spree_calculators" ADD "deleted_at" datetime  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_calculators_on_calculable_id_and_calculable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_calculators_on_calculable_id_and_calculable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_calculators_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_calculators_on_id_and_type' AND type='index'   (0.3ms) CREATE INDEX "index_spree_calculators_on_deleted_at" ON "spree_calculators" ("deleted_at") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182054"]]  (83.4ms) commit transaction Migrating to SpreePaymentMethodStoreCredits (20180516182055)  (0.2ms) begin transaction Spree::PaymentMethod::StoreCredit Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."type" IN ('Spree::PaymentMethod::StoreCredit') AND "spree_payment_methods"."deleted_at" IS NULL AND "spree_payment_methods"."name" = ? AND "spree_payment_methods"."description" = ? AND "spree_payment_methods"."active" = ? AND "spree_payment_methods"."display_on" = ? LIMIT ? [["name", "Store Credit"], ["description", "Store Credit"], ["active", "t"], ["display_on", "back_end"], ["LIMIT", 1]] Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]] SQL (0.3ms) INSERT INTO "spree_payment_methods" ("type", "name", "description", "created_at", "updated_at", "display_on", "position") VALUES (?, ?, ?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::StoreCredit"], ["name", "Store Credit"], ["description", "Store Credit"], ["created_at", "2018-05-16 18:23:50.422845"], ["updated_at", "2018-05-16 18:23:50.422845"], ["display_on", "back_end"], ["position", 1]] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182055"]]  (75.9ms) commit transaction Migrating to RenameHasAndBelongsToAssociationsToModelNames (20180516182056)  (0.1ms) begin transaction  (1.1ms) ALTER TABLE "spree_option_types_prototypes" RENAME TO "spree_option_type_prototypes"  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_types_prototypes_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_types_prototypes_on_option_type_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_types_prototypes_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_types_prototypes_on_option_type_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_types_prototypes_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_types_prototypes_on_option_type_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index'   (0.5ms) CREATE INDEX "index_spree_option_type_prototypes_on_option_type_id" ON "spree_option_type_prototypes" ("option_type_id")  (0.5ms) DROP INDEX "index_spree_option_types_prototypes_on_option_type_id"  (0.8ms) ALTER TABLE "spree_option_values_variants" RENAME TO "spree_option_value_variants"  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_variants_on_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_variants_on_option_value_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_variants_on_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_variants_on_option_value_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_variants_on_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_variants_on_option_value_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_option_value_variants_on_option_value_id" ON "spree_option_value_variants" ("option_value_id")  (0.3ms) DROP INDEX "index_spree_option_values_variants_on_option_value_id"  (0.6ms) ALTER TABLE "spree_orders_promotions" RENAME TO "spree_order_promotions"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_order_promotions_on_order_id" ON "spree_order_promotions" ("order_id")  (0.2ms) DROP INDEX "index_spree_orders_promotions_on_order_id"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_order_promotions_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_order_promotions_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_order_promotions_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_order_promotions_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_promotions_on_promotion_id_and_order_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_order_promotions_on_promotion_id_and_order_id" ON "spree_order_promotions" ("promotion_id", "order_id")  (0.2ms) DROP INDEX "index_spree_orders_promotions_on_promotion_id_and_order_id"  (0.4ms) ALTER TABLE "spree_products_promotion_rules" RENAME TO "spree_product_promotion_rules"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_promotion_rule_and_product' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_promotion_rule_and_product' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index'   (0.4ms) ALTER TABLE "spree_taxons_promotion_rules" RENAME TO "spree_promotion_rule_taxons"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_promotion_rules_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_promotion_rules_on_promotion_rule_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_promotion_rules_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_promotion_rules_on_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_promotion_rules_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_promotion_rules_on_promotion_rule_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_promotion_rules_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_promotion_rules_on_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_promotion_rules_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_promotion_rules_on_promotion_rule_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_promotion_rules_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_promotion_rules_on_taxon_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_promotion_rule_taxons_on_promotion_rule_id" ON "spree_promotion_rule_taxons" ("promotion_rule_id")  (0.3ms) DROP INDEX "index_spree_taxons_promotion_rules_on_promotion_rule_id"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_rule_taxons_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_rule_taxons_on_promotion_rule_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_promotion_rules_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_promotion_rules_on_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_rule_taxons_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_rule_taxons_on_promotion_rule_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_promotion_rules_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_promotion_rules_on_taxon_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_promotion_rule_taxons_on_taxon_id" ON "spree_promotion_rule_taxons" ("taxon_id")  (0.2ms) DROP INDEX "index_spree_taxons_promotion_rules_on_taxon_id"  (0.5ms) ALTER TABLE "spree_promotion_rules_users" RENAME TO "spree_promotion_rule_users"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_user_id_and_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_user_id_and_promotion_rule_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index'   (0.4ms) ALTER TABLE "spree_properties_prototypes" RENAME TO "spree_property_prototypes"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_properties_prototypes_on_prototype_and_property' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_properties_prototypes_on_prototype_and_property' AND type='index'   (0.4ms) ALTER TABLE "spree_taxons_prototypes" RENAME TO "spree_prototype_taxons"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_prototype_id_and_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_prototype_id_and_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_prototype_id_and_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_prototype_id_and_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_prototype_id_and_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_prototype_id_and_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_prototype_taxons_on_prototype_id_and_taxon_id" ON "spree_prototype_taxons" ("prototype_id", "taxon_id")  (0.2ms) DROP INDEX "index_spree_taxons_prototypes_on_prototype_id_and_taxon_id"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prototype_taxons_on_prototype_id_and_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prototype_taxons_on_prototype_id_and_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prototype_taxons_on_prototype_id_and_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prototype_taxons_on_prototype_id_and_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_prototypes_on_taxon_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_prototype_taxons_on_taxon_id" ON "spree_prototype_taxons" ("taxon_id")  (0.2ms) DROP INDEX "index_spree_taxons_prototypes_on_taxon_id"  (0.4ms) ALTER TABLE "spree_roles_users" RENAME TO "spree_role_users"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_roles_users_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_roles_users_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_roles_users_on_role_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_roles_users_on_role_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_roles_users_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_roles_users_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_roles_users_on_role_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_roles_users_on_role_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_roles_users_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_roles_users_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_roles_users_on_role_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_roles_users_on_role_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_role_users_on_user_id" ON "spree_role_users" ("user_id")  (0.2ms) DROP INDEX "index_spree_roles_users_on_user_id"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_role_users_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_role_users_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_roles_users_on_role_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_roles_users_on_role_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_role_users_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_role_users_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_roles_users_on_role_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_roles_users_on_role_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_role_users_on_role_id" ON "spree_role_users" ("role_id")  (0.2ms) DROP INDEX "index_spree_roles_users_on_role_id"  (0.4ms) ALTER TABLE "spree_shipping_methods_zones" RENAME TO "spree_shipping_method_zones" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182056"]]  (87.4ms) commit transaction Migrating to SpreeStoreCreditTypes (20180516182057)  (0.1ms) begin transaction Spree::StoreCreditType Load (0.2ms) SELECT "spree_store_credit_types".* FROM "spree_store_credit_types" WHERE "spree_store_credit_types"."name" = ? AND "spree_store_credit_types"."priority" = ? LIMIT ? [["name", "Expiring"], ["priority", 1], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "spree_store_credit_types" ("name", "priority", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Expiring"], ["priority", 1], ["created_at", "2018-05-16 18:23:50.668846"], ["updated_at", "2018-05-16 18:23:50.668846"]] Spree::StoreCreditType Load (0.1ms) SELECT "spree_store_credit_types".* FROM "spree_store_credit_types" WHERE "spree_store_credit_types"."name" = ? AND "spree_store_credit_types"."priority" = ? LIMIT ? [["name", "Non-expiring"], ["priority", 2], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "spree_store_credit_types" ("name", "priority", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Non-expiring"], ["priority", 2], ["created_at", "2018-05-16 18:23:50.672083"], ["updated_at", "2018-05-16 18:23:50.672083"]] SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182057"]]  (63.5ms) commit transaction Migrating to AddDiscontinuedToProductsAndVariants (20180516182058)  (0.2ms) begin transaction  (1.3ms) ALTER TABLE "spree_products" ADD "discontinue_on" datetime  (1.1ms) ALTER TABLE "spree_variants" ADD "discontinue_on" datetime  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_slug' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.3ms) CREATE INDEX "index_spree_products_on_discontinue_on" ON "spree_products" ("discontinue_on")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_track_inventory' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_track_inventory' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.4ms) CREATE INDEX "index_spree_variants_on_discontinue_on" ON "spree_variants" ("discontinue_on") Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE ("spree_products"."deleted_at" IS NOT NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE ("spree_variants"."deleted_at" IS NOT NULL) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182058"]]  (77.6ms) commit transaction Migrating to RemoveShippingMethodIdFromSpreeOrders (20180516182059)  (0.2ms) begin transaction  (0.7ms) CREATE TEMPORARY TABLE "aspree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(32), "item_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "total" decimal(10,2) DEFAULT '0.0' NOT NULL, "state" varchar, "adjustment_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(10,2) DEFAULT '0.0', "shipping_method_id" integer, "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "last_ip_address" varchar, "created_by_id" integer, "shipment_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "channel" varchar DEFAULT 'spree', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "item_count" integer DEFAULT 0, "approver_id" integer, "approved_at" datetime, "confirmation_delivered" boolean DEFAULT 'f', "considered_risky" boolean DEFAULT 'f', "guest_token" varchar, "canceled_at" datetime, "canceler_id" integer, "store_id" integer, "state_lock_version" integer DEFAULT 0 NOT NULL, "taxable_adjustment_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "non_taxable_adjustment_total" decimal(10,2) DEFAULT '0.0' NOT NULL)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_store_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_store_id' AND type='index'   (0.5ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_canceler_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_canceler_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_guest_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_guest_token' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_shipping_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_orders_on_store_id" ON "aspree_orders" ("store_id")  (0.2ms) CREATE INDEX "tindex_aspree_orders_on_canceler_id" ON "aspree_orders" ("canceler_id")  (0.2ms) CREATE INDEX "tindex_aspree_orders_on_guest_token" ON "aspree_orders" ("guest_token")  (0.2ms) CREATE INDEX "tindex_aspree_orders_on_user_id_and_created_by_id" ON "aspree_orders" ("user_id", "created_by_id")  (0.2ms) CREATE INDEX "tindex_aspree_orders_on_shipping_method_id" ON "aspree_orders" ("shipping_method_id")  (0.2ms) CREATE INDEX "tindex_aspree_orders_on_ship_address_id" ON "aspree_orders" ("ship_address_id")  (0.2ms) CREATE INDEX "tindex_aspree_orders_on_created_by_id" ON "aspree_orders" ("created_by_id")  (0.2ms) CREATE INDEX "tindex_aspree_orders_on_considered_risky" ON "aspree_orders" ("considered_risky")  (0.2ms) CREATE INDEX "tindex_aspree_orders_on_confirmation_delivered" ON "aspree_orders" ("confirmation_delivered")  (0.3ms) CREATE INDEX "tindex_aspree_orders_on_bill_address_id" ON "aspree_orders" ("bill_address_id")  (0.2ms) CREATE INDEX "tindex_aspree_orders_on_approver_id" ON "aspree_orders" ("approver_id")  (0.2ms) CREATE INDEX "tindex_aspree_orders_on_completed_at" ON "aspree_orders" ("completed_at")  (0.2ms) CREATE INDEX "tindex_aspree_orders_on_number" ON "aspree_orders" ("number")  (0.2ms) INSERT INTO "aspree_orders" ("id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address","created_by_id","shipment_total","additional_tax_total","promo_total","channel","included_tax_total","item_count","approver_id","approved_at","confirmation_delivered","considered_risky","guest_token","canceled_at","canceler_id","store_id","state_lock_version","taxable_adjustment_total","non_taxable_adjustment_total") SELECT "id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipping_method_id","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address","created_by_id","shipment_total","additional_tax_total","promo_total","channel","included_tax_total","item_count","approver_id","approved_at","confirmation_delivered","considered_risky","guest_token","canceled_at","canceler_id","store_id","state_lock_version","taxable_adjustment_total","non_taxable_adjustment_total" FROM "spree_orders"  (0.8ms) DROP TABLE "spree_orders"  (0.5ms) CREATE TABLE "spree_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(32), "item_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "total" decimal(10,2) DEFAULT '0.0' NOT NULL, "state" varchar, "adjustment_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "user_id" integer, "completed_at" datetime, "bill_address_id" integer, "ship_address_id" integer, "payment_total" decimal(10,2) DEFAULT '0.0', "shipment_state" varchar, "payment_state" varchar, "email" varchar, "special_instructions" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "currency" varchar, "last_ip_address" varchar, "created_by_id" integer, "shipment_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "additional_tax_total" decimal(10,2) DEFAULT '0.0', "promo_total" decimal(10,2) DEFAULT '0.0', "channel" varchar DEFAULT 'spree', "included_tax_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "item_count" integer DEFAULT 0, "approver_id" integer, "approved_at" datetime, "confirmation_delivered" boolean DEFAULT 'f', "considered_risky" boolean DEFAULT 'f', "guest_token" varchar, "canceled_at" datetime, "canceler_id" integer, "store_id" integer, "state_lock_version" integer DEFAULT 0 NOT NULL, "taxable_adjustment_total" decimal(10,2) DEFAULT '0.0' NOT NULL, "non_taxable_adjustment_total" decimal(10,2) DEFAULT '0.0' NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_number' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_approver_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_confirmation_delivered' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_ship_address_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_shipping_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_user_id_and_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_guest_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_guest_token' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_canceler_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_canceler_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_orders_on_store_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_orders_on_store_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_number" ON "spree_orders" ("number")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_completed_at" ON "spree_orders" ("completed_at")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_approver_id" ON "spree_orders" ("approver_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_bill_address_id" ON "spree_orders" ("bill_address_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_confirmation_delivered" ON "spree_orders" ("confirmation_delivered")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_considered_risky" ON "spree_orders" ("considered_risky")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_created_by_id" ON "spree_orders" ("created_by_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_ship_address_id" ON "spree_orders" ("ship_address_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_user_id_and_created_by_id" ON "spree_orders" ("user_id", "created_by_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_guest_token" ON "spree_orders" ("guest_token")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_guest_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_guest_token' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_canceler_id" ON "spree_orders" ("canceler_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_canceler_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_canceler_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_guest_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_guest_token' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_spree_orders_on_store_id" ON "spree_orders" ("store_id")  (0.3ms) INSERT INTO "spree_orders" ("id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address","created_by_id","shipment_total","additional_tax_total","promo_total","channel","included_tax_total","item_count","approver_id","approved_at","confirmation_delivered","considered_risky","guest_token","canceled_at","canceler_id","store_id","state_lock_version","taxable_adjustment_total","non_taxable_adjustment_total") SELECT "id","number","item_total","total","state","adjustment_total","user_id","completed_at","bill_address_id","ship_address_id","payment_total","shipment_state","payment_state","email","special_instructions","created_at","updated_at","currency","last_ip_address","created_by_id","shipment_total","additional_tax_total","promo_total","channel","included_tax_total","item_count","approver_id","approved_at","confirmation_delivered","considered_risky","guest_token","canceled_at","canceler_id","store_id","state_lock_version","taxable_adjustment_total","non_taxable_adjustment_total" FROM "aspree_orders"  (0.5ms) DROP TABLE "aspree_orders" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182059"]]  (88.7ms) commit transaction Migrating to AddIdColumnToEarlierHabtmTables (20180516182060)  (0.2ms) begin transaction  (0.4ms) CREATE TEMPORARY TABLE "aspree_option_type_prototypes" ("prototype_id" integer, "option_type_id" integer)  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_type_prototypes_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_type_prototypes_on_option_type_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index'   (0.4ms) CREATE INDEX "tindex_aspree_option_type_prototypes_on_option_type_id" ON "aspree_option_type_prototypes" ("option_type_id")  (0.2ms) CREATE INDEX "tindex_option_types_prototypes_on_prototype_and_option_type" ON "aspree_option_type_prototypes" ("prototype_id", "option_type_id")  (0.1ms) INSERT INTO "aspree_option_type_prototypes" ("prototype_id","option_type_id") SELECT "prototype_id","option_type_id" FROM "spree_option_type_prototypes"  (0.6ms) DROP TABLE "spree_option_type_prototypes"  (0.3ms) CREATE TABLE "spree_option_type_prototypes" ("prototype_id" integer, "option_type_id" integer, "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_option_types_prototypes_on_prototype_and_option_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_option_types_prototypes_on_prototype_and_option_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_option_type_prototypes_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_option_type_prototypes_on_option_type_id' AND type='index'   (0.3ms) CREATE INDEX "index_option_types_prototypes_on_prototype_and_option_type" ON "spree_option_type_prototypes" ("prototype_id", "option_type_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index'   (0.2ms) CREATE INDEX "index_spree_option_type_prototypes_on_option_type_id" ON "spree_option_type_prototypes" ("option_type_id")  (0.1ms) INSERT INTO "spree_option_type_prototypes" ("prototype_id","option_type_id") SELECT "prototype_id","option_type_id" FROM "aspree_option_type_prototypes"  (0.2ms) DROP TABLE "aspree_option_type_prototypes"  (0.2ms) CREATE TEMPORARY TABLE "aspree_option_value_variants" ("variant_id" integer, "option_value_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_value_variants_on_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_value_variants_on_option_value_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.1ms) CREATE INDEX "tindex_aspree_option_value_variants_on_option_value_id" ON "aspree_option_value_variants" ("option_value_id")  (0.2ms) CREATE INDEX "tindex_option_values_variants_on_variant_id_and_option_value_id" ON "aspree_option_value_variants" ("variant_id", "option_value_id")  (0.1ms) INSERT INTO "aspree_option_value_variants" ("variant_id","option_value_id") SELECT "variant_id","option_value_id" FROM "spree_option_value_variants"  (0.4ms) DROP TABLE "spree_option_value_variants"  (0.3ms) CREATE TABLE "spree_option_value_variants" ("variant_id" integer, "option_value_id" integer, "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_option_value_variants_on_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_option_value_variants_on_option_value_id' AND type='index'   (0.2ms) CREATE INDEX "index_option_values_variants_on_variant_id_and_option_value_id" ON "spree_option_value_variants" ("variant_id", "option_value_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.4ms) CREATE INDEX "index_spree_option_value_variants_on_option_value_id" ON "spree_option_value_variants" ("option_value_id")  (0.1ms) INSERT INTO "spree_option_value_variants" ("variant_id","option_value_id") SELECT "variant_id","option_value_id" FROM "aspree_option_value_variants"  (0.2ms) DROP TABLE "aspree_option_value_variants"  (0.2ms) CREATE TEMPORARY TABLE "aspree_order_promotions" ("order_id" integer, "promotion_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_order_promotions_on_promotion_id_and_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_order_promotions_on_promotion_id_and_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_order_promotions_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_order_promotions_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_order_promotions_on_promotion_id_and_order_id" ON "aspree_order_promotions" ("promotion_id", "order_id")  (0.2ms) CREATE INDEX "tindex_aspree_order_promotions_on_order_id" ON "aspree_order_promotions" ("order_id")  (0.1ms) INSERT INTO "aspree_order_promotions" ("order_id","promotion_id") SELECT "order_id","promotion_id" FROM "spree_order_promotions"  (0.3ms) DROP TABLE "spree_order_promotions"  (0.2ms) CREATE TABLE "spree_order_promotions" ("order_id" integer, "promotion_id" integer, "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_order_promotions_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_order_promotions_on_order_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_order_promotions_on_promotion_id_and_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_order_promotions_on_promotion_id_and_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_order_promotions_on_order_id" ON "spree_order_promotions" ("order_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_order_promotions_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_order_promotions_on_order_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_order_promotions_on_promotion_id_and_order_id" ON "spree_order_promotions" ("promotion_id", "order_id")  (0.1ms) INSERT INTO "spree_order_promotions" ("order_id","promotion_id") SELECT "order_id","promotion_id" FROM "aspree_order_promotions"  (0.2ms) DROP TABLE "aspree_order_promotions"  (0.2ms) CREATE TEMPORARY TABLE "aspree_product_promotion_rules" ("product_id" integer, "promotion_rule_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_promotion_rule_and_product' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_promotion_rule_and_product' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index'   (0.1ms) CREATE INDEX "tindex_products_promotion_rules_on_promotion_rule_and_product" ON "aspree_product_promotion_rules" ("promotion_rule_id", "product_id")  (0.1ms) CREATE INDEX "tindex_products_promotion_rules_on_product_id" ON "aspree_product_promotion_rules" ("product_id")  (0.1ms) INSERT INTO "aspree_product_promotion_rules" ("product_id","promotion_rule_id") SELECT "product_id","promotion_rule_id" FROM "spree_product_promotion_rules"  (0.3ms) DROP TABLE "spree_product_promotion_rules"  (0.2ms) CREATE TABLE "spree_product_promotion_rules" ("product_id" integer, "promotion_rule_id" integer, "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_products_promotion_rules_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_products_promotion_rules_on_product_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_products_promotion_rules_on_promotion_rule_and_product' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_products_promotion_rules_on_promotion_rule_and_product' AND type='index'   (0.2ms) CREATE INDEX "index_products_promotion_rules_on_product_id" ON "spree_product_promotion_rules" ("product_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_products_promotion_rules_on_promotion_rule_and_product" ON "spree_product_promotion_rules" ("promotion_rule_id", "product_id")  (0.1ms) INSERT INTO "spree_product_promotion_rules" ("product_id","promotion_rule_id") SELECT "product_id","promotion_rule_id" FROM "aspree_product_promotion_rules"  (0.2ms) DROP TABLE "aspree_product_promotion_rules"  (0.2ms) CREATE TEMPORARY TABLE "aspree_promotion_rule_users" ("user_id" integer, "promotion_rule_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_user_id_and_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_user_id_and_promotion_rule_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_promotion_rules_users_on_user_id_and_promotion_rule_id" ON "aspree_promotion_rule_users" ("user_id", "promotion_rule_id")  (0.2ms) CREATE INDEX "tindex_promotion_rules_users_on_promotion_rule_id" ON "aspree_promotion_rule_users" ("promotion_rule_id")  (0.1ms) INSERT INTO "aspree_promotion_rule_users" ("user_id","promotion_rule_id") SELECT "user_id","promotion_rule_id" FROM "spree_promotion_rule_users"  (0.3ms) DROP TABLE "spree_promotion_rule_users"  (0.4ms) CREATE TABLE "spree_promotion_rule_users" ("user_id" integer, "promotion_rule_id" integer, "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_promotion_rules_users_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_promotion_rules_users_on_promotion_rule_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_promotion_rules_users_on_user_id_and_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_promotion_rules_users_on_user_id_and_promotion_rule_id' AND type='index'   (0.2ms) CREATE INDEX "index_promotion_rules_users_on_promotion_rule_id" ON "spree_promotion_rule_users" ("promotion_rule_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index'   (0.2ms) CREATE INDEX "index_promotion_rules_users_on_user_id_and_promotion_rule_id" ON "spree_promotion_rule_users" ("user_id", "promotion_rule_id")  (0.1ms) INSERT INTO "spree_promotion_rule_users" ("user_id","promotion_rule_id") SELECT "user_id","promotion_rule_id" FROM "aspree_promotion_rule_users"  (0.2ms) DROP TABLE "aspree_promotion_rule_users"  (0.2ms) CREATE TEMPORARY TABLE "aspree_property_prototypes" ("prototype_id" integer, "property_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_properties_prototypes_on_prototype_and_property' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_properties_prototypes_on_prototype_and_property' AND type='index'   (0.2ms) CREATE INDEX "tindex_properties_prototypes_on_prototype_and_property" ON "aspree_property_prototypes" ("prototype_id", "property_id")  (0.1ms) INSERT INTO "aspree_property_prototypes" ("prototype_id","property_id") SELECT "prototype_id","property_id" FROM "spree_property_prototypes"  (0.3ms) DROP TABLE "spree_property_prototypes"  (0.2ms) CREATE TABLE "spree_property_prototypes" ("prototype_id" integer, "property_id" integer, "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_properties_prototypes_on_prototype_and_property' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_properties_prototypes_on_prototype_and_property' AND type='index'   (0.2ms) CREATE INDEX "index_properties_prototypes_on_prototype_and_property" ON "spree_property_prototypes" ("prototype_id", "property_id")  (0.1ms) INSERT INTO "spree_property_prototypes" ("prototype_id","property_id") SELECT "prototype_id","property_id" FROM "aspree_property_prototypes"  (0.2ms) DROP TABLE "aspree_property_prototypes"  (0.2ms) CREATE TEMPORARY TABLE "aspree_role_users" ("role_id" integer, "user_id" integer)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_role_users_on_role_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_role_users_on_role_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_role_users_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_role_users_on_user_id' AND type='index'   (0.1ms) CREATE INDEX "tindex_aspree_role_users_on_role_id" ON "aspree_role_users" ("role_id")  (0.1ms) CREATE INDEX "tindex_aspree_role_users_on_user_id" ON "aspree_role_users" ("user_id")  (0.1ms) INSERT INTO "aspree_role_users" ("role_id","user_id") SELECT "role_id","user_id" FROM "spree_role_users"  (0.3ms) DROP TABLE "spree_role_users"  (0.2ms) CREATE TABLE "spree_role_users" ("role_id" integer, "user_id" integer, "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_role_users_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_role_users_on_user_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_role_users_on_role_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_role_users_on_role_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_role_users_on_user_id" ON "spree_role_users" ("user_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_role_users_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_role_users_on_user_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_role_users_on_role_id" ON "spree_role_users" ("role_id")  (0.1ms) INSERT INTO "spree_role_users" ("role_id","user_id") SELECT "role_id","user_id" FROM "aspree_role_users"  (0.2ms) DROP TABLE "aspree_role_users"  (0.2ms) CREATE TEMPORARY TABLE "aspree_shipping_method_zones" ("shipping_method_id" integer, "zone_id" integer)  (0.1ms) INSERT INTO "aspree_shipping_method_zones" ("shipping_method_id","zone_id") SELECT "shipping_method_id","zone_id" FROM "spree_shipping_method_zones"  (0.2ms) DROP TABLE "spree_shipping_method_zones"  (0.3ms) CREATE TABLE "spree_shipping_method_zones" ("shipping_method_id" integer, "zone_id" integer, "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)  (0.1ms) INSERT INTO "spree_shipping_method_zones" ("shipping_method_id","zone_id") SELECT "shipping_method_id","zone_id" FROM "aspree_shipping_method_zones"  (0.2ms) DROP TABLE "aspree_shipping_method_zones" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182060"]]  (123.0ms) commit transaction Migrating to AddIndexes (20180516182061)  (0.1ms) begin transaction  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_assets_on_viewable_type_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_assets_on_viewable_type_and_type' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_assets_on_viewable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_assets_on_viewable_id' AND type='index'   (0.7ms) CREATE INDEX "index_spree_assets_on_position" ON "spree_assets" ("position")  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_types_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_types_on_position' AND type='index'   (0.5ms) CREATE INDEX "index_spree_option_types_on_name" ON "spree_option_types" ("name")  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_on_position' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_on_option_type_id' AND type='index'   (0.5ms) CREATE INDEX "index_spree_option_values_on_name" ON "spree_option_values" ("name")  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prices_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prices_on_deleted_at' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prices_on_variant_id_and_currency' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prices_on_variant_id_and_currency' AND type='index'   (0.6ms) CREATE INDEX "index_spree_prices_on_variant_id" ON "spree_prices" ("variant_id")  (0.4ms) CREATE INDEX "index_spree_properties_on_name" ON "spree_properties" ("name")  (0.2ms) CREATE INDEX "index_spree_roles_on_name" ON "spree_roles" ("name")  (0.2ms) CREATE INDEX "index_spree_shipping_categories_on_name" ON "spree_shipping_categories" ("name")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_position' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_taxons_on_lft" ON "spree_taxons" ("lft")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_lft' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_lft' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_taxons_on_rgt" ON "spree_taxons" ("rgt")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_rgt' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_rgt' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_lft' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_lft' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_position' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_taxons_on_name" ON "spree_taxons" ("name") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182061"]]  (133.0ms) commit transaction Migrating to RemoveCounterCacheFromSpreeVariantsToSpreeStockItems (20180516182062)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182062"]]  (63.1ms) commit transaction Migrating to ActsAsTaggableOnSpreeMigration (20180516182063)  (0.2ms) begin transaction  (1.0ms) CREATE TABLE "spree_tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "taggings_count" integer DEFAULT 0)  (0.4ms) CREATE TABLE "spree_taggings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "tag_id" integer, "taggable_type" varchar, "taggable_id" integer, "tagger_type" varchar, "tagger_id" integer, "context" varchar(128), "created_at" datetime)  (0.5ms) CREATE UNIQUE INDEX "index_spree_tags_on_name" ON "spree_tags" ("name")  (0.4ms) CREATE UNIQUE INDEX "spree_taggings_idx" ON "spree_taggings" ("tag_id", "taggable_id", "taggable_type", "context", "tagger_id", "tagger_type") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182063"]]  (98.2ms) commit transaction Migrating to ChangeCollationForSpreeTagNames (20180516182064)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182064"]]  (74.8ms) commit transaction Migrating to AddMissingIndexesToSpreeTaggings (20180516182065)  (0.1ms) begin transaction  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='spree_taggings_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_taggings_idx' AND type='index'   (0.5ms) CREATE INDEX "index_spree_taggings_on_tag_id" ON "spree_taggings" ("tag_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_tag_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_tag_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='spree_taggings_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_taggings_idx' AND type='index'   (0.3ms) CREATE INDEX "index_spree_taggings_on_taggable_id" ON "spree_taggings" ("taggable_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_taggable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_taggable_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_tag_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_tag_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='spree_taggings_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_taggings_idx' AND type='index'   (0.2ms) CREATE INDEX "index_spree_taggings_on_taggable_type" ON "spree_taggings" ("taggable_type")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_taggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_taggable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_taggable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_taggable_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_tag_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_tag_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='spree_taggings_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_taggings_idx' AND type='index'   (0.2ms) CREATE INDEX "index_spree_taggings_on_tagger_id" ON "spree_taggings" ("tagger_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_tagger_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_tagger_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_taggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_taggable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_taggable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_taggable_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_tag_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_tag_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='spree_taggings_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_taggings_idx' AND type='index'   (0.3ms) CREATE INDEX "index_spree_taggings_on_context" ON "spree_taggings" ("context")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_context' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_context' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_tagger_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_tagger_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_taggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_taggable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_taggable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_taggable_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_tag_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_tag_id' AND type='index'   (0.1ms)  SELECT sql FROM sqlite_master WHERE name='spree_taggings_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_taggings_idx' AND type='index'   (0.3ms) CREATE INDEX "index_spree_taggings_on_tagger_id_and_tagger_type" ON "spree_taggings" ("tagger_id", "tagger_type")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_tagger_id_and_tagger_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_tagger_id_and_tagger_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_context' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_context' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_tagger_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_tagger_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_taggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_taggable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_taggable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_taggable_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_tag_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_tag_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='spree_taggings_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_taggings_idx' AND type='index'   (0.3ms) CREATE INDEX "spree_taggings_idy" ON "spree_taggings" ("taggable_id", "taggable_type", "tagger_id", "context") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182065"]]  (119.2ms) commit transaction Migrating to AddZipcodeRequiredToSpreeCountries (20180516182066)  (0.2ms) begin transaction  (1.2ms) ALTER TABLE "spree_countries" ADD "zipcode_required" boolean DEFAULT 't' SQL (0.4ms) UPDATE "spree_countries" SET "zipcode_required" = 'f' WHERE "spree_countries"."iso" IN ('AO', 'AG', 'AW', 'BS', 'BZ', 'BJ', 'BM', 'BO', 'BW', 'BF', 'BI', 'CM', 'CF', 'KM', 'CG', 'CD', 'CK', 'CUW', 'CI', 'DJ', 'DM', 'GQ', 'ER', 'FJ', 'TF', 'GAB', 'GM', 'GH', 'GD', 'GN', 'GY', 'HK', 'IE', 'KI', 'KP', 'LY', 'MO', 'MW', 'ML', 'MR', 'NR', 'AN', 'NU', 'KP', 'PA', 'QA', 'RW', 'KN', 'LC', 'ST', 'SC', 'SL', 'SB', 'SO', 'SR', 'SY', 'TZ', 'TL', 'TK', 'TG', 'TO', 'TV', 'UG', 'AE', 'VU', 'YE', 'ZW') SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182066"]]  (65.5ms) commit transaction Migrating to AddCreatedAtToVariant (20180516182067)  (0.2ms) begin transaction  (1.3ms) ALTER TABLE "spree_variants" ADD "created_at" datetime SQL (0.2ms) UPDATE "spree_variants" SET created_at = updated_at WHERE ("spree_variants"."updated_at" IS NOT NULL) SQL (0.2ms) UPDATE "spree_variants" SET "created_at" = '2018-05-16 18:23:51.953878', "updated_at" = '2018-05-16 18:23:51.954100' WHERE "spree_variants"."updated_at" IS NULL SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182067"]]  (64.2ms) commit transaction Migrating to AddNullFalseToSpreeVariantsTimestamps (20180516182068)  (0.1ms) begin transaction  (0.4ms) CREATE TEMPORARY TABLE "aspree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2) DEFAULT '0.0', "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "cost_price" decimal(10,2), "position" integer, "cost_currency" varchar, "track_inventory" boolean DEFAULT 't', "tax_category_id" integer, "updated_at" datetime, "discontinue_on" datetime, "created_at" datetime)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_discontinue_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_discontinue_on' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_track_inventory' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_track_inventory' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_variants_on_discontinue_on" ON "aspree_variants" ("discontinue_on")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_track_inventory" ON "aspree_variants" ("track_inventory")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_position" ON "aspree_variants" ("position")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_is_master" ON "aspree_variants" ("is_master")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_deleted_at" ON "aspree_variants" ("deleted_at")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_tax_category_id" ON "aspree_variants" ("tax_category_id")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_sku" ON "aspree_variants" ("sku")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_product_id" ON "aspree_variants" ("product_id")  (0.2ms) INSERT INTO "aspree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at","discontinue_on","created_at") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at","discontinue_on","created_at" FROM "spree_variants"  (0.7ms) DROP TABLE "spree_variants"  (0.4ms) CREATE TABLE "spree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2) DEFAULT '0.0', "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "cost_price" decimal(10,2), "position" integer, "cost_currency" varchar, "track_inventory" boolean DEFAULT 't', "tax_category_id" integer, "updated_at" datetime, "discontinue_on" datetime, "created_at" datetime NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_is_master' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_track_inventory' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_track_inventory' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_discontinue_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_discontinue_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_product_id" ON "spree_variants" ("product_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.4ms) CREATE INDEX "index_spree_variants_on_sku" ON "spree_variants" ("sku")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_tax_category_id" ON "spree_variants" ("tax_category_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_deleted_at" ON "spree_variants" ("deleted_at")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_is_master" ON "spree_variants" ("is_master")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_position" ON "spree_variants" ("position")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_track_inventory" ON "spree_variants" ("track_inventory")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_track_inventory' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_track_inventory' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_discontinue_on" ON "spree_variants" ("discontinue_on")  (0.2ms) INSERT INTO "spree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at","discontinue_on","created_at") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at","discontinue_on","created_at" FROM "aspree_variants"  (0.3ms) DROP TABLE "aspree_variants"  (0.2ms) CREATE TEMPORARY TABLE "aspree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2) DEFAULT '0.0', "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "cost_price" decimal(10,2), "position" integer, "cost_currency" varchar, "track_inventory" boolean DEFAULT 't', "tax_category_id" integer, "updated_at" datetime, "discontinue_on" datetime, "created_at" datetime NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_discontinue_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_discontinue_on' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_track_inventory' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_track_inventory' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_variants_on_discontinue_on" ON "aspree_variants" ("discontinue_on")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_track_inventory" ON "aspree_variants" ("track_inventory")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_position" ON "aspree_variants" ("position")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_is_master" ON "aspree_variants" ("is_master")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_deleted_at" ON "aspree_variants" ("deleted_at")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_tax_category_id" ON "aspree_variants" ("tax_category_id")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_sku" ON "aspree_variants" ("sku")  (0.2ms) CREATE INDEX "tindex_aspree_variants_on_product_id" ON "aspree_variants" ("product_id")  (0.2ms) INSERT INTO "aspree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at","discontinue_on","created_at") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at","discontinue_on","created_at" FROM "spree_variants"  (0.6ms) DROP TABLE "spree_variants"  (0.3ms) CREATE TABLE "spree_variants" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "sku" varchar DEFAULT '' NOT NULL, "weight" decimal(8,2) DEFAULT '0.0', "height" decimal(8,2), "width" decimal(8,2), "depth" decimal(8,2), "deleted_at" datetime, "is_master" boolean DEFAULT 'f', "product_id" integer, "cost_price" decimal(10,2), "position" integer, "cost_currency" varchar, "track_inventory" boolean DEFAULT 't', "tax_category_id" integer, "updated_at" datetime NOT NULL, "discontinue_on" datetime, "created_at" datetime NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_product_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_is_master' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_track_inventory' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_track_inventory' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_variants_on_discontinue_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_variants_on_discontinue_on' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_product_id" ON "spree_variants" ("product_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_sku" ON "spree_variants" ("sku")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_tax_category_id" ON "spree_variants" ("tax_category_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_deleted_at" ON "spree_variants" ("deleted_at")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_is_master" ON "spree_variants" ("is_master")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_variants_on_position" ON "spree_variants" ("position")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_track_inventory" ON "spree_variants" ("track_inventory")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_track_inventory' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_track_inventory' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_variants_on_discontinue_on" ON "spree_variants" ("discontinue_on")  (0.2ms) INSERT INTO "spree_variants" ("id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at","discontinue_on","created_at") SELECT "id","sku","weight","height","width","depth","deleted_at","is_master","product_id","cost_price","position","cost_currency","track_inventory","tax_category_id","updated_at","discontinue_on","created_at" FROM "aspree_variants"  (0.4ms) DROP TABLE "aspree_variants" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182068"]]  (133.8ms) commit transaction Migrating to CreateSpreePurchaseOrders (20180516182069)  (0.2ms) begin transaction  (1.0ms) CREATE TABLE "spree_purchase_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "po_number" varchar, "organization_name" varchar, "created_at" datetime, "updated_at" datetime) SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182069"]]  (127.4ms) commit transaction Migrating to AddPaymentMethodIdToSpreePurchaseOrders (20180516182070)  (0.1ms) begin transaction  (1.1ms) ALTER TABLE "spree_purchase_orders" ADD "payment_method_id" integer  (0.7ms) CREATE INDEX "index_spree_purchase_orders_on_payment_method_id" ON "spree_purchase_orders" ("payment_method_id") SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182070"]]  (114.0ms) commit transaction Migrating to AddUserIdToSpreePurchaseOrders (20180516182071)  (0.2ms) begin transaction  (1.2ms) ALTER TABLE "spree_purchase_orders" ADD "user_id" integer  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_purchase_orders_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_purchase_orders_on_payment_method_id' AND type='index'   (0.5ms) CREATE INDEX "index_spree_purchase_orders_on_user_id" ON "spree_purchase_orders" ("user_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516182071"]]  (114.3ms) commit transaction ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2018-05-16 18:23:52.660637"], ["updated_at", "2018-05-16 18:23:52.660637"]]  (52.1ms) commit transaction ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_addresses_on_state_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_addresses_on_state_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_addresses_on_country_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_addresses_on_country_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_addresses_on_lastname' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_lastname' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_addresses_on_firstname' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_firstname' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_source_id_and_source_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_eligible' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_eligible' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_assets_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_assets_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_assets_on_viewable_type_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_assets_on_viewable_type_and_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_assets_on_viewable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_assets_on_viewable_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_calculators_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_calculators_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_calculators_on_calculable_id_and_calculable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_calculators_on_calculable_id_and_calculable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_calculators_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_calculators_on_id_and_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_address_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_payment_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_gateways_on_test_mode' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_gateways_on_test_mode' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_gateways_on_active' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_gateways_on_active' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_inventory_units_on_line_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_inventory_units_on_line_item_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_shipment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_shipment_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_log_entries_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_log_entries_on_source_id_and_source_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_type_prototypes_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_type_prototypes_on_option_type_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_types_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_types_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_types_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_types_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_value_variants_on_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_value_variants_on_option_value_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_on_option_type_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_order_promotions_on_promotion_id_and_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_order_promotions_on_promotion_id_and_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_order_promotions_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_order_promotions_on_order_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_store_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_store_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_canceler_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_canceler_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_guest_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_guest_token' AND type='index'   (0.5ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.6ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payment_capture_events_on_payment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payment_capture_events_on_payment_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payment_methods_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payment_methods_on_id_and_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_preferences_on_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_preferences_on_key' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prices_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prices_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prices_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prices_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prices_on_variant_id_and_currency' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prices_on_variant_id_and_currency' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_product_option_types_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_product_option_types_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_product_option_types_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_product_option_types_on_product_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_product_option_types_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_product_option_types_on_option_type_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_promotion_rule_and_product' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_promotion_rule_and_product' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_product_properties_on_property_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_product_properties_on_property_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_product_properties_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_product_properties_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_product_properties_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_product_properties_on_product_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_discontinue_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_discontinue_on' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_slug' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_taxons_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_taxons_on_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_taxons_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_taxons_on_product_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_action_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_action_line_items_on_variant_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_action_line_items_on_promotion_action_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_action_line_items_on_promotion_action_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_actions_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_actions_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_actions_on_promotion_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_actions_on_promotion_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_actions_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_actions_on_id_and_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_rule_taxons_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_rule_taxons_on_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_rule_taxons_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_rule_taxons_on_promotion_rule_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_user_id_and_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_user_id_and_promotion_rule_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_rules_on_promotion_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_rules_on_promotion_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_on_product_group_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_on_product_group_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_promotion_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_promotion_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_advertise' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_advertise' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_starts_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_starts_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_expires_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_expires_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_code' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_properties_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_properties_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_properties_prototypes_on_prototype_and_property' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_properties_prototypes_on_prototype_and_property' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prototype_taxons_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prototype_taxons_on_taxon_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prototype_taxons_on_prototype_id_and_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prototype_taxons_on_prototype_id_and_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_purchase_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_purchase_orders_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_purchase_orders_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_purchase_orders_on_payment_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_refunds_on_refund_reason_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_refunds_on_refund_reason_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_reimbursement_types_on_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_reimbursement_types_on_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_reimbursements_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_reimbursements_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_reimbursements_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_reimbursements_on_customer_return_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_items_on_exchange_inventory_unit_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_items_on_exchange_inventory_unit_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_return_items_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_items_on_customer_return_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_role_users_on_role_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_role_users_on_role_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_role_users_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_role_users_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_roles_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_roles_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_categories_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_categories_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='unique_spree_shipping_method_categories' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='unique_spree_shipping_method_categories' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_method_categories_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_method_categories_on_shipping_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_methods_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_methods_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_methods_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_methods_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_rates_on_tax_rate_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_rates_on_tax_rate_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_rates_on_selected' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_rates_on_selected' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='spree_shipping_rates_join_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_shipping_rates_join_index' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_state_changes_on_stateful_id_and_stateful_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_state_changes_on_stateful_id_and_stateful_type' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_states_on_country_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_states_on_country_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_backorderable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_backorderable' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='stock_item_by_loc_and_var_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='stock_item_by_loc_and_var_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_state_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_state_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_propagate_all_variants' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_propagate_all_variants' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_country_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_country_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_backorderable_default' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_backorderable_default' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_active' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_active' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='spree_store_credit_events_originator' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_store_credit_events_originator' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_store_credit_events_on_store_credit_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_store_credit_events_on_store_credit_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_store_credit_types_on_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_store_credit_types_on_priority' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='spree_store_credits_originator' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_store_credits_originator' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_store_credits_on_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_store_credits_on_type_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_store_credits_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_store_credits_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_store_credits_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_store_credits_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stores_on_url' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stores_on_url' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stores_on_default' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stores_on_default' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stores_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stores_on_code' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='spree_taggings_idy' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_taggings_idy' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_tagger_id_and_tagger_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_tagger_id_and_tagger_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_context' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_context' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_tagger_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_tagger_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_taggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_taggable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_taggable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_taggable_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_tag_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_tag_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='spree_taggings_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_taggings_idx' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tags_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tags_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_categories_on_is_default' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_categories_on_is_default' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_categories_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_categories_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_zone_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_zone_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_show_rate_in_label' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_show_rate_in_label' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_included_in_price' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_included_in_price' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxonomies_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxonomies_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_rgt' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_rgt' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_lft' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_lft' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_trackers_on_active' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_trackers_on_active' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_discontinue_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_discontinue_on' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_track_inventory' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_track_inventory' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_zone_members_on_zoneable_id_and_zoneable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_zone_members_on_zoneable_id_and_zoneable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_zone_members_on_zone_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_zone_members_on_zone_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_zones_on_kind' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_zones_on_kind' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_zones_on_default_tax' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_zones_on_default_tax' AND type='index'   (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]] SQL (0.5ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "position") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["created_at", "2018-05-16 18:24:18.784710"], ["updated_at", "2018-05-16 18:24:18.784710"], ["position", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_purchase_orders" ("po_number", "organization_name", "created_at", "updated_at", "payment_method_id") VALUES (?, ?, ?, ?, ?) [["po_number", "PO-123"], ["organization_name", "Spree Commerce"], ["created_at", "2018-05-16 18:24:18.814562"], ["updated_at", "2018-05-16 18:24:18.814562"], ["payment_method_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]] SQL (0.2ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "position") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["created_at", "2018-05-16 18:24:18.820586"], ["updated_at", "2018-05-16 18:24:18.820586"], ["position", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = ? LIMIT ? [["numcode", 840], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Spree::Country Exists (0.3ms) SELECT 1 AS one FROM "spree_countries" WHERE LOWER("spree_countries"."name") = LOWER(?) LIMIT ? [["name", "NAME_1"], ["LIMIT", 1]] Spree::Country Exists (0.1ms) SELECT 1 AS one FROM "spree_countries" WHERE LOWER("spree_countries"."iso_name") = LOWER(?) LIMIT ? [["iso_name", "ISO_NAME_1"], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "spree_countries" ("iso_name", "iso", "iso3", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso_name", "ISO_NAME_1"], ["iso", "US"], ["iso3", "USA"], ["name", "NAME_1"], ["numcode", 840], ["updated_at", "2018-05-16 18:24:18.913359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::State Exists (0.2ms) SELECT 1 AS one FROM "spree_states" WHERE LOWER("spree_states"."name") = LOWER(?) AND "spree_states"."country_id" = ? LIMIT ? [["name", "STATE_NAME_1"], ["country_id", 1], ["LIMIT", 1]] Spree::State Exists (0.1ms) SELECT 1 AS one FROM "spree_states" WHERE LOWER("spree_states"."abbr") = LOWER(?) AND "spree_states"."country_id" = ? LIMIT ? [["abbr", "STATE_ABBR_1"], ["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "spree_states" ("name", "abbr", "country_id", "updated_at") VALUES (?, ?, ?, ?) [["name", "STATE_NAME_1"], ["abbr", "STATE_ABBR_1"], ["country_id", 1], ["updated_at", "2018-05-16 18:24:18.925770"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = ? LIMIT ? [["key", "spree/app_configuration/address_requires_state"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "spree_addresses" ("firstname", "lastname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["lastname", "Doe"], ["address1", "10 Lovely Street"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "35005"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2018-05-16 18:24:18.998823"], ["updated_at", "2018-05-16 18:24:18.998823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Spree::Store Exists (0.3ms) SELECT 1 AS one FROM "spree_stores" WHERE "spree_stores"."code" = ? LIMIT ? [["code", "spree_1"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_stores" WHERE "spree_stores"."default" = ? [["default", "t"]] SQL (0.3ms) INSERT INTO "spree_stores" ("name", "url", "mail_from_address", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Spree Test Store"], ["url", "www.example.com"], ["mail_from_address", "spree@example.org"], ["code", "spree_1"], ["created_at", "2018-05-16 18:24:19.026158"], ["updated_at", "2018-05-16 18:24:19.026158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R015312485"], ["LIMIT", 1]] Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = ? LIMIT ? [["key", "spree/app_configuration/currency"], ["LIMIT", 1]] Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R015312485"], ["LIMIT", 1]] Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R015312485"], ["LIMIT", 1]] Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = ? LIMIT ? [["guest_token", "jJ-EIs2lCS2W_2jkYD2g6Q1526495059042"], ["LIMIT", 1]] SQL (0.6ms) INSERT INTO "spree_orders" ("number", "state", "bill_address_id", "email", "created_at", "updated_at", "currency", "guest_token", "store_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "R015312485"], ["state", "cart"], ["bill_address_id", 1], ["email", "email@example.com"], ["created_at", "2018-05-16 18:24:19.041972"], ["updated_at", "2018-05-16 18:24:19.041972"], ["currency", "USD"], ["guest_token", "jJ-EIs2lCS2W_2jkYD2g6Q1526495059042"], ["store_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.2ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "POYW98YV"], ["LIMIT", 1]] Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "POYW98YV"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "spree_payments" ("amount", "order_id", "source_type", "source_id", "payment_method_id", "state", "response_code", "created_at", "updated_at", "number") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["order_id", 1], ["source_type", "Spree::PurchaseOrder"], ["source_id", 1], ["payment_method_id", 3], ["state", "checkout"], ["response_code", "12345"], ["created_at", "2018-05-16 18:24:19.058548"], ["updated_at", "2018-05-16 18:24:19.058548"], ["number", "POYW98YV"]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? AND (id != 1) ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "checkout"]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2018-05-16 18:24:19.067874' WHERE "spree_orders"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_purchase_orders" ("po_number", "organization_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["po_number", "PO-123"], ["organization_name", "Spree Commerce"], ["created_at", "2018-05-16 18:24:19.194581"], ["updated_at", "2018-05-16 18:24:19.194581"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]] SQL (0.3ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "position") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["created_at", "2018-05-16 18:24:19.205808"], ["updated_at", "2018-05-16 18:24:19.205808"], ["position", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_purchase_orders" ("po_number", "organization_name", "created_at", "updated_at", "payment_method_id") VALUES (?, ?, ?, ?, ?) [["po_number", "PO-123"], ["organization_name", "Spree Commerce"], ["created_at", "2018-05-16 18:24:19.212518"], ["updated_at", "2018-05-16 18:24:19.212518"], ["payment_method_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]] SQL (0.4ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "position") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["created_at", "2018-05-16 18:24:19.217805"], ["updated_at", "2018-05-16 18:24:19.217805"], ["position", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = ? LIMIT ? [["numcode", 840], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Spree::Country Exists (0.2ms) SELECT 1 AS one FROM "spree_countries" WHERE LOWER("spree_countries"."name") = LOWER(?) LIMIT ? [["name", "NAME_2"], ["LIMIT", 1]] Spree::Country Exists (0.1ms) SELECT 1 AS one FROM "spree_countries" WHERE LOWER("spree_countries"."iso_name") = LOWER(?) LIMIT ? [["iso_name", "ISO_NAME_2"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "spree_countries" ("iso_name", "iso", "iso3", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso_name", "ISO_NAME_2"], ["iso", "US"], ["iso3", "USA"], ["name", "NAME_2"], ["numcode", 840], ["updated_at", "2018-05-16 18:24:19.228750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::State Exists (0.2ms) SELECT 1 AS one FROM "spree_states" WHERE LOWER("spree_states"."name") = LOWER(?) AND "spree_states"."country_id" = ? LIMIT ? [["name", "STATE_NAME_2"], ["country_id", 1], ["LIMIT", 1]] Spree::State Exists (0.1ms) SELECT 1 AS one FROM "spree_states" WHERE LOWER("spree_states"."abbr") = LOWER(?) AND "spree_states"."country_id" = ? LIMIT ? [["abbr", "STATE_ABBR_2"], ["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "spree_states" ("name", "abbr", "country_id", "updated_at") VALUES (?, ?, ?, ?) [["name", "STATE_NAME_2"], ["abbr", "STATE_ABBR_2"], ["country_id", 1], ["updated_at", "2018-05-16 18:24:19.234011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_addresses" ("firstname", "lastname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["lastname", "Doe"], ["address1", "10 Lovely Street"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "35005"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2018-05-16 18:24:19.237158"], ["updated_at", "2018-05-16 18:24:19.237158"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Store Exists (0.1ms) SELECT 1 AS one FROM "spree_stores" WHERE "spree_stores"."code" = ? LIMIT ? [["code", "spree_2"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_stores" WHERE "spree_stores"."default" = ? [["default", "t"]] SQL (0.3ms) INSERT INTO "spree_stores" ("name", "url", "mail_from_address", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Spree Test Store"], ["url", "www.example.com"], ["mail_from_address", "spree@example.org"], ["code", "spree_2"], ["created_at", "2018-05-16 18:24:19.242617"], ["updated_at", "2018-05-16 18:24:19.242617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R840825436"], ["LIMIT", 1]] Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R840825436"], ["LIMIT", 1]] Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R840825436"], ["LIMIT", 1]] Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = ? LIMIT ? [["guest_token", "KYXSh2JczR-jRHU_MeDvuQ1526495059251"], ["LIMIT", 1]] SQL (0.6ms) INSERT INTO "spree_orders" ("number", "state", "bill_address_id", "email", "created_at", "updated_at", "currency", "guest_token", "store_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "R840825436"], ["state", "cart"], ["bill_address_id", 1], ["email", "email@example.com"], ["created_at", "2018-05-16 18:24:19.250947"], ["updated_at", "2018-05-16 18:24:19.250947"], ["currency", "USD"], ["guest_token", "KYXSh2JczR-jRHU_MeDvuQ1526495059251"], ["store_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.2ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "PG8X9HB4"], ["LIMIT", 1]] Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "PG8X9HB4"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "spree_payments" ("amount", "order_id", "source_type", "source_id", "payment_method_id", "state", "response_code", "created_at", "updated_at", "number") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["order_id", 1], ["source_type", "Spree::PurchaseOrder"], ["source_id", 1], ["payment_method_id", 3], ["state", "checkout"], ["response_code", "12345"], ["created_at", "2018-05-16 18:24:19.259595"], ["updated_at", "2018-05-16 18:24:19.259595"], ["number", "PG8X9HB4"]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? AND (id != 1) ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "checkout"]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2018-05-16 18:24:19.265516' WHERE "spree_orders"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]] SQL (0.4ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "position") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["created_at", "2018-05-16 18:24:19.274141"], ["updated_at", "2018-05-16 18:24:19.274141"], ["position", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_purchase_orders" ("po_number", "organization_name", "created_at", "updated_at", "payment_method_id") VALUES (?, ?, ?, ?, ?) [["po_number", "PO-123"], ["organization_name", "Spree Commerce"], ["created_at", "2018-05-16 18:24:19.280541"], ["updated_at", "2018-05-16 18:24:19.280541"], ["payment_method_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]] SQL (0.3ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "position") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["created_at", "2018-05-16 18:24:19.285915"], ["updated_at", "2018-05-16 18:24:19.285915"], ["position", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = ? LIMIT ? [["numcode", 840], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Spree::Country Exists (0.2ms) SELECT 1 AS one FROM "spree_countries" WHERE LOWER("spree_countries"."name") = LOWER(?) LIMIT ? [["name", "NAME_3"], ["LIMIT", 1]] Spree::Country Exists (0.2ms) SELECT 1 AS one FROM "spree_countries" WHERE LOWER("spree_countries"."iso_name") = LOWER(?) LIMIT ? [["iso_name", "ISO_NAME_3"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "spree_countries" ("iso_name", "iso", "iso3", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso_name", "ISO_NAME_3"], ["iso", "US"], ["iso3", "USA"], ["name", "NAME_3"], ["numcode", 840], ["updated_at", "2018-05-16 18:24:19.300373"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Spree::State Exists (0.3ms) SELECT 1 AS one FROM "spree_states" WHERE LOWER("spree_states"."name") = LOWER(?) AND "spree_states"."country_id" = ? LIMIT ? [["name", "STATE_NAME_3"], ["country_id", 1], ["LIMIT", 1]] Spree::State Exists (0.1ms) SELECT 1 AS one FROM "spree_states" WHERE LOWER("spree_states"."abbr") = LOWER(?) AND "spree_states"."country_id" = ? LIMIT ? [["abbr", "STATE_ABBR_3"], ["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "spree_states" ("name", "abbr", "country_id", "updated_at") VALUES (?, ?, ?, ?) [["name", "STATE_NAME_3"], ["abbr", "STATE_ABBR_3"], ["country_id", 1], ["updated_at", "2018-05-16 18:24:19.309547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("firstname", "lastname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["lastname", "Doe"], ["address1", "10 Lovely Street"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "35005"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2018-05-16 18:24:19.312957"], ["updated_at", "2018-05-16 18:24:19.312957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Store Exists (0.1ms) SELECT 1 AS one FROM "spree_stores" WHERE "spree_stores"."code" = ? LIMIT ? [["code", "spree_3"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_stores" WHERE "spree_stores"."default" = ? [["default", "t"]] SQL (0.4ms) INSERT INTO "spree_stores" ("name", "url", "mail_from_address", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Spree Test Store"], ["url", "www.example.com"], ["mail_from_address", "spree@example.org"], ["code", "spree_3"], ["created_at", "2018-05-16 18:24:19.319593"], ["updated_at", "2018-05-16 18:24:19.319593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R633256817"], ["LIMIT", 1]] Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R633256817"], ["LIMIT", 1]] Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R633256817"], ["LIMIT", 1]] Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = ? LIMIT ? [["guest_token", "qVA1hx8Oag9-iFCWG7ZnDg1526495059331"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "spree_orders" ("number", "state", "bill_address_id", "email", "created_at", "updated_at", "currency", "guest_token", "store_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "R633256817"], ["state", "cart"], ["bill_address_id", 1], ["email", "email@example.com"], ["created_at", "2018-05-16 18:24:19.331142"], ["updated_at", "2018-05-16 18:24:19.331142"], ["currency", "USD"], ["guest_token", "qVA1hx8Oag9-iFCWG7ZnDg1526495059331"], ["store_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "PYKE2S86"], ["LIMIT", 1]] Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "PYKE2S86"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "spree_payments" ("amount", "order_id", "source_type", "source_id", "payment_method_id", "state", "response_code", "created_at", "updated_at", "number") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["order_id", 1], ["source_type", "Spree::PurchaseOrder"], ["source_id", 1], ["payment_method_id", 3], ["state", "pending"], ["response_code", "12345"], ["created_at", "2018-05-16 18:24:19.339702"], ["updated_at", "2018-05-16 18:24:19.339702"], ["number", "PYKE2S86"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? AND (id != 1) ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "checkout"]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2018-05-16 18:24:19.345260' WHERE "spree_orders"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC Migrating to AddQuantityToInventoryUnits (20180516191805)  (0.1ms) begin transaction  (0.8ms) ALTER TABLE "spree_inventory_units" ADD "quantity" integer DEFAULT 1 SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191805"]]  (85.5ms) commit transaction Migrating to AddOriginalReturnItemIdToSpreeInventoryUnits (20180516191806)  (0.2ms) begin transaction  (1.2ms) ALTER TABLE "spree_inventory_units" ADD "original_return_item_id" integer  (0.2ms) SELECT sqlite_version(*)  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_inventory_units_on_line_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_inventory_units_on_line_item_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_variant_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_shipment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_shipment_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_order_id' AND type='index'   (0.7ms) CREATE INDEX "index_spree_inventory_units_on_original_return_item_id" ON "spree_inventory_units" ("original_return_item_id") Spree::ReturnItem Load (0.4ms) SELECT "spree_return_items".* FROM "spree_return_items" WHERE ("spree_return_items"."exchange_inventory_unit_id" IS NOT NULL) ORDER BY "spree_return_items"."id" ASC LIMIT ? [["LIMIT", 1000]]  (0.4ms) CREATE TEMPORARY TABLE "aspree_return_items" ("id" integer NOT NULL PRIMARY KEY, "return_authorization_id" integer DEFAULT NULL, "inventory_unit_id" integer DEFAULT NULL, "exchange_variant_id" integer DEFAULT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "pre_tax_amount" decimal(12,4) DEFAULT '0.0' NOT NULL, "included_tax_total" decimal(12,4) DEFAULT '0.0' NOT NULL, "additional_tax_total" decimal(12,4) DEFAULT '0.0' NOT NULL, "reception_status" varchar DEFAULT NULL, "acceptance_status" varchar DEFAULT NULL, "customer_return_id" integer DEFAULT NULL, "reimbursement_id" integer DEFAULT NULL, "exchange_inventory_unit_id" integer DEFAULT NULL, "acceptance_status_errors" text DEFAULT NULL, "preferred_reimbursement_type_id" integer DEFAULT NULL, "override_reimbursement_type_id" integer DEFAULT NULL, "resellable" boolean DEFAULT 't' NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_items_on_exchange_inventory_unit_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_items_on_exchange_inventory_unit_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_return_items_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_items_on_customer_return_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_return_items_on_exchange_inventory_unit_id" ON "aspree_return_items" ("exchange_inventory_unit_id")  (0.2ms) CREATE INDEX "tindex_return_items_on_customer_return_id" ON "aspree_return_items" ("customer_return_id")  (0.1ms) INSERT INTO "aspree_return_items" ("id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id","reimbursement_id","exchange_inventory_unit_id","acceptance_status_errors","preferred_reimbursement_type_id","override_reimbursement_type_id","resellable") SELECT "id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id","reimbursement_id","exchange_inventory_unit_id","acceptance_status_errors","preferred_reimbursement_type_id","override_reimbursement_type_id","resellable" FROM "spree_return_items"  (0.4ms) DROP TABLE "spree_return_items"  (0.5ms) CREATE TABLE "spree_return_items" ("id" integer NOT NULL PRIMARY KEY, "return_authorization_id" integer DEFAULT NULL, "inventory_unit_id" integer DEFAULT NULL, "exchange_variant_id" integer DEFAULT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "pre_tax_amount" decimal(12,4) DEFAULT '0.0' NOT NULL, "included_tax_total" decimal(12,4) DEFAULT '0.0' NOT NULL, "additional_tax_total" decimal(12,4) DEFAULT '0.0' NOT NULL, "reception_status" varchar DEFAULT NULL, "acceptance_status" varchar DEFAULT NULL, "customer_return_id" integer DEFAULT NULL, "reimbursement_id" integer DEFAULT NULL, "acceptance_status_errors" text DEFAULT NULL, "preferred_reimbursement_type_id" integer DEFAULT NULL, "override_reimbursement_type_id" integer DEFAULT NULL, "resellable" boolean DEFAULT 't' NOT NULL)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='tindex_return_items_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_return_items_on_customer_return_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_return_items_on_exchange_inventory_unit_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_return_items_on_exchange_inventory_unit_id' AND type='index'   (0.3ms) CREATE INDEX "index_return_items_on_customer_return_id" ON "spree_return_items" ("customer_return_id")  (0.1ms) INSERT INTO "spree_return_items" ("id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id","reimbursement_id","acceptance_status_errors","preferred_reimbursement_type_id","override_reimbursement_type_id","resellable") SELECT "id","return_authorization_id","inventory_unit_id","exchange_variant_id","created_at","updated_at","pre_tax_amount","included_tax_total","additional_tax_total","reception_status","acceptance_status","customer_return_id","reimbursement_id","acceptance_status_errors","preferred_reimbursement_type_id","override_reimbursement_type_id","resellable" FROM "aspree_return_items"  (0.3ms) DROP TABLE "aspree_return_items" SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191806"]]  (168.1ms) commit transaction Migrating to AddUniqueIndexOnNumberToSpreeOrders (20180516191807)  (0.1ms) begin transaction  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_store_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_store_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_canceler_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_canceler_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_guest_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_guest_token' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.3ms) SELECT "spree_orders"."number" FROM "spree_orders" GROUP BY "spree_orders"."number" HAVING (sum(1) > 1) Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE 1=0 ORDER BY "spree_orders"."id" ASC LIMIT ? [["LIMIT", 1000]]  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_store_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_store_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_canceler_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_canceler_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_guest_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_guest_token' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_store_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_store_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_canceler_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_canceler_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_guest_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_guest_token' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.4ms) DROP INDEX "index_spree_orders_on_number"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_store_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_store_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_canceler_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_canceler_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_guest_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_guest_token' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.4ms) CREATE UNIQUE INDEX "index_spree_orders_on_number" ON "spree_orders" ("number") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191807"]]  (109.6ms) commit transaction Migrating to AddUniqueIndexOnNumberToSpreeStockTransfer (20180516191808)  (0.1ms) begin transaction  (0.6ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_number' AND type='index'   (0.2ms) SELECT "spree_stock_transfers"."number" FROM "spree_stock_transfers" GROUP BY "spree_stock_transfers"."number" HAVING (sum(1) > 1) Spree::StockTransfer Load (0.3ms) SELECT "spree_stock_transfers".* FROM "spree_stock_transfers" WHERE 1=0 ORDER BY "spree_stock_transfers"."id" ASC LIMIT ? [["LIMIT", 1000]]  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_number' AND type='index'   (0.4ms) DROP INDEX "index_spree_stock_transfers_on_number"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index'   (0.4ms) CREATE UNIQUE INDEX "index_spree_stock_transfers_on_number" ON "spree_stock_transfers" ("number") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191808"]]  (131.9ms) commit transaction Migrating to AddUniqueIndexOnNumberToSpreeShipment (20180516191809)  (0.1ms) begin transaction  (0.5ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_address_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.3ms) SELECT "spree_shipments"."number" FROM "spree_shipments" GROUP BY "spree_shipments"."number" HAVING (sum(1) > 1) Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE 1=0 ORDER BY "spree_shipments"."id" ASC LIMIT ? [["LIMIT", 1000]]  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_shipments_on_number' AND type='index'   (0.3ms) DROP INDEX "index_shipments_on_number"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.4ms) CREATE UNIQUE INDEX "index_spree_shipments_on_number" ON "spree_shipments" ("number") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191809"]]  (110.3ms) commit transaction Migrating to AddUniqueIndexOnNumberToSpreePayments (20180516191810)  (0.1ms) begin transaction  (0.5ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_number' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'   (0.5ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.2ms) SELECT "spree_payments"."number" FROM "spree_payments" GROUP BY "spree_payments"."number" HAVING (sum(1) > 1) Scoped order is ignored, it's forced to be batch order. Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE 1=0 ORDER BY "spree_payments"."id" ASC LIMIT ? [["LIMIT", 1000]]  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_number' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (1.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_number' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.3ms) DROP INDEX "index_spree_payments_on_number"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (7.8ms) CREATE UNIQUE INDEX "index_spree_payments_on_number" ON "spree_payments" ("number") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191810"]]  (112.7ms) commit transaction Migrating to AddUniqueIndexOnNumberToSpreeReturnAuthorizations (20180516191811)  (0.1ms) begin transaction  (0.5ms)  SELECT sql FROM sqlite_master WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index'   (0.2ms) SELECT "spree_return_authorizations"."number" FROM "spree_return_authorizations" GROUP BY "spree_return_authorizations"."number" HAVING (sum(1) > 1) Spree::ReturnAuthorization Load (0.1ms) SELECT "spree_return_authorizations".* FROM "spree_return_authorizations" WHERE 1=0 ORDER BY "spree_return_authorizations"."id" ASC LIMIT ? [["LIMIT", 1000]]  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index'   (0.4ms) CREATE UNIQUE INDEX "index_spree_return_authorizations_on_number" ON "spree_return_authorizations" ("number") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191811"]]  (176.3ms) commit transaction Migrating to AddUniqueIndexOnNumberToSpreeCustomerReturns (20180516191812)  (0.2ms) begin transaction  (0.1ms) SELECT "spree_customer_returns"."number" FROM "spree_customer_returns" GROUP BY "spree_customer_returns"."number" HAVING (sum(1) > 1) Spree::CustomerReturn Load (0.1ms) SELECT "spree_customer_returns".* FROM "spree_customer_returns" WHERE 1=0 ORDER BY "spree_customer_returns"."id" ASC LIMIT ? [["LIMIT", 1000]]  (0.5ms) CREATE UNIQUE INDEX "index_spree_customer_returns_on_number" ON "spree_customer_returns" ("number") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191812"]]  (134.4ms) commit transaction Migrating to AddUniqueIndexOnNumberToSpreeReimbursements (20180516191813)  (0.2ms) begin transaction  (0.5ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_reimbursements_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_reimbursements_on_order_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_reimbursements_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_reimbursements_on_customer_return_id' AND type='index'   (0.1ms) SELECT "spree_reimbursements"."number" FROM "spree_reimbursements" GROUP BY "spree_reimbursements"."number" HAVING (sum(1) > 1) Spree::Reimbursement Load (0.1ms) SELECT "spree_reimbursements".* FROM "spree_reimbursements" WHERE 1=0 ORDER BY "spree_reimbursements"."id" ASC LIMIT ? [["LIMIT", 1000]]  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_reimbursements_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_reimbursements_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_reimbursements_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_reimbursements_on_customer_return_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_reimbursements_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_reimbursements_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_reimbursements_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_reimbursements_on_customer_return_id' AND type='index'   (0.4ms) CREATE UNIQUE INDEX "index_spree_reimbursements_on_number" ON "spree_reimbursements" ("number") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191813"]]  (142.0ms) commit transaction Migrating to AddMissingUniqueIndexesForUniqueAttributes (20180516191814)  (0.2ms) begin transaction  (0.2ms) SELECT "spree_countries"."name" FROM "spree_countries" GROUP BY "spree_countries"."name" HAVING (sum(1) > 1) Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE (1=0 OR "spree_countries"."name" IS NULL) ORDER BY "spree_countries"."id" ASC LIMIT ? [["LIMIT", 1000]]  (0.5ms) CREATE UNIQUE INDEX "index_spree_countries_on_name" ON "spree_countries" ("name")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_countries_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_countries_on_name' AND type='index'   (0.1ms) SELECT "spree_countries"."iso_name" FROM "spree_countries" GROUP BY "spree_countries"."iso_name" HAVING (sum(1) > 1) Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE (1=0 OR "spree_countries"."iso_name" IS NULL) ORDER BY "spree_countries"."id" ASC LIMIT ? [["LIMIT", 1000]]  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_countries_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_countries_on_name' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_countries_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_countries_on_name' AND type='index'   (0.9ms) CREATE UNIQUE INDEX "index_spree_countries_on_iso_name" ON "spree_countries" ("iso_name")  (0.2ms) SELECT "spree_refund_reasons"."name" FROM "spree_refund_reasons" GROUP BY "spree_refund_reasons"."name" HAVING (sum(1) > 1) Scoped order is ignored, it's forced to be batch order. Spree::RefundReason Load (0.2ms) SELECT "spree_refund_reasons".* FROM "spree_refund_reasons" WHERE (1=0 OR "spree_refund_reasons"."name" IS NULL) ORDER BY "spree_refund_reasons"."id" ASC LIMIT ? [["LIMIT", 1000]]  (0.4ms) CREATE UNIQUE INDEX "index_spree_refund_reasons_on_name" ON "spree_refund_reasons" ("name")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_reimbursement_types_on_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_reimbursement_types_on_type' AND type='index'   (0.2ms) SELECT "spree_reimbursement_types"."name" FROM "spree_reimbursement_types" GROUP BY "spree_reimbursement_types"."name" HAVING (sum(1) > 1) Scoped order is ignored, it's forced to be batch order. Spree::ReimbursementType Load (0.2ms) SELECT "spree_reimbursement_types".* FROM "spree_reimbursement_types" WHERE (1=0 OR "spree_reimbursement_types"."name" IS NULL) ORDER BY "spree_reimbursement_types"."id" ASC LIMIT ? [["LIMIT", 1000]]  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_reimbursement_types_on_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_reimbursement_types_on_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_reimbursement_types_on_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_reimbursement_types_on_type' AND type='index'   (0.3ms) CREATE UNIQUE INDEX "index_spree_reimbursement_types_on_name" ON "spree_reimbursement_types" ("name")  (0.1ms) SELECT "spree_return_authorization_reasons"."name" FROM "spree_return_authorization_reasons" GROUP BY "spree_return_authorization_reasons"."name" HAVING (sum(1) > 1) Scoped order is ignored, it's forced to be batch order. Spree::ReturnAuthorizationReason Load (0.2ms) SELECT "spree_return_authorization_reasons".* FROM "spree_return_authorization_reasons" WHERE (1=0 OR "spree_return_authorization_reasons"."name" IS NULL) ORDER BY "spree_return_authorization_reasons"."id" ASC LIMIT ? [["LIMIT", 1000]]  (0.4ms) CREATE UNIQUE INDEX "index_spree_return_authorization_reasons_on_name" ON "spree_return_authorization_reasons" ("name")  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_roles_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_roles_on_name' AND type='index'   (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" GROUP BY "spree_roles"."name" HAVING (sum(1) > 1) Spree::Role Load (0.1ms) SELECT "spree_roles".* FROM "spree_roles" WHERE (1=0 OR "spree_roles"."name" IS NULL) ORDER BY "spree_roles"."id" ASC LIMIT ? [["LIMIT", 1000]]  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_roles_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_roles_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_roles_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_roles_on_name' AND type='index'   (0.2ms) DROP INDEX "index_spree_roles_on_name"  (0.3ms) CREATE UNIQUE INDEX "index_spree_roles_on_name" ON "spree_roles" ("name")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stores_on_url' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stores_on_url' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stores_on_default' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stores_on_default' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stores_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stores_on_code' AND type='index'   (0.1ms) SELECT "spree_stores"."code" FROM "spree_stores" GROUP BY "spree_stores"."code" HAVING (sum(1) > 1) Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (1=0 OR "spree_stores"."code" IS NULL) ORDER BY "spree_stores"."id" ASC LIMIT ? [["LIMIT", 1000]]  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stores_on_url' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stores_on_url' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stores_on_default' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stores_on_default' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stores_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stores_on_code' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stores_on_url' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stores_on_url' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stores_on_default' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stores_on_default' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stores_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stores_on_code' AND type='index'   (0.2ms) DROP INDEX "index_spree_stores_on_code"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stores_on_url' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stores_on_url' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stores_on_default' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stores_on_default' AND type='index'   (0.4ms) CREATE UNIQUE INDEX "index_spree_stores_on_code" ON "spree_stores" ("code") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191814"]]  (179.8ms) commit transaction Migrating to AddIndexOnStockLocationToSpreeCustomerReturns (20180516191815)  (0.1ms) begin transaction  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_customer_returns_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_customer_returns_on_number' AND type='index'   (0.4ms) CREATE INDEX "index_spree_customer_returns_on_stock_location_id" ON "spree_customer_returns" ("stock_location_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191815"]]  (129.1ms) commit transaction Migrating to AddIndexOnPrototypeToSpreeOptionTypePrototype (20180516191816)  (0.3ms) begin transaction  (0.2ms) SELECT COUNT(*) AS count_all, "spree_option_type_prototypes"."prototype_id" AS spree_option_type_prototypes_prototype_id, "spree_option_type_prototypes"."option_type_id" AS spree_option_type_prototypes_option_type_id FROM "spree_option_type_prototypes" GROUP BY "spree_option_type_prototypes"."prototype_id", "spree_option_type_prototypes"."option_type_id" HAVING (sum(1) > 1)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_type_prototypes_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_type_prototypes_on_option_type_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_type_prototypes_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_type_prototypes_on_option_type_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_types_prototypes_on_prototype_and_option_type' AND type='index'   (0.4ms) DROP INDEX "index_option_types_prototypes_on_prototype_and_option_type"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_type_prototypes_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_type_prototypes_on_option_type_id' AND type='index'   (0.4ms) CREATE UNIQUE INDEX "spree_option_type_prototypes_prototype_id_option_type_id" ON "spree_option_type_prototypes" ("prototype_id", "option_type_id")  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='spree_option_type_prototypes_prototype_id_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_option_type_prototypes_prototype_id_option_type_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_type_prototypes_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_type_prototypes_on_option_type_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_option_type_prototypes_on_prototype_id" ON "spree_option_type_prototypes" ("prototype_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191816"]]  (159.7ms) commit transaction Migrating to AddIndexesToSpreeOptionValueVariant (20180516191817)  (0.2ms) begin transaction  (0.1ms) SELECT COUNT(*) AS count_all, "spree_option_value_variants"."variant_id" AS spree_option_value_variants_variant_id, "spree_option_value_variants"."option_value_id" AS spree_option_value_variants_option_value_id FROM "spree_option_value_variants" GROUP BY "spree_option_value_variants"."variant_id", "spree_option_value_variants"."option_value_id" HAVING (sum(1) > 1)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_value_variants_on_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_value_variants_on_option_value_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_value_variants_on_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_value_variants_on_option_value_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.5ms) DROP INDEX "index_option_values_variants_on_variant_id_and_option_value_id"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_value_variants_on_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_value_variants_on_option_value_id' AND type='index'   (0.4ms) CREATE UNIQUE INDEX "index_option_values_variants_on_variant_id_and_option_value_id" ON "spree_option_value_variants" ("variant_id", "option_value_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_value_variants_on_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_value_variants_on_option_value_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_option_value_variants_on_variant_id" ON "spree_option_value_variants" ("variant_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191817"]]  (156.2ms) commit transaction Migrating to AddIndexOnPromotionIdToOrderPromotions (20180516191818)  (0.1ms) begin transaction  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_order_promotions_on_promotion_id_and_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_order_promotions_on_promotion_id_and_order_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_order_promotions_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_order_promotions_on_order_id' AND type='index'   (0.6ms) CREATE INDEX "index_spree_order_promotions_on_promotion_id" ON "spree_order_promotions" ("promotion_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191818"]]  (148.8ms) commit transaction Migrating to AddIndexesForPropertyPrototype (20180516191819)  (0.1ms) begin transaction  (0.3ms) SELECT COUNT(*) AS count_all, "spree_property_prototypes"."prototype_id" AS spree_property_prototypes_prototype_id, "spree_property_prototypes"."property_id" AS spree_property_prototypes_property_id FROM "spree_property_prototypes" GROUP BY "spree_property_prototypes"."prototype_id", "spree_property_prototypes"."property_id" HAVING (sum(1) > 1)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_properties_prototypes_on_prototype_and_property' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_properties_prototypes_on_prototype_and_property' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_properties_prototypes_on_prototype_and_property' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_properties_prototypes_on_prototype_and_property' AND type='index'   (0.4ms) DROP INDEX "index_properties_prototypes_on_prototype_and_property"  (0.4ms) CREATE UNIQUE INDEX "index_property_prototypes_on_prototype_id_and_property_id" ON "spree_property_prototypes" ("prototype_id", "property_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_property_prototypes_on_prototype_id_and_property_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_property_prototypes_on_prototype_id_and_property_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_property_prototypes_on_prototype_id" ON "spree_property_prototypes" ("prototype_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_property_prototypes_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_property_prototypes_on_prototype_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_property_prototypes_on_prototype_id_and_property_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_property_prototypes_on_prototype_id_and_property_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_property_prototypes_on_property_id" ON "spree_property_prototypes" ("property_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191819"]]  (157.2ms) commit transaction Migrating to AddIndexForPrototypeIdToPrototypeTaxons (20180516191820)  (0.1ms) begin transaction  (0.5ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prototype_taxons_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prototype_taxons_on_taxon_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prototype_taxons_on_prototype_id_and_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prototype_taxons_on_prototype_id_and_taxon_id' AND type='index'   (0.9ms) CREATE INDEX "index_spree_prototype_taxons_on_prototype_id" ON "spree_prototype_taxons" ("prototype_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191820"]]  (147.2ms) commit transaction Migrating to AddIndexesToRefunds (20180516191821)  (0.1ms) begin transaction  (0.5ms)  SELECT sql FROM sqlite_master WHERE name='index_refunds_on_refund_reason_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_refunds_on_refund_reason_id' AND type='index'   (0.8ms) CREATE INDEX "index_spree_refunds_on_payment_id" ON "spree_refunds" ("payment_id")  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_refunds_on_payment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_refunds_on_payment_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_refunds_on_refund_reason_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_refunds_on_refund_reason_id' AND type='index'   (0.6ms) CREATE INDEX "index_spree_refunds_on_reimbursement_id" ON "spree_refunds" ("reimbursement_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191821"]]  (144.3ms) commit transaction Migrating to AddIndexesToReimbursementCredits (20180516191822)  (0.1ms) begin transaction  (0.9ms) CREATE INDEX "index_spree_reimbursement_credits_on_reimbursement_id" ON "spree_reimbursement_credits" ("reimbursement_id")  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_reimbursement_credits_on_reimbursement_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_reimbursement_credits_on_reimbursement_id' AND type='index'   (0.5ms) CREATE INDEX "index_reimbursement_credits_on_creditable_id_and_type" ON "spree_reimbursement_credits" ("creditable_id", "creditable_type") SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191822"]]  (146.4ms) commit transaction Migrating to AddIndexesToReturnAuthorizations (20180516191823)  (0.4ms) begin transaction  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_authorizations_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_authorizations_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index'   (0.5ms) CREATE INDEX "index_spree_return_authorizations_on_order_id" ON "spree_return_authorizations" ("order_id")  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_authorizations_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_authorizations_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_authorizations_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_authorizations_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_return_authorizations_on_stock_location_id" ON "spree_return_authorizations" ("stock_location_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191823"]]  (189.3ms) commit transaction Migrating to AddIndexesToReturnItems (20180516191824)  (0.2ms) begin transaction  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_return_items_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_items_on_customer_return_id' AND type='index'   (0.7ms) CREATE INDEX "index_spree_return_items_on_return_authorization_id" ON "spree_return_items" ("return_authorization_id")  (0.5ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_items_on_return_authorization_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_items_on_return_authorization_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_return_items_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_items_on_customer_return_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_return_items_on_inventory_unit_id" ON "spree_return_items" ("inventory_unit_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_items_on_inventory_unit_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_items_on_inventory_unit_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_items_on_return_authorization_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_items_on_return_authorization_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_return_items_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_items_on_customer_return_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_return_items_on_reimbursement_id" ON "spree_return_items" ("reimbursement_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_items_on_reimbursement_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_items_on_reimbursement_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_items_on_inventory_unit_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_items_on_inventory_unit_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_items_on_return_authorization_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_items_on_return_authorization_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_return_items_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_items_on_customer_return_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_return_items_on_exchange_variant_id" ON "spree_return_items" ("exchange_variant_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_items_on_exchange_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_items_on_exchange_variant_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_items_on_reimbursement_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_items_on_reimbursement_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_items_on_inventory_unit_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_items_on_inventory_unit_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_items_on_return_authorization_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_items_on_return_authorization_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_return_items_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_items_on_customer_return_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_return_items_on_preferred_reimbursement_type_id" ON "spree_return_items" ("preferred_reimbursement_type_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_items_on_preferred_reimbursement_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_items_on_preferred_reimbursement_type_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_items_on_exchange_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_items_on_exchange_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_items_on_reimbursement_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_items_on_reimbursement_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_items_on_inventory_unit_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_items_on_inventory_unit_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_items_on_return_authorization_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_items_on_return_authorization_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_return_items_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_items_on_customer_return_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_return_items_on_override_reimbursement_type_id" ON "spree_return_items" ("override_reimbursement_type_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191824"]]  (154.8ms) commit transaction Migrating to AddIndexToRoleUsers (20180516191825)  (0.2ms) begin transaction  (0.3ms) SELECT COUNT(*) AS count_all, "spree_role_users"."role_id" AS spree_role_users_role_id, "spree_role_users"."user_id" AS spree_role_users_user_id FROM "spree_role_users" GROUP BY "spree_role_users"."role_id", "spree_role_users"."user_id" HAVING (sum(1) > 1)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_role_users_on_role_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_role_users_on_role_id' AND type='index'   (0.9ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_role_users_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_role_users_on_user_id' AND type='index'  SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191825"]]  (123.1ms) commit transaction Migrating to AddIndexToShippingMethodCategories (20180516191826)  (0.1ms) begin transaction  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='unique_spree_shipping_method_categories' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='unique_spree_shipping_method_categories' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_method_categories_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_method_categories_on_shipping_method_id' AND type='index'   (1.0ms) CREATE INDEX "index_spree_shipping_method_categories_on_shipping_category_id" ON "spree_shipping_method_categories" ("shipping_category_id") SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191826"]]  (162.7ms) commit transaction Migrating to AddIndexToShippingMethodZones (20180516191827)  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) AS count_all, "spree_shipping_method_zones"."shipping_method_id" AS spree_shipping_method_zones_shipping_method_id, "spree_shipping_method_zones"."zone_id" AS spree_shipping_method_zones_zone_id FROM "spree_shipping_method_zones" GROUP BY "spree_shipping_method_zones"."shipping_method_id", "spree_shipping_method_zones"."zone_id" HAVING (sum(1) > 1)  (0.4ms) CREATE INDEX "index_spree_shipping_method_zones_on_zone_id" ON "spree_shipping_method_zones" ("zone_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_method_zones_on_zone_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_method_zones_on_zone_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_shipping_method_zones_on_shipping_method_id" ON "spree_shipping_method_zones" ("shipping_method_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191827"]]  (155.5ms) commit transaction Migrating to AddIndexToSpreeShippingRates (20180516191828)  (0.1ms) begin transaction  (0.5ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_rates_on_tax_rate_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_rates_on_tax_rate_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_rates_on_selected' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_rates_on_selected' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='spree_shipping_rates_join_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_shipping_rates_join_index' AND type='index'   (0.8ms) CREATE INDEX "index_spree_shipping_rates_on_shipment_id" ON "spree_shipping_rates" ("shipment_id")  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_rates_on_shipment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_rates_on_shipment_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_rates_on_tax_rate_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_rates_on_tax_rate_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_rates_on_selected' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_rates_on_selected' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='spree_shipping_rates_join_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_shipping_rates_join_index' AND type='index'   (0.2ms) CREATE INDEX "index_spree_shipping_rates_on_shipping_method_id" ON "spree_shipping_rates" ("shipping_method_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191828"]]  (142.6ms) commit transaction Migrating to AddIndexToSpreeStockItems (20180516191829)  (0.1ms) begin transaction  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_variant_id' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_backorderable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_backorderable' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_deleted_at' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='stock_item_by_loc_and_var_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='stock_item_by_loc_and_var_id' AND type='index'   (0.8ms) CREATE INDEX "index_spree_stock_items_on_stock_location_id" ON "spree_stock_items" ("stock_location_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191829"]]  (136.1ms) commit transaction Migrating to AddIndexToSpreeStockMovement (20180516191830)  (0.1ms) begin transaction  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index'   (0.9ms) CREATE INDEX "index_stock_movements_on_originator_id_and_originator_type" ON "spree_stock_movements" ("originator_id", "originator_type") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191830"]]  (126.0ms) commit transaction Migrating to ChangeIndexesOnFriendlyIdSlugs (20180516191831)  (0.1ms) begin transaction  (0.5ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_deleted_at' AND type='index'   (0.5ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'   (0.4ms) DROP INDEX "index_friendly_id_slugs_on_slug_and_sluggable_type"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'   (0.3ms) DROP INDEX "index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'   (0.3ms) CREATE INDEX "index_friendly_id_slugs_on_slug_and_sluggable_type" ON "friendly_id_slugs" ("slug", "sluggable_type")  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'   (0.3ms) CREATE UNIQUE INDEX "index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope" ON "friendly_id_slugs" ("slug", "sluggable_type", "scope") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191831"]]  (127.0ms) commit transaction Migrating to AddAnalyticsKindToSpreeTrackers (20180516191832)  (0.1ms) begin transaction  (1.3ms) ALTER TABLE "spree_trackers" ADD "kind" integer DEFAULT 0 NOT NULL SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191832"]]  (149.4ms) commit transaction Migrating to RenameTrackerKindField (20180516191833)  (0.1ms) begin transaction  (0.3ms) CREATE TEMPORARY TABLE "aspree_trackers" ("id" integer NOT NULL PRIMARY KEY, "analytics_id" varchar DEFAULT NULL, "active" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "engine" integer DEFAULT 0 NOT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_trackers_on_active' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_trackers_on_active' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_trackers_on_active" ON "aspree_trackers" ("active")  (0.1ms) INSERT INTO "aspree_trackers" ("id","analytics_id","active","created_at","updated_at","engine") SELECT "id","analytics_id","active","created_at","updated_at","kind" FROM "spree_trackers"  (0.4ms) DROP TABLE "spree_trackers"  (0.3ms) CREATE TABLE "spree_trackers" ("id" integer NOT NULL PRIMARY KEY, "analytics_id" varchar DEFAULT NULL, "active" boolean DEFAULT 't', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "engine" integer DEFAULT 0 NOT NULL)  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_trackers_on_active' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_trackers_on_active' AND type='index'   (0.4ms) CREATE INDEX "index_spree_trackers_on_active" ON "spree_trackers" ("active")  (0.2ms) INSERT INTO "spree_trackers" ("id","analytics_id","active","created_at","updated_at","engine") SELECT "id","analytics_id","active","created_at","updated_at","engine" FROM "aspree_trackers"  (0.2ms) DROP TABLE "aspree_trackers"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_trackers_on_active' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_trackers_on_active' AND type='index'  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516191833"]]  (137.1ms) commit transaction ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_addresses_on_state_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_addresses_on_state_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_addresses_on_country_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_addresses_on_country_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_addresses_on_lastname' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_lastname' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_addresses_on_firstname' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_firstname' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_source_id_and_source_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_eligible' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_eligible' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_assets_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_assets_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_assets_on_viewable_type_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_assets_on_viewable_type_and_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_assets_on_viewable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_assets_on_viewable_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_calculators_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_calculators_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_calculators_on_calculable_id_and_calculable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_calculators_on_calculable_id_and_calculable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_calculators_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_calculators_on_id_and_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_countries_on_iso_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_countries_on_iso_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_countries_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_countries_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_payment_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_customer_returns_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_customer_returns_on_stock_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_customer_returns_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_customer_returns_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_gateways_on_test_mode' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_gateways_on_test_mode' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_gateways_on_active' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_gateways_on_active' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_inventory_units_on_original_return_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_inventory_units_on_original_return_item_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_inventory_units_on_line_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_inventory_units_on_line_item_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_shipment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_shipment_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_log_entries_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_log_entries_on_source_id_and_source_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_type_prototypes_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_type_prototypes_on_prototype_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='spree_option_type_prototypes_prototype_id_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_option_type_prototypes_prototype_id_option_type_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_type_prototypes_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_type_prototypes_on_option_type_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_types_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_types_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_types_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_types_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_value_variants_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_value_variants_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_value_variants_on_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_value_variants_on_option_value_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_on_option_type_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_order_promotions_on_promotion_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_order_promotions_on_promotion_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_order_promotions_on_promotion_id_and_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_order_promotions_on_promotion_id_and_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_order_promotions_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_order_promotions_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_store_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_store_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_canceler_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_canceler_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_guest_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_guest_token' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payment_capture_events_on_payment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payment_capture_events_on_payment_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payment_methods_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payment_methods_on_id_and_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_preferences_on_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_preferences_on_key' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prices_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prices_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prices_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prices_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prices_on_variant_id_and_currency' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prices_on_variant_id_and_currency' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_product_option_types_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_product_option_types_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_product_option_types_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_product_option_types_on_product_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_product_option_types_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_product_option_types_on_option_type_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_promotion_rule_and_product' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_promotion_rule_and_product' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_product_properties_on_property_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_product_properties_on_property_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_product_properties_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_product_properties_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_product_properties_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_product_properties_on_product_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_discontinue_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_discontinue_on' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_slug' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_taxons_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_taxons_on_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_taxons_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_taxons_on_product_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_action_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_action_line_items_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_action_line_items_on_promotion_action_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_action_line_items_on_promotion_action_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_actions_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_actions_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_actions_on_promotion_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_actions_on_promotion_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_actions_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_actions_on_id_and_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_rule_taxons_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_rule_taxons_on_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_rule_taxons_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_rule_taxons_on_promotion_rule_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_user_id_and_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_user_id_and_promotion_rule_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_rules_on_promotion_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_rules_on_promotion_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_on_product_group_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_on_product_group_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_promotion_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_promotion_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_advertise' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_advertise' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_starts_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_starts_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_expires_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_expires_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_code' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_properties_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_properties_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_property_prototypes_on_property_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_property_prototypes_on_property_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_property_prototypes_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_property_prototypes_on_prototype_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_property_prototypes_on_prototype_id_and_property_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_property_prototypes_on_prototype_id_and_property_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prototype_taxons_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prototype_taxons_on_prototype_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prototype_taxons_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prototype_taxons_on_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prototype_taxons_on_prototype_id_and_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prototype_taxons_on_prototype_id_and_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_purchase_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_purchase_orders_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_purchase_orders_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_purchase_orders_on_payment_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_refund_reasons_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_refund_reasons_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_refunds_on_reimbursement_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_refunds_on_reimbursement_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_refunds_on_payment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_refunds_on_payment_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_refunds_on_refund_reason_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_refunds_on_refund_reason_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_reimbursement_credits_on_creditable_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_reimbursement_credits_on_creditable_id_and_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_reimbursement_credits_on_reimbursement_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_reimbursement_credits_on_reimbursement_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_reimbursement_types_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_reimbursement_types_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_reimbursement_types_on_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_reimbursement_types_on_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_reimbursements_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_reimbursements_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_reimbursements_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_reimbursements_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_reimbursements_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_reimbursements_on_customer_return_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_authorization_reasons_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_authorization_reasons_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_authorizations_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_authorizations_on_stock_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_authorizations_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_authorizations_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_authorizations_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_authorizations_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_items_on_override_reimbursement_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_items_on_override_reimbursement_type_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_items_on_preferred_reimbursement_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_items_on_preferred_reimbursement_type_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_items_on_exchange_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_items_on_exchange_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_items_on_reimbursement_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_items_on_reimbursement_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_items_on_inventory_unit_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_items_on_inventory_unit_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_items_on_return_authorization_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_items_on_return_authorization_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_return_items_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_items_on_customer_return_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_role_users_on_role_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_role_users_on_role_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_role_users_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_role_users_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_roles_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_roles_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_categories_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_categories_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_method_categories_on_shipping_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_method_categories_on_shipping_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='unique_spree_shipping_method_categories' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='unique_spree_shipping_method_categories' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_method_categories_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_method_categories_on_shipping_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_method_zones_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_method_zones_on_shipping_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_method_zones_on_zone_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_method_zones_on_zone_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_methods_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_methods_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_methods_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_methods_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_rates_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_rates_on_shipping_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_rates_on_shipment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_rates_on_shipment_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_rates_on_tax_rate_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_rates_on_tax_rate_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_rates_on_selected' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_rates_on_selected' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='spree_shipping_rates_join_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_shipping_rates_join_index' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_state_changes_on_stateful_id_and_stateful_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_state_changes_on_stateful_id_and_stateful_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_states_on_country_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_states_on_country_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_backorderable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_backorderable' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='stock_item_by_loc_and_var_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='stock_item_by_loc_and_var_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_state_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_state_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_propagate_all_variants' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_propagate_all_variants' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_country_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_country_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_backorderable_default' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_backorderable_default' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_active' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_active' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_stock_movements_on_originator_id_and_originator_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_stock_movements_on_originator_id_and_originator_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='spree_store_credit_events_originator' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_store_credit_events_originator' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_store_credit_events_on_store_credit_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_store_credit_events_on_store_credit_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_store_credit_types_on_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_store_credit_types_on_priority' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='spree_store_credits_originator' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_store_credits_originator' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_store_credits_on_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_store_credits_on_type_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_store_credits_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_store_credits_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_store_credits_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_store_credits_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stores_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stores_on_code' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stores_on_url' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stores_on_url' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stores_on_default' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stores_on_default' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='spree_taggings_idy' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_taggings_idy' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_tagger_id_and_tagger_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_tagger_id_and_tagger_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_context' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_context' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_tagger_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_tagger_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_taggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_taggable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_taggable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_taggable_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_tag_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_tag_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='spree_taggings_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_taggings_idx' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tags_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tags_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_categories_on_is_default' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_categories_on_is_default' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_categories_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_categories_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_zone_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_zone_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_show_rate_in_label' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_show_rate_in_label' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_included_in_price' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_included_in_price' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxonomies_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxonomies_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_rgt' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_rgt' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_lft' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_lft' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_trackers_on_active' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_trackers_on_active' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_discontinue_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_discontinue_on' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_track_inventory' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_track_inventory' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_zone_members_on_zoneable_id_and_zoneable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_zone_members_on_zoneable_id_and_zoneable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_zone_members_on_zone_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_zone_members_on_zone_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_zones_on_kind' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_zones_on_kind' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_zones_on_default_tax' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_zones_on_default_tax' AND type='index'   (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]] SQL (0.5ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "position") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["created_at", "2018-05-16 19:18:32.961036"], ["updated_at", "2018-05-16 19:18:32.961036"], ["position", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_purchase_orders" ("po_number", "organization_name", "created_at", "updated_at", "payment_method_id") VALUES (?, ?, ?, ?, ?) [["po_number", "PO-123"], ["organization_name", "Spree Commerce"], ["created_at", "2018-05-16 19:18:33.013653"], ["updated_at", "2018-05-16 19:18:33.013653"], ["payment_method_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]] SQL (0.2ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "position") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["created_at", "2018-05-16 19:18:33.020588"], ["updated_at", "2018-05-16 19:18:33.020588"], ["position", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = ? LIMIT ? [["numcode", 840], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Spree::Country Exists (0.3ms) SELECT 1 AS one FROM "spree_countries" WHERE LOWER("spree_countries"."name") = LOWER(?) LIMIT ? [["name", "NAME_1"], ["LIMIT", 1]] Spree::Country Exists (0.2ms) SELECT 1 AS one FROM "spree_countries" WHERE LOWER("spree_countries"."iso_name") = LOWER(?) LIMIT ? [["iso_name", "ISO_NAME_1"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "spree_countries" ("iso_name", "iso", "iso3", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso_name", "ISO_NAME_1"], ["iso", "US"], ["iso3", "USA"], ["name", "NAME_1"], ["numcode", 840], ["updated_at", "2018-05-16 19:18:33.166709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::State Exists (0.3ms) SELECT 1 AS one FROM "spree_states" WHERE LOWER("spree_states"."name") = LOWER(?) AND "spree_states"."country_id" = ? LIMIT ? [["name", "STATE_NAME_1"], ["country_id", 1], ["LIMIT", 1]] Spree::State Exists (0.2ms) SELECT 1 AS one FROM "spree_states" WHERE LOWER("spree_states"."abbr") = LOWER(?) AND "spree_states"."country_id" = ? LIMIT ? [["abbr", "STATE_ABBR_1"], ["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "spree_states" ("name", "abbr", "country_id", "updated_at") VALUES (?, ?, ?, ?) [["name", "STATE_NAME_1"], ["abbr", "STATE_ABBR_1"], ["country_id", 1], ["updated_at", "2018-05-16 19:18:33.176478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_addresses" ("firstname", "lastname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["lastname", "Doe"], ["address1", "10 Lovely Street"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "35005"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2018-05-16 19:18:33.243098"], ["updated_at", "2018-05-16 19:18:33.243098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Spree::Store Exists (0.3ms) SELECT 1 AS one FROM "spree_stores" WHERE LOWER("spree_stores"."code") = LOWER(?) LIMIT ? [["code", "spree_1"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_stores" WHERE "spree_stores"."default" = ? [["default", "t"]] SQL (0.3ms) INSERT INTO "spree_stores" ("name", "url", "mail_from_address", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Spree Test Store"], ["url", "www.example.com"], ["mail_from_address", "spree@example.org"], ["code", "spree_1"], ["created_at", "2018-05-16 19:18:33.274455"], ["updated_at", "2018-05-16 19:18:33.274455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R416364021"], ["LIMIT", 1]] Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R416364021"], ["LIMIT", 1]] Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R416364021"], ["LIMIT", 1]] Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = ? LIMIT ? [["guest_token", "y-haMnL5lrY0kLdUqH9O0g1526498313288"], ["LIMIT", 1]] SQL (0.6ms) INSERT INTO "spree_orders" ("number", "state", "bill_address_id", "email", "created_at", "updated_at", "currency", "guest_token", "store_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "R416364021"], ["state", "cart"], ["bill_address_id", 1], ["email", "email@example.com"], ["created_at", "2018-05-16 19:18:33.288480"], ["updated_at", "2018-05-16 19:18:33.288480"], ["currency", "USD"], ["guest_token", "y-haMnL5lrY0kLdUqH9O0g1526498313288"], ["store_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.3ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "PK1KLVEK"], ["LIMIT", 1]] Spree::Payment Exists (0.2ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "PK1KLVEK"], ["LIMIT", 1]] Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "PK1KLVEK"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "spree_payments" ("amount", "order_id", "source_type", "source_id", "payment_method_id", "state", "response_code", "created_at", "updated_at", "number") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["order_id", 1], ["source_type", "Spree::PurchaseOrder"], ["source_id", 1], ["payment_method_id", 3], ["state", "checkout"], ["response_code", "12345"], ["created_at", "2018-05-16 19:18:33.306094"], ["updated_at", "2018-05-16 19:18:33.306094"], ["number", "PK1KLVEK"]] Spree::Payment Load (0.4ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? AND ("spree_payments"."id" != ?) ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "checkout"], ["id", 1]] SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2018-05-16 19:18:33.308434"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]] SQL (0.6ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "position") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["created_at", "2018-05-16 19:18:33.351098"], ["updated_at", "2018-05-16 19:18:33.351098"], ["position", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_purchase_orders" ("po_number", "organization_name", "created_at", "updated_at", "payment_method_id") VALUES (?, ?, ?, ?, ?) [["po_number", "PO-123"], ["organization_name", "Spree Commerce"], ["created_at", "2018-05-16 19:18:33.358843"], ["updated_at", "2018-05-16 19:18:33.358843"], ["payment_method_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]] SQL (0.3ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "position") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["created_at", "2018-05-16 19:18:33.364101"], ["updated_at", "2018-05-16 19:18:33.364101"], ["position", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = ? LIMIT ? [["numcode", 840], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Spree::Country Exists (0.2ms) SELECT 1 AS one FROM "spree_countries" WHERE LOWER("spree_countries"."name") = LOWER(?) LIMIT ? [["name", "NAME_2"], ["LIMIT", 1]] Spree::Country Exists (0.3ms) SELECT 1 AS one FROM "spree_countries" WHERE LOWER("spree_countries"."iso_name") = LOWER(?) LIMIT ? [["iso_name", "ISO_NAME_2"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "spree_countries" ("iso_name", "iso", "iso3", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso_name", "ISO_NAME_2"], ["iso", "US"], ["iso3", "USA"], ["name", "NAME_2"], ["numcode", 840], ["updated_at", "2018-05-16 19:18:33.375229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::State Exists (0.2ms) SELECT 1 AS one FROM "spree_states" WHERE LOWER("spree_states"."name") = LOWER(?) AND "spree_states"."country_id" = ? LIMIT ? [["name", "STATE_NAME_2"], ["country_id", 1], ["LIMIT", 1]] Spree::State Exists (0.1ms) SELECT 1 AS one FROM "spree_states" WHERE LOWER("spree_states"."abbr") = LOWER(?) AND "spree_states"."country_id" = ? LIMIT ? [["abbr", "STATE_ABBR_2"], ["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "spree_states" ("name", "abbr", "country_id", "updated_at") VALUES (?, ?, ?, ?) [["name", "STATE_NAME_2"], ["abbr", "STATE_ABBR_2"], ["country_id", 1], ["updated_at", "2018-05-16 19:18:33.380079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("firstname", "lastname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["lastname", "Doe"], ["address1", "10 Lovely Street"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "35005"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2018-05-16 19:18:33.383153"], ["updated_at", "2018-05-16 19:18:33.383153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Store Exists (0.2ms) SELECT 1 AS one FROM "spree_stores" WHERE LOWER("spree_stores"."code") = LOWER(?) LIMIT ? [["code", "spree_2"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_stores" WHERE "spree_stores"."default" = ? [["default", "t"]] SQL (0.3ms) INSERT INTO "spree_stores" ("name", "url", "mail_from_address", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Spree Test Store"], ["url", "www.example.com"], ["mail_from_address", "spree@example.org"], ["code", "spree_2"], ["created_at", "2018-05-16 19:18:33.389473"], ["updated_at", "2018-05-16 19:18:33.389473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R519377222"], ["LIMIT", 1]] Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R519377222"], ["LIMIT", 1]] Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R519377222"], ["LIMIT", 1]] Spree::Order Exists (0.6ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = ? LIMIT ? [["guest_token", "6zwg5gu2XF7xCgfnW3CBEg1526498313398"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "spree_orders" ("number", "state", "bill_address_id", "email", "created_at", "updated_at", "currency", "guest_token", "store_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "R519377222"], ["state", "cart"], ["bill_address_id", 1], ["email", "email@example.com"], ["created_at", "2018-05-16 19:18:33.398691"], ["updated_at", "2018-05-16 19:18:33.398691"], ["currency", "USD"], ["guest_token", "6zwg5gu2XF7xCgfnW3CBEg1526498313398"], ["store_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.2ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "PO67NM2M"], ["LIMIT", 1]] Spree::Payment Exists (0.5ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "PO67NM2M"], ["LIMIT", 1]] Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "PO67NM2M"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "spree_payments" ("amount", "order_id", "source_type", "source_id", "payment_method_id", "state", "response_code", "created_at", "updated_at", "number") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["order_id", 1], ["source_type", "Spree::PurchaseOrder"], ["source_id", 1], ["payment_method_id", 3], ["state", "pending"], ["response_code", "12345"], ["created_at", "2018-05-16 19:18:33.407603"], ["updated_at", "2018-05-16 19:18:33.407603"], ["number", "PO67NM2M"]] Spree::Payment Load (0.5ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? AND ("spree_payments"."id" != ?) ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "checkout"], ["id", 1]] SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2018-05-16 19:18:33.410145"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_purchase_orders" ("po_number", "organization_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["po_number", "PO-123"], ["organization_name", "Spree Commerce"], ["created_at", "2018-05-16 19:18:33.425215"], ["updated_at", "2018-05-16 19:18:33.425215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]] SQL (0.4ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "position") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["created_at", "2018-05-16 19:18:33.586472"], ["updated_at", "2018-05-16 19:18:33.586472"], ["position", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_purchase_orders" ("po_number", "organization_name", "created_at", "updated_at", "payment_method_id") VALUES (?, ?, ?, ?, ?) [["po_number", "PO-123"], ["organization_name", "Spree Commerce"], ["created_at", "2018-05-16 19:18:33.593895"], ["updated_at", "2018-05-16 19:18:33.593895"], ["payment_method_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]] SQL (0.2ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "position") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["created_at", "2018-05-16 19:18:33.598663"], ["updated_at", "2018-05-16 19:18:33.598663"], ["position", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = ? LIMIT ? [["numcode", 840], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Spree::Country Exists (0.2ms) SELECT 1 AS one FROM "spree_countries" WHERE LOWER("spree_countries"."name") = LOWER(?) LIMIT ? [["name", "NAME_3"], ["LIMIT", 1]] Spree::Country Exists (0.1ms) SELECT 1 AS one FROM "spree_countries" WHERE LOWER("spree_countries"."iso_name") = LOWER(?) LIMIT ? [["iso_name", "ISO_NAME_3"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "spree_countries" ("iso_name", "iso", "iso3", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso_name", "ISO_NAME_3"], ["iso", "US"], ["iso3", "USA"], ["name", "NAME_3"], ["numcode", 840], ["updated_at", "2018-05-16 19:18:33.609282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::State Exists (0.2ms) SELECT 1 AS one FROM "spree_states" WHERE LOWER("spree_states"."name") = LOWER(?) AND "spree_states"."country_id" = ? LIMIT ? [["name", "STATE_NAME_3"], ["country_id", 1], ["LIMIT", 1]] Spree::State Exists (0.1ms) SELECT 1 AS one FROM "spree_states" WHERE LOWER("spree_states"."abbr") = LOWER(?) AND "spree_states"."country_id" = ? LIMIT ? [["abbr", "STATE_ABBR_3"], ["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "spree_states" ("name", "abbr", "country_id", "updated_at") VALUES (?, ?, ?, ?) [["name", "STATE_NAME_3"], ["abbr", "STATE_ABBR_3"], ["country_id", 1], ["updated_at", "2018-05-16 19:18:33.614042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "spree_addresses" ("firstname", "lastname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["lastname", "Doe"], ["address1", "10 Lovely Street"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "35005"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2018-05-16 19:18:33.617409"], ["updated_at", "2018-05-16 19:18:33.617409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Store Exists (0.2ms) SELECT 1 AS one FROM "spree_stores" WHERE LOWER("spree_stores"."code") = LOWER(?) LIMIT ? [["code", "spree_3"], ["LIMIT", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_stores" WHERE "spree_stores"."default" = ? [["default", "t"]] SQL (0.3ms) INSERT INTO "spree_stores" ("name", "url", "mail_from_address", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Spree Test Store"], ["url", "www.example.com"], ["mail_from_address", "spree@example.org"], ["code", "spree_3"], ["created_at", "2018-05-16 19:18:33.622758"], ["updated_at", "2018-05-16 19:18:33.622758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R185026853"], ["LIMIT", 1]] Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R185026853"], ["LIMIT", 1]] Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R185026853"], ["LIMIT", 1]] Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = ? LIMIT ? [["guest_token", "PDUW9D6TmbZ-988eqTDaCA1526498313631"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "spree_orders" ("number", "state", "bill_address_id", "email", "created_at", "updated_at", "currency", "guest_token", "store_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "R185026853"], ["state", "cart"], ["bill_address_id", 1], ["email", "email@example.com"], ["created_at", "2018-05-16 19:18:33.631300"], ["updated_at", "2018-05-16 19:18:33.631300"], ["currency", "USD"], ["guest_token", "PDUW9D6TmbZ-988eqTDaCA1526498313631"], ["store_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.2ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "PLU9WGWH"], ["LIMIT", 1]] Spree::Payment Exists (0.2ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "PLU9WGWH"], ["LIMIT", 1]] Spree::Payment Exists (0.2ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "PLU9WGWH"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "spree_payments" ("amount", "order_id", "source_type", "source_id", "payment_method_id", "state", "response_code", "created_at", "updated_at", "number") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["order_id", 1], ["source_type", "Spree::PurchaseOrder"], ["source_id", 1], ["payment_method_id", 3], ["state", "checkout"], ["response_code", "12345"], ["created_at", "2018-05-16 19:18:33.640772"], ["updated_at", "2018-05-16 19:18:33.640772"], ["number", "PLU9WGWH"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? AND ("spree_payments"."id" != ?) ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "checkout"], ["id", 1]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2018-05-16 19:18:33.643853"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC Migrating to RemoveIconFromTaxons (20180516202853)  (0.1ms) begin transaction  (0.1ms) SELECT sqlite_version(*)  (0.4ms) CREATE TEMPORARY TABLE "aspree_taxons" ("id" integer NOT NULL PRIMARY KEY, "parent_id" integer DEFAULT NULL, "position" integer DEFAULT 0, "name" varchar NOT NULL, "permalink" varchar DEFAULT NULL, "taxonomy_id" integer DEFAULT NULL, "lft" integer DEFAULT NULL, "rgt" integer DEFAULT NULL, "icon_file_name" varchar DEFAULT NULL, "icon_content_type" varchar DEFAULT NULL, "icon_file_size" integer DEFAULT NULL, "icon_updated_at" datetime DEFAULT NULL, "description" text DEFAULT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "meta_title" varchar DEFAULT NULL, "meta_description" varchar DEFAULT NULL, "meta_keywords" varchar DEFAULT NULL, "depth" integer DEFAULT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_rgt' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_rgt' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_lft' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_lft' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_taxons_on_name" ON "aspree_taxons" ("name")  (0.3ms) CREATE INDEX "tindex_aspree_taxons_on_rgt" ON "aspree_taxons" ("rgt")  (0.2ms) CREATE INDEX "tindex_aspree_taxons_on_lft" ON "aspree_taxons" ("lft")  (0.2ms) CREATE INDEX "tindex_aspree_taxons_on_position" ON "aspree_taxons" ("position")  (0.2ms) CREATE INDEX "tindex_taxons_on_taxonomy_id" ON "aspree_taxons" ("taxonomy_id")  (0.2ms) CREATE INDEX "tindex_taxons_on_permalink" ON "aspree_taxons" ("permalink")  (0.2ms) CREATE INDEX "tindex_taxons_on_parent_id" ON "aspree_taxons" ("parent_id")  (0.2ms) INSERT INTO "aspree_taxons" ("id","parent_id","position","name","permalink","taxonomy_id","lft","rgt","icon_file_name","icon_content_type","icon_file_size","icon_updated_at","description","created_at","updated_at","meta_title","meta_description","meta_keywords","depth") SELECT "id","parent_id","position","name","permalink","taxonomy_id","lft","rgt","icon_file_name","icon_content_type","icon_file_size","icon_updated_at","description","created_at","updated_at","meta_title","meta_description","meta_keywords","depth" FROM "spree_taxons"  (0.7ms) DROP TABLE "spree_taxons"  (0.4ms) CREATE TABLE "spree_taxons" ("id" integer NOT NULL PRIMARY KEY, "parent_id" integer DEFAULT NULL, "position" integer DEFAULT 0, "name" varchar NOT NULL, "permalink" varchar DEFAULT NULL, "taxonomy_id" integer DEFAULT NULL, "lft" integer DEFAULT NULL, "rgt" integer DEFAULT NULL, "icon_content_type" varchar DEFAULT NULL, "icon_file_size" integer DEFAULT NULL, "icon_updated_at" datetime DEFAULT NULL, "description" text DEFAULT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "meta_title" varchar DEFAULT NULL, "meta_description" varchar DEFAULT NULL, "meta_keywords" varchar DEFAULT NULL, "depth" integer DEFAULT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_taxons_on_parent_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_taxons_on_taxonomy_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_taxons_on_lft' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_taxons_on_lft' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_taxons_on_rgt' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_taxons_on_rgt' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_taxons_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_taxons_on_name' AND type='index'   (0.2ms) CREATE INDEX "index_taxons_on_parent_id" ON "spree_taxons" ("parent_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.3ms) CREATE INDEX "index_taxons_on_permalink" ON "spree_taxons" ("permalink")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_taxons_on_taxonomy_id" ON "spree_taxons" ("taxonomy_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_taxons_on_position" ON "spree_taxons" ("position")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_taxons_on_lft" ON "spree_taxons" ("lft")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_lft' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_lft' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_taxons_on_rgt" ON "spree_taxons" ("rgt")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_rgt' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_rgt' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_lft' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_lft' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_taxons_on_name" ON "spree_taxons" ("name")  (0.2ms) INSERT INTO "spree_taxons" ("id","parent_id","position","name","permalink","taxonomy_id","lft","rgt","icon_content_type","icon_file_size","icon_updated_at","description","created_at","updated_at","meta_title","meta_description","meta_keywords","depth") SELECT "id","parent_id","position","name","permalink","taxonomy_id","lft","rgt","icon_content_type","icon_file_size","icon_updated_at","description","created_at","updated_at","meta_title","meta_description","meta_keywords","depth" FROM "aspree_taxons"  (0.5ms) DROP TABLE "aspree_taxons"  (0.3ms) CREATE TEMPORARY TABLE "aspree_taxons" ("id" integer NOT NULL PRIMARY KEY, "parent_id" integer DEFAULT NULL, "position" integer DEFAULT 0, "name" varchar NOT NULL, "permalink" varchar DEFAULT NULL, "taxonomy_id" integer DEFAULT NULL, "lft" integer DEFAULT NULL, "rgt" integer DEFAULT NULL, "icon_content_type" varchar DEFAULT NULL, "icon_file_size" integer DEFAULT NULL, "icon_updated_at" datetime DEFAULT NULL, "description" text DEFAULT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "meta_title" varchar DEFAULT NULL, "meta_description" varchar DEFAULT NULL, "meta_keywords" varchar DEFAULT NULL, "depth" integer DEFAULT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_rgt' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_rgt' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_lft' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_lft' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_taxons_on_name" ON "aspree_taxons" ("name")  (0.2ms) CREATE INDEX "tindex_aspree_taxons_on_rgt" ON "aspree_taxons" ("rgt")  (0.2ms) CREATE INDEX "tindex_aspree_taxons_on_lft" ON "aspree_taxons" ("lft")  (0.2ms) CREATE INDEX "tindex_aspree_taxons_on_position" ON "aspree_taxons" ("position")  (0.2ms) CREATE INDEX "tindex_taxons_on_taxonomy_id" ON "aspree_taxons" ("taxonomy_id")  (0.2ms) CREATE INDEX "tindex_taxons_on_permalink" ON "aspree_taxons" ("permalink")  (0.2ms) CREATE INDEX "tindex_taxons_on_parent_id" ON "aspree_taxons" ("parent_id")  (0.2ms) INSERT INTO "aspree_taxons" ("id","parent_id","position","name","permalink","taxonomy_id","lft","rgt","icon_content_type","icon_file_size","icon_updated_at","description","created_at","updated_at","meta_title","meta_description","meta_keywords","depth") SELECT "id","parent_id","position","name","permalink","taxonomy_id","lft","rgt","icon_content_type","icon_file_size","icon_updated_at","description","created_at","updated_at","meta_title","meta_description","meta_keywords","depth" FROM "spree_taxons"  (0.5ms) DROP TABLE "spree_taxons"  (0.3ms) CREATE TABLE "spree_taxons" ("id" integer NOT NULL PRIMARY KEY, "parent_id" integer DEFAULT NULL, "position" integer DEFAULT 0, "name" varchar NOT NULL, "permalink" varchar DEFAULT NULL, "taxonomy_id" integer DEFAULT NULL, "lft" integer DEFAULT NULL, "rgt" integer DEFAULT NULL, "icon_file_size" integer DEFAULT NULL, "icon_updated_at" datetime DEFAULT NULL, "description" text DEFAULT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "meta_title" varchar DEFAULT NULL, "meta_description" varchar DEFAULT NULL, "meta_keywords" varchar DEFAULT NULL, "depth" integer DEFAULT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_taxons_on_parent_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_taxons_on_taxonomy_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_taxons_on_lft' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_taxons_on_lft' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_taxons_on_rgt' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_taxons_on_rgt' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_taxons_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_taxons_on_name' AND type='index'   (0.2ms) CREATE INDEX "index_taxons_on_parent_id" ON "spree_taxons" ("parent_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_taxons_on_permalink" ON "spree_taxons" ("permalink")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_taxons_on_taxonomy_id" ON "spree_taxons" ("taxonomy_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_taxons_on_position" ON "spree_taxons" ("position")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_taxons_on_lft" ON "spree_taxons" ("lft")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_lft' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_lft' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_taxons_on_rgt" ON "spree_taxons" ("rgt")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_rgt' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_rgt' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_lft' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_lft' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_taxons_on_name" ON "spree_taxons" ("name")  (0.2ms) INSERT INTO "spree_taxons" ("id","parent_id","position","name","permalink","taxonomy_id","lft","rgt","icon_file_size","icon_updated_at","description","created_at","updated_at","meta_title","meta_description","meta_keywords","depth") SELECT "id","parent_id","position","name","permalink","taxonomy_id","lft","rgt","icon_file_size","icon_updated_at","description","created_at","updated_at","meta_title","meta_description","meta_keywords","depth" FROM "aspree_taxons"  (0.3ms) DROP TABLE "aspree_taxons"  (0.3ms) CREATE TEMPORARY TABLE "aspree_taxons" ("id" integer NOT NULL PRIMARY KEY, "parent_id" integer DEFAULT NULL, "position" integer DEFAULT 0, "name" varchar NOT NULL, "permalink" varchar DEFAULT NULL, "taxonomy_id" integer DEFAULT NULL, "lft" integer DEFAULT NULL, "rgt" integer DEFAULT NULL, "icon_file_size" integer DEFAULT NULL, "icon_updated_at" datetime DEFAULT NULL, "description" text DEFAULT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "meta_title" varchar DEFAULT NULL, "meta_description" varchar DEFAULT NULL, "meta_keywords" varchar DEFAULT NULL, "depth" integer DEFAULT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_rgt' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_rgt' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_lft' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_lft' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_taxons_on_name" ON "aspree_taxons" ("name")  (0.2ms) CREATE INDEX "tindex_aspree_taxons_on_rgt" ON "aspree_taxons" ("rgt")  (0.2ms) CREATE INDEX "tindex_aspree_taxons_on_lft" ON "aspree_taxons" ("lft")  (0.2ms) CREATE INDEX "tindex_aspree_taxons_on_position" ON "aspree_taxons" ("position")  (0.2ms) CREATE INDEX "tindex_taxons_on_taxonomy_id" ON "aspree_taxons" ("taxonomy_id")  (0.2ms) CREATE INDEX "tindex_taxons_on_permalink" ON "aspree_taxons" ("permalink")  (0.2ms) CREATE INDEX "tindex_taxons_on_parent_id" ON "aspree_taxons" ("parent_id")  (0.2ms) INSERT INTO "aspree_taxons" ("id","parent_id","position","name","permalink","taxonomy_id","lft","rgt","icon_file_size","icon_updated_at","description","created_at","updated_at","meta_title","meta_description","meta_keywords","depth") SELECT "id","parent_id","position","name","permalink","taxonomy_id","lft","rgt","icon_file_size","icon_updated_at","description","created_at","updated_at","meta_title","meta_description","meta_keywords","depth" FROM "spree_taxons"  (0.4ms) DROP TABLE "spree_taxons"  (0.3ms) CREATE TABLE "spree_taxons" ("id" integer NOT NULL PRIMARY KEY, "parent_id" integer DEFAULT NULL, "position" integer DEFAULT 0, "name" varchar NOT NULL, "permalink" varchar DEFAULT NULL, "taxonomy_id" integer DEFAULT NULL, "lft" integer DEFAULT NULL, "rgt" integer DEFAULT NULL, "icon_updated_at" datetime DEFAULT NULL, "description" text DEFAULT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "meta_title" varchar DEFAULT NULL, "meta_description" varchar DEFAULT NULL, "meta_keywords" varchar DEFAULT NULL, "depth" integer DEFAULT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_taxons_on_parent_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_taxons_on_taxonomy_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_taxons_on_lft' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_taxons_on_lft' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_taxons_on_rgt' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_taxons_on_rgt' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_taxons_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_taxons_on_name' AND type='index'   (0.3ms) CREATE INDEX "index_taxons_on_parent_id" ON "spree_taxons" ("parent_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_taxons_on_permalink" ON "spree_taxons" ("permalink")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.3ms) CREATE INDEX "index_taxons_on_taxonomy_id" ON "spree_taxons" ("taxonomy_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.3ms) CREATE INDEX "index_spree_taxons_on_position" ON "spree_taxons" ("position")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_taxons_on_lft" ON "spree_taxons" ("lft")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_lft' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_lft' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_taxons_on_rgt" ON "spree_taxons" ("rgt")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_rgt' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_rgt' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_lft' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_lft' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_taxons_on_name" ON "spree_taxons" ("name")  (0.1ms) INSERT INTO "spree_taxons" ("id","parent_id","position","name","permalink","taxonomy_id","lft","rgt","icon_updated_at","description","created_at","updated_at","meta_title","meta_description","meta_keywords","depth") SELECT "id","parent_id","position","name","permalink","taxonomy_id","lft","rgt","icon_updated_at","description","created_at","updated_at","meta_title","meta_description","meta_keywords","depth" FROM "aspree_taxons"  (0.3ms) DROP TABLE "aspree_taxons"  (0.3ms) CREATE TEMPORARY TABLE "aspree_taxons" ("id" integer NOT NULL PRIMARY KEY, "parent_id" integer DEFAULT NULL, "position" integer DEFAULT 0, "name" varchar NOT NULL, "permalink" varchar DEFAULT NULL, "taxonomy_id" integer DEFAULT NULL, "lft" integer DEFAULT NULL, "rgt" integer DEFAULT NULL, "icon_updated_at" datetime DEFAULT NULL, "description" text DEFAULT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "meta_title" varchar DEFAULT NULL, "meta_description" varchar DEFAULT NULL, "meta_keywords" varchar DEFAULT NULL, "depth" integer DEFAULT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_rgt' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_rgt' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_lft' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_lft' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "tindex_aspree_taxons_on_name" ON "aspree_taxons" ("name")  (0.2ms) CREATE INDEX "tindex_aspree_taxons_on_rgt" ON "aspree_taxons" ("rgt")  (0.2ms) CREATE INDEX "tindex_aspree_taxons_on_lft" ON "aspree_taxons" ("lft")  (0.2ms) CREATE INDEX "tindex_aspree_taxons_on_position" ON "aspree_taxons" ("position")  (0.2ms) CREATE INDEX "tindex_taxons_on_taxonomy_id" ON "aspree_taxons" ("taxonomy_id")  (0.2ms) CREATE INDEX "tindex_taxons_on_permalink" ON "aspree_taxons" ("permalink")  (0.2ms) CREATE INDEX "tindex_taxons_on_parent_id" ON "aspree_taxons" ("parent_id")  (0.2ms) INSERT INTO "aspree_taxons" ("id","parent_id","position","name","permalink","taxonomy_id","lft","rgt","icon_updated_at","description","created_at","updated_at","meta_title","meta_description","meta_keywords","depth") SELECT "id","parent_id","position","name","permalink","taxonomy_id","lft","rgt","icon_updated_at","description","created_at","updated_at","meta_title","meta_description","meta_keywords","depth" FROM "spree_taxons"  (0.4ms) DROP TABLE "spree_taxons"  (0.3ms) CREATE TABLE "spree_taxons" ("id" integer NOT NULL PRIMARY KEY, "parent_id" integer DEFAULT NULL, "position" integer DEFAULT 0, "name" varchar NOT NULL, "permalink" varchar DEFAULT NULL, "taxonomy_id" integer DEFAULT NULL, "lft" integer DEFAULT NULL, "rgt" integer DEFAULT NULL, "description" text DEFAULT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "meta_title" varchar DEFAULT NULL, "meta_description" varchar DEFAULT NULL, "meta_keywords" varchar DEFAULT NULL, "depth" integer DEFAULT NULL)  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_taxons_on_parent_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_taxons_on_taxonomy_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_taxons_on_lft' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_taxons_on_lft' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_taxons_on_rgt' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_taxons_on_rgt' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='tindex_aspree_taxons_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_aspree_taxons_on_name' AND type='index'   (0.3ms) CREATE INDEX "index_taxons_on_parent_id" ON "spree_taxons" ("parent_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_taxons_on_permalink" ON "spree_taxons" ("permalink")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_taxons_on_taxonomy_id" ON "spree_taxons" ("taxonomy_id")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_taxons_on_position" ON "spree_taxons" ("position")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_taxons_on_lft" ON "spree_taxons" ("lft")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_lft' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_lft' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_taxons_on_rgt" ON "spree_taxons" ("rgt")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_rgt' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_rgt' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_lft' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_lft' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms) CREATE INDEX "index_spree_taxons_on_name" ON "spree_taxons" ("name")  (0.1ms) INSERT INTO "spree_taxons" ("id","parent_id","position","name","permalink","taxonomy_id","lft","rgt","description","created_at","updated_at","meta_title","meta_description","meta_keywords","depth") SELECT "id","parent_id","position","name","permalink","taxonomy_id","lft","rgt","description","created_at","updated_at","meta_title","meta_description","meta_keywords","depth" FROM "aspree_taxons"  (0.3ms) DROP TABLE "aspree_taxons" SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516202853"]]  (112.5ms) commit transaction Migrating to AddUniqueIndexOnSpreePromotionsCode (20180516202854)  (0.1ms) begin transaction  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_promotion_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_promotion_category_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_advertise' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_advertise' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_starts_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_starts_at' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_expires_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_expires_at' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_code' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index'   (0.6ms) DROP INDEX "index_spree_promotions_on_code"  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_promotion_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_promotion_category_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_advertise' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_advertise' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_starts_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_starts_at' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_expires_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_expires_at' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index'   (0.8ms) CREATE UNIQUE INDEX "index_spree_promotions_on_code" ON "spree_promotions" ("code") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180516202854"]]  (105.4ms) commit transaction ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type_and_scope' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_slug_and_sluggable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_sluggable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_friendly_id_slugs_on_sluggable_id' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_addresses_on_state_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_addresses_on_state_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_addresses_on_country_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_addresses_on_country_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_addresses_on_lastname' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_lastname' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_addresses_on_firstname' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_firstname' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_source_id_and_source_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_eligible' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_eligible' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_adjustments_on_adjustable_id_and_adjustable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_assets_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_assets_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_assets_on_viewable_type_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_assets_on_viewable_type_and_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_assets_on_viewable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_assets_on_viewable_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_calculators_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_calculators_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_calculators_on_calculable_id_and_calculable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_calculators_on_calculable_id_and_calculable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_calculators_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_calculators_on_id_and_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_countries_on_iso_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_countries_on_iso_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_countries_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_countries_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_payment_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_credit_cards_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_customer_returns_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_customer_returns_on_stock_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_customer_returns_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_customer_returns_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_gateways_on_test_mode' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_gateways_on_test_mode' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_gateways_on_active' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_gateways_on_active' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_inventory_units_on_original_return_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_inventory_units_on_original_return_item_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_inventory_units_on_line_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_inventory_units_on_line_item_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_shipment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_shipment_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_inventory_units_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_inventory_units_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_line_items_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_line_items_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_log_entries_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_log_entries_on_source_id_and_source_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_type_prototypes_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_type_prototypes_on_prototype_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='spree_option_type_prototypes_prototype_id_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_option_type_prototypes_prototype_id_option_type_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_type_prototypes_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_type_prototypes_on_option_type_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_types_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_types_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_types_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_types_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_value_variants_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_value_variants_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_option_values_variants_on_variant_id_and_option_value_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_value_variants_on_option_value_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_value_variants_on_option_value_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_option_values_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_option_values_on_option_type_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_order_promotions_on_promotion_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_order_promotions_on_promotion_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_order_promotions_on_promotion_id_and_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_order_promotions_on_promotion_id_and_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_order_promotions_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_order_promotions_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_store_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_store_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_canceler_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_canceler_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_guest_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_guest_token' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_user_id_and_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_ship_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_created_by_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_created_by_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_considered_risky' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_considered_risky' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_confirmation_delivered' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_bill_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_approver_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_approver_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_orders_on_completed_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_orders_on_completed_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payment_capture_events_on_payment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payment_capture_events_on_payment_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payment_methods_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payment_methods_on_id_and_type' AND type='index'   (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_source_id_and_source_type' AND type='index'   (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_payment_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_payments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_payments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_preferences_on_key' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_preferences_on_key' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prices_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prices_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prices_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prices_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prices_on_variant_id_and_currency' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prices_on_variant_id_and_currency' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_product_option_types_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_product_option_types_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_product_option_types_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_product_option_types_on_product_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_product_option_types_on_option_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_product_option_types_on_option_type_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_promotion_rule_and_product' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_promotion_rule_and_product' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_products_promotion_rules_on_product_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_product_properties_on_property_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_product_properties_on_property_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_product_properties_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_product_properties_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_product_properties_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_product_properties_on_product_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_discontinue_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_discontinue_on' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_slug' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_slug' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_shipping_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_on_available_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_on_available_on' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_taxons_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_taxons_on_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_products_taxons_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_products_taxons_on_product_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_action_line_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_action_line_items_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_action_line_items_on_promotion_action_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_action_line_items_on_promotion_action_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_actions_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_actions_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_actions_on_promotion_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_actions_on_promotion_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_actions_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_actions_on_id_and_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_rule_taxons_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_rule_taxons_on_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_rule_taxons_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_rule_taxons_on_promotion_rule_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_user_id_and_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_user_id_and_promotion_rule_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_users_on_promotion_rule_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotion_rules_on_promotion_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotion_rules_on_promotion_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_promotion_rules_on_product_group_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_promotion_rules_on_product_group_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_code' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_promotion_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_promotion_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_advertise' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_advertise' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_starts_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_starts_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_expires_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_expires_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_promotions_on_id_and_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_properties_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_properties_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_property_prototypes_on_property_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_property_prototypes_on_property_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_property_prototypes_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_property_prototypes_on_prototype_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_property_prototypes_on_prototype_id_and_property_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_property_prototypes_on_prototype_id_and_property_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prototype_taxons_on_prototype_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prototype_taxons_on_prototype_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prototype_taxons_on_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prototype_taxons_on_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_prototype_taxons_on_prototype_id_and_taxon_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_prototype_taxons_on_prototype_id_and_taxon_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_purchase_orders_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_purchase_orders_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_purchase_orders_on_payment_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_purchase_orders_on_payment_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_refund_reasons_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_refund_reasons_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_refunds_on_reimbursement_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_refunds_on_reimbursement_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_refunds_on_payment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_refunds_on_payment_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_refunds_on_refund_reason_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_refunds_on_refund_reason_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_reimbursement_credits_on_creditable_id_and_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_reimbursement_credits_on_creditable_id_and_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_reimbursement_credits_on_reimbursement_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_reimbursement_credits_on_reimbursement_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_reimbursement_types_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_reimbursement_types_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_reimbursement_types_on_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_reimbursement_types_on_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_reimbursements_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_reimbursements_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_reimbursements_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_reimbursements_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_reimbursements_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_reimbursements_on_customer_return_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_authorization_reasons_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_authorization_reasons_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_authorizations_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_authorizations_on_stock_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_authorizations_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_authorizations_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_authorizations_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_authorizations_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_authorizations_on_return_authorization_reason_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_items_on_override_reimbursement_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_items_on_override_reimbursement_type_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_items_on_preferred_reimbursement_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_items_on_preferred_reimbursement_type_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_items_on_exchange_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_items_on_exchange_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_items_on_reimbursement_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_items_on_reimbursement_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_items_on_inventory_unit_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_items_on_inventory_unit_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_return_items_on_return_authorization_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_return_items_on_return_authorization_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_return_items_on_customer_return_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_return_items_on_customer_return_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_role_users_on_role_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_role_users_on_role_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_role_users_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_role_users_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_roles_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_roles_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_address_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_stock_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipments_on_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipments_on_order_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_categories_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_categories_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_method_categories_on_shipping_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_method_categories_on_shipping_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='unique_spree_shipping_method_categories' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='unique_spree_shipping_method_categories' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_method_categories_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_method_categories_on_shipping_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_method_zones_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_method_zones_on_shipping_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_method_zones_on_zone_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_method_zones_on_zone_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_methods_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_methods_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_methods_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_methods_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_rates_on_shipping_method_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_rates_on_shipping_method_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_rates_on_shipment_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_rates_on_shipment_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_rates_on_tax_rate_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_rates_on_tax_rate_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_shipping_rates_on_selected' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_shipping_rates_on_selected' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='spree_shipping_rates_join_index' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_shipping_rates_join_index' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_state_changes_on_stateful_id_and_stateful_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_state_changes_on_stateful_id_and_stateful_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_states_on_country_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_states_on_country_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_stock_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_variant_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_variant_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_backorderable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_backorderable' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_items_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_items_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='stock_item_by_loc_and_var_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='stock_item_by_loc_and_var_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_state_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_state_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_propagate_all_variants' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_propagate_all_variants' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_country_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_country_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_backorderable_default' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_backorderable_default' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_locations_on_active' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_locations_on_active' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_stock_movements_on_originator_id_and_originator_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_stock_movements_on_originator_id_and_originator_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_movements_on_stock_item_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_number' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_destination_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stock_transfers_on_source_location_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='spree_store_credit_events_originator' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_store_credit_events_originator' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_store_credit_events_on_store_credit_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_store_credit_events_on_store_credit_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_store_credit_types_on_priority' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_store_credit_types_on_priority' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='spree_store_credits_originator' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_store_credits_originator' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_store_credits_on_type_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_store_credits_on_type_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_store_credits_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_store_credits_on_user_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_store_credits_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_store_credits_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stores_on_code' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stores_on_code' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stores_on_url' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stores_on_url' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_stores_on_default' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_stores_on_default' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='spree_taggings_idy' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_taggings_idy' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_tagger_id_and_tagger_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_tagger_id_and_tagger_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_context' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_context' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_tagger_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_tagger_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_taggable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_taggable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_taggable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_taggable_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taggings_on_tag_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taggings_on_tag_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='spree_taggings_idx' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='spree_taggings_idx' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tags_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tags_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_categories_on_is_default' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_categories_on_is_default' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_categories_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_categories_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_zone_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_zone_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_show_rate_in_label' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_show_rate_in_label' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_included_in_price' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_included_in_price' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_tax_rates_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_tax_rates_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxonomies_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxonomies_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_name' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_rgt' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_rgt' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_lft' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_lft' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_taxons_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_taxons_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_taxonomy_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_taxonomy_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_permalink' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_permalink' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_taxons_on_parent_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_taxons_on_parent_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_trackers_on_active' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_trackers_on_active' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_discontinue_on' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_discontinue_on' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_track_inventory' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_track_inventory' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_position' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_position' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_is_master' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_is_master' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_deleted_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_deleted_at' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_tax_category_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_sku' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_sku' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_variants_on_product_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_variants_on_product_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_zone_members_on_zoneable_id_and_zoneable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_zone_members_on_zoneable_id_and_zoneable_type' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_zone_members_on_zone_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_zone_members_on_zone_id' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_zones_on_kind' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_zones_on_kind' AND type='index'   (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_spree_zones_on_default_tax' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_spree_zones_on_default_tax' AND type='index'   (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "spree_purchase_orders" ("po_number", "organization_name", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["po_number", "PO-123"], ["organization_name", "Spree Commerce"], ["created_at", "2018-05-16 20:29:22.126584"], ["updated_at", "2018-05-16 20:29:22.126584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]] SQL (0.5ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "position") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["created_at", "2018-05-16 20:29:22.233003"], ["updated_at", "2018-05-16 20:29:22.233003"], ["position", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "spree_purchase_orders" ("po_number", "organization_name", "created_at", "updated_at", "payment_method_id") VALUES (?, ?, ?, ?, ?) [["po_number", "PO-123"], ["organization_name", "Spree Commerce"], ["created_at", "2018-05-16 20:29:22.270964"], ["updated_at", "2018-05-16 20:29:22.270964"], ["payment_method_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Spree::PaymentMethod Load (0.6ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]] SQL (0.5ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "position") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["created_at", "2018-05-16 20:29:22.278135"], ["updated_at", "2018-05-16 20:29:22.278135"], ["position", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = ? LIMIT ? [["numcode", 840], ["LIMIT", 1]]  (0.2ms) SAVEPOINT active_record_1 Spree::Country Exists (0.4ms) SELECT 1 AS one FROM "spree_countries" WHERE LOWER("spree_countries"."name") = LOWER(?) LIMIT ? [["name", "NAME_1"], ["LIMIT", 1]] Spree::Country Exists (0.3ms) SELECT 1 AS one FROM "spree_countries" WHERE LOWER("spree_countries"."iso_name") = LOWER(?) LIMIT ? [["iso_name", "ISO_NAME_1"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "spree_countries" ("iso_name", "iso", "iso3", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso_name", "ISO_NAME_1"], ["iso", "US"], ["iso3", "USA"], ["name", "NAME_1"], ["numcode", 840], ["updated_at", "2018-05-16 20:29:22.434520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Spree::State Exists (0.3ms) SELECT 1 AS one FROM "spree_states" WHERE LOWER("spree_states"."name") = LOWER(?) AND "spree_states"."country_id" = ? LIMIT ? [["name", "STATE_NAME_1"], ["country_id", 1], ["LIMIT", 1]] Spree::State Exists (0.2ms) SELECT 1 AS one FROM "spree_states" WHERE LOWER("spree_states"."abbr") = LOWER(?) AND "spree_states"."country_id" = ? LIMIT ? [["abbr", "STATE_ABBR_1"], ["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "spree_states" ("name", "abbr", "country_id", "updated_at") VALUES (?, ?, ?, ?) [["name", "STATE_NAME_1"], ["abbr", "STATE_ABBR_1"], ["country_id", 1], ["updated_at", "2018-05-16 20:29:22.446555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = ? LIMIT ? [["key", "spree/app_configuration/address_requires_phone"], ["LIMIT", 1]] SQL (0.8ms) INSERT INTO "spree_addresses" ("firstname", "lastname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["lastname", "Doe"], ["address1", "10 Lovely Street"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "35005"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2018-05-16 20:29:22.494936"], ["updated_at", "2018-05-16 20:29:22.494936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Spree::Store Exists (0.5ms) SELECT 1 AS one FROM "spree_stores" WHERE LOWER("spree_stores"."code") = LOWER(?) LIMIT ? [["code", "spree_1"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_stores" WHERE "spree_stores"."default" = ? [["default", "t"]] SQL (0.3ms) INSERT INTO "spree_stores" ("name", "url", "mail_from_address", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Spree Test Store"], ["url", "www.example.com"], ["mail_from_address", "spree@example.org"], ["code", "spree_1"], ["created_at", "2018-05-16 20:29:22.541393"], ["updated_at", "2018-05-16 20:29:22.541393"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R912884732"], ["LIMIT", 1]] Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R912884732"], ["LIMIT", 1]] Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R912884732"], ["LIMIT", 1]] Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = ? LIMIT ? [["guest_token", "ZE8ioJd9ZSYtPQ3H5x9mIQ1526502562561"], ["LIMIT", 1]] SQL (0.6ms) INSERT INTO "spree_orders" ("number", "state", "bill_address_id", "email", "created_at", "updated_at", "currency", "guest_token", "store_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "R912884732"], ["state", "cart"], ["bill_address_id", 1], ["email", "email@example.com"], ["created_at", "2018-05-16 20:29:22.560806"], ["updated_at", "2018-05-16 20:29:22.560806"], ["currency", "USD"], ["guest_token", "ZE8ioJd9ZSYtPQ3H5x9mIQ1526502562561"], ["store_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.3ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "P1UA8F8R"], ["LIMIT", 1]] Spree::Payment Exists (0.2ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "P1UA8F8R"], ["LIMIT", 1]] Spree::Payment Exists (0.2ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "P1UA8F8R"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "spree_payments" ("amount", "order_id", "source_type", "source_id", "payment_method_id", "state", "response_code", "created_at", "updated_at", "number") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["order_id", 1], ["source_type", "Spree::PurchaseOrder"], ["source_id", 1], ["payment_method_id", 3], ["state", "pending"], ["response_code", "12345"], ["created_at", "2018-05-16 20:29:22.584342"], ["updated_at", "2018-05-16 20:29:22.584342"], ["number", "P1UA8F8R"]] Spree::Payment Load (0.7ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? AND ("spree_payments"."id" != ?) ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "checkout"], ["id", 1]] SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2018-05-16 20:29:22.587888"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]] SQL (0.5ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "position") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["created_at", "2018-05-16 20:29:22.622391"], ["updated_at", "2018-05-16 20:29:22.622391"], ["position", 2]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_purchase_orders" ("po_number", "organization_name", "created_at", "updated_at", "payment_method_id") VALUES (?, ?, ?, ?, ?) [["po_number", "PO-123"], ["organization_name", "Spree Commerce"], ["created_at", "2018-05-16 20:29:22.630927"], ["updated_at", "2018-05-16 20:29:22.630927"], ["payment_method_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]] SQL (0.3ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "position") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["created_at", "2018-05-16 20:29:22.637551"], ["updated_at", "2018-05-16 20:29:22.637551"], ["position", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = ? LIMIT ? [["numcode", 840], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Spree::Country Exists (0.2ms) SELECT 1 AS one FROM "spree_countries" WHERE LOWER("spree_countries"."name") = LOWER(?) LIMIT ? [["name", "NAME_2"], ["LIMIT", 1]] Spree::Country Exists (0.1ms) SELECT 1 AS one FROM "spree_countries" WHERE LOWER("spree_countries"."iso_name") = LOWER(?) LIMIT ? [["iso_name", "ISO_NAME_2"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "spree_countries" ("iso_name", "iso", "iso3", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso_name", "ISO_NAME_2"], ["iso", "US"], ["iso3", "USA"], ["name", "NAME_2"], ["numcode", 840], ["updated_at", "2018-05-16 20:29:22.651107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::State Exists (0.2ms) SELECT 1 AS one FROM "spree_states" WHERE LOWER("spree_states"."name") = LOWER(?) AND "spree_states"."country_id" = ? LIMIT ? [["name", "STATE_NAME_2"], ["country_id", 1], ["LIMIT", 1]] Spree::State Exists (0.2ms) SELECT 1 AS one FROM "spree_states" WHERE LOWER("spree_states"."abbr") = LOWER(?) AND "spree_states"."country_id" = ? LIMIT ? [["abbr", "STATE_ABBR_2"], ["country_id", 1], ["LIMIT", 1]] SQL (0.2ms) INSERT INTO "spree_states" ("name", "abbr", "country_id", "updated_at") VALUES (?, ?, ?, ?) [["name", "STATE_NAME_2"], ["abbr", "STATE_ABBR_2"], ["country_id", 1], ["updated_at", "2018-05-16 20:29:22.657798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_addresses" ("firstname", "lastname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["lastname", "Doe"], ["address1", "10 Lovely Street"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "35005"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2018-05-16 20:29:22.661541"], ["updated_at", "2018-05-16 20:29:22.661541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Spree::Store Exists (0.2ms) SELECT 1 AS one FROM "spree_stores" WHERE LOWER("spree_stores"."code") = LOWER(?) LIMIT ? [["code", "spree_2"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_stores" WHERE "spree_stores"."default" = ? [["default", "t"]] SQL (0.3ms) INSERT INTO "spree_stores" ("name", "url", "mail_from_address", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Spree Test Store"], ["url", "www.example.com"], ["mail_from_address", "spree@example.org"], ["code", "spree_2"], ["created_at", "2018-05-16 20:29:22.668861"], ["updated_at", "2018-05-16 20:29:22.668861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R321737981"], ["LIMIT", 1]] Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R321737981"], ["LIMIT", 1]] Spree::Order Exists (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R321737981"], ["LIMIT", 1]] Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = ? LIMIT ? [["guest_token", "6r1VMDFU4TwvKJPEjY6YKQ1526502562679"], ["LIMIT", 1]] SQL (0.5ms) INSERT INTO "spree_orders" ("number", "state", "bill_address_id", "email", "created_at", "updated_at", "currency", "guest_token", "store_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "R321737981"], ["state", "cart"], ["bill_address_id", 1], ["email", "email@example.com"], ["created_at", "2018-05-16 20:29:22.679707"], ["updated_at", "2018-05-16 20:29:22.679707"], ["currency", "USD"], ["guest_token", "6r1VMDFU4TwvKJPEjY6YKQ1526502562679"], ["store_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.2ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "P25ZGTJ6"], ["LIMIT", 1]] Spree::Payment Exists (0.3ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "P25ZGTJ6"], ["LIMIT", 1]] Spree::Payment Exists (0.2ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "P25ZGTJ6"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "spree_payments" ("amount", "order_id", "source_type", "source_id", "payment_method_id", "state", "response_code", "created_at", "updated_at", "number") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["order_id", 1], ["source_type", "Spree::PurchaseOrder"], ["source_id", 1], ["payment_method_id", 3], ["state", "checkout"], ["response_code", "12345"], ["created_at", "2018-05-16 20:29:22.691481"], ["updated_at", "2018-05-16 20:29:22.691481"], ["number", "P25ZGTJ6"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? AND ("spree_payments"."id" != ?) ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "checkout"], ["id", 1]] SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2018-05-16 20:29:22.693493"], ["id", 1]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]] SQL (0.5ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "position") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["created_at", "2018-05-16 20:29:22.718052"], ["updated_at", "2018-05-16 20:29:22.718052"], ["position", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "spree_purchase_orders" ("po_number", "organization_name", "created_at", "updated_at", "payment_method_id") VALUES (?, ?, ?, ?, ?) [["po_number", "PO-123"], ["organization_name", "Spree Commerce"], ["created_at", "2018-05-16 20:29:22.726567"], ["updated_at", "2018-05-16 20:29:22.726567"], ["payment_method_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::PaymentMethod Load (0.6ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE (1 = 1) AND ("spree_payment_methods"."position" IS NOT NULL) ORDER BY "spree_payment_methods"."position" DESC LIMIT ? [["LIMIT", 1]] SQL (0.2ms) INSERT INTO "spree_payment_methods" ("type", "name", "created_at", "updated_at", "position") VALUES (?, ?, ?, ?, ?) [["type", "Spree::PaymentMethod::PurchaseOrder"], ["name", "Purchase Order"], ["created_at", "2018-05-16 20:29:22.732056"], ["updated_at", "2018-05-16 20:29:22.732056"], ["position", 3]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."numcode" = ? LIMIT ? [["numcode", 840], ["LIMIT", 1]]  (0.1ms) SAVEPOINT active_record_1 Spree::Country Exists (0.2ms) SELECT 1 AS one FROM "spree_countries" WHERE LOWER("spree_countries"."name") = LOWER(?) LIMIT ? [["name", "NAME_3"], ["LIMIT", 1]] Spree::Country Exists (0.1ms) SELECT 1 AS one FROM "spree_countries" WHERE LOWER("spree_countries"."iso_name") = LOWER(?) LIMIT ? [["iso_name", "ISO_NAME_3"], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "spree_countries" ("iso_name", "iso", "iso3", "name", "numcode", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["iso_name", "ISO_NAME_3"], ["iso", "US"], ["iso3", "USA"], ["name", "NAME_3"], ["numcode", 840], ["updated_at", "2018-05-16 20:29:22.743179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::State Exists (0.2ms) SELECT 1 AS one FROM "spree_states" WHERE LOWER("spree_states"."name") = LOWER(?) AND "spree_states"."country_id" = ? LIMIT ? [["name", "STATE_NAME_3"], ["country_id", 1], ["LIMIT", 1]] Spree::State Exists (0.2ms) SELECT 1 AS one FROM "spree_states" WHERE LOWER("spree_states"."abbr") = LOWER(?) AND "spree_states"."country_id" = ? LIMIT ? [["abbr", "STATE_ABBR_3"], ["country_id", 1], ["LIMIT", 1]] SQL (0.3ms) INSERT INTO "spree_states" ("name", "abbr", "country_id", "updated_at") VALUES (?, ?, ?, ?) [["name", "STATE_NAME_3"], ["abbr", "STATE_ABBR_3"], ["country_id", 1], ["updated_at", "2018-05-16 20:29:22.748616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "spree_addresses" ("firstname", "lastname", "address1", "address2", "city", "zipcode", "phone", "alternative_phone", "company", "state_id", "country_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["firstname", "John"], ["lastname", "Doe"], ["address1", "10 Lovely Street"], ["address2", "Northwest"], ["city", "Herndon"], ["zipcode", "35005"], ["phone", "555-555-0199"], ["alternative_phone", "555-555-0199"], ["company", "Company"], ["state_id", 1], ["country_id", 1], ["created_at", "2018-05-16 20:29:22.752685"], ["updated_at", "2018-05-16 20:29:22.752685"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Store Exists (0.2ms) SELECT 1 AS one FROM "spree_stores" WHERE LOWER("spree_stores"."code") = LOWER(?) LIMIT ? [["code", "spree_3"], ["LIMIT", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_stores" WHERE "spree_stores"."default" = ? [["default", "t"]] SQL (0.2ms) INSERT INTO "spree_stores" ("name", "url", "mail_from_address", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Spree Test Store"], ["url", "www.example.com"], ["mail_from_address", "spree@example.org"], ["code", "spree_3"], ["created_at", "2018-05-16 20:29:22.760126"], ["updated_at", "2018-05-16 20:29:22.760126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R420959266"], ["LIMIT", 1]] Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R420959266"], ["LIMIT", 1]] Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = ? LIMIT ? [["number", "R420959266"], ["LIMIT", 1]] Spree::Order Exists (0.4ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."guest_token" = ? LIMIT ? [["guest_token", "Ai69Hpsm2z4VMbEbv-G_FA1526502562771"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "spree_orders" ("number", "state", "bill_address_id", "email", "created_at", "updated_at", "currency", "guest_token", "store_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "R420959266"], ["state", "cart"], ["bill_address_id", 1], ["email", "email@example.com"], ["created_at", "2018-05-16 20:29:22.770968"], ["updated_at", "2018-05-16 20:29:22.770968"], ["currency", "USD"], ["guest_token", "Ai69Hpsm2z4VMbEbv-G_FA1526502562771"], ["store_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Spree::Payment Exists (0.2ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "P2Z7PN60"], ["LIMIT", 1]] Spree::Payment Exists (0.1ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "P2Z7PN60"], ["LIMIT", 1]] Spree::Payment Exists (0.2ms) SELECT 1 AS one FROM "spree_payments" WHERE "spree_payments"."number" = ? LIMIT ? [["number", "P2Z7PN60"], ["LIMIT", 1]] SQL (0.4ms) INSERT INTO "spree_payments" ("amount", "order_id", "source_type", "source_id", "payment_method_id", "state", "response_code", "created_at", "updated_at", "number") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["amount", 45.75], ["order_id", 1], ["source_type", "Spree::PurchaseOrder"], ["source_id", 1], ["payment_method_id", 3], ["state", "checkout"], ["response_code", "12345"], ["created_at", "2018-05-16 20:29:22.780946"], ["updated_at", "2018-05-16 20:29:22.780946"], ["number", "P2Z7PN60"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = ? AND ("spree_payments"."id" != ?) ORDER BY "spree_payments"."created_at" ASC [["order_id", 1], ["state", "checkout"], ["id", 1]] SQL (0.4ms) UPDATE "spree_orders" SET "updated_at" = ? WHERE "spree_orders"."id" = ? [["updated_at", "2018-05-16 20:29:22.783494"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction