(1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateInvoices (20140101112114)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "invoices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "date" date, "created_at" datetime, "updated_at" datetime)  SQL (1.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140101112114"]]  (0.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) CREATE TABLE "invoices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "date" date, "created_at" datetime, "updated_at" datetime)   (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140101112114') ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to AddNumberToInvoices (20140102125046)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "invoices" ADD "number" integer SQL (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140102125046"]]  (3.6ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT COUNT(*) FROM "invoices"  (0.1ms) begin transaction SQL (3.7ms) INSERT INTO "invoices" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 02 Jan 2014 19:58:55 UTC +00:00], ["updated_at", Thu, 02 Jan 2014 19:58:55 UTC +00:00]]  (3.5ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.4ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.3ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.1ms) begin transaction SQL (3.6ms) INSERT INTO "invoices" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 02 Jan 2014 20:02:22 UTC +00:00], ["updated_at", Thu, 02 Jan 2014 20:02:22 UTC +00:00]]  (2.9ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.3ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "invoices" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 02 Jan 2014 20:03:48 UTC +00:00], ["updated_at", Thu, 02 Jan 2014 20:03:48 UTC +00:00]]  (2.0ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices" Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices"  (0.2ms) begin transaction SQL (0.9ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 1]]  (2.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 2]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (3.0ms) INSERT INTO "invoices" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Jan 2014 08:58:10 UTC +00:00], ["updated_at", Fri, 03 Jan 2014 08:58:10 UTC +00:00]]  (3.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "invoices" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Jan 2014 08:58:13 UTC +00:00], ["updated_at", Fri, 03 Jan 2014 08:58:13 UTC +00:00]]  (2.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "invoices" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 03 Jan 2014 08:58:13 UTC +00:00], ["updated_at", Fri, 03 Jan 2014 08:58:13 UTC +00:00]]  (2.1ms) commit transaction  (0.3ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.1ms) SELECT COUNT(*) FROM "invoices" RemoteInvoice Load (0.4ms) SELECT "invoices".* FROM "invoices"  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 3]]  (2.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 4]]  (0.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 5]]  (0.4ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices" Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices"  (0.1ms) begin transaction SQL (5.0ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 1]]  (4.1ms) commit transaction Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices" ORDER BY "invoices"."id" DESC LIMIT 1  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "invoices" ("created_at", "number", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 03 Jan 2014 09:46:19 UTC +00:00], ["number", 123], ["updated_at", Fri, 03 Jan 2014 09:46:19 UTC +00:00]]  (2.7ms) commit transaction Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices" ORDER BY "invoices"."id" DESC LIMIT 1 Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices" ORDER BY "invoices"."id" DESC LIMIT 1 Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices" ORDER BY "invoices"."id" DESC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "invoices" Invoice Load (0.2ms) SELECT "invoices".* FROM "invoices"  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 2]]  (2.3ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices" RemoteInvoice Load (0.3ms) SELECT "invoices".* FROM "invoices"  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 6]]  (2.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 7]]  (0.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 8]]  (0.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 9]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 10]]  (0.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 11]]  (0.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 12]]  (0.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 13]]  (0.5ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 14]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 15]]  (0.5ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 16]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 17]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 18]]  (0.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 19]]  (0.4ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 20]]  (0.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 21]]  (0.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 22]]  (0.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 23]]  (0.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 24]]  (0.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 25]]  (0.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 26]]  (0.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 27]]  (0.4ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 28]]  (0.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 29]]  (0.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 30]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 31]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 32]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 33]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 34]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 35]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 36]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 37]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 38]]  (0.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 39]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 40]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 41]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 42]]  (0.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 43]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 44]]  (0.5ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 45]]  (0.5ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 46]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 47]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 48]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 49]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 50]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 51]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 52]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 53]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 54]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 55]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 56]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 57]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 58]]  (0.5ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 59]]  (0.4ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 60]]  (0.5ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices" RemoteInvoice Load (0.2ms) SELECT "invoices".* FROM "invoices"  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 61]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 62]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 63]]  (0.7ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "invoices" RemoteInvoice Load (0.2ms) SELECT "invoices".* FROM "invoices"  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 64]]  (2.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 65]]  (0.6ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.1ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.1ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.1ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.1ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.3ms) SELECT COUNT(*) FROM "invoices"  (2.4ms) DELETE FROM "invoices";  (0.3ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices" RemoteInvoice Load (0.2ms) SELECT "invoices".* FROM "invoices"  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 70]]  (0.9ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices" RemoteInvoice Load (0.2ms) SELECT "invoices".* FROM "invoices"  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 71]]  (1.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 72]]  (0.7ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices" RemoteInvoice Load (0.2ms) SELECT "invoices".* FROM "invoices"  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 73]]  (2.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 74]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 75]]  (0.5ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "invoices"  (2.3ms) DELETE FROM "invoices";  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices"  (2.6ms) DELETE FROM "invoices";  (2.5ms) DELETE FROM "invoices";  (2.5ms) DELETE FROM "invoices";  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.1ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices"  (3.0ms) DELETE FROM "invoices";  (0.1ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices"  (3.0ms) DELETE FROM "invoices";  (0.3ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices" RemoteInvoice Load (0.2ms) SELECT "invoices".* FROM "invoices"  (0.1ms) begin transaction SQL (0.5ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 82]]  (2.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 83]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 84]]  (0.5ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) DELETE FROM "invoices" WHERE "invoices"."id" = ? [["id", 85]]  (0.5ms) commit transaction  (2.3ms) DELETE FROM "invoices";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'invoices';  (2.3ms) DELETE FROM "invoices";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'invoices';  (2.3ms) DELETE FROM "invoices";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'invoices';  (2.6ms) DELETE FROM "invoices";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'invoices';  (0.1ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices"  (0.2ms) SELECT COUNT(*) FROM "invoices" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUsers (20140103172515)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime)  SQL (1.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140103172515"]]  (2.0ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to AddUserIdToInvoices (20140103172643)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "invoices" ADD "user_id" integer SQL (1.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140103172643"]]  (3.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateLineItems (20140104145204)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "quantity" varchar(255), "product_id" integer, "created_at" datetime, "updated_at" datetime)  SQL (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140104145204"]]  (2.3ms) commit transaction Migrating to CreateProducts (20140104145227)  (0.1ms) begin transaction  (0.2ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price" varchar(255), "created_at" datetime, "updated_at" datetime)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140104145227"]]  (0.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateProducts (20140104145227)  (0.0ms) begin transaction  (0.4ms) DROP TABLE "products" SQL (0.9ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140104145227'  (1.9ms) commit transaction Migrating to CreateLineItems (20140104145204)  (0.1ms) begin transaction  (0.3ms) DROP TABLE "line_items" SQL (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140104145204'  (0.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateLineItems (20140104145204)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "quantity" integer, "product_id" integer, "created_at" datetime, "updated_at" datetime)  SQL (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140104145204"]]  (0.7ms) commit transaction Migrating to CreateProducts (20140104145227)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "price" integer, "created_at" datetime, "updated_at" datetime)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140104145227"]]  (0.6ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateProducts (20140104145227)  (0.1ms) begin transaction  (0.4ms) DROP TABLE "products" SQL (0.9ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140104145227'  (2.1ms) commit transaction Migrating to CreateLineItems (20140104145204)  (0.1ms) begin transaction  (0.2ms) DROP TABLE "line_items" SQL (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140104145204'  (0.6ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateLineItems (20140104145204)  (0.0ms) begin transaction  (0.4ms) CREATE TABLE "line_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "quantity" integer, "product_id" integer, "invoice_id" integer, "created_at" datetime, "updated_at" datetime)  SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140104145204"]]  (2.2ms) commit transaction Migrating to CreateProducts (20140104145227)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "products" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "price" integer, "created_at" datetime, "updated_at" datetime)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140104145227"]]  (0.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateAddresses (20140104150906)  (0.0ms) begin transaction  (0.4ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "city" varchar(255), "country" varchar(255), "user_id" integer, "created_at" datetime, "updated_at" datetime)  SQL (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140104150906"]]  (2.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.0ms) begin transaction SQL (4.7ms) INSERT INTO "products" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 14 Jan 2014 10:52:07 UTC +00:00], ["id", 12313], ["updated_at", Tue, 14 Jan 2014 10:52:07 UTC +00:00]]  (3.1ms) commit transaction Product Load (0.2ms) SELECT "products".* FROM "products"  (0.1ms) begin transaction SQL (0.5ms) DELETE FROM "products" WHERE "products"."id" = ? [["id", 12313]]  (2.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "products" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 14 Jan 2014 10:52:35 UTC +00:00], ["id", 12313], ["updated_at", Tue, 14 Jan 2014 10:52:35 UTC +00:00]]  (2.8ms) commit transaction Product Load (0.2ms) SELECT "products".* FROM "products"  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "products" WHERE "products"."id" = ? [["id", 12313]]  (2.1ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateProductsTagsJoinTable (20140114111137)  (0.0ms) begin transaction  (0.4ms) CREATE TABLE "products_tags_join_table" ("product_id" integer, "tag_id" integer)  SQL (1.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140114111137"]]  (0.8ms) commit transaction Migrating to CreateTags (20140114111219)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140114111219"]]  (0.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (3.2ms) INSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 14 Jan 2014 11:18:41 UTC +00:00], ["name", "Hola"], ["updated_at", Tue, 14 Jan 2014 11:18:41 UTC +00:00]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 14 Jan 2014 11:18:43 UTC +00:00], ["name", "Hola"], ["updated_at", Tue, 14 Jan 2014 11:18:43 UTC +00:00]]  (2.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateTags (20140114111219)  (0.0ms) begin transaction  (0.5ms) DROP TABLE "tags" SQL (1.3ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140114111219'  (0.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateTags (20140114111219)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))  SQL (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140114111219"]]  (2.4ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 14 Jan 2014 11:20:24 UTC +00:00], ["name", "Hola"], ["updated_at", Tue, 14 Jan 2014 11:20:24 UTC +00:00]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (2.9ms) INSERT INTO "products" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 14 Jan 2014 11:20:41 UTC +00:00], ["updated_at", Tue, 14 Jan 2014 11:20:41 UTC +00:00]]  (2.3ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateTags (20140114111219)  (0.0ms) begin transaction  (0.4ms) DROP TABLE "tags" SQL (0.9ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140114111219'  (2.8ms) commit transaction Migrating to CreateProductsTagsJoinTable (20140114111137)  (0.1ms) begin transaction  (0.2ms) DROP TABLE "products_tags" SQLite3::SQLException: no such table: products_tags: DROP TABLE "products_tags"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateProductsTagsJoinTable (20140114111137)  (0.0ms) begin transaction  (0.4ms) DROP TABLE "products_tags_join_table" SQL (0.9ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140114111137'  (2.4ms) commit transaction Migrating to CreateAddresses (20140104150906)  (0.1ms) begin transaction  (0.5ms) DROP TABLE "addresses" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140104150906'  (0.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateAddresses (20140104150906)  (0.0ms) begin transaction  (0.5ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar(255), "city" varchar(255), "country" varchar(255), "user_id" integer, "created_at" datetime, "updated_at" datetime)  SQL (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140104150906"]]  (2.7ms) commit transaction Migrating to CreateProductsTagsJoinTable (20140114111137)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "products_tags" ("product_id" integer, "tag_id" integer)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140114111137"]]  (0.7ms) commit transaction Migrating to CreateTags (20140114111219)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140114111219"]]  (1.0ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "products" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 14 Jan 2014 11:22:08 UTC +00:00], ["updated_at", Tue, 14 Jan 2014 11:22:08 UTC +00:00]]  (2.2ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "tags" DEFAULT VALUES  (0.1ms) INSERT INTO "products_tags" ("product_id", "tag_id") VALUES (12318, 1)  (1.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "tags" ("name") VALUES (?) [["name", 2]]  (0.1ms) INSERT INTO "products_tags" ("product_id", "tag_id") VALUES (12318, 2)  (2.6ms) commit transaction Tag Load (0.2ms) SELECT "tags".* FROM "tags" Tag Load (0.2ms) SELECT "tags".* FROM "tags"  (0.1ms) begin transaction  (0.8ms) DELETE FROM "products_tags" WHERE "products_tags"."tag_id" = 1 SQL (0.2ms) DELETE FROM "tags" WHERE "tags"."id" = ? [["id", 1]]  (2.5ms) commit transaction  (0.1ms) begin transaction  (0.2ms) DELETE FROM "products_tags" WHERE "products_tags"."tag_id" = 2 SQL (0.1ms) DELETE FROM "tags" WHERE "tags"."id" = ? [["id", 2]]  (0.6ms) commit transaction Product Load (0.1ms) SELECT "products".* FROM "products"  (0.1ms) begin transaction  (0.1ms) DELETE FROM "products_tags" WHERE "products_tags"."product_id" = 12314 SQL (0.2ms) DELETE FROM "products" WHERE "products"."id" = ? [["id", 12314]]  (0.5ms) commit transaction  (0.0ms) begin transaction  (0.1ms) DELETE FROM "products_tags" WHERE "products_tags"."product_id" = 12315 SQL (0.1ms) DELETE FROM "products" WHERE "products"."id" = ? [["id", 12315]]  (0.5ms) commit transaction  (0.0ms) begin transaction  (0.1ms) DELETE FROM "products_tags" WHERE "products_tags"."product_id" = 12316 SQL (0.1ms) DELETE FROM "products" WHERE "products"."id" = ? [["id", 12316]]  (0.5ms) commit transaction  (0.0ms) begin transaction  (0.1ms) DELETE FROM "products_tags" WHERE "products_tags"."product_id" = 12317 SQL (0.1ms) DELETE FROM "products" WHERE "products"."id" = ? [["id", 12317]]  (0.5ms) commit transaction  (0.0ms) begin transaction  (0.1ms) DELETE FROM "products_tags" WHERE "products_tags"."product_id" = 12318 SQL (0.1ms) DELETE FROM "products" WHERE "products"."id" = ? [["id", 12318]]  (0.5ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Product Exists (0.1ms) SELECT 1 AS one FROM "products" WHERE "products"."name" = '123321321' LIMIT 1  (0.1ms) begin transaction SQL (3.2ms) INSERT INTO "products" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 14 Jan 2014 12:42:08 UTC +00:00], ["name", "123321321"], ["updated_at", Tue, 14 Jan 2014 12:42:08 UTC +00:00]]  (4.7ms) commit transaction Product Exists (0.2ms) SELECT 1 AS one FROM "products" WHERE "products"."name" = '123321321' LIMIT 1 ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to AddTypeToProducts (20140117112556)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "products" ADD "type" varchar(255) SQL (1.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140117112556"]]  (2.4ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"