spec/dummy/log/test.log in document_number-0.9.4 vs spec/dummy/log/test.log in document_number-0.9.5
- old
+ new
@@ -837,5 +837,791 @@
[1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'invoice' LIMIT 1[0m
[1m[35mSQL (0.3ms)[0m INSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?) [["created_at", "2014-06-19 10:02:23.812642"], ["document", "invoice"], ["number", 2]]
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "invoices" ("created_at", "number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-06-19 10:02:23.808669"], ["number", "invoice/1"], ["updated_at", "2014-06-19 10:02:23.808669"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[36m (4.9ms)[0m [1mCREATE TABLE "document_numbers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "document" varchar(255), "number" integer DEFAULT 1 NOT NULL, "created_at" datetime) [0m
+ [1m[35m (1.2ms)[0m select sqlite_version(*)
+ [1m[36m (6.6ms)[0m [1mCREATE UNIQUE INDEX "index_document_numbers_on_document" ON "document_numbers" ("document")[0m
+ [1m[35m (1.1ms)[0m CREATE TABLE "inventories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(255), "created_at" datetime, "updated_at" datetime)
+ [1m[36m (0.9ms)[0m [1mCREATE TABLE "invoices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.9ms)[0m CREATE TABLE "price_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "document_number" varchar(255), "created_at" datetime, "updated_at" datetime)
+ [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
+ [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140610093243')
+ [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140610080445')[0m
+ [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140610090526')
+ [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140610093227')[0m
+ [1m[36m (0.4ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'invoice' LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?) [["created_at", "2014-07-15 20:11:25.831725"], ["document", "invoice"], ["number", 2]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "invoices" ("created_at", "number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-15 20:11:25.816393"], ["number", "invoice/1"], ["updated_at", "2014-07-15 20:11:25.816393"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (1.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-15 20:11:25.845955"], ["document", "inventory"], ["number", 2]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-15 20:11:25.842219"], ["number", "1"], ["updated_at", "2014-07-15 20:11:25.842219"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-15 20:11:25.849688"], ["number", "500"], ["updated_at", "2014-07-15 20:11:25.849688"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.2ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-15 20:11:25.853375"], ["document", "inventory"], ["number", 2]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-15 20:11:25.852195"], ["number", "1"], ["updated_at", "2014-07-15 20:11:25.852195"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1[0m
+ [1m[35mSQL (1.0ms)[0m UPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1 [["number", 3]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-15 20:11:25.855214"], ["number", "2"], ["updated_at", "2014-07-15 20:11:25.855214"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-15 20:11:25.868765"], ["number", "5"], ["updated_at", "2014-07-15 20:11:25.868765"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mUPDATE "inventories" SET "updated_at" = '2014-07-15 20:11:25.870776' WHERE "inventories"."id" = 1[0m
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-15 20:11:25.879910"], ["document", "price_adjustment"], ["number", 501]]
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "price_adjustments" ("created_at", "document_number", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-15 20:11:25.875744"], ["document_number", "500"], ["updated_at", "2014-07-15 20:11:25.875744"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mDocumentNumber::DocumentNumber Load (0.2ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?) [["created_at", "2014-07-15 20:11:25.886035"], ["document", "price_adjustment"], ["number", 501]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "price_adjustments" ("created_at", "document_number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-15 20:11:25.884715"], ["document_number", "500"], ["updated_at", "2014-07-15 20:11:25.884715"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.2ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-15 20:11:25.891014"], ["document", "price_adjustment"], ["number", 501]]
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "price_adjustments" ("created_at", "document_number", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-15 20:11:25.889677"], ["document_number", "500"], ["updated_at", "2014-07-15 20:11:25.889677"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mDocumentNumber::DocumentNumber Load (0.2ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m UPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1 [["number", 502]]
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "price_adjustments" ("created_at", "document_number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-15 20:11:25.893640"], ["document_number", "501"], ["updated_at", "2014-07-15 20:11:25.893640"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[36m (1.3ms)[0m [1mCREATE TABLE "document_numbers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "document" varchar(255), "number" integer DEFAULT 1 NOT NULL, "created_at" datetime) [0m
+ [1m[35m (0.5ms)[0m select sqlite_version(*)
+ [1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "index_document_numbers_on_document" ON "document_numbers" ("document")[0m
+ [1m[35m (0.8ms)[0m CREATE TABLE "inventories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(255), "created_at" datetime, "updated_at" datetime)
+ [1m[36m (0.8ms)[0m [1mCREATE TABLE "invoices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.9ms)[0m CREATE TABLE "price_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "document_number" varchar(255), "created_at" datetime, "updated_at" datetime)
+ [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
+ [1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140610093243')
+ [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140610080445')[0m
+ [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140610090526')
+ [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140610093227')[0m
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:39:46.019886"], ["document", "price_adjustment"], ["number", 501]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "price_adjustments" ("created_at", "document_number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:39:46.002761"], ["document_number", "500"], ["updated_at", "2014-07-18 19:39:46.002761"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_2
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1[0m
+ [1m[35mSQL (1.0ms)[0m UPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1 [["number", 502]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "price_adjustments" ("created_at", "document_number", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:39:46.025904"], ["document_number", "501"], ["updated_at", "2014-07-18 19:39:46.025904"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (1.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_2[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:39:46.033691"], ["document", "price_adjustment"], ["number", 501]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "price_adjustments" ("created_at", "document_number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:39:46.032403"], ["document_number", "500"], ["updated_at", "2014-07-18 19:39:46.032403"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_2
+ [1m[36mDocumentNumber::DocumentNumber Load (0.2ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:39:46.040113"], ["document", "price_adjustment"], ["number", 501]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "price_adjustments" ("created_at", "document_number", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:39:46.038382"], ["document_number", "500"], ["updated_at", "2014-07-18 19:39:46.038382"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'invoice' LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:39:46.049829"], ["document", "invoice"], ["number", 2]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "invoices" ("created_at", "number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:39:46.045690"], ["number", "invoice/1"], ["updated_at", "2014-07-18 19:39:46.045690"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.2ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:39:46.055224"], ["document", "inventory"], ["number", 2]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mUPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1[0m [["number", 3]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1[0m [["number", 4]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:39:46.066028"], ["number", "5"], ["updated_at", "2014-07-18 19:39:46.066028"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mUPDATE "inventories" SET "updated_at" = '2014-07-18 19:39:46.067978' WHERE "inventories"."id" = 1[0m
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:39:46.070992"], ["number", "500"], ["updated_at", "2014-07-18 19:39:46.070992"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.2ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:39:46.075535"], ["document", "inventory"], ["number", 2]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:39:46.074049"], ["number", "1"], ["updated_at", "2014-07-18 19:39:46.074049"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_2
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m UPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1 [["number", 3]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:39:46.077718"], ["number", "2"], ["updated_at", "2014-07-18 19:39:46.077718"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.6ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:39:46.084936"], ["document", "inventory"], ["number", 2]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:39:46.082262"], ["number", "1"], ["updated_at", "2014-07-18 19:39:46.082262"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[36m (1.8ms)[0m [1mCREATE TABLE "document_numbers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "document" varchar(255), "number" integer DEFAULT 1 NOT NULL, "created_at" datetime) [0m
+ [1m[35m (0.1ms)[0m select sqlite_version(*)
+ [1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_document_numbers_on_document" ON "document_numbers" ("document")[0m
+ [1m[35m (0.9ms)[0m CREATE TABLE "inventories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(255), "created_at" datetime, "updated_at" datetime)
+ [1m[36m (0.8ms)[0m [1mCREATE TABLE "invoices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.9ms)[0m CREATE TABLE "price_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "document_number" varchar(255), "created_at" datetime, "updated_at" datetime)
+ [1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
+ [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140610093243')
+ [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140610080445')[0m
+ [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140610090526')
+ [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140610093227')[0m
+ [1m[36m (0.4ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:42:34.032262"], ["document", "inventory"], ["number", 2]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:42:34.008009"], ["number", "1"], ["updated_at", "2014-07-18 19:42:34.008009"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:42:34.039310"], ["document", "inventory"], ["number", 2]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1
+ [1m[36mSQL (1.1ms)[0m [1mUPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1[0m [["number", 3]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1[0m [["number", 4]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_2
+ [1m[36mDocumentNumber::DocumentNumber Load (0.2ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:42:34.049004"], ["document", "inventory"], ["number", 2]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:42:34.047728"], ["number", "1"], ["updated_at", "2014-07-18 19:42:34.047728"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_2[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mUPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1[0m [["number", 3]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_2
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:42:34.050883"], ["number", "2"], ["updated_at", "2014-07-18 19:42:34.050883"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:42:34.055956"], ["number", "500"], ["updated_at", "2014-07-18 19:42:34.055956"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:42:34.059505"], ["number", "5"], ["updated_at", "2014-07-18 19:42:34.059505"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m UPDATE "inventories" SET "updated_at" = '2014-07-18 19:42:34.060774' WHERE "inventories"."id" = 1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'invoice' LIMIT 1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:42:34.064049"], ["document", "invoice"], ["number", 2]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'invoice' LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m UPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1 [["number", 3]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'invoice' LIMIT 1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1 [["number", 4]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'invoice' LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:42:34.074983"], ["document", "invoice"], ["number", 2]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoices" ("created_at", "number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:42:34.070676"], ["number", "invoice/1"], ["updated_at", "2014-07-18 19:42:34.070676"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_2
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:42:34.083640"], ["document", "price_adjustment"], ["number", 501]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "price_adjustments" ("created_at", "document_number", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:42:34.080073"], ["document_number", "500"], ["updated_at", "2014-07-18 19:42:34.080073"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mDocumentNumber::DocumentNumber Load (0.2ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:42:34.087927"], ["document", "price_adjustment"], ["number", 501]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m UPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1 [["number", 502]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1 [["number", 503]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:42:34.094857"], ["document", "price_adjustment"], ["number", 501]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "price_adjustments" ("created_at", "document_number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:42:34.093358"], ["document_number", "500"], ["updated_at", "2014-07-18 19:42:34.093358"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_2
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:42:34.099175"], ["document", "price_adjustment"], ["number", 501]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "price_adjustments" ("created_at", "document_number", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:42:34.098017"], ["document_number", "500"], ["updated_at", "2014-07-18 19:42:34.098017"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_2[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mUPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1[0m [["number", 502]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_2
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "price_adjustments" ("created_at", "document_number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:42:34.101558"], ["document_number", "501"], ["updated_at", "2014-07-18 19:42:34.101558"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[36m (1.9ms)[0m [1mCREATE TABLE "document_numbers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "document" varchar(255), "number" integer DEFAULT 1 NOT NULL, "created_at" datetime) [0m
+ [1m[35m (0.1ms)[0m select sqlite_version(*)
+ [1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "index_document_numbers_on_document" ON "document_numbers" ("document")[0m
+ [1m[35m (0.9ms)[0m CREATE TABLE "inventories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(255), "created_at" datetime, "updated_at" datetime)
+ [1m[36m (0.8ms)[0m [1mCREATE TABLE "invoices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.9ms)[0m CREATE TABLE "price_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "document_number" varchar(255), "created_at" datetime, "updated_at" datetime)
+ [1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
+ [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140610093243')
+ [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140610080445')[0m
+ [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140610090526')
+ [1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140610093227')[0m
+ [1m[36m (0.4ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:44:46.499619"], ["document", "price_adjustment"], ["number", 501]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "price_adjustments" ("created_at", "document_number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:44:46.477169"], ["document_number", "500"], ["updated_at", "2014-07-18 19:44:46.477169"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_2
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1[0m
+ [1m[35mSQL (1.0ms)[0m UPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1 [["number", 502]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "price_adjustments" ("created_at", "document_number", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:44:46.505583"], ["document_number", "501"], ["updated_at", "2014-07-18 19:44:46.505583"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:44:46.512055"], ["document", "price_adjustment"], ["number", 501]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mDocumentNumber::DocumentNumber Load (0.2ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m UPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1 [["number", 502]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1 [["number", 503]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_2[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:44:46.519264"], ["document", "price_adjustment"], ["number", 501]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_2
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "price_adjustments" ("created_at", "document_number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:44:46.518127"], ["document_number", "500"], ["updated_at", "2014-07-18 19:44:46.518127"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_2
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:44:46.523470"], ["document", "price_adjustment"], ["number", 501]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "price_adjustments" ("created_at", "document_number", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:44:46.522302"], ["document_number", "500"], ["updated_at", "2014-07-18 19:44:46.522302"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'invoice' LIMIT 1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:44:46.527790"], ["document", "invoice"], ["number", 2]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'invoice' LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m UPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1 [["number", 3]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'invoice' LIMIT 1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1 [["number", 4]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'invoice' LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:44:46.537847"], ["document", "invoice"], ["number", 2]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_2
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "invoices" ("created_at", "number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:44:46.533997"], ["number", "invoice/1"], ["updated_at", "2014-07-18 19:44:46.533997"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:44:46.544672"], ["number", "500"], ["updated_at", "2014-07-18 19:44:46.544672"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.2ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:44:46.549187"], ["document", "inventory"], ["number", 2]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:44:46.547553"], ["number", "1"], ["updated_at", "2014-07-18 19:44:46.547553"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_2
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m UPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1 [["number", 3]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:44:46.551231"], ["number", "2"], ["updated_at", "2014-07-18 19:44:46.551231"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:44:46.555759"], ["number", "5"], ["updated_at", "2014-07-18 19:44:46.555759"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m UPDATE "inventories" SET "updated_at" = '2014-07-18 19:44:46.556930' WHERE "inventories"."id" = 1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mDocumentNumber::DocumentNumber Load (0.2ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:44:46.561026"], ["document", "inventory"], ["number", 2]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m UPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1 [["number", 3]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1 [["number", 4]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:44:46.568001"], ["document", "inventory"], ["number", 2]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_2[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:44:46.571582"], ["document", "inventory"], ["number", 2]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_2
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:44:46.570456"], ["number", "1"], ["updated_at", "2014-07-18 19:44:46.570456"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[36m (2.8ms)[0m [1mCREATE TABLE "document_numbers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "document" varchar(255), "number" integer DEFAULT 1 NOT NULL, "created_at" datetime) [0m
+ [1m[35m (0.1ms)[0m select sqlite_version(*)
+ [1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "index_document_numbers_on_document" ON "document_numbers" ("document")[0m
+ [1m[35m (1.0ms)[0m CREATE TABLE "inventories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(255), "created_at" datetime, "updated_at" datetime)
+ [1m[36m (0.9ms)[0m [1mCREATE TABLE "invoices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.9ms)[0m CREATE TABLE "price_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "document_number" varchar(255), "created_at" datetime, "updated_at" datetime)
+ [1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
+ [1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140610093243')
+ [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140610080445')[0m
+ [1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140610090526')
+ [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140610093227')[0m
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:45:34.423829"], ["number", "5"], ["updated_at", "2014-07-18 19:45:34.423829"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.3ms)[0m UPDATE "inventories" SET "updated_at" = '2014-07-18 19:45:34.427631' WHERE "inventories"."id" = 1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (2.9ms)[0m rollback transaction
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:45:34.448045"], ["document", "inventory"], ["number", 2]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:45:34.439803"], ["number", "1"], ["updated_at", "2014-07-18 19:45:34.439803"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:45:34.452989"], ["document", "inventory"], ["number", 2]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:45:34.456321"], ["number", "500"], ["updated_at", "2014-07-18 19:45:34.456321"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mDocumentNumber::DocumentNumber Load (0.2ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:45:34.460925"], ["document", "inventory"], ["number", 2]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m UPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1 [["number", 3]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1 [["number", 4]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.2ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:45:34.470313"], ["document", "inventory"], ["number", 2]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:45:34.468149"], ["number", "1"], ["updated_at", "2014-07-18 19:45:34.468149"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_2
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m UPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1 [["number", 3]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:45:34.473525"], ["number", "2"], ["updated_at", "2014-07-18 19:45:34.473525"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'invoice' LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:45:34.483148"], ["document", "invoice"], ["number", 2]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "invoices" ("created_at", "number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:45:34.479814"], ["number", "invoice/1"], ["updated_at", "2014-07-18 19:45:34.479814"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'invoice' LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:45:34.487373"], ["document", "invoice"], ["number", 2]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'invoice' LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mUPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1[0m [["number", 3]]
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'invoice' LIMIT 1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1[0m [["number", 4]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.2ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'invoice' LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:45:34.495363"], ["document", "invoice"], ["number", 2]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_2
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:45:34.504589"], ["document", "price_adjustment"], ["number", 501]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "price_adjustments" ("created_at", "document_number", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:45:34.500535"], ["document_number", "500"], ["updated_at", "2014-07-18 19:45:34.500535"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mUPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1[0m [["number", 502]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "price_adjustments" ("created_at", "document_number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:45:34.507315"], ["document_number", "501"], ["updated_at", "2014-07-18 19:45:34.507315"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_2
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:45:34.513320"], ["document", "price_adjustment"], ["number", 501]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "price_adjustments" ("created_at", "document_number", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:45:34.512110"], ["document_number", "500"], ["updated_at", "2014-07-18 19:45:34.512110"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_2[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.2ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:45:34.518609"], ["document", "price_adjustment"], ["number", 501]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "price_adjustments" ("created_at", "document_number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:45:34.517375"], ["document_number", "500"], ["updated_at", "2014-07-18 19:45:34.517375"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.2ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:45:34.523449"], ["document", "price_adjustment"], ["number", 501]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.3ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:45:34.528601"], ["document", "price_adjustment"], ["number", 501]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mUPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1[0m [["number", 502]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1[0m [["number", 503]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[36m (105.9ms)[0m [1mCREATE TABLE "document_numbers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "document" varchar(255), "number" integer DEFAULT 1 NOT NULL, "created_at" datetime) [0m
+ [1m[35m (0.2ms)[0m select sqlite_version(*)
+ [1m[36m (3.0ms)[0m [1mCREATE UNIQUE INDEX "index_document_numbers_on_document" ON "document_numbers" ("document")[0m
+ [1m[35m (1.3ms)[0m CREATE TABLE "inventories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(255), "created_at" datetime, "updated_at" datetime)
+ [1m[36m (0.9ms)[0m [1mCREATE TABLE "invoices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (1.0ms)[0m CREATE TABLE "price_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "document_number" varchar(255), "created_at" datetime, "updated_at" datetime)
+ [1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
+ [1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140610093243')
+ [1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140610080445')[0m
+ [1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140610090526')
+ [1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140610093227')[0m
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'invoice' LIMIT 1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:45:49.581513"], ["document", "invoice"], ["number", 2]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'invoice' LIMIT 1[0m
+ [1m[35mSQL (1.3ms)[0m UPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1 [["number", 3]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'invoice' LIMIT 1[0m
+ [1m[35mSQL (0.1ms)[0m UPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1 [["number", 4]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (2.7ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'invoice' LIMIT 1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:45:49.601759"], ["document", "invoice"], ["number", 2]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_2[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'invoice' LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:45:49.605645"], ["document", "invoice"], ["number", 2]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_2
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "invoices" ("created_at", "number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:45:49.604336"], ["number", "invoice/1"], ["updated_at", "2014-07-18 19:45:49.604336"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:45:49.615540"], ["document", "price_adjustment"], ["number", 501]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mUPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1[0m [["number", 502]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1[0m [["number", 503]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.8ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_2
+ [1m[36mDocumentNumber::DocumentNumber Load (0.2ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:45:49.624197"], ["document", "price_adjustment"], ["number", 501]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "price_adjustments" ("created_at", "document_number", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:45:49.622172"], ["document_number", "500"], ["updated_at", "2014-07-18 19:45:49.622172"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:45:49.628892"], ["document", "price_adjustment"], ["number", 501]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_2[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:45:49.632920"], ["document", "price_adjustment"], ["number", 501]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_2
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "price_adjustments" ("created_at", "document_number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:45:49.631790"], ["document_number", "500"], ["updated_at", "2014-07-18 19:45:49.631790"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_2
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m UPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1 [["number", 502]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "price_adjustments" ("created_at", "document_number", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:45:49.634735"], ["document_number", "501"], ["updated_at", "2014-07-18 19:45:49.634735"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_2[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'price_adjustment' LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:45:49.639880"], ["document", "price_adjustment"], ["number", 501]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_2
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "price_adjustments" ("created_at", "document_number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:45:49.638690"], ["document_number", "500"], ["updated_at", "2014-07-18 19:45:49.638690"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_2
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:45:49.648121"], ["document", "inventory"], ["number", 2]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_2[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:45:49.644296"], ["number", "1"], ["updated_at", "2014-07-18 19:45:49.644296"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_2[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mUPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1[0m [["number", 3]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_2
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:45:49.650547"], ["number", "2"], ["updated_at", "2014-07-18 19:45:49.650547"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:45:49.655994"], ["document", "inventory"], ["number", 2]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1
+ [1m[36mSQL (0.3ms)[0m [1mUPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1[0m [["number", 3]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.1ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "document_numbers" SET "number" = ? WHERE "document_numbers"."id" = 1[0m [["number", 4]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:45:49.661520"], ["number", "500"], ["updated_at", "2014-07-18 19:45:49.661520"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mDocumentNumber::DocumentNumber Load (0.1ms)[0m [1mSELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?) [["created_at", "2014-07-18 19:45:49.664993"], ["document", "inventory"], ["number", 2]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:45:49.667548"], ["number", "5"], ["updated_at", "2014-07-18 19:45:49.667548"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m UPDATE "inventories" SET "updated_at" = '2014-07-18 19:45:49.668814' WHERE "inventories"."id" = 1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_2[0m
+ [1m[35mDocumentNumber::DocumentNumber Load (0.2ms)[0m SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:45:49.672963"], ["document", "inventory"], ["number", 2]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_2
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-07-18 19:45:49.671615"], ["number", "1"], ["updated_at", "2014-07-18 19:45:49.671615"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m