(1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.5ms) select sqlite_version(*)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateDocumentNumbers (20140610080445)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "document_numbers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "document" varchar(255), "number" integer NOT NULL, "created_at" datetime)   (0.6ms) select sqlite_version(*)  (0.2ms) CREATE INDEX "index_document_numbers_on_document" ON "document_numbers" ("document") SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140610080445"]]  (1.0ms) commit transaction Migrating to CreateInventories (20140610090526)  (0.1ms) begin transaction  (0.6ms) CREATE TABLE "inventories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(255), "created_at" datetime, "updated_at" datetime)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140610090526"]]  (0.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_document_numbers_on_document' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_document_numbers_on_document' AND type='index'   (1.2ms) CREATE TABLE "document_numbers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "document" varchar(255), "number" integer NOT NULL, "created_at" datetime)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE INDEX "index_document_numbers_on_document" ON "document_numbers" ("document")  (0.9ms) CREATE TABLE "inventories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140610090526')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140610080445')  (0.1ms) begin transaction DocumentNumber::DocumentNumber Load (0.5ms) SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1 SQL (1.1ms) INSERT INTO "document_numbers" ("created_at", "document") VALUES (?, ?) [["created_at", "2014-06-10 09:18:56.241431"], ["document", "inventory"]] SQLite3::ConstraintException: document_numbers.number may not be NULL: INSERT INTO "document_numbers" ("created_at", "document") VALUES (?, ?)  (0.1ms) rollback transaction  (0.1ms) begin transaction DocumentNumber::DocumentNumber Load (0.1ms) SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1 SQL (0.4ms) INSERT INTO "document_numbers" ("created_at", "document") VALUES (?, ?) [["created_at", "2014-06-10 09:20:10.581165"], ["document", "inventory"]] SQLite3::ConstraintException: document_numbers.number may not be NULL: INSERT INTO "document_numbers" ("created_at", "document") VALUES (?, ?)  (0.1ms) rollback transaction  (0.1ms) begin transaction DocumentNumber::DocumentNumber Load (0.1ms) SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1 SQL (0.3ms) INSERT INTO "document_numbers" ("created_at", "document") VALUES (?, ?) [["created_at", "2014-06-10 09:21:51.772208"], ["document", "inventory"]] SQLite3::ConstraintException: document_numbers.number may not be NULL: INSERT INTO "document_numbers" ("created_at", "document") VALUES (?, ?)  (0.1ms) rollback transaction  (0.1ms) begin transaction DocumentNumber::DocumentNumber Load (0.1ms) SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1 SQL (0.3ms) INSERT INTO "document_numbers" ("created_at", "document") VALUES (?, ?) [["created_at", "2014-06-10 09:23:16.436527"], ["document", "inventory"]] SQLite3::ConstraintException: document_numbers.number may not be NULL: INSERT INTO "document_numbers" ("created_at", "document") VALUES (?, ?)  (0.1ms) rollback transaction  (0.1ms) begin transaction DocumentNumber::DocumentNumber Load (0.1ms) SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1 SQL (0.4ms) INSERT INTO "document_numbers" ("created_at", "document") VALUES (?, ?) [["created_at", "2014-06-10 09:25:04.242710"], ["document", "inventory"]] SQLite3::ConstraintException: document_numbers.number may not be NULL: INSERT INTO "document_numbers" ("created_at", "document") VALUES (?, ?)  (0.1ms) rollback transaction  (0.1ms) begin transaction DocumentNumber::DocumentNumber Load (0.1ms) SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1 SQL (0.3ms) INSERT INTO "document_numbers" ("created_at", "document") VALUES (?, ?) [["created_at", "2014-06-10 09:25:41.982941"], ["document", "inventory"]] SQLite3::ConstraintException: document_numbers.number may not be NULL: INSERT INTO "document_numbers" ("created_at", "document") VALUES (?, ?)  (0.1ms) rollback transaction  (0.1ms) begin transaction DocumentNumber::DocumentNumber Load (0.1ms) SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction DocumentNumber::DocumentNumber Load (0.1ms) SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction DocumentNumber::DocumentNumber Load (0.1ms) SELECT "document_numbers".* FROM "document_numbers" WHERE "document_numbers"."document" = 'inventory' LIMIT 1 SQL (0.7ms) INSERT INTO "document_numbers" ("created_at", "document", "number") VALUES (?, ?, ?) [["created_at", "2014-06-10 09:27:56.377650"], ["document", "inventory"], ["number", 1]] SQL (0.6ms) INSERT INTO "inventories" ("created_at", "number", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-06-10 09:27:56.365557"], ["number", "1"], ["updated_at", "2014-06-10 09:27:56.365557"]]  (0.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateInvoices (20140610093227)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "invoices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar(255), "created_at" datetime, "updated_at" datetime)  SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140610093227"]]  (0.7ms) commit transaction Migrating to CreatePriceAdjustments (20140610093243)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "price_adjustments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "document_number" varchar(255), "created_at" datetime, "updated_at" datetime)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140610093243"]]  (0.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_document_numbers_on_document' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_document_numbers_on_document' AND type='index'