(1.5ms) CREATE TABLE "children" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "parent_id" integer NOT NULL, "position" integer NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) select sqlite_version(*)  (1.3ms) CREATE INDEX "index_children_on_position" ON "children" ("position")  (1.2ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "position" integer NOT NULL)  (1.1ms) CREATE INDEX "index_items_on_position" ON "items" ("position")  (1.3ms) CREATE TABLE "order_things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.2ms) CREATE INDEX "index_order_things_on_order" ON "order_things" ("order")  (1.1ms) CREATE TABLE "other_things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "place" integer NOT NULL, "created_at" datetime, "updated_at" datetime)  (1.2ms) CREATE INDEX "index_other_things_on_place" ON "other_things" ("place")  (1.3ms) CREATE TABLE "parents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (1.1ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "position" integer NOT NULL, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE INDEX "index_things_on_position" ON "things" ("position")  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150408101403')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140512100816')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525104834')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525111906')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525112123')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140721161028')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140721161122') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:42.716662"], ["updated_at", "2015-12-24 07:31:42.716662"], ["place", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:42.729683"], ["updated_at", "2015-12-24 07:31:42.729683"], ["place", 1]]  (0.9ms) commit transaction SQL (2.0ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.8ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:42.746393"], ["updated_at", "2015-12-24 07:31:42.746393"], ["place", 0]]  (1.1ms) commit transaction OtherThing Load (0.3ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:42.770856"], ["updated_at", "2015-12-24 07:31:42.770856"], ["place", 1]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 3]] SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:31:42.781988' SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:42.781722"], ["updated_at", "2015-12-24 07:31:42.781722"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:31:42.791545' SQL (0.3ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:42.791341"], ["updated_at", "2015-12-24 07:31:42.791341"], ["place", 0]]  (0.8ms) commit transaction SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:31:42.803435' SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:42.803190"], ["updated_at", "2015-12-24 07:31:42.803190"], ["place", 0]]  (0.8ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 7]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:31:42.814375' SQL (0.2ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:42.814149"], ["updated_at", "2015-12-24 07:31:42.814149"], ["place", 0]]  (1.3ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 7]] SQL (1.6ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:42.829439"], ["updated_at", "2015-12-24 07:31:42.829439"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (1.3ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:42.837114"], ["updated_at", "2015-12-24 07:31:42.837114"], ["place", 1]]  (11.2ms) commit transaction  (0.2ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (1.3ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:42.856767"], ["updated_at", "2015-12-24 07:31:42.856767"], ["place", 2]]  (1.2ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 9]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:31:42.868426' WHERE ("place" > 0 AND "place" <= 1) SQL (0.7ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:31:42.871880"], ["id", 9]]  (1.1ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 9]] SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.7ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:42.882062"], ["updated_at", "2015-12-24 07:31:42.882062"], ["place", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:42.889997"], ["updated_at", "2015-12-24 07:31:42.889997"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:42.897279"], ["updated_at", "2015-12-24 07:31:42.897279"], ["place", 2]]  (1.0ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 12]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:31:42.905944' WHERE ("place" > 0 AND "place" <= 1) SQL (0.4ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:31:42.908951"], ["id", 12]]  (1.1ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 12]] SQL (1.1ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:42.918151"], ["updated_at", "2015-12-24 07:31:42.918151"], ["place", 0]]  (1.3ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:42.925970"], ["updated_at", "2015-12-24 07:31:42.925970"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:42.934081"], ["updated_at", "2015-12-24 07:31:42.934081"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 16]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:31:42.942918' WHERE ("place" > 0 AND "place" <= 1) SQL (0.4ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:31:42.946099"], ["id", 15]]  (1.3ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 16]] SQL (1.1ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.9ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:42.954955"], ["updated_at", "2015-12-24 07:31:42.954955"], ["place", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:42.963638"], ["updated_at", "2015-12-24 07:31:42.963638"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:42.970651"], ["updated_at", "2015-12-24 07:31:42.970651"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.3ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 20]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:31:42.979592' WHERE ("place" > 0 AND "place" <= 1) SQL (0.4ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:31:42.982502"], ["id", 18]]  (1.8ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 20]] SQL (1.5ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:42.992385"], ["updated_at", "2015-12-24 07:31:42.992385"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.000575"], ["updated_at", "2015-12-24 07:31:43.000575"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.008147"], ["updated_at", "2015-12-24 07:31:43.008147"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 22]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:31:43.016876' WHERE ("place" > 0 AND "place" <= 1) SQL (0.4ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:31:43.020132"], ["id", 21]]  (1.1ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 22]] SQL (1.5ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.029948"], ["updated_at", "2015-12-24 07:31:43.029948"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.038582"], ["updated_at", "2015-12-24 07:31:43.038582"], ["place", 1]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.046335"], ["updated_at", "2015-12-24 07:31:43.046335"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 24]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:31:43.055362' WHERE ("place" >= 1 AND "place" < 2) SQL (0.8ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:31:43.058337"], ["id", 26]]  (1.2ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 24]] SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.068046"], ["updated_at", "2015-12-24 07:31:43.068046"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.077350"], ["updated_at", "2015-12-24 07:31:43.077350"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.085266"], ["updated_at", "2015-12-24 07:31:43.085266"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 28]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:31:43.094951' WHERE ("place" >= 1 AND "place" < 2) SQL (0.5ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:31:43.098104"], ["id", 29]]  (1.6ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 28]] SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.107573"], ["updated_at", "2015-12-24 07:31:43.107573"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.115712"], ["updated_at", "2015-12-24 07:31:43.115712"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.122932"], ["updated_at", "2015-12-24 07:31:43.122932"], ["place", 2]]  (1.1ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 32]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:31:43.131778' WHERE ("place" >= 1 AND "place" < 2) SQL (0.4ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:31:43.134739"], ["id", 32]]  (1.2ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 32]] SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.144099"], ["updated_at", "2015-12-24 07:31:43.144099"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.152492"], ["updated_at", "2015-12-24 07:31:43.152492"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.159667"], ["updated_at", "2015-12-24 07:31:43.159667"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 35]]  (0.1ms) begin transaction SQL (0.8ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:31:43.167977' WHERE ("place" >= 1 AND "place" < 2) SQL (0.4ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:31:43.171327"], ["id", 35]]  (1.0ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 35]] SQL (1.5ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.180336"], ["updated_at", "2015-12-24 07:31:43.180336"], ["place", 0]]  (1.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.188548"], ["updated_at", "2015-12-24 07:31:43.188548"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.196206"], ["updated_at", "2015-12-24 07:31:43.196206"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 37]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:31:43.204104' WHERE ("place" >= 1 AND "place" < 2) SQL (0.5ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:31:43.207590"], ["id", 38]]  (1.1ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 37]] SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.5ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.216648"], ["updated_at", "2015-12-24 07:31:43.216648"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.225308"], ["updated_at", "2015-12-24 07:31:43.225308"], ["place", 1]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 40]]  (0.1ms) begin transaction SQL (0.5ms) DELETE FROM "other_things" WHERE "other_things"."id" = ? [["id", 39]] SQL (0.6ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:31:43.234553' WHERE ("place" > 0)  (1.1ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 40]] SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.242740"], ["updated_at", "2015-12-24 07:31:43.242740"], ["place", 0]]  (0.9ms) commit transaction  (0.3ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.250636"], ["updated_at", "2015-12-24 07:31:43.250636"], ["place", 1]]  (1.2ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 42]]  (0.1ms) begin transaction SQL (0.6ms) DELETE FROM "other_things" WHERE "other_things"."id" = ? [["id", 41]] SQL (0.6ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:31:43.261003' WHERE ("place" > 0)  (1.1ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 42]] SQL (1.2ms) DELETE FROM "other_things"  (0.2ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.269386"], ["updated_at", "2015-12-24 07:31:43.269386"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.277225"], ["updated_at", "2015-12-24 07:31:43.277225"], ["place", 1]]  (0.9ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" ORDER BY "other_things"."place" ASC SQL (1.4ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.292875"], ["updated_at", "2015-12-24 07:31:43.292875"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.301110"], ["updated_at", "2015-12-24 07:31:43.301110"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.309343"], ["updated_at", "2015-12-24 07:31:43.309343"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:31:43.318991' WHERE ("position" > 0 AND "position" <= 1) SQL (0.6ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:31:43.322195"], ["id", 1]]  (0.9ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.330737"], ["updated_at", "2015-12-24 07:31:43.330737"], ["position", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.337842"], ["updated_at", "2015-12-24 07:31:43.337842"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.345463"], ["updated_at", "2015-12-24 07:31:43.345463"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) begin transaction SQL (1.1ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:31:43.353901' WHERE ("position" > 0 AND "position" <= 1) SQL (0.4ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:31:43.357678"], ["id", 4]]  (1.2ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 5]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.366800"], ["updated_at", "2015-12-24 07:31:43.366800"], ["position", 0]]  (1.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.375786"], ["updated_at", "2015-12-24 07:31:43.375786"], ["position", 1]]  (2.4ms) commit transaction  (0.3ms) begin transaction  (0.3ms) SELECT "things"."position" FROM "things" SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.385577"], ["updated_at", "2015-12-24 07:31:43.385577"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 8]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:31:43.394226' WHERE ("position" > 0 AND "position" <= 1) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:31:43.397536"], ["id", 7]]  (0.9ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 8]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.406540"], ["updated_at", "2015-12-24 07:31:43.406540"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.416775"], ["updated_at", "2015-12-24 07:31:43.416775"], ["position", 1]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.423847"], ["updated_at", "2015-12-24 07:31:43.423847"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 12]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:31:43.432826' WHERE ("position" > 0 AND "position" <= 1) SQL (1.0ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:31:43.435862"], ["id", 10]]  (1.0ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 12]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.445793"], ["updated_at", "2015-12-24 07:31:43.445793"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.453778"], ["updated_at", "2015-12-24 07:31:43.453778"], ["position", 1]]  (1.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.461546"], ["updated_at", "2015-12-24 07:31:43.461546"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 13]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:31:43.470240' WHERE ("position" > 0 AND "position" <= 1) SQL (0.4ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:31:43.473394"], ["id", 13]]  (1.0ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 13]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.482658"], ["updated_at", "2015-12-24 07:31:43.482658"], ["position", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.8ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.490794"], ["updated_at", "2015-12-24 07:31:43.490794"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.499386"], ["updated_at", "2015-12-24 07:31:43.499386"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 18]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:31:43.507724' WHERE ("position" >= 1 AND "position" < 2) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:31:43.511195"], ["id", 18]]  (1.0ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 18]] SQL (3.8ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.522704"], ["updated_at", "2015-12-24 07:31:43.522704"], ["position", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.530892"], ["updated_at", "2015-12-24 07:31:43.530892"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.538419"], ["updated_at", "2015-12-24 07:31:43.538419"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 21]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:31:43.546886' WHERE ("position" >= 1 AND "position" < 2) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:31:43.551342"], ["id", 21]]  (1.1ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 21]] SQL (1.7ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.561584"], ["updated_at", "2015-12-24 07:31:43.561584"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.569820"], ["updated_at", "2015-12-24 07:31:43.569820"], ["position", 1]]  (1.5ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.577807"], ["updated_at", "2015-12-24 07:31:43.577807"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 22]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:31:43.587217' WHERE ("position" >= 1 AND "position" < 2) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:31:43.590337"], ["id", 24]]  (1.1ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 22]] SQL (1.5ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.600919"], ["updated_at", "2015-12-24 07:31:43.600919"], ["position", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.609122"], ["updated_at", "2015-12-24 07:31:43.609122"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.616454"], ["updated_at", "2015-12-24 07:31:43.616454"], ["position", 2]]  (1.1ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 26]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:31:43.625656' WHERE ("position" >= 1 AND "position" < 2) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:31:43.628743"], ["id", 27]]  (2.0ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 26]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.638466"], ["updated_at", "2015-12-24 07:31:43.638466"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.646313"], ["updated_at", "2015-12-24 07:31:43.646313"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.654448"], ["updated_at", "2015-12-24 07:31:43.654448"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 29]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:31:43.662785' WHERE ("position" >= 1 AND "position" < 2) SQL (1.9ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:31:43.666884"], ["id", 30]]  (1.1ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 29]] SQL (1.8ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.678779"], ["updated_at", "2015-12-24 07:31:43.678779"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.3ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.686518"], ["updated_at", "2015-12-24 07:31:43.686518"], ["position", 1]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 32]]  (0.1ms) begin transaction SQL (0.5ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 31]] SQL (0.7ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:31:43.696619' WHERE ("position" > 0)  (1.2ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 32]] SQL (1.4ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.706186"], ["updated_at", "2015-12-24 07:31:43.706186"], ["position", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.716739"], ["updated_at", "2015-12-24 07:31:43.716739"], ["position", 1]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 34]]  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 33]] SQL (0.6ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:31:43.725973' WHERE ("position" > 0)  (1.0ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 34]] SQL (2.0ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.734845"], ["updated_at", "2015-12-24 07:31:43.734845"], ["position", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.742242"], ["updated_at", "2015-12-24 07:31:43.742242"], ["position", 1]]  (0.9ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.8ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.754697"], ["updated_at", "2015-12-24 07:31:43.754697"], ["position", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.763431"], ["updated_at", "2015-12-24 07:31:43.763431"], ["position", 1]]  (0.9ms) commit transaction SQL (1.4ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.774930"], ["updated_at", "2015-12-24 07:31:43.774930"], ["position", 0]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 39]]  (0.3ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.784401"], ["updated_at", "2015-12-24 07:31:43.784401"], ["position", 1]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 39]] SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:31:43.796062' SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.795816"], ["updated_at", "2015-12-24 07:31:43.795816"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:31:43.806289' SQL (0.2ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.806060"], ["updated_at", "2015-12-24 07:31:43.806060"], ["position", 0]]  (0.9ms) commit transaction SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:31:43.820217' SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.819977"], ["updated_at", "2015-12-24 07:31:43.819977"], ["position", 0]]  (0.9ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 43]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:31:43.831341' SQL (0.2ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.831144"], ["updated_at", "2015-12-24 07:31:43.831144"], ["position", 0]]  (1.1ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 43]] SQL (1.3ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.849376"], ["updated_at", "2015-12-24 07:31:43.849376"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.859621"], ["updated_at", "2015-12-24 07:31:43.859621"], ["order", 1]]  (0.9ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" ORDER BY "order_things"."order" ASC SQL (1.3ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.872426"], ["updated_at", "2015-12-24 07:31:43.872426"], ["order", 0]]  (1.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.880355"], ["updated_at", "2015-12-24 07:31:43.880355"], ["order", 1]]  (0.9ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "order_things" WHERE "order_things"."id" = ? [["id", 3]] SQL (0.5ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:31:43.890276' WHERE ("order" > 0)  (1.0ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 4]] SQL (1.5ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.898581"], ["updated_at", "2015-12-24 07:31:43.898581"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.906306"], ["updated_at", "2015-12-24 07:31:43.906306"], ["order", 1]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 6]]  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "order_things" WHERE "order_things"."id" = ? [["id", 5]] SQL (0.5ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:31:43.917158' WHERE ("order" > 0)  (1.0ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 6]] SQL (3.0ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.3ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.928030"], ["updated_at", "2015-12-24 07:31:43.928030"], ["order", 0]]  (1.5ms) commit transaction  (0.1ms) begin transaction  (0.3ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.937925"], ["updated_at", "2015-12-24 07:31:43.937925"], ["order", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.950404"], ["updated_at", "2015-12-24 07:31:43.950404"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 7]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:31:43.959579' WHERE ("order" > 0 AND "order" <= 1) SQL (0.8ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:31:43.963950"], ["id", 7]]  (1.1ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 7]] SQL (1.3ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.977871"], ["updated_at", "2015-12-24 07:31:43.977871"], ["order", 0]]  (1.4ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.990993"], ["updated_at", "2015-12-24 07:31:43.990993"], ["order", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:43.999048"], ["updated_at", "2015-12-24 07:31:43.999048"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 11]]  (0.1ms) begin transaction SQL (0.7ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:31:44.007812' WHERE ("order" > 0 AND "order" <= 1) SQL (1.0ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:31:44.015188"], ["id", 10]]  (7.0ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 11]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.034432"], ["updated_at", "2015-12-24 07:31:44.034432"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.041735"], ["updated_at", "2015-12-24 07:31:44.041735"], ["order", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.050046"], ["updated_at", "2015-12-24 07:31:44.050046"], ["order", 2]]  (1.0ms) commit transaction OrderThing Load (0.3ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 14]]  (0.1ms) begin transaction SQL (0.7ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:31:44.062120' WHERE ("order" > 0 AND "order" <= 1) SQL (0.6ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:31:44.070250"], ["id", 13]]  (1.1ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 14]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.081702"], ["updated_at", "2015-12-24 07:31:44.081702"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.089183"], ["updated_at", "2015-12-24 07:31:44.089183"], ["order", 1]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.097722"], ["updated_at", "2015-12-24 07:31:44.097722"], ["order", 2]]  (1.5ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 18]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:31:44.109588' WHERE ("order" > 0 AND "order" <= 1) SQL (0.5ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:31:44.118651"], ["id", 16]]  (1.2ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 18]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.127220"], ["updated_at", "2015-12-24 07:31:44.127220"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.135861"], ["updated_at", "2015-12-24 07:31:44.135861"], ["order", 1]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.7ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.144286"], ["updated_at", "2015-12-24 07:31:44.144286"], ["order", 2]]  (3.2ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 19]]  (0.1ms) begin transaction SQL (0.8ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:31:44.161601' WHERE ("order" > 0 AND "order" <= 1) SQL (0.5ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:31:44.165227"], ["id", 19]]  (1.3ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 19]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.8ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.175571"], ["updated_at", "2015-12-24 07:31:44.175571"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.183844"], ["updated_at", "2015-12-24 07:31:44.183844"], ["order", 1]]  (2.7ms) commit transaction  (0.1ms) begin transaction  (0.3ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.195355"], ["updated_at", "2015-12-24 07:31:44.195355"], ["order", 2]]  (1.1ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 23]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:31:44.207322' WHERE ("order" >= 1 AND "order" < 2) SQL (0.4ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:31:44.211178"], ["id", 24]]  (1.0ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 23]] SQL (1.5ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.222382"], ["updated_at", "2015-12-24 07:31:44.222382"], ["order", 0]]  (2.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.233055"], ["updated_at", "2015-12-24 07:31:44.233055"], ["order", 1]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.245425"], ["updated_at", "2015-12-24 07:31:44.245425"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 27]]  (0.1ms) begin transaction SQL (0.8ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:31:44.253353' WHERE ("order" >= 1 AND "order" < 2) SQL (0.8ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:31:44.257713"], ["id", 27]]  (1.4ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 27]] SQL (2.9ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.3ms) SELECT "order_things"."order" FROM "order_things" SQL (0.7ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.269836"], ["updated_at", "2015-12-24 07:31:44.269836"], ["order", 0]]  (1.8ms) commit transaction  (0.1ms) begin transaction  (0.3ms) SELECT "order_things"."order" FROM "order_things" SQL (0.7ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.282973"], ["updated_at", "2015-12-24 07:31:44.282973"], ["order", 1]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.291553"], ["updated_at", "2015-12-24 07:31:44.291553"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 29]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:31:44.299739' WHERE ("order" >= 1 AND "order" < 2) SQL (0.5ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:31:44.304718"], ["id", 30]]  (4.4ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 29]] SQL (1.5ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.318982"], ["updated_at", "2015-12-24 07:31:44.318982"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.331880"], ["updated_at", "2015-12-24 07:31:44.331880"], ["order", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.338933"], ["updated_at", "2015-12-24 07:31:44.338933"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 33]]  (0.1ms) begin transaction SQL (0.9ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:31:44.347723' WHERE ("order" >= 1 AND "order" < 2) SQL (0.6ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:31:44.351751"], ["id", 33]]  (1.2ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 33]] SQL (2.1ms) DELETE FROM "order_things"  (3.4ms) begin transaction  (0.4ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.370609"], ["updated_at", "2015-12-24 07:31:44.370609"], ["order", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.379269"], ["updated_at", "2015-12-24 07:31:44.379269"], ["order", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.386293"], ["updated_at", "2015-12-24 07:31:44.386293"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 34]]  (0.1ms) begin transaction SQL (4.4ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:31:44.397783' WHERE ("order" >= 1 AND "order" < 2) SQL (0.5ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:31:44.405351"], ["id", 36]]  (1.1ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 34]] SQL (1.3ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.414507"], ["updated_at", "2015-12-24 07:31:44.414507"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.428046"], ["updated_at", "2015-12-24 07:31:44.428046"], ["order", 1]]  (0.9ms) commit transaction SQL (2.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (1.1ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.439204"], ["updated_at", "2015-12-24 07:31:44.439204"], ["order", 0]]  (1.1ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 39]]  (0.3ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.459589"], ["updated_at", "2015-12-24 07:31:44.459589"], ["order", 1]]  (1.0ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 39]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:31:44.471718' SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.471425"], ["updated_at", "2015-12-24 07:31:44.471425"], ["order", 0]]  (1.2ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 41]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:31:44.484169' SQL (0.2ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.483952"], ["updated_at", "2015-12-24 07:31:44.483952"], ["order", 0]]  (1.5ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 41]] SQL (1.3ms) DELETE FROM "order_things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:31:44.504263' SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.504001"], ["updated_at", "2015-12-24 07:31:44.504001"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:31:44.516655' SQL (0.2ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:31:44.516449"], ["updated_at", "2015-12-24 07:31:44.516449"], ["order", 0]]  (1.4ms) commit transaction Started GET "/parents/new" for 127.0.0.1 at 2015-12-24 10:31:52 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (24.6ms) Rendered parents/new.html.erb within layouts/application (34.2ms) Completed 200 OK in 1004ms (Views: 951.6ms | ActiveRecord: 1.6ms) Started GET "/assets/application-74d4ef508cb9f93a7458db2aa7708afb98179b78c860a8ba7eeb23f1e18d0945.css" for 127.0.0.1 at 2015-12-24 10:31:53 +0300 Started GET "/assets/application-70c0264bd836b6416e01f0cf971db7f60eef70ed35769d4727e4d6f3100871e7.js" for 127.0.0.1 at 2015-12-24 10:31:53 +0300 Started GET "/assets/jquery.simulate.js?_=1450942313405" for 127.0.0.1 at 2015-12-24 10:31:56 +0300 Started POST "/parents" for 127.0.0.1 at 2015-12-24 10:31:59 +0300 Processing by ParentsController#create as HTML Parameters: {"utf8"=>"✓", "parent"=>{"children_attributes"=>{"2"=>{"name"=>"Child 2", "position"=>"0"}, "0"=>{"name"=>"Child 0", "position"=>"1"}, "1"=>{"name"=>"Child 1", "position"=>"2"}}}, "commit"=>"Create Parent"}  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-12-24 07:31:59.607459"], ["updated_at", "2015-12-24 07:31:59.607459"]] SQL (0.9ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 2"], ["position", 0], ["parent_id", 1], ["created_at", "2015-12-24 07:31:59.615391"], ["updated_at", "2015-12-24 07:31:59.615391"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 0"], ["position", 1], ["parent_id", 1], ["created_at", "2015-12-24 07:31:59.623032"], ["updated_at", "2015-12-24 07:31:59.623032"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 1"], ["position", 2], ["parent_id", 1], ["created_at", "2015-12-24 07:31:59.629166"], ["updated_at", "2015-12-24 07:31:59.629166"]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:54036/parents/1 Completed 302 Found in 33ms (ActiveRecord: 3.3ms) Started GET "/parents/1" for 127.0.0.1 at 2015-12-24 10:31:59 +0300 Processing by ParentsController#show as HTML Parameters: {"id"=>"1"} Parent Load (0.3ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", 1]] Child Load (0.3ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = ? [["parent_id", 1]] Rendered parents/show.html.erb within layouts/application (3.8ms) Completed 200 OK in 13ms (Views: 8.2ms | ActiveRecord: 0.6ms) Started GET "/parents/new" for 127.0.0.1 at 2015-12-24 10:31:59 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (3.8ms) Rendered parents/new.html.erb within layouts/application (4.1ms) Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.3ms) Started GET "/assets/jquery.simulate.js?_=1450942319799" for 127.0.0.1 at 2015-12-24 10:32:02 +0300 Started POST "/parents" for 127.0.0.1 at 2015-12-24 10:32:05 +0300 Processing by ParentsController#create as HTML Parameters: {"utf8"=>"✓", "parent"=>{"children_attributes"=>{"2"=>{"name"=>"Child 2", "position"=>"0"}, "0"=>{"name"=>"Child 0", "position"=>"1"}, "1"=>{"name"=>"Child 1", "position"=>"2"}}}, "commit"=>"Create Parent"}  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-12-24 07:32:05.911745"], ["updated_at", "2015-12-24 07:32:05.911745"]] SQL (0.3ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 2"], ["position", 0], ["parent_id", 2], ["created_at", "2015-12-24 07:32:05.918044"], ["updated_at", "2015-12-24 07:32:05.918044"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 0"], ["position", 1], ["parent_id", 2], ["created_at", "2015-12-24 07:32:05.923946"], ["updated_at", "2015-12-24 07:32:05.923946"]] SQL (0.2ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 1"], ["position", 2], ["parent_id", 2], ["created_at", "2015-12-24 07:32:05.930060"], ["updated_at", "2015-12-24 07:32:05.930060"]]  (1.3ms) commit transaction Redirected to http://127.0.0.1:54036/parents/2 Completed 302 Found in 33ms (ActiveRecord: 2.5ms) Started GET "/parents/2" for 127.0.0.1 at 2015-12-24 10:32:05 +0300 Processing by ParentsController#show as HTML Parameters: {"id"=>"2"} Parent Load (0.3ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", 2]] Child Load (0.3ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = ? [["parent_id", 2]] Rendered parents/show.html.erb within layouts/application (1.8ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.5ms) Started GET "/parents/new" for 127.0.0.1 at 2015-12-24 10:32:06 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (4.2ms) Rendered parents/new.html.erb within layouts/application (4.5ms) Completed 200 OK in 13ms (Views: 9.1ms | ActiveRecord: 0.0ms) Started GET "/assets/jquery.simulate.js?_=1450942326084" for 127.0.0.1 at 2015-12-24 10:32:09 +0300 Started POST "/parents" for 127.0.0.1 at 2015-12-24 10:32:12 +0300 Processing by ParentsController#create as HTML Parameters: {"utf8"=>"✓", "parent"=>{"children_attributes"=>{"1"=>{"name"=>"Child 1", "position"=>"0"}, "2"=>{"name"=>"Child 2", "position"=>"1"}, "0"=>{"name"=>"Child 0", "position"=>"2"}}}, "commit"=>"Create Parent"}  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-12-24 07:32:12.197095"], ["updated_at", "2015-12-24 07:32:12.197095"]] SQL (0.2ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 1"], ["position", 0], ["parent_id", 3], ["created_at", "2015-12-24 07:32:12.203671"], ["updated_at", "2015-12-24 07:32:12.203671"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 2"], ["position", 1], ["parent_id", 3], ["created_at", "2015-12-24 07:32:12.209902"], ["updated_at", "2015-12-24 07:32:12.209902"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 0"], ["position", 2], ["parent_id", 3], ["created_at", "2015-12-24 07:32:12.216497"], ["updated_at", "2015-12-24 07:32:12.216497"]]  (1.1ms) commit transaction Redirected to http://127.0.0.1:54036/parents/3 Completed 302 Found in 35ms (ActiveRecord: 2.2ms) Started GET "/parents/3" for 127.0.0.1 at 2015-12-24 10:32:12 +0300 Processing by ParentsController#show as HTML Parameters: {"id"=>"3"} Parent Load (0.2ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", 3]] Child Load (0.1ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = ? [["parent_id", 3]] Rendered parents/show.html.erb within layouts/application (2.1ms) Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.3ms) Started GET "/parents/new" for 127.0.0.1 at 2015-12-24 10:32:12 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (3.8ms) Rendered parents/new.html.erb within layouts/application (4.0ms) Completed 200 OK in 10ms (Views: 7.2ms | ActiveRecord: 0.0ms) Started GET "/assets/jquery.simulate.js?_=1450942332359" for 127.0.0.1 at 2015-12-24 10:32:15 +0300 Started POST "/parents" for 127.0.0.1 at 2015-12-24 10:32:18 +0300 Processing by ParentsController#create as HTML Parameters: {"utf8"=>"✓", "parent"=>{"children_attributes"=>{"1"=>{"name"=>"Child 1", "position"=>"0"}, "2"=>{"name"=>"Child 2", "position"=>"1"}, "0"=>{"name"=>"Child 0", "position"=>"2"}}}, "commit"=>"Create Parent"}  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-12-24 07:32:18.471159"], ["updated_at", "2015-12-24 07:32:18.471159"]] SQL (0.2ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 1"], ["position", 0], ["parent_id", 4], ["created_at", "2015-12-24 07:32:18.476821"], ["updated_at", "2015-12-24 07:32:18.476821"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 2"], ["position", 1], ["parent_id", 4], ["created_at", "2015-12-24 07:32:18.484185"], ["updated_at", "2015-12-24 07:32:18.484185"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 0"], ["position", 2], ["parent_id", 4], ["created_at", "2015-12-24 07:32:18.490903"], ["updated_at", "2015-12-24 07:32:18.490903"]]  (1.1ms) commit transaction Redirected to http://127.0.0.1:54036/parents/4 Completed 302 Found in 34ms (ActiveRecord: 2.2ms) Started GET "/parents/4" for 127.0.0.1 at 2015-12-24 10:32:18 +0300 Processing by ParentsController#show as HTML Parameters: {"id"=>"4"} Parent Load (0.2ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", 4]] Child Load (0.1ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = ? [["parent_id", 4]] Rendered parents/show.html.erb within layouts/application (1.9ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.3ms) Started GET "/parents/new" for 127.0.0.1 at 2015-12-24 10:32:18 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (4.2ms) Rendered parents/new.html.erb within layouts/application (4.5ms) Completed 200 OK in 11ms (Views: 7.5ms | ActiveRecord: 0.0ms) Started GET "/assets/jquery.simulate.js?_=1450942338630" for 127.0.0.1 at 2015-12-24 10:32:21 +0300 Started POST "/parents" for 127.0.0.1 at 2015-12-24 10:32:24 +0300 Processing by ParentsController#create as HTML Parameters: {"utf8"=>"✓", "parent"=>{"children_attributes"=>{"1"=>{"name"=>"Child 1", "position"=>"0"}, "2"=>{"name"=>"Child 2", "position"=>"1"}, "0"=>{"name"=>"Child 0", "position"=>"2"}}}, "commit"=>"Create Parent"}  (0.1ms) begin transaction SQL (1.1ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-12-24 07:32:24.747640"], ["updated_at", "2015-12-24 07:32:24.747640"]] SQL (0.6ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 1"], ["position", 0], ["parent_id", 5], ["created_at", "2015-12-24 07:32:24.754263"], ["updated_at", "2015-12-24 07:32:24.754263"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 2"], ["position", 1], ["parent_id", 5], ["created_at", "2015-12-24 07:32:24.760133"], ["updated_at", "2015-12-24 07:32:24.760133"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 0"], ["position", 2], ["parent_id", 5], ["created_at", "2015-12-24 07:32:24.765985"], ["updated_at", "2015-12-24 07:32:24.765985"]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:54036/parents/5 Completed 302 Found in 31ms (ActiveRecord: 3.0ms) Started GET "/parents/5" for 127.0.0.1 at 2015-12-24 10:32:24 +0300 Processing by ParentsController#show as HTML Parameters: {"id"=>"5"} Parent Load (0.2ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", 5]] Child Load (0.2ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = ? [["parent_id", 5]] Rendered parents/show.html.erb within layouts/application (2.4ms) Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.3ms) SQL (1.4ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:32:24.875891' SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:32:24.875573"], ["updated_at", "2015-12-24 07:32:24.875573"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:32:24.887217' SQL (0.2ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:32:24.887004"], ["updated_at", "2015-12-24 07:32:24.887004"], ["position", 0]]  (1.1ms) commit transaction Started GET "/" for 127.0.0.1 at 2015-12-24 10:32:24 +0300 Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (2.2ms) Rendered things/index.html.erb within layouts/application (7.9ms) Completed 200 OK in 20ms (Views: 19.4ms | ActiveRecord: 0.3ms) Started GET "/assets/jquery.simulate.js?_=1450942344958" for 127.0.0.1 at 2015-12-24 10:32:28 +0300 Started POST "/things/45/move" for 127.0.0.1 at 2015-12-24 10:32:28 +0300 Processing by ThingsController#move as JS Parameters: {"position"=>"0", "id"=>"45"} Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 45]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:32:28.080197' WHERE ("position" >= 0 AND "position" < 1) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 0], ["updated_at", "2015-12-24 07:32:28.084181"], ["id", 45]]  (1.1ms) commit transaction Rendered things/_thing.html.erb (1.0ms) Rendered things/move.js.erb (27.8ms) Completed 200 OK in 66ms (Views: 54.1ms | ActiveRecord: 2.4ms) Started GET "/" for 127.0.0.1 at 2015-12-24 10:32:31 +0300 Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.4ms) Rendered things/index.html.erb within layouts/application (1.7ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms) Started GET "/assets/application-74d4ef508cb9f93a7458db2aa7708afb98179b78c860a8ba7eeb23f1e18d0945.css" for 127.0.0.1 at 2015-12-24 10:32:31 +0300 Started GET "/assets/application-70c0264bd836b6416e01f0cf971db7f60eef70ed35769d4727e4d6f3100871e7.js" for 127.0.0.1 at 2015-12-24 10:32:31 +0300 SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:32:31.172410' SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:32:31.172088"], ["updated_at", "2015-12-24 07:32:31.172088"], ["position", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:32:31.182145' SQL (0.1ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:32:31.181836"], ["updated_at", "2015-12-24 07:32:31.181836"], ["position", 0]]  (0.9ms) commit transaction Started GET "/" for 127.0.0.1 at 2015-12-24 10:32:31 +0300 Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.4ms) Rendered things/index.html.erb within layouts/application (1.7ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms) Started GET "/assets/jquery.simulate.js?_=1450942351223" for 127.0.0.1 at 2015-12-24 10:32:34 +0300 Started POST "/things/47/move" for 127.0.0.1 at 2015-12-24 10:32:34 +0300 Processing by ThingsController#move as JS Parameters: {"position"=>"0", "id"=>"47"} Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 47]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:32:34.360006' WHERE ("position" >= 0 AND "position" < 1) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 0], ["updated_at", "2015-12-24 07:32:34.363602"], ["id", 47]]  (1.2ms) commit transaction Rendered things/_thing.html.erb (0.4ms) Rendered things/move.js.erb (0.9ms) Completed 200 OK in 11ms (Views: 1.5ms | ActiveRecord: 2.5ms) Started GET "/" for 127.0.0.1 at 2015-12-24 10:32:37 +0300 Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.4ms) Rendered things/index.html.erb within layouts/application (1.5ms) Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.2ms) Started GET "/assets/application-74d4ef508cb9f93a7458db2aa7708afb98179b78c860a8ba7eeb23f1e18d0945.css" for 127.0.0.1 at 2015-12-24 10:32:37 +0300 Started GET "/assets/application-70c0264bd836b6416e01f0cf971db7f60eef70ed35769d4727e4d6f3100871e7.js" for 127.0.0.1 at 2015-12-24 10:32:37 +0300 SQL (1.7ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:32:37.485194' SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:32:37.484666"], ["updated_at", "2015-12-24 07:32:37.484666"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:32:37.496951' SQL (0.2ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:32:37.496715"], ["updated_at", "2015-12-24 07:32:37.496715"], ["position", 0]]  (2.5ms) commit transaction Started GET "/" for 127.0.0.1 at 2015-12-24 10:32:37 +0300 Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.4ms) Rendered things/index.html.erb within layouts/application (1.8ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms) Started GET "/assets/jquery.simulate.js?_=1450942357552" for 127.0.0.1 at 2015-12-24 10:32:40 +0300 Started POST "/things/50/move" for 127.0.0.1 at 2015-12-24 10:32:40 +0300 Processing by ThingsController#move as JS Parameters: {"position"=>"1", "id"=>"50"} Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 50]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:32:40.673763' WHERE ("position" > 0 AND "position" <= 1) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:32:40.677376"], ["id", 50]]  (1.1ms) commit transaction Rendered things/_thing.html.erb (0.2ms) Rendered things/move.js.erb (0.8ms) Completed 200 OK in 12ms (Views: 1.3ms | ActiveRecord: 2.4ms) Started GET "/" for 127.0.0.1 at 2015-12-24 10:32:43 +0300 Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.4ms) Rendered things/index.html.erb within layouts/application (1.5ms) Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.2ms) Started GET "/assets/application-74d4ef508cb9f93a7458db2aa7708afb98179b78c860a8ba7eeb23f1e18d0945.css" for 127.0.0.1 at 2015-12-24 10:32:43 +0300 Started GET "/assets/application-70c0264bd836b6416e01f0cf971db7f60eef70ed35769d4727e4d6f3100871e7.js" for 127.0.0.1 at 2015-12-24 10:32:43 +0300 SQL (1.5ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:32:43.798159' SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:32:43.797903"], ["updated_at", "2015-12-24 07:32:43.797903"], ["position", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:32:43.808480' SQL (0.2ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:32:43.808232"], ["updated_at", "2015-12-24 07:32:43.808232"], ["position", 0]]  (1.0ms) commit transaction Started GET "/" for 127.0.0.1 at 2015-12-24 10:32:43 +0300 Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.4ms) Rendered things/index.html.erb within layouts/application (1.6ms) Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.3ms) Started GET "/assets/jquery.simulate.js?_=1450942363852" for 127.0.0.1 at 2015-12-24 10:32:46 +0300 Started POST "/things/52/move" for 127.0.0.1 at 2015-12-24 10:32:46 +0300 Processing by ThingsController#move as JS Parameters: {"position"=>"1", "id"=>"52"} Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 52]]  (0.1ms) begin transaction SQL (1.3ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:32:46.980478' WHERE ("position" > 0 AND "position" <= 1) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:32:46.984586"], ["id", 52]]  (1.1ms) commit transaction Rendered things/_thing.html.erb (0.3ms) Rendered things/move.js.erb (0.7ms) Completed 200 OK in 11ms (Views: 1.3ms | ActiveRecord: 3.1ms) Started GET "/" for 127.0.0.1 at 2015-12-24 10:32:49 +0300 Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.4ms) Rendered things/index.html.erb within layouts/application (1.6ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.2ms) Started GET "/assets/application-74d4ef508cb9f93a7458db2aa7708afb98179b78c860a8ba7eeb23f1e18d0945.css" for 127.0.0.1 at 2015-12-24 10:32:49 +0300 Started GET "/assets/application-70c0264bd836b6416e01f0cf971db7f60eef70ed35769d4727e4d6f3100871e7.js" for 127.0.0.1 at 2015-12-24 10:32:49 +0300  (1.5ms) CREATE TABLE "children" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "parent_id" integer NOT NULL, "position" integer NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.1ms) select sqlite_version(*)  (1.2ms) CREATE INDEX "index_children_on_position" ON "children" ("position")  (1.3ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "position" integer NOT NULL)  (1.2ms) CREATE INDEX "index_items_on_position" ON "items" ("position")  (1.6ms) CREATE TABLE "order_things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.3ms) CREATE INDEX "index_order_things_on_order" ON "order_things" ("order")  (1.1ms) CREATE TABLE "other_things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "place" integer NOT NULL, "created_at" datetime, "updated_at" datetime)  (1.4ms) CREATE INDEX "index_other_things_on_place" ON "other_things" ("place")  (1.1ms) CREATE TABLE "parents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (1.1ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "position" integer NOT NULL, "created_at" datetime, "updated_at" datetime)   (1.3ms) CREATE INDEX "index_things_on_position" ON "things" ("position")  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150408101403')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140512100816')  (3.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525104834')  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525111906')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525112123')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140721161028')  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140721161122') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" SQL (15.5ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:33:29.274159' SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:33:29.273706"], ["updated_at", "2015-12-24 07:33:29.273706"], ["position", 0]]  (5.4ms) commit transaction  (0.1ms) begin transaction SQL (1.3ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:33:29.305242' SQL (0.2ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:33:29.304986"], ["updated_at", "2015-12-24 07:33:29.304986"], ["position", 0]]  (3.7ms) commit transaction Started GET "/" for 127.0.0.1 at 2015-12-24 10:33:35 +0300 Processing by ThingsController#index as HTML Thing Load (0.6ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (1.3ms) Rendered things/index.html.erb within layouts/application (11.9ms) Completed 200 OK in 469ms (Views: 467.5ms | ActiveRecord: 0.6ms) Started GET "/assets/application-74d4ef508cb9f93a7458db2aa7708afb98179b78c860a8ba7eeb23f1e18d0945.css" for 127.0.0.1 at 2015-12-24 10:33:36 +0300 Started GET "/assets/application-70c0264bd836b6416e01f0cf971db7f60eef70ed35769d4727e4d6f3100871e7.js" for 127.0.0.1 at 2015-12-24 10:33:36 +0300 Started GET "/assets/jquery.simulate.js?_=1450942416325" for 127.0.0.1 at 2015-12-24 10:33:39 +0300 Started POST "/things/1/move" for 127.0.0.1 at 2015-12-24 10:33:39 +0300 Processing by ThingsController#move as JS Parameters: {"position"=>"0", "id"=>"1"} Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:33:39.534548' WHERE ("position" >= 0 AND "position" < 1) SQL (0.7ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 0], ["updated_at", "2015-12-24 07:33:39.538147"], ["id", 1]]  (1.1ms) commit transaction Rendered things/_thing.html.erb (2.0ms) Rendered things/move.js.erb (20.7ms) Completed 200 OK in 66ms (Views: 43.5ms | ActiveRecord: 2.6ms) Started GET "/" for 127.0.0.1 at 2015-12-24 10:33:42 +0300 Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.4ms) Rendered things/index.html.erb within layouts/application (2.3ms) Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.3ms) Started GET "/assets/application-70c0264bd836b6416e01f0cf971db7f60eef70ed35769d4727e4d6f3100871e7.js" for 127.0.0.1 at 2015-12-24 10:33:42 +0300 Started GET "/assets/application-74d4ef508cb9f93a7458db2aa7708afb98179b78c860a8ba7eeb23f1e18d0945.css" for 127.0.0.1 at 2015-12-24 10:33:42 +0300 SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:33:42.639401' SQL (0.7ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:33:42.639127"], ["updated_at", "2015-12-24 07:33:42.639127"], ["position", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:33:42.650767' SQL (0.1ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:33:42.650014"], ["updated_at", "2015-12-24 07:33:42.650014"], ["position", 0]]  (0.9ms) commit transaction Started GET "/" for 127.0.0.1 at 2015-12-24 10:33:42 +0300 Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.5ms) Rendered things/index.html.erb within layouts/application (2.7ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.3ms) Started GET "/assets/jquery.simulate.js?_=1450942422696" for 127.0.0.1 at 2015-12-24 10:33:45 +0300 Started POST "/things/3/move" for 127.0.0.1 at 2015-12-24 10:33:45 +0300 Processing by ThingsController#move as JS Parameters: {"position"=>"0", "id"=>"3"} Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.7ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:33:45.831525' WHERE ("position" >= 0 AND "position" < 1) SQL (0.7ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 0], ["updated_at", "2015-12-24 07:33:45.835892"], ["id", 3]]  (1.1ms) commit transaction Rendered things/_thing.html.erb (1.1ms) Rendered things/move.js.erb (1.6ms) Completed 200 OK in 15ms (Views: 2.2ms | ActiveRecord: 2.8ms) Started GET "/" for 127.0.0.1 at 2015-12-24 10:33:48 +0300 Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.4ms) Rendered things/index.html.erb within layouts/application (1.8ms) Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.3ms) Started GET "/assets/application-74d4ef508cb9f93a7458db2aa7708afb98179b78c860a8ba7eeb23f1e18d0945.css" for 127.0.0.1 at 2015-12-24 10:33:48 +0300 Started GET "/assets/application-70c0264bd836b6416e01f0cf971db7f60eef70ed35769d4727e4d6f3100871e7.js" for 127.0.0.1 at 2015-12-24 10:33:48 +0300 SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:33:48.934975' SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:33:48.934327"], ["updated_at", "2015-12-24 07:33:48.934327"], ["position", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:33:48.944738' SQL (0.1ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:33:48.944493"], ["updated_at", "2015-12-24 07:33:48.944493"], ["position", 0]]  (1.6ms) commit transaction Started GET "/" for 127.0.0.1 at 2015-12-24 10:33:48 +0300 Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.4ms) Rendered things/index.html.erb within layouts/application (1.6ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.3ms) Started GET "/assets/jquery.simulate.js?_=1450942428990" for 127.0.0.1 at 2015-12-24 10:33:52 +0300 Started POST "/things/6/move" for 127.0.0.1 at 2015-12-24 10:33:52 +0300 Processing by ThingsController#move as JS Parameters: {"position"=>"1", "id"=>"6"} Thing Load (0.5ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 6]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:33:52.116132' WHERE ("position" > 0 AND "position" <= 1) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:33:52.119372"], ["id", 6]]  (1.1ms) commit transaction Rendered things/_thing.html.erb (0.6ms) Rendered things/move.js.erb (1.0ms) Completed 200 OK in 11ms (Views: 1.6ms | ActiveRecord: 2.7ms) Started GET "/" for 127.0.0.1 at 2015-12-24 10:33:55 +0300 Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.4ms) Rendered things/index.html.erb within layouts/application (2.2ms) Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.2ms) Started GET "/assets/application-74d4ef508cb9f93a7458db2aa7708afb98179b78c860a8ba7eeb23f1e18d0945.css" for 127.0.0.1 at 2015-12-24 10:33:55 +0300 Started GET "/assets/application-70c0264bd836b6416e01f0cf971db7f60eef70ed35769d4727e4d6f3100871e7.js" for 127.0.0.1 at 2015-12-24 10:33:55 +0300 SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.3ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:33:55.228127' SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:33:55.227442"], ["updated_at", "2015-12-24 07:33:55.227442"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:33:55.237993' SQL (0.2ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:33:55.237742"], ["updated_at", "2015-12-24 07:33:55.237742"], ["position", 0]]  (0.8ms) commit transaction Started GET "/" for 127.0.0.1 at 2015-12-24 10:33:55 +0300 Processing by ThingsController#index as HTML Thing Load (0.8ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.4ms) Rendered things/index.html.erb within layouts/application (2.4ms) Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.8ms) Started GET "/assets/jquery.simulate.js?_=1450942435280" for 127.0.0.1 at 2015-12-24 10:33:58 +0300 Started POST "/things/8/move" for 127.0.0.1 at 2015-12-24 10:33:58 +0300 Processing by ThingsController#move as JS Parameters: {"position"=>"1", "id"=>"8"} Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 8]]  (0.1ms) begin transaction SQL (0.8ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:33:58.463702' WHERE ("position" > 0 AND "position" <= 1) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:33:58.468165"], ["id", 8]]  (1.3ms) commit transaction Rendered things/_thing.html.erb (0.6ms) Rendered things/move.js.erb (1.1ms) Completed 200 OK in 13ms (Views: 1.6ms | ActiveRecord: 2.8ms) Started GET "/" for 127.0.0.1 at 2015-12-24 10:34:01 +0300 Processing by ThingsController#index as HTML Thing Load (0.8ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.4ms) Rendered things/index.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.8ms) Started GET "/assets/application-74d4ef508cb9f93a7458db2aa7708afb98179b78c860a8ba7eeb23f1e18d0945.css" for 127.0.0.1 at 2015-12-24 10:34:01 +0300 Started GET "/assets/application-70c0264bd836b6416e01f0cf971db7f60eef70ed35769d4727e4d6f3100871e7.js" for 127.0.0.1 at 2015-12-24 10:34:01 +0300 Started GET "/parents/new" for 127.0.0.1 at 2015-12-24 10:34:01 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (30.4ms) Rendered parents/new.html.erb within layouts/application (33.4ms) Completed 200 OK in 100ms (Views: 44.8ms | ActiveRecord: 1.2ms) Started GET "/assets/jquery.simulate.js?_=1450942441657" for 127.0.0.1 at 2015-12-24 10:34:04 +0300 Started POST "/parents" for 127.0.0.1 at 2015-12-24 10:34:07 +0300 Processing by ParentsController#create as HTML Parameters: {"utf8"=>"✓", "parent"=>{"children_attributes"=>{"2"=>{"name"=>"Child 2", "position"=>"0"}, "0"=>{"name"=>"Child 0", "position"=>"1"}, "1"=>{"name"=>"Child 1", "position"=>"2"}}}, "commit"=>"Create Parent"}  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-12-24 07:34:07.789170"], ["updated_at", "2015-12-24 07:34:07.789170"]] SQL (0.3ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 2"], ["position", 0], ["parent_id", 1], ["created_at", "2015-12-24 07:34:07.796186"], ["updated_at", "2015-12-24 07:34:07.796186"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 0"], ["position", 1], ["parent_id", 1], ["created_at", "2015-12-24 07:34:07.802696"], ["updated_at", "2015-12-24 07:34:07.802696"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 1"], ["position", 2], ["parent_id", 1], ["created_at", "2015-12-24 07:34:07.812992"], ["updated_at", "2015-12-24 07:34:07.812992"]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:54063/parents/1 Completed 302 Found in 56ms (ActiveRecord: 2.3ms) Started GET "/parents/1" for 127.0.0.1 at 2015-12-24 10:34:07 +0300 Processing by ParentsController#show as HTML Parameters: {"id"=>"1"} Parent Load (0.3ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", 1]] Child Load (0.4ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = ? [["parent_id", 1]] Rendered parents/show.html.erb within layouts/application (4.2ms) Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.7ms) Started GET "/parents/new" for 127.0.0.1 at 2015-12-24 10:34:07 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (2.6ms) Rendered parents/new.html.erb within layouts/application (3.1ms) Completed 200 OK in 8ms (Views: 4.7ms | ActiveRecord: 0.3ms) Started GET "/assets/jquery.simulate.js?_=1450942447959" for 127.0.0.1 at 2015-12-24 10:34:11 +0300 Started POST "/parents" for 127.0.0.1 at 2015-12-24 10:34:14 +0300 Processing by ParentsController#create as HTML Parameters: {"utf8"=>"✓", "parent"=>{"children_attributes"=>{"2"=>{"name"=>"Child 2", "position"=>"0"}, "0"=>{"name"=>"Child 0", "position"=>"1"}, "1"=>{"name"=>"Child 1", "position"=>"2"}}}, "commit"=>"Create Parent"}  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-12-24 07:34:14.066570"], ["updated_at", "2015-12-24 07:34:14.066570"]] SQL (0.2ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 2"], ["position", 0], ["parent_id", 2], ["created_at", "2015-12-24 07:34:14.073237"], ["updated_at", "2015-12-24 07:34:14.073237"]] SQL (0.2ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 0"], ["position", 1], ["parent_id", 2], ["created_at", "2015-12-24 07:34:14.078734"], ["updated_at", "2015-12-24 07:34:14.078734"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 1"], ["position", 2], ["parent_id", 2], ["created_at", "2015-12-24 07:34:14.084614"], ["updated_at", "2015-12-24 07:34:14.084614"]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:54063/parents/2 Completed 302 Found in 28ms (ActiveRecord: 2.2ms) Started GET "/parents/2" for 127.0.0.1 at 2015-12-24 10:34:14 +0300 Processing by ParentsController#show as HTML Parameters: {"id"=>"2"} Parent Load (0.2ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", 2]] Child Load (0.2ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = ? [["parent_id", 2]] Rendered parents/show.html.erb within layouts/application (1.6ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.4ms) Started GET "/parents/new" for 127.0.0.1 at 2015-12-24 10:34:14 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (2.5ms) Rendered parents/new.html.erb within layouts/application (2.8ms) Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.0ms) Started GET "/assets/jquery.simulate.js?_=1450942454225" for 127.0.0.1 at 2015-12-24 10:34:17 +0300 Started POST "/parents" for 127.0.0.1 at 2015-12-24 10:34:20 +0300 Processing by ParentsController#create as HTML Parameters: {"utf8"=>"✓", "parent"=>{"children_attributes"=>{"1"=>{"name"=>"Child 1", "position"=>"0"}, "2"=>{"name"=>"Child 2", "position"=>"1"}, "0"=>{"name"=>"Child 0", "position"=>"2"}}}, "commit"=>"Create Parent"}  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-12-24 07:34:20.334953"], ["updated_at", "2015-12-24 07:34:20.334953"]] SQL (0.2ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 1"], ["position", 0], ["parent_id", 3], ["created_at", "2015-12-24 07:34:20.341075"], ["updated_at", "2015-12-24 07:34:20.341075"]] SQL (0.2ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 2"], ["position", 1], ["parent_id", 3], ["created_at", "2015-12-24 07:34:20.346602"], ["updated_at", "2015-12-24 07:34:20.346602"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 0"], ["position", 2], ["parent_id", 3], ["created_at", "2015-12-24 07:34:20.352150"], ["updated_at", "2015-12-24 07:34:20.352150"]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:54063/parents/3 Completed 302 Found in 28ms (ActiveRecord: 2.0ms) Started GET "/parents/3" for 127.0.0.1 at 2015-12-24 10:34:20 +0300 Processing by ParentsController#show as HTML Parameters: {"id"=>"3"} Parent Load (0.2ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", 3]] Child Load (0.1ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = ? [["parent_id", 3]] Rendered parents/show.html.erb within layouts/application (1.2ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms) Started GET "/parents/new" for 127.0.0.1 at 2015-12-24 10:34:20 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (2.1ms) Rendered parents/new.html.erb within layouts/application (2.3ms) Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started GET "/assets/jquery.simulate.js?_=1450942460488" for 127.0.0.1 at 2015-12-24 10:34:23 +0300 Started POST "/parents" for 127.0.0.1 at 2015-12-24 10:34:26 +0300 Processing by ParentsController#create as HTML Parameters: {"utf8"=>"✓", "parent"=>{"children_attributes"=>{"1"=>{"name"=>"Child 1", "position"=>"0"}, "2"=>{"name"=>"Child 2", "position"=>"1"}, "0"=>{"name"=>"Child 0", "position"=>"2"}}}, "commit"=>"Create Parent"}  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-12-24 07:34:26.612615"], ["updated_at", "2015-12-24 07:34:26.612615"]] SQL (0.3ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 1"], ["position", 0], ["parent_id", 4], ["created_at", "2015-12-24 07:34:26.618632"], ["updated_at", "2015-12-24 07:34:26.618632"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 2"], ["position", 1], ["parent_id", 4], ["created_at", "2015-12-24 07:34:26.624525"], ["updated_at", "2015-12-24 07:34:26.624525"]] SQL (0.2ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 0"], ["position", 2], ["parent_id", 4], ["created_at", "2015-12-24 07:34:26.631102"], ["updated_at", "2015-12-24 07:34:26.631102"]]  (1.1ms) commit transaction Redirected to http://127.0.0.1:54063/parents/4 Completed 302 Found in 30ms (ActiveRecord: 2.3ms) Started GET "/parents/4" for 127.0.0.1 at 2015-12-24 10:34:26 +0300 Processing by ParentsController#show as HTML Parameters: {"id"=>"4"} Parent Load (0.2ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", 4]] Child Load (0.1ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = ? [["parent_id", 4]] Rendered parents/show.html.erb within layouts/application (1.6ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms) Started GET "/parents/new" for 127.0.0.1 at 2015-12-24 10:34:26 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (2.1ms) Rendered parents/new.html.erb within layouts/application (2.4ms) Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.0ms) Started GET "/assets/jquery.simulate.js?_=1450942466756" for 127.0.0.1 at 2015-12-24 10:34:29 +0300 Started POST "/parents" for 127.0.0.1 at 2015-12-24 10:34:32 +0300 Processing by ParentsController#create as HTML Parameters: {"utf8"=>"✓", "parent"=>{"children_attributes"=>{"1"=>{"name"=>"Child 1", "position"=>"0"}, "2"=>{"name"=>"Child 2", "position"=>"1"}, "0"=>{"name"=>"Child 0", "position"=>"2"}}}, "commit"=>"Create Parent"}  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-12-24 07:34:32.873492"], ["updated_at", "2015-12-24 07:34:32.873492"]] SQL (0.2ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 1"], ["position", 0], ["parent_id", 5], ["created_at", "2015-12-24 07:34:32.879719"], ["updated_at", "2015-12-24 07:34:32.879719"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 2"], ["position", 1], ["parent_id", 5], ["created_at", "2015-12-24 07:34:32.886688"], ["updated_at", "2015-12-24 07:34:32.886688"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 0"], ["position", 2], ["parent_id", 5], ["created_at", "2015-12-24 07:34:32.892910"], ["updated_at", "2015-12-24 07:34:32.892910"]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:54063/parents/5 Completed 302 Found in 29ms (ActiveRecord: 2.1ms) Started GET "/parents/5" for 127.0.0.1 at 2015-12-24 10:34:32 +0300 Processing by ParentsController#show as HTML Parameters: {"id"=>"5"} Parent Load (0.2ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", 5]] Child Load (0.1ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = ? [["parent_id", 5]] Rendered parents/show.html.erb within layouts/application (1.6ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms) SQL (1.3ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.001274"], ["updated_at", "2015-12-24 07:34:33.001274"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.010146"], ["updated_at", "2015-12-24 07:34:33.010146"], ["order", 1]]  (0.9ms) commit transaction SQL (1.4ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.020935"], ["updated_at", "2015-12-24 07:34:33.020935"], ["order", 0]]  (0.9ms) commit transaction OrderThing Load (0.3ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.034558"], ["updated_at", "2015-12-24 07:34:33.034558"], ["order", 1]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 3]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:34:33.046076' SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.045836"], ["updated_at", "2015-12-24 07:34:33.045836"], ["order", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:34:33.056094' SQL (0.1ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.055881"], ["updated_at", "2015-12-24 07:34:33.055881"], ["order", 0]]  (0.9ms) commit transaction SQL (1.4ms) DELETE FROM "order_things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:34:33.069783' SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.069523"], ["updated_at", "2015-12-24 07:34:33.069523"], ["order", 0]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 7]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:34:33.081028' SQL (0.1ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.080828"], ["updated_at", "2015-12-24 07:34:33.080828"], ["order", 0]]  (0.8ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 7]] SQL (1.3ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.093745"], ["updated_at", "2015-12-24 07:34:33.093745"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.101604"], ["updated_at", "2015-12-24 07:34:33.101604"], ["order", 1]]  (0.9ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" ORDER BY "order_things"."order" ASC SQL (1.3ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.114236"], ["updated_at", "2015-12-24 07:34:33.114236"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.121752"], ["updated_at", "2015-12-24 07:34:33.121752"], ["order", 1]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.131468"], ["updated_at", "2015-12-24 07:34:33.131468"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 11]]  (0.2ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:34:33.141215' WHERE ("order" > 0 AND "order" <= 1) SQL (0.7ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:34:33.144832"], ["id", 11]]  (1.0ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 11]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.153092"], ["updated_at", "2015-12-24 07:34:33.153092"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.161067"], ["updated_at", "2015-12-24 07:34:33.161067"], ["order", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.169081"], ["updated_at", "2015-12-24 07:34:33.169081"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 15]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:34:33.177771' WHERE ("order" > 0 AND "order" <= 1) SQL (0.5ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:34:33.180801"], ["id", 14]]  (1.0ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 15]] SQL (1.3ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.189289"], ["updated_at", "2015-12-24 07:34:33.189289"], ["order", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.196474"], ["updated_at", "2015-12-24 07:34:33.196474"], ["order", 1]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.203830"], ["updated_at", "2015-12-24 07:34:33.203830"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 19]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:34:33.212388' WHERE ("order" > 0 AND "order" <= 1) SQL (0.4ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:34:33.215344"], ["id", 17]]  (1.0ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 19]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.223777"], ["updated_at", "2015-12-24 07:34:33.223777"], ["order", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.231178"], ["updated_at", "2015-12-24 07:34:33.231178"], ["order", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.238830"], ["updated_at", "2015-12-24 07:34:33.238830"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 20]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:34:33.246927' WHERE ("order" > 0 AND "order" <= 1) SQL (0.5ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:34:33.250328"], ["id", 20]]  (1.2ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 20]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.259198"], ["updated_at", "2015-12-24 07:34:33.259198"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.267331"], ["updated_at", "2015-12-24 07:34:33.267331"], ["order", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.274589"], ["updated_at", "2015-12-24 07:34:33.274589"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 24]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:34:33.282975' WHERE ("order" > 0 AND "order" <= 1) SQL (0.5ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:34:33.286017"], ["id", 23]]  (1.2ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 24]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.295001"], ["updated_at", "2015-12-24 07:34:33.295001"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.303420"], ["updated_at", "2015-12-24 07:34:33.303420"], ["order", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.311814"], ["updated_at", "2015-12-24 07:34:33.311814"], ["order", 2]]  (1.2ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 28]]  (0.1ms) begin transaction SQL (0.7ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:34:33.321482' WHERE ("order" >= 1 AND "order" < 2) SQL (0.5ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:34:33.325304"], ["id", 28]]  (0.9ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 28]] SQL (1.4ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.334739"], ["updated_at", "2015-12-24 07:34:33.334739"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.343351"], ["updated_at", "2015-12-24 07:34:33.343351"], ["order", 1]]  (1.3ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.351991"], ["updated_at", "2015-12-24 07:34:33.351991"], ["order", 2]]  (0.8ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 30]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:34:33.361093' WHERE ("order" >= 1 AND "order" < 2) SQL (0.9ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:34:33.364841"], ["id", 31]]  (1.3ms) commit transaction OrderThing Load (0.3ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 30]] SQL (1.6ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.378624"], ["updated_at", "2015-12-24 07:34:33.378624"], ["order", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.390736"], ["updated_at", "2015-12-24 07:34:33.390736"], ["order", 1]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.398324"], ["updated_at", "2015-12-24 07:34:33.398324"], ["order", 2]]  (0.8ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 34]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:34:33.407985' WHERE ("order" >= 1 AND "order" < 2) SQL (0.8ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:34:33.411582"], ["id", 34]]  (1.7ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 34]] SQL (1.4ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.421185"], ["updated_at", "2015-12-24 07:34:33.421185"], ["order", 0]]  (2.2ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.430389"], ["updated_at", "2015-12-24 07:34:33.430389"], ["order", 1]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.439100"], ["updated_at", "2015-12-24 07:34:33.439100"], ["order", 2]]  (0.8ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 36]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:34:33.449802' WHERE ("order" >= 1 AND "order" < 2) SQL (0.8ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:34:33.453477"], ["id", 37]]  (1.0ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 36]] SQL (1.5ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.465743"], ["updated_at", "2015-12-24 07:34:33.465743"], ["order", 0]]  (2.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.478121"], ["updated_at", "2015-12-24 07:34:33.478121"], ["order", 1]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.487184"], ["updated_at", "2015-12-24 07:34:33.487184"], ["order", 2]]  (1.0ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 38]]  (0.1ms) begin transaction SQL (0.7ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:34:33.497228' WHERE ("order" >= 1 AND "order" < 2) SQL (0.7ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:34:33.503155"], ["id", 40]]  (1.2ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 38]] SQL (2.7ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (12.1ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.531713"], ["updated_at", "2015-12-24 07:34:33.531713"], ["order", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.554629"], ["updated_at", "2015-12-24 07:34:33.554629"], ["order", 1]]  (0.8ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 42]]  (0.1ms) begin transaction SQL (0.5ms) DELETE FROM "order_things" WHERE "order_things"."id" = ? [["id", 41]] SQL (0.6ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:34:33.565123' WHERE ("order" > 0)  (2.5ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 42]] SQL (1.9ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.580513"], ["updated_at", "2015-12-24 07:34:33.580513"], ["order", 0]]  (1.4ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.591599"], ["updated_at", "2015-12-24 07:34:33.591599"], ["order", 1]]  (0.8ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 44]]  (0.1ms) begin transaction SQL (0.5ms) DELETE FROM "order_things" WHERE "order_things"."id" = ? [["id", 43]] SQL (0.8ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:34:33.601357' WHERE ("order" > 0)  (2.3ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 44]] SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.620715"], ["updated_at", "2015-12-24 07:34:33.620715"], ["place", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.629110"], ["updated_at", "2015-12-24 07:34:33.629110"], ["place", 1]]  (3.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.8ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.639740"], ["updated_at", "2015-12-24 07:34:33.639740"], ["place", 2]]  (1.1ms) commit transaction OtherThing Load (0.3ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.8ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:34:33.653487' WHERE ("place" >= 1 AND "place" < 2) SQL (0.7ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:34:33.657568"], ["id", 3]]  (2.2ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 3]] SQL (2.0ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.7ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.668867"], ["updated_at", "2015-12-24 07:34:33.668867"], ["place", 0]]  (1.6ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.679769"], ["updated_at", "2015-12-24 07:34:33.679769"], ["place", 1]]  (2.6ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.691795"], ["updated_at", "2015-12-24 07:34:33.691795"], ["place", 2]]  (0.8ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:34:33.700562' WHERE ("place" >= 1 AND "place" < 2) SQL (0.5ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:34:33.704569"], ["id", 6]]  (1.1ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 5]] SQL (1.1ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.713559"], ["updated_at", "2015-12-24 07:34:33.713559"], ["place", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.722502"], ["updated_at", "2015-12-24 07:34:33.722502"], ["place", 1]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.730278"], ["updated_at", "2015-12-24 07:34:33.730278"], ["place", 2]]  (0.8ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 9]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:34:33.739897' WHERE ("place" >= 1 AND "place" < 2) SQL (0.6ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:34:33.743060"], ["id", 9]]  (2.4ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 9]] SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.754154"], ["updated_at", "2015-12-24 07:34:33.754154"], ["place", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.765819"], ["updated_at", "2015-12-24 07:34:33.765819"], ["place", 1]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.8ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.773323"], ["updated_at", "2015-12-24 07:34:33.773323"], ["place", 2]]  (1.0ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 10]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:34:33.783953' WHERE ("place" >= 1 AND "place" < 2) SQL (0.5ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:34:33.787511"], ["id", 12]]  (1.2ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 10]] SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.796781"], ["updated_at", "2015-12-24 07:34:33.796781"], ["place", 0]]  (2.3ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.805812"], ["updated_at", "2015-12-24 07:34:33.805812"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.813280"], ["updated_at", "2015-12-24 07:34:33.813280"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 14]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:34:33.822365' WHERE ("place" >= 1 AND "place" < 2) SQL (0.5ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:34:33.825495"], ["id", 15]]  (1.3ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 14]] SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.834517"], ["updated_at", "2015-12-24 07:34:33.834517"], ["place", 0]]  (1.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.842182"], ["updated_at", "2015-12-24 07:34:33.842182"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.849627"], ["updated_at", "2015-12-24 07:34:33.849627"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 16]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:34:33.859502' WHERE ("place" > 0 AND "place" <= 1) SQL (0.5ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:34:33.862756"], ["id", 16]]  (1.7ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 16]] SQL (1.4ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.872217"], ["updated_at", "2015-12-24 07:34:33.872217"], ["place", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.881073"], ["updated_at", "2015-12-24 07:34:33.881073"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.890997"], ["updated_at", "2015-12-24 07:34:33.890997"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 20]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:34:33.898946' WHERE ("place" > 0 AND "place" <= 1) SQL (0.4ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:34:33.903193"], ["id", 19]]  (1.1ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 20]] SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.911305"], ["updated_at", "2015-12-24 07:34:33.911305"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.919543"], ["updated_at", "2015-12-24 07:34:33.919543"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.926589"], ["updated_at", "2015-12-24 07:34:33.926589"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 23]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:34:33.935681' WHERE ("place" > 0 AND "place" <= 1) SQL (0.4ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:34:33.939323"], ["id", 22]]  (1.4ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 23]] SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.948075"], ["updated_at", "2015-12-24 07:34:33.948075"], ["place", 0]]  (5.4ms) commit transaction  (0.3ms) begin transaction  (0.3ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.960675"], ["updated_at", "2015-12-24 07:34:33.960675"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.968618"], ["updated_at", "2015-12-24 07:34:33.968618"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 25]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:34:33.978400' WHERE ("place" > 0 AND "place" <= 1) SQL (0.4ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:34:33.981590"], ["id", 25]]  (2.3ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 25]] SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:33.991788"], ["updated_at", "2015-12-24 07:34:33.991788"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.001716"], ["updated_at", "2015-12-24 07:34:34.001716"], ["place", 1]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.009532"], ["updated_at", "2015-12-24 07:34:34.009532"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 30]]  (0.1ms) begin transaction SQL (0.7ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:34:34.021490' WHERE ("place" > 0 AND "place" <= 1) SQL (0.5ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:34:34.024992"], ["id", 28]]  (1.3ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 30]] SQL (1.1ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.034856"], ["updated_at", "2015-12-24 07:34:34.034856"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.045438"], ["updated_at", "2015-12-24 07:34:34.045438"], ["place", 1]]  (0.8ms) commit transaction OtherThing Load (0.3ms) SELECT "other_things".* FROM "other_things" ORDER BY "other_things"."place" ASC SQL (1.4ms) DELETE FROM "other_things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:34:34.058520' SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.058276"], ["updated_at", "2015-12-24 07:34:34.058276"], ["place", 0]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:34:34.068441' SQL (0.2ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.068210"], ["updated_at", "2015-12-24 07:34:34.068210"], ["place", 0]]  (1.2ms) commit transaction SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:34:34.081337' SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.081098"], ["updated_at", "2015-12-24 07:34:34.081098"], ["place", 0]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 35]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:34:34.092466' SQL (0.2ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.092275"], ["updated_at", "2015-12-24 07:34:34.092275"], ["place", 0]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 35]] SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.5ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.105976"], ["updated_at", "2015-12-24 07:34:34.105976"], ["place", 0]]  (1.3ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 37]]  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.115290"], ["updated_at", "2015-12-24 07:34:34.115290"], ["place", 1]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 37]] SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.127308"], ["updated_at", "2015-12-24 07:34:34.127308"], ["place", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.135196"], ["updated_at", "2015-12-24 07:34:34.135196"], ["place", 1]]  (0.9ms) commit transaction SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.7ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.146618"], ["updated_at", "2015-12-24 07:34:34.146618"], ["place", 0]]  (1.3ms) commit transaction  (0.2ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.154903"], ["updated_at", "2015-12-24 07:34:34.154903"], ["place", 1]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 42]]  (0.1ms) begin transaction SQL (0.8ms) DELETE FROM "other_things" WHERE "other_things"."id" = ? [["id", 41]] SQL (0.6ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:34:34.165600' WHERE ("place" > 0)  (1.0ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 42]] SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.173513"], ["updated_at", "2015-12-24 07:34:34.173513"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.181813"], ["updated_at", "2015-12-24 07:34:34.181813"], ["place", 1]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 44]]  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "other_things" WHERE "other_things"."id" = ? [["id", 43]] SQL (0.6ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:34:34.190432' WHERE ("place" > 0)  (1.1ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 44]] SQL (1.5ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.200089"], ["updated_at", "2015-12-24 07:34:34.200089"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.208557"], ["updated_at", "2015-12-24 07:34:34.208557"], ["position", 1]]  (1.0ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 10]]  (0.1ms) begin transaction SQL (0.7ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 9]] SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:34:34.218298' WHERE ("position" > 0)  (1.1ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 10]] SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.226288"], ["updated_at", "2015-12-24 07:34:34.226288"], ["position", 0]]  (1.4ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.234369"], ["updated_at", "2015-12-24 07:34:34.234369"], ["position", 1]]  (0.8ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 12]]  (0.1ms) begin transaction SQL (0.7ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 11]] SQL (0.6ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:34:34.243596' WHERE ("position" > 0)  (1.1ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 12]] SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (1.0ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.252521"], ["updated_at", "2015-12-24 07:34:34.252521"], ["position", 0]]  (1.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.261771"], ["updated_at", "2015-12-24 07:34:34.261771"], ["position", 1]]  (1.2ms) commit transaction Thing Load (0.3ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.9ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.273514"], ["updated_at", "2015-12-24 07:34:34.273514"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.281570"], ["updated_at", "2015-12-24 07:34:34.281570"], ["position", 1]]  (0.9ms) commit transaction SQL (1.5ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.292929"], ["updated_at", "2015-12-24 07:34:34.292929"], ["position", 0]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 17]]  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.301101"], ["updated_at", "2015-12-24 07:34:34.301101"], ["position", 1]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 17]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:34:34.312807' SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.312528"], ["updated_at", "2015-12-24 07:34:34.312528"], ["position", 0]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:34:34.362237' SQL (0.2ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.361831"], ["updated_at", "2015-12-24 07:34:34.361831"], ["position", 0]]  (0.9ms) commit transaction SQL (1.7ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:34:34.380197' SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.379873"], ["updated_at", "2015-12-24 07:34:34.379873"], ["position", 0]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 21]]  (0.1ms) begin transaction SQL (1.0ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:34:34.395048' SQL (0.2ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.394844"], ["updated_at", "2015-12-24 07:34:34.394844"], ["position", 0]]  (1.0ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 21]] SQL (1.4ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.415610"], ["updated_at", "2015-12-24 07:34:34.415610"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.424825"], ["updated_at", "2015-12-24 07:34:34.424825"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.432315"], ["updated_at", "2015-12-24 07:34:34.432315"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 24]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:34:34.441234' WHERE ("position" >= 1 AND "position" < 2) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:34:34.444497"], ["id", 25]]  (1.4ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 24]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (2.2ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.453398"], ["updated_at", "2015-12-24 07:34:34.453398"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.463152"], ["updated_at", "2015-12-24 07:34:34.463152"], ["position", 1]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.470282"], ["updated_at", "2015-12-24 07:34:34.470282"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 26]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:34:34.479079' WHERE ("position" >= 1 AND "position" < 2) SQL (0.4ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:34:34.482076"], ["id", 28]]  (1.4ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 26]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (1.7ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.491103"], ["updated_at", "2015-12-24 07:34:34.491103"], ["position", 0]]  (1.2ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.500300"], ["updated_at", "2015-12-24 07:34:34.500300"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.507568"], ["updated_at", "2015-12-24 07:34:34.507568"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 30]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:34:34.516292' WHERE ("position" >= 1 AND "position" < 2) SQL (0.4ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:34:34.519439"], ["id", 31]]  (1.0ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 30]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.528120"], ["updated_at", "2015-12-24 07:34:34.528120"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.535426"], ["updated_at", "2015-12-24 07:34:34.535426"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.543690"], ["updated_at", "2015-12-24 07:34:34.543690"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 34]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:34:34.551820' WHERE ("position" >= 1 AND "position" < 2) SQL (0.6ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:34:34.555610"], ["id", 34]]  (1.1ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 34]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.564438"], ["updated_at", "2015-12-24 07:34:34.564438"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.573689"], ["updated_at", "2015-12-24 07:34:34.573689"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.580789"], ["updated_at", "2015-12-24 07:34:34.580789"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 37]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:34:34.589807' WHERE ("position" >= 1 AND "position" < 2) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:34:34.592811"], ["id", 37]]  (1.4ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 37]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.602002"], ["updated_at", "2015-12-24 07:34:34.602002"], ["position", 0]]  (1.1ms) commit transaction  (0.1ms) begin transaction  (0.3ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.609828"], ["updated_at", "2015-12-24 07:34:34.609828"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.617070"], ["updated_at", "2015-12-24 07:34:34.617070"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 40]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:34:34.625805' WHERE ("position" > 0 AND "position" <= 1) SQL (0.4ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:34:34.628918"], ["id", 38]]  (1.0ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 40]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.637715"], ["updated_at", "2015-12-24 07:34:34.637715"], ["position", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.7ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.645104"], ["updated_at", "2015-12-24 07:34:34.645104"], ["position", 1]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.653594"], ["updated_at", "2015-12-24 07:34:34.653594"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 42]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:34:34.661774' WHERE ("position" > 0 AND "position" <= 1) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:34:34.666743"], ["id", 41]]  (1.1ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 42]] SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.675525"], ["updated_at", "2015-12-24 07:34:34.675525"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.684644"], ["updated_at", "2015-12-24 07:34:34.684644"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.691830"], ["updated_at", "2015-12-24 07:34:34.691830"], ["position", 2]]  (0.8ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 44]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:34:34.700680' WHERE ("position" > 0 AND "position" <= 1) SQL (0.4ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:34:34.703908"], ["id", 44]]  (1.4ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 44]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.712745"], ["updated_at", "2015-12-24 07:34:34.712745"], ["position", 0]]  (1.2ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.720426"], ["updated_at", "2015-12-24 07:34:34.720426"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.727786"], ["updated_at", "2015-12-24 07:34:34.727786"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 48]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:34:34.736468' WHERE ("position" > 0 AND "position" <= 1) SQL (0.4ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:34:34.739537"], ["id", 47]]  (1.5ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 48]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.748427"], ["updated_at", "2015-12-24 07:34:34.748427"], ["position", 0]]  (1.3ms) commit transaction  (0.2ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.756411"], ["updated_at", "2015-12-24 07:34:34.756411"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:34:34.763565"], ["updated_at", "2015-12-24 07:34:34.763565"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 50]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:34:34.772824' WHERE ("position" > 0 AND "position" <= 1) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:34:34.775980"], ["id", 50]]  (1.1ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 50]]  (1.4ms) CREATE TABLE "children" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "parent_id" integer NOT NULL, "position" integer NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.1ms) select sqlite_version(*)  (1.2ms) CREATE INDEX "index_children_on_position" ON "children" ("position")  (1.2ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "position" integer NOT NULL)  (1.1ms) CREATE INDEX "index_items_on_position" ON "items" ("position")  (1.0ms) CREATE TABLE "order_things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.0ms) CREATE INDEX "index_order_things_on_order" ON "order_things" ("order")  (1.7ms) CREATE TABLE "other_things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "place" integer NOT NULL, "created_at" datetime, "updated_at" datetime)  (1.3ms) CREATE INDEX "index_other_things_on_place" ON "other_things" ("place")  (1.1ms) CREATE TABLE "parents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (1.1ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "position" integer NOT NULL, "created_at" datetime, "updated_at" datetime)   (1.3ms) CREATE INDEX "index_things_on_position" ON "things" ("position")  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150408101403')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140512100816')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525104834')  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525111906')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525112123')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140721161028')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140721161122') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" SQL (1.8ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.290438"], ["updated_at", "2015-12-24 07:39:16.290438"], ["order", 0]]  (0.9ms) commit transaction OrderThing Load (0.3ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.314270"], ["updated_at", "2015-12-24 07:39:16.314270"], ["order", 1]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 1]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.324590"], ["updated_at", "2015-12-24 07:39:16.324590"], ["order", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.332001"], ["updated_at", "2015-12-24 07:39:16.332001"], ["order", 1]]  (1.0ms) commit transaction SQL (1.3ms) DELETE FROM "order_things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:39:16.343889' SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.343598"], ["updated_at", "2015-12-24 07:39:16.343598"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:39:16.353394' SQL (0.1ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.353159"], ["updated_at", "2015-12-24 07:39:16.353159"], ["order", 0]]  (0.9ms) commit transaction SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:39:16.365822' SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.365468"], ["updated_at", "2015-12-24 07:39:16.365468"], ["order", 0]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 7]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:39:16.376516' SQL (0.1ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.376263"], ["updated_at", "2015-12-24 07:39:16.376263"], ["order", 0]]  (0.8ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 7]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:39:16.389329' SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.388951"], ["updated_at", "2015-12-24 07:39:16.388951"], ["order", 0]]  (0.9ms) commit transaction SQL (1.3ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.401594"], ["updated_at", "2015-12-24 07:39:16.401594"], ["order", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.409433"], ["updated_at", "2015-12-24 07:39:16.409433"], ["order", 1]]  (0.9ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" ORDER BY "order_things"."order" ASC SQL (1.1ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.4ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.420808"], ["updated_at", "2015-12-24 07:39:16.420808"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.428548"], ["updated_at", "2015-12-24 07:39:16.428548"], ["order", 1]]  (1.0ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 13]]  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "order_things" WHERE "order_things"."id" = ? [["id", 12]] SQL (0.4ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:39:16.437861' WHERE ("order" > 0)  (1.0ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 13]] SQL (1.1ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.445339"], ["updated_at", "2015-12-24 07:39:16.445339"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.453294"], ["updated_at", "2015-12-24 07:39:16.453294"], ["order", 1]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 15]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "order_things" WHERE "order_things"."id" = ? [["id", 14]] SQL (0.5ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:39:16.462246' WHERE ("order" > 0)  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 15]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.470442"], ["updated_at", "2015-12-24 07:39:16.470442"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.478054"], ["updated_at", "2015-12-24 07:39:16.478054"], ["order", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.485655"], ["updated_at", "2015-12-24 07:39:16.485655"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 17]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:39:16.493880' WHERE ("order" > 0 AND "order" <= 1) SQL (0.5ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:39:16.497657"], ["id", 16]]  (1.1ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 17]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.3ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.507353"], ["updated_at", "2015-12-24 07:39:16.507353"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.515197"], ["updated_at", "2015-12-24 07:39:16.515197"], ["order", 1]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.522305"], ["updated_at", "2015-12-24 07:39:16.522305"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 19]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:39:16.530899' WHERE ("order" > 0 AND "order" <= 1) SQL (0.4ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:39:16.533843"], ["id", 19]]  (1.1ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 19]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.542425"], ["updated_at", "2015-12-24 07:39:16.542425"], ["order", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.549758"], ["updated_at", "2015-12-24 07:39:16.549758"], ["order", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.557184"], ["updated_at", "2015-12-24 07:39:16.557184"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 24]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:39:16.565828' WHERE ("order" > 0 AND "order" <= 1) SQL (0.4ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:39:16.568798"], ["id", 22]]  (1.1ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 24]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.578457"], ["updated_at", "2015-12-24 07:39:16.578457"], ["order", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.3ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.585776"], ["updated_at", "2015-12-24 07:39:16.585776"], ["order", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.593209"], ["updated_at", "2015-12-24 07:39:16.593209"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 26]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:39:16.601946' WHERE ("order" > 0 AND "order" <= 1) SQL (0.4ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:39:16.605039"], ["id", 25]]  (1.1ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 26]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.614102"], ["updated_at", "2015-12-24 07:39:16.614102"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.621525"], ["updated_at", "2015-12-24 07:39:16.621525"], ["order", 1]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.629642"], ["updated_at", "2015-12-24 07:39:16.629642"], ["order", 2]]  (0.8ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 28]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:39:16.637710' WHERE ("order" > 0 AND "order" <= 1) SQL (0.4ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:39:16.641172"], ["id", 28]]  (1.0ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 28]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.650004"], ["updated_at", "2015-12-24 07:39:16.650004"], ["order", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.658700"], ["updated_at", "2015-12-24 07:39:16.658700"], ["order", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.666180"], ["updated_at", "2015-12-24 07:39:16.666180"], ["order", 2]]  (1.0ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 32]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:39:16.674810' WHERE ("order" >= 1 AND "order" < 2) SQL (0.4ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:39:16.677706"], ["id", 33]]  (1.0ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 32]] SQL (1.3ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.685890"], ["updated_at", "2015-12-24 07:39:16.685890"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.693172"], ["updated_at", "2015-12-24 07:39:16.693172"], ["order", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.701009"], ["updated_at", "2015-12-24 07:39:16.701009"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 35]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:39:16.709601' WHERE ("order" >= 1 AND "order" < 2) SQL (0.4ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:39:16.713039"], ["id", 36]]  (1.1ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 35]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.721991"], ["updated_at", "2015-12-24 07:39:16.721991"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.729697"], ["updated_at", "2015-12-24 07:39:16.729697"], ["order", 1]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.736665"], ["updated_at", "2015-12-24 07:39:16.736665"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 39]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:39:16.744968' WHERE ("order" >= 1 AND "order" < 2) SQL (0.6ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:39:16.747862"], ["id", 39]]  (1.1ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 39]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.757165"], ["updated_at", "2015-12-24 07:39:16.757165"], ["order", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.765325"], ["updated_at", "2015-12-24 07:39:16.765325"], ["order", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.773684"], ["updated_at", "2015-12-24 07:39:16.773684"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 42]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:39:16.782194' WHERE ("order" >= 1 AND "order" < 2) SQL (0.4ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:39:16.785329"], ["id", 42]]  (1.2ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 42]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.793712"], ["updated_at", "2015-12-24 07:39:16.793712"], ["order", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.801191"], ["updated_at", "2015-12-24 07:39:16.801191"], ["order", 1]]  (1.2ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.810429"], ["updated_at", "2015-12-24 07:39:16.810429"], ["order", 2]]  (1.1ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 43]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:39:16.820129' WHERE ("order" >= 1 AND "order" < 2) SQL (0.5ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:39:16.823120"], ["id", 45]]  (1.1ms) commit transaction OrderThing Load (0.3ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 43]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.837181"], ["updated_at", "2015-12-24 07:39:16.837181"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.845392"], ["updated_at", "2015-12-24 07:39:16.845392"], ["position", 1]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.852448"], ["updated_at", "2015-12-24 07:39:16.852448"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:39:16.861994' WHERE ("position" > 0 AND "position" <= 1) SQL (0.6ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:39:16.865289"], ["id", 1]]  (1.0ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.874578"], ["updated_at", "2015-12-24 07:39:16.874578"], ["position", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.881940"], ["updated_at", "2015-12-24 07:39:16.881940"], ["position", 1]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.889491"], ["updated_at", "2015-12-24 07:39:16.889491"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 6]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:39:16.898135' WHERE ("position" > 0 AND "position" <= 1) SQL (0.4ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:39:16.901236"], ["id", 4]]  (1.0ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 6]] SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.4ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.909756"], ["updated_at", "2015-12-24 07:39:16.909756"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.917895"], ["updated_at", "2015-12-24 07:39:16.917895"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.926102"], ["updated_at", "2015-12-24 07:39:16.926102"], ["position", 2]]  (0.8ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 8]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:39:16.933981' WHERE ("position" > 0 AND "position" <= 1) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:39:16.937562"], ["id", 7]]  (1.1ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 8]] SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.945685"], ["updated_at", "2015-12-24 07:39:16.945685"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.955143"], ["updated_at", "2015-12-24 07:39:16.955143"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.962406"], ["updated_at", "2015-12-24 07:39:16.962406"], ["position", 2]]  (1.0ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 10]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:39:16.971296' WHERE ("position" > 0 AND "position" <= 1) SQL (0.6ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:39:16.974309"], ["id", 10]]  (1.0ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 10]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.984661"], ["updated_at", "2015-12-24 07:39:16.984661"], ["position", 0]]  (2.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:16.993340"], ["updated_at", "2015-12-24 07:39:16.993340"], ["position", 1]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.4ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.000921"], ["updated_at", "2015-12-24 07:39:17.000921"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 13]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:39:17.010508' WHERE ("position" > 0 AND "position" <= 1) SQL (0.6ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:39:17.013523"], ["id", 13]]  (1.4ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 13]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.023484"], ["updated_at", "2015-12-24 07:39:17.023484"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.031574"], ["updated_at", "2015-12-24 07:39:17.031574"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.039784"], ["updated_at", "2015-12-24 07:39:17.039784"], ["position", 2]]  (0.8ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 17]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:39:17.050124' WHERE ("position" >= 1 AND "position" < 2) SQL (0.4ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:39:17.053267"], ["id", 18]]  (1.1ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 17]] SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.062025"], ["updated_at", "2015-12-24 07:39:17.062025"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.4ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.070364"], ["updated_at", "2015-12-24 07:39:17.070364"], ["position", 1]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.078293"], ["updated_at", "2015-12-24 07:39:17.078293"], ["position", 2]]  (1.0ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 21]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:39:17.087922' WHERE ("position" >= 1 AND "position" < 2) SQL (0.4ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:39:17.091252"], ["id", 21]]  (1.1ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 21]] SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.099764"], ["updated_at", "2015-12-24 07:39:17.099764"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.108569"], ["updated_at", "2015-12-24 07:39:17.108569"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.115772"], ["updated_at", "2015-12-24 07:39:17.115772"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 23]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:39:17.126761' WHERE ("position" >= 1 AND "position" < 2) SQL (0.4ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:39:17.130267"], ["id", 24]]  (1.0ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 23]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.139473"], ["updated_at", "2015-12-24 07:39:17.139473"], ["position", 0]]  (1.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.148073"], ["updated_at", "2015-12-24 07:39:17.148073"], ["position", 1]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.7ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.155301"], ["updated_at", "2015-12-24 07:39:17.155301"], ["position", 2]]  (1.2ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 25]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:39:17.164822' WHERE ("position" >= 1 AND "position" < 2) SQL (0.4ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:39:17.168134"], ["id", 27]]  (1.4ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 25]] SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.176741"], ["updated_at", "2015-12-24 07:39:17.176741"], ["position", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.184042"], ["updated_at", "2015-12-24 07:39:17.184042"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.192322"], ["updated_at", "2015-12-24 07:39:17.192322"], ["position", 2]]  (1.3ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 30]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:39:17.203489' WHERE ("position" >= 1 AND "position" < 2) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:39:17.207203"], ["id", 30]]  (1.2ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 30]] SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.216122"], ["updated_at", "2015-12-24 07:39:17.216122"], ["position", 0]]  (2.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.225089"], ["updated_at", "2015-12-24 07:39:17.225089"], ["position", 1]]  (0.9ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC SQL (1.6ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.236802"], ["updated_at", "2015-12-24 07:39:17.236802"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.244151"], ["updated_at", "2015-12-24 07:39:17.244151"], ["position", 1]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 34]]  (0.1ms) begin transaction SQL (0.5ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 33]] SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:39:17.254208' WHERE ("position" > 0)  (1.0ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 34]] SQL (1.8ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.262804"], ["updated_at", "2015-12-24 07:39:17.262804"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.270980"], ["updated_at", "2015-12-24 07:39:17.270980"], ["position", 1]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 36]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 35]] SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:39:17.281216' WHERE ("position" > 0)  (1.0ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 36]] SQL (1.1ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:39:17.290267' SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.289908"], ["updated_at", "2015-12-24 07:39:17.289908"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:39:17.300405' SQL (0.2ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.300099"], ["updated_at", "2015-12-24 07:39:17.300099"], ["position", 0]]  (1.1ms) commit transaction SQL (1.4ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:39:17.313117' SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.312872"], ["updated_at", "2015-12-24 07:39:17.312872"], ["position", 0]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 39]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:39:17.324106' SQL (0.2ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.323905"], ["updated_at", "2015-12-24 07:39:17.323905"], ["position", 0]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 39]] SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:39:17.338570' SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.338328"], ["updated_at", "2015-12-24 07:39:17.338328"], ["position", 0]]  (0.9ms) commit transaction SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.350970"], ["updated_at", "2015-12-24 07:39:17.350970"], ["position", 0]]  (1.3ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.359035"], ["updated_at", "2015-12-24 07:39:17.359035"], ["position", 1]]  (0.9ms) commit transaction SQL (1.5ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.369400"], ["updated_at", "2015-12-24 07:39:17.369400"], ["position", 0]]  (0.8ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 44]]  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.377715"], ["updated_at", "2015-12-24 07:39:17.377715"], ["position", 1]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 44]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.389444"], ["updated_at", "2015-12-24 07:39:17.389444"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:17.397806"], ["updated_at", "2015-12-24 07:39:17.397806"], ["position", 1]]  (0.9ms) commit transaction Started GET "/" for 127.0.0.1 at 2015-12-24 10:39:24 +0300 Processing by ThingsController#index as HTML Thing Load (0.5ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (1.4ms) Rendered things/index.html.erb within layouts/application (12.9ms) Completed 200 OK in 337ms (Views: 335.9ms | ActiveRecord: 0.5ms) Started GET "/assets/application-74d4ef508cb9f93a7458db2aa7708afb98179b78c860a8ba7eeb23f1e18d0945.css" for 127.0.0.1 at 2015-12-24 10:39:24 +0300 Started GET "/assets/application-70c0264bd836b6416e01f0cf971db7f60eef70ed35769d4727e4d6f3100871e7.js" for 127.0.0.1 at 2015-12-24 10:39:24 +0300 Started GET "/assets/jquery.simulate.js?_=1450942764675" for 127.0.0.1 at 2015-12-24 10:39:27 +0300 Started GET "/" for 127.0.0.1 at 2015-12-24 10:39:30 +0300 Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.4ms) Rendered things/index.html.erb within layouts/application (1.5ms) Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.2ms) Started GET "/assets/application-70c0264bd836b6416e01f0cf971db7f60eef70ed35769d4727e4d6f3100871e7.js" for 127.0.0.1 at 2015-12-24 10:39:30 +0300 Started GET "/assets/application-74d4ef508cb9f93a7458db2aa7708afb98179b78c860a8ba7eeb23f1e18d0945.css" for 127.0.0.1 at 2015-12-24 10:39:30 +0300 SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:30.978255"], ["updated_at", "2015-12-24 07:39:30.978255"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:30.985863"], ["updated_at", "2015-12-24 07:39:30.985863"], ["position", 1]]  (0.9ms) commit transaction Started GET "/" for 127.0.0.1 at 2015-12-24 10:39:31 +0300 Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.4ms) Rendered things/index.html.erb within layouts/application (1.5ms) Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.3ms) Started GET "/assets/jquery.simulate.js?_=1450942771024" for 127.0.0.1 at 2015-12-24 10:39:34 +0300 Started GET "/" for 127.0.0.1 at 2015-12-24 10:39:37 +0300 Processing by ThingsController#index as HTML Thing Load (0.5ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.5ms) Rendered things/index.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.5ms) Started GET "/assets/application-74d4ef508cb9f93a7458db2aa7708afb98179b78c860a8ba7eeb23f1e18d0945.css" for 127.0.0.1 at 2015-12-24 10:39:37 +0300 Started GET "/assets/application-70c0264bd836b6416e01f0cf971db7f60eef70ed35769d4727e4d6f3100871e7.js" for 127.0.0.1 at 2015-12-24 10:39:37 +0300 SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.7ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:37.272479"], ["updated_at", "2015-12-24 07:39:37.272479"], ["position", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:37.280717"], ["updated_at", "2015-12-24 07:39:37.280717"], ["position", 1]]  (0.8ms) commit transaction Started GET "/" for 127.0.0.1 at 2015-12-24 10:39:37 +0300 Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.4ms) Rendered things/index.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.3ms) Started GET "/assets/jquery.simulate.js?_=1450942777321" for 127.0.0.1 at 2015-12-24 10:39:40 +0300 Started POST "/things/51/move" for 127.0.0.1 at 2015-12-24 10:39:40 +0300 Processing by ThingsController#move as JS Parameters: {"position"=>"0", "id"=>"51"} Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 51]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:39:40.454895' WHERE ("position" >= 0 AND "position" < 1) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 0], ["updated_at", "2015-12-24 07:39:40.458223"], ["id", 51]]  (1.1ms) commit transaction Rendered things/_thing.html.erb (1.0ms) Rendered things/move.js.erb (19.0ms) Completed 200 OK in 96ms (Views: 83.1ms | ActiveRecord: 2.4ms) Started GET "/" for 127.0.0.1 at 2015-12-24 10:39:43 +0300 Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.4ms) Rendered things/index.html.erb within layouts/application (1.7ms) Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.2ms) Started GET "/assets/application-74d4ef508cb9f93a7458db2aa7708afb98179b78c860a8ba7eeb23f1e18d0945.css" for 127.0.0.1 at 2015-12-24 10:39:43 +0300 Started GET "/assets/application-70c0264bd836b6416e01f0cf971db7f60eef70ed35769d4727e4d6f3100871e7.js" for 127.0.0.1 at 2015-12-24 10:39:43 +0300 SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:43.558773"], ["updated_at", "2015-12-24 07:39:43.558773"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:39:43.566217"], ["updated_at", "2015-12-24 07:39:43.566217"], ["position", 1]]  (0.9ms) commit transaction Started GET "/" for 127.0.0.1 at 2015-12-24 10:39:43 +0300 Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.7ms) Rendered things/index.html.erb within layouts/application (2.0ms) Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.3ms) Started GET "/assets/jquery.simulate.js?_=1450942783607" for 127.0.0.1 at 2015-12-24 10:39:46 +0300 Started POST "/things/53/move" for 127.0.0.1 at 2015-12-24 10:39:46 +0300 Processing by ThingsController#move as JS Parameters: {"position"=>"0", "id"=>"53"} Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 53]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:39:46.741597' WHERE ("position" >= 0 AND "position" < 1) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 0], ["updated_at", "2015-12-24 07:39:46.745458"], ["id", 53]]  (1.1ms) commit transaction Rendered things/_thing.html.erb (0.3ms) Rendered things/move.js.erb (0.7ms) Completed 200 OK in 12ms (Views: 1.2ms | ActiveRecord: 2.5ms) Started GET "/" for 127.0.0.1 at 2015-12-24 10:39:49 +0300 Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.4ms) Rendered things/index.html.erb within layouts/application (1.6ms) Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms) Started GET "/assets/application-74d4ef508cb9f93a7458db2aa7708afb98179b78c860a8ba7eeb23f1e18d0945.css" for 127.0.0.1 at 2015-12-24 10:39:49 +0300 Started GET "/assets/application-70c0264bd836b6416e01f0cf971db7f60eef70ed35769d4727e4d6f3100871e7.js" for 127.0.0.1 at 2015-12-24 10:39:49 +0300 Started GET "/parents/new" for 127.0.0.1 at 2015-12-24 10:39:49 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (24.1ms) Rendered parents/new.html.erb within layouts/application (27.1ms) Completed 200 OK in 85ms (Views: 38.4ms | ActiveRecord: 0.8ms) Started GET "/assets/jquery.simulate.js?_=1450942789974" for 127.0.0.1 at 2015-12-24 10:39:53 +0300 Started POST "/parents" for 127.0.0.1 at 2015-12-24 10:39:56 +0300 Processing by ParentsController#create as HTML Parameters: {"utf8"=>"✓", "parent"=>{"children_attributes"=>{"1"=>{"name"=>"Child 1", "position"=>"0"}, "2"=>{"name"=>"Child 2", "position"=>"1"}, "0"=>{"name"=>"Child 0", "position"=>"2"}}}, "commit"=>"Create Parent"}  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-12-24 07:39:56.105688"], ["updated_at", "2015-12-24 07:39:56.105688"]] SQL (0.3ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 1"], ["position", 0], ["parent_id", 1], ["created_at", "2015-12-24 07:39:56.112878"], ["updated_at", "2015-12-24 07:39:56.112878"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 2"], ["position", 1], ["parent_id", 1], ["created_at", "2015-12-24 07:39:56.119039"], ["updated_at", "2015-12-24 07:39:56.119039"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 0"], ["position", 2], ["parent_id", 1], ["created_at", "2015-12-24 07:39:56.126278"], ["updated_at", "2015-12-24 07:39:56.126278"]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:54126/parents/1 Completed 302 Found in 33ms (ActiveRecord: 2.5ms) Started GET "/parents/1" for 127.0.0.1 at 2015-12-24 10:39:56 +0300 Processing by ParentsController#show as HTML Parameters: {"id"=>"1"} Parent Load (1.1ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", 1]] Child Load (1.0ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = ? [["parent_id", 1]] Rendered parents/show.html.erb within layouts/application (5.5ms) Completed 200 OK in 13ms (Views: 10.1ms | ActiveRecord: 2.1ms) Started GET "/parents/new" for 127.0.0.1 at 2015-12-24 10:39:56 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (17.9ms) Rendered parents/new.html.erb within layouts/application (18.3ms) Completed 200 OK in 27ms (Views: 21.3ms | ActiveRecord: 0.3ms) Started GET "/assets/jquery.simulate.js?_=1450942796369" for 127.0.0.1 at 2015-12-24 10:39:59 +0300 Started POST "/parents" for 127.0.0.1 at 2015-12-24 10:40:02 +0300 Processing by ParentsController#create as HTML Parameters: {"utf8"=>"✓", "parent"=>{"children_attributes"=>{"1"=>{"name"=>"Child 1", "position"=>"0"}, "2"=>{"name"=>"Child 2", "position"=>"1"}, "0"=>{"name"=>"Child 0", "position"=>"2"}}}, "commit"=>"Create Parent"}  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-12-24 07:40:02.455438"], ["updated_at", "2015-12-24 07:40:02.455438"]] SQL (0.3ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 1"], ["position", 0], ["parent_id", 2], ["created_at", "2015-12-24 07:40:02.463550"], ["updated_at", "2015-12-24 07:40:02.463550"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 2"], ["position", 1], ["parent_id", 2], ["created_at", "2015-12-24 07:40:02.470766"], ["updated_at", "2015-12-24 07:40:02.470766"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 0"], ["position", 2], ["parent_id", 2], ["created_at", "2015-12-24 07:40:02.478622"], ["updated_at", "2015-12-24 07:40:02.478622"]]  (1.5ms) commit transaction Redirected to http://127.0.0.1:54126/parents/2 Completed 302 Found in 45ms (ActiveRecord: 3.0ms) Started GET "/parents/2" for 127.0.0.1 at 2015-12-24 10:40:02 +0300 Processing by ParentsController#show as HTML Parameters: {"id"=>"2"} Parent Load (0.3ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", 2]] Child Load (0.3ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = ? [["parent_id", 2]] Rendered parents/show.html.erb within layouts/application (3.0ms) Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.5ms) Started GET "/parents/new" for 127.0.0.1 at 2015-12-24 10:40:02 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (3.9ms) Rendered parents/new.html.erb within layouts/application (4.2ms) Completed 200 OK in 13ms (Views: 6.9ms | ActiveRecord: 0.0ms) Started GET "/assets/jquery.simulate.js?_=1450942802764" for 127.0.0.1 at 2015-12-24 10:40:05 +0300 Started POST "/parents" for 127.0.0.1 at 2015-12-24 10:40:08 +0300 Processing by ParentsController#create as HTML Parameters: {"utf8"=>"✓", "parent"=>{"children_attributes"=>{"1"=>{"name"=>"Child 1", "position"=>"0"}, "2"=>{"name"=>"Child 2", "position"=>"1"}, "0"=>{"name"=>"Child 0", "position"=>"2"}}}, "commit"=>"Create Parent"}  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-12-24 07:40:08.859722"], ["updated_at", "2015-12-24 07:40:08.859722"]] SQL (0.2ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 1"], ["position", 0], ["parent_id", 3], ["created_at", "2015-12-24 07:40:08.868428"], ["updated_at", "2015-12-24 07:40:08.868428"]] SQL (0.2ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 2"], ["position", 1], ["parent_id", 3], ["created_at", "2015-12-24 07:40:08.875706"], ["updated_at", "2015-12-24 07:40:08.875706"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 0"], ["position", 2], ["parent_id", 3], ["created_at", "2015-12-24 07:40:08.885182"], ["updated_at", "2015-12-24 07:40:08.885182"]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:54126/parents/3 Completed 302 Found in 39ms (ActiveRecord: 2.1ms) Started GET "/parents/3" for 127.0.0.1 at 2015-12-24 10:40:08 +0300 Processing by ParentsController#show as HTML Parameters: {"id"=>"3"} Parent Load (0.2ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", 3]] Child Load (0.1ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = ? [["parent_id", 3]] Rendered parents/show.html.erb within layouts/application (1.8ms) Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.3ms) Started GET "/parents/new" for 127.0.0.1 at 2015-12-24 10:40:08 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (4.8ms) Rendered parents/new.html.erb within layouts/application (5.0ms) Completed 200 OK in 12ms (Views: 8.3ms | ActiveRecord: 0.0ms) Started GET "/assets/jquery.simulate.js?_=1450942809029" for 127.0.0.1 at 2015-12-24 10:40:12 +0300 Started POST "/parents" for 127.0.0.1 at 2015-12-24 10:40:15 +0300 Processing by ParentsController#create as HTML Parameters: {"utf8"=>"✓", "parent"=>{"children_attributes"=>{"2"=>{"name"=>"Child 2", "position"=>"0"}, "0"=>{"name"=>"Child 0", "position"=>"1"}, "1"=>{"name"=>"Child 1", "position"=>"2"}}}, "commit"=>"Create Parent"}  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-12-24 07:40:15.141834"], ["updated_at", "2015-12-24 07:40:15.141834"]] SQL (0.2ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 2"], ["position", 0], ["parent_id", 4], ["created_at", "2015-12-24 07:40:15.149586"], ["updated_at", "2015-12-24 07:40:15.149586"]] SQL (0.2ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 0"], ["position", 1], ["parent_id", 4], ["created_at", "2015-12-24 07:40:15.155671"], ["updated_at", "2015-12-24 07:40:15.155671"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 1"], ["position", 2], ["parent_id", 4], ["created_at", "2015-12-24 07:40:15.162789"], ["updated_at", "2015-12-24 07:40:15.162789"]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:54126/parents/4 Completed 302 Found in 34ms (ActiveRecord: 2.1ms) Started GET "/parents/4" for 127.0.0.1 at 2015-12-24 10:40:15 +0300 Processing by ParentsController#show as HTML Parameters: {"id"=>"4"} Parent Load (0.2ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", 4]] Child Load (0.2ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = ? [["parent_id", 4]] Rendered parents/show.html.erb within layouts/application (2.3ms) Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.3ms) Started GET "/parents/new" for 127.0.0.1 at 2015-12-24 10:40:15 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (4.7ms) Rendered parents/new.html.erb within layouts/application (5.0ms) Completed 200 OK in 14ms (Views: 9.2ms | ActiveRecord: 0.0ms) Started GET "/assets/jquery.simulate.js?_=1450942815310" for 127.0.0.1 at 2015-12-24 10:40:18 +0300 Started POST "/parents" for 127.0.0.1 at 2015-12-24 10:40:21 +0300 Processing by ParentsController#create as HTML Parameters: {"utf8"=>"✓", "parent"=>{"children_attributes"=>{"2"=>{"name"=>"Child 2", "position"=>"0"}, "0"=>{"name"=>"Child 0", "position"=>"1"}, "1"=>{"name"=>"Child 1", "position"=>"2"}}}, "commit"=>"Create Parent"}  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-12-24 07:40:21.413921"], ["updated_at", "2015-12-24 07:40:21.413921"]] SQL (0.2ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 2"], ["position", 0], ["parent_id", 5], ["created_at", "2015-12-24 07:40:21.420513"], ["updated_at", "2015-12-24 07:40:21.420513"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 0"], ["position", 1], ["parent_id", 5], ["created_at", "2015-12-24 07:40:21.426238"], ["updated_at", "2015-12-24 07:40:21.426238"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 1"], ["position", 2], ["parent_id", 5], ["created_at", "2015-12-24 07:40:21.431891"], ["updated_at", "2015-12-24 07:40:21.431891"]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:54126/parents/5 Completed 302 Found in 28ms (ActiveRecord: 2.2ms) Started GET "/parents/5" for 127.0.0.1 at 2015-12-24 10:40:21 +0300 Processing by ParentsController#show as HTML Parameters: {"id"=>"5"} Parent Load (0.2ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", 5]] Child Load (0.3ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = ? [["parent_id", 5]] Rendered parents/show.html.erb within layouts/application (2.0ms) Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.5ms) SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.559063"], ["updated_at", "2015-12-24 07:40:21.559063"], ["place", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.567380"], ["updated_at", "2015-12-24 07:40:21.567380"], ["place", 1]]  (0.8ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" ORDER BY "other_things"."place" ASC SQL (1.4ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.579277"], ["updated_at", "2015-12-24 07:40:21.579277"], ["place", 0]]  (0.9ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.589516"], ["updated_at", "2015-12-24 07:40:21.589516"], ["place", 1]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 3]] SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.600171"], ["updated_at", "2015-12-24 07:40:21.600171"], ["place", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.607516"], ["updated_at", "2015-12-24 07:40:21.607516"], ["place", 1]]  (0.9ms) commit transaction SQL (1.1ms) DELETE FROM "other_things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:40:21.618403' SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.618063"], ["updated_at", "2015-12-24 07:40:21.618063"], ["place", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:40:21.629097' SQL (0.1ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.628801"], ["updated_at", "2015-12-24 07:40:21.628801"], ["place", 0]]  (0.9ms) commit transaction SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction SQL (0.3ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:40:21.641508' SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.641204"], ["updated_at", "2015-12-24 07:40:21.641204"], ["place", 0]]  (0.8ms) commit transaction OtherThing Load (0.8ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 9]]  (0.1ms) begin transaction SQL (0.7ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:40:21.654328' SQL (0.2ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.654103"], ["updated_at", "2015-12-24 07:40:21.654103"], ["place", 0]]  (1.0ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 9]] SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:40:21.668985' SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.668740"], ["updated_at", "2015-12-24 07:40:21.668740"], ["place", 0]]  (0.9ms) commit transaction SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.681410"], ["updated_at", "2015-12-24 07:40:21.681410"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.688734"], ["updated_at", "2015-12-24 07:40:21.688734"], ["place", 1]]  (1.0ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 13]]  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "other_things" WHERE "other_things"."id" = ? [["id", 12]] SQL (0.6ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:40:21.698647' WHERE ("place" > 0)  (1.3ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 13]] SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.707911"], ["updated_at", "2015-12-24 07:40:21.707911"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.715699"], ["updated_at", "2015-12-24 07:40:21.715699"], ["place", 1]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 15]]  (0.1ms) begin transaction SQL (0.6ms) DELETE FROM "other_things" WHERE "other_things"."id" = ? [["id", 14]] SQL (0.7ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:40:21.725606' WHERE ("place" > 0)  (1.1ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 15]] SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.733999"], ["updated_at", "2015-12-24 07:40:21.733999"], ["place", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.742026"], ["updated_at", "2015-12-24 07:40:21.742026"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.3ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.750327"], ["updated_at", "2015-12-24 07:40:21.750327"], ["place", 2]]  (1.2ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 18]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:40:21.759735' WHERE ("place" >= 1 AND "place" < 2) SQL (0.5ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:40:21.762935"], ["id", 18]]  (1.2ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 18]] SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.771845"], ["updated_at", "2015-12-24 07:40:21.771845"], ["place", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.779119"], ["updated_at", "2015-12-24 07:40:21.779119"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.786446"], ["updated_at", "2015-12-24 07:40:21.786446"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 19]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:40:21.795179' WHERE ("place" >= 1 AND "place" < 2) SQL (0.5ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:40:21.798152"], ["id", 21]]  (1.1ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 19]] SQL (1.6ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.807493"], ["updated_at", "2015-12-24 07:40:21.807493"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.3ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.815140"], ["updated_at", "2015-12-24 07:40:21.815140"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.823727"], ["updated_at", "2015-12-24 07:40:21.823727"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 23]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:40:21.832657' WHERE ("place" >= 1 AND "place" < 2) SQL (0.5ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:40:21.835839"], ["id", 24]]  (2.2ms) commit transaction OtherThing Load (0.6ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 23]] SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.846487"], ["updated_at", "2015-12-24 07:40:21.846487"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.854978"], ["updated_at", "2015-12-24 07:40:21.854978"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.863477"], ["updated_at", "2015-12-24 07:40:21.863477"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 26]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:40:21.873357' WHERE ("place" >= 1 AND "place" < 2) SQL (0.7ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:40:21.876399"], ["id", 27]]  (2.1ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 26]] SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.885987"], ["updated_at", "2015-12-24 07:40:21.885987"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.894793"], ["updated_at", "2015-12-24 07:40:21.894793"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.901943"], ["updated_at", "2015-12-24 07:40:21.901943"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 30]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:40:21.910903' WHERE ("place" >= 1 AND "place" < 2) SQL (0.6ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:40:21.913894"], ["id", 30]]  (2.8ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 30]] SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (2.7ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.925257"], ["updated_at", "2015-12-24 07:40:21.925257"], ["place", 0]]  (0.9ms) commit transaction  (0.2ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.936007"], ["updated_at", "2015-12-24 07:40:21.936007"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.943212"], ["updated_at", "2015-12-24 07:40:21.943212"], ["place", 2]]  (1.1ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 32]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:40:21.952540' WHERE ("place" > 0 AND "place" <= 1) SQL (0.6ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:40:21.955782"], ["id", 31]]  (1.5ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 32]] SQL (1.5ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.966000"], ["updated_at", "2015-12-24 07:40:21.966000"], ["place", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.975853"], ["updated_at", "2015-12-24 07:40:21.975853"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:21.984044"], ["updated_at", "2015-12-24 07:40:21.984044"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 34]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:40:21.993182' WHERE ("place" > 0 AND "place" <= 1) SQL (1.0ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:40:21.997114"], ["id", 34]]  (1.3ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 34]] SQL (1.5ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (1.8ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:22.007942"], ["updated_at", "2015-12-24 07:40:22.007942"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:22.017208"], ["updated_at", "2015-12-24 07:40:22.017208"], ["place", 1]]  (1.3ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:22.025327"], ["updated_at", "2015-12-24 07:40:22.025327"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 38]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:40:22.034167' WHERE ("place" > 0 AND "place" <= 1) SQL (0.5ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:40:22.038446"], ["id", 37]]  (1.1ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 38]] SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (2.4ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:22.048060"], ["updated_at", "2015-12-24 07:40:22.048060"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:22.058609"], ["updated_at", "2015-12-24 07:40:22.058609"], ["place", 1]]  (3.2ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:22.068432"], ["updated_at", "2015-12-24 07:40:22.068432"], ["place", 2]]  (1.1ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 42]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:40:22.077080' WHERE ("place" > 0 AND "place" <= 1) SQL (0.5ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:40:22.080440"], ["id", 40]]  (1.2ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 42]] SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:22.093724"], ["updated_at", "2015-12-24 07:40:22.093724"], ["place", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:22.103320"], ["updated_at", "2015-12-24 07:40:22.103320"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.6ms) SELECT "other_things"."place" FROM "other_things" SQL (0.7ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:22.110893"], ["updated_at", "2015-12-24 07:40:22.110893"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 43]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:40:22.120127' WHERE ("place" > 0 AND "place" <= 1) SQL (0.5ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:40:22.123596"], ["id", 43]]  (1.5ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 43]]  (1.4ms) CREATE TABLE "children" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "parent_id" integer NOT NULL, "position" integer NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.1ms) select sqlite_version(*)  (1.4ms) CREATE INDEX "index_children_on_position" ON "children" ("position")  (1.2ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "position" integer NOT NULL)  (1.1ms) CREATE INDEX "index_items_on_position" ON "items" ("position")  (1.0ms) CREATE TABLE "order_things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.2ms) CREATE INDEX "index_order_things_on_order" ON "order_things" ("order")  (1.1ms) CREATE TABLE "other_things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "place" integer NOT NULL, "created_at" datetime, "updated_at" datetime)  (1.0ms) CREATE INDEX "index_other_things_on_place" ON "other_things" ("place")  (1.0ms) CREATE TABLE "parents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.9ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "position" integer NOT NULL, "created_at" datetime, "updated_at" datetime)   (1.7ms) CREATE INDEX "index_things_on_position" ON "things" ("position")  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150408101403')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140512100816')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525104834')  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525111906')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525112123')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140721161028')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140721161122') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" SQL (1.2ms) DELETE FROM "things"  (0.3ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.7ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:32.792695"], ["updated_at", "2015-12-24 07:40:32.792695"], ["position", 0]]  (1.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:32.811437"], ["updated_at", "2015-12-24 07:40:32.811437"], ["position", 1]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:32.819246"], ["updated_at", "2015-12-24 07:40:32.819246"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:40:32.839233' WHERE ("position" >= 1 AND "position" < 2) SQL (0.6ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:40:32.842548"], ["id", 3]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] SQL (2.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:32.854225"], ["updated_at", "2015-12-24 07:40:32.854225"], ["position", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:32.862028"], ["updated_at", "2015-12-24 07:40:32.862028"], ["position", 1]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:32.869835"], ["updated_at", "2015-12-24 07:40:32.869835"], ["position", 2]]  (0.8ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 6]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:40:32.878417' WHERE ("position" >= 1 AND "position" < 2) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:40:32.882386"], ["id", 6]]  (1.3ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 6]] SQL (1.1ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:32.891407"], ["updated_at", "2015-12-24 07:40:32.891407"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.3ms) SELECT "things"."position" FROM "things" SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:32.903529"], ["updated_at", "2015-12-24 07:40:32.903529"], ["position", 1]]  (1.4ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:32.912618"], ["updated_at", "2015-12-24 07:40:32.912618"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 7]]  (0.1ms) begin transaction SQL (1.0ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:40:32.921263' WHERE ("position" >= 1 AND "position" < 2) SQL (0.4ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:40:32.926202"], ["id", 9]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 7]] SQL (1.1ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:32.934478"], ["updated_at", "2015-12-24 07:40:32.934478"], ["position", 0]]  (1.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:32.944240"], ["updated_at", "2015-12-24 07:40:32.944240"], ["position", 1]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:32.952066"], ["updated_at", "2015-12-24 07:40:32.952066"], ["position", 2]]  (0.8ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 12]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:40:32.961314' WHERE ("position" >= 1 AND "position" < 2) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:40:32.964540"], ["id", 12]]  (1.1ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 12]] SQL (4.0ms) DELETE FROM "things"  (0.2ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:32.980024"], ["updated_at", "2015-12-24 07:40:32.980024"], ["position", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.4ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:32.989009"], ["updated_at", "2015-12-24 07:40:32.989009"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:32.996751"], ["updated_at", "2015-12-24 07:40:32.996751"], ["position", 2]]  (0.8ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 14]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:40:33.006645' WHERE ("position" >= 1 AND "position" < 2) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:40:33.009963"], ["id", 15]]  (1.5ms) commit transaction Thing Load (0.4ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 14]] SQL (1.4ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.020185"], ["updated_at", "2015-12-24 07:40:33.020185"], ["position", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.028743"], ["updated_at", "2015-12-24 07:40:33.028743"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.036490"], ["updated_at", "2015-12-24 07:40:33.036490"], ["position", 2]]  (0.8ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 17]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:40:33.046157' WHERE ("position" > 0 AND "position" <= 1) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:40:33.049500"], ["id", 16]]  (1.0ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 17]] SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.061860"], ["updated_at", "2015-12-24 07:40:33.061860"], ["position", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.070388"], ["updated_at", "2015-12-24 07:40:33.070388"], ["position", 1]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.078026"], ["updated_at", "2015-12-24 07:40:33.078026"], ["position", 2]]  (2.4ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 19]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:40:33.089219' WHERE ("position" > 0 AND "position" <= 1) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:40:33.092370"], ["id", 19]]  (1.0ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 19]] SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.101801"], ["updated_at", "2015-12-24 07:40:33.101801"], ["position", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.3ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.110907"], ["updated_at", "2015-12-24 07:40:33.110907"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.118685"], ["updated_at", "2015-12-24 07:40:33.118685"], ["position", 2]]  (0.8ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 22]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:40:33.128384' WHERE ("position" > 0 AND "position" <= 1) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:40:33.131688"], ["id", 22]]  (1.0ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 22]] SQL (1.1ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.142372"], ["updated_at", "2015-12-24 07:40:33.142372"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.151196"], ["updated_at", "2015-12-24 07:40:33.151196"], ["position", 1]]  (1.1ms) commit transaction  (0.1ms) begin transaction  (0.6ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.158999"], ["updated_at", "2015-12-24 07:40:33.158999"], ["position", 2]]  (0.8ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 26]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:40:33.168021' WHERE ("position" > 0 AND "position" <= 1) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:40:33.171436"], ["id", 25]]  (2.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 26]] SQL (1.1ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.3ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.181774"], ["updated_at", "2015-12-24 07:40:33.181774"], ["position", 0]]  (2.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.191048"], ["updated_at", "2015-12-24 07:40:33.191048"], ["position", 1]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.198910"], ["updated_at", "2015-12-24 07:40:33.198910"], ["position", 2]]  (0.8ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 30]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:40:33.208175' WHERE ("position" > 0 AND "position" <= 1) SQL (0.4ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:40:33.211484"], ["id", 28]]  (3.6ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 30]] SQL (1.1ms) DELETE FROM "things"  (0.2ms) begin transaction  (0.4ms) SELECT "things"."position" FROM "things" SQL (0.7ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.226818"], ["updated_at", "2015-12-24 07:40:33.226818"], ["position", 0]]  (1.1ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 31]]  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.237248"], ["updated_at", "2015-12-24 07:40:33.237248"], ["position", 1]]  (1.8ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 31]] SQL (1.1ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.249357"], ["updated_at", "2015-12-24 07:40:33.249357"], ["position", 0]]  (3.5ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.261143"], ["updated_at", "2015-12-24 07:40:33.261143"], ["position", 1]]  (1.0ms) commit transaction SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:40:33.276881' SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.276594"], ["updated_at", "2015-12-24 07:40:33.276594"], ["position", 0]]  (1.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:40:33.287754' SQL (0.2ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.287513"], ["updated_at", "2015-12-24 07:40:33.287513"], ["position", 0]]  (0.9ms) commit transaction SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:40:33.301216' SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.300945"], ["updated_at", "2015-12-24 07:40:33.300945"], ["position", 0]]  (2.1ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 37]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "things" SET "position" = "position" + 1 SQL (0.2ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.313309"], ["updated_at", "2015-12-24 07:40:33.313309"], ["position", 0]]  (0.9ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 37]] SQL (1.1ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1 SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.326355"], ["updated_at", "2015-12-24 07:40:33.326355"], ["position", 0]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 39]]  (0.1ms) begin transaction SQL (0.9ms) UPDATE "things" SET "position" = "position" + 1 SQL (0.2ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.334866"], ["updated_at", "2015-12-24 07:40:33.334866"], ["position", 0]]  (0.9ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 39]] SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.388253"], ["updated_at", "2015-12-24 07:40:33.388253"], ["position", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.396476"], ["updated_at", "2015-12-24 07:40:33.396476"], ["position", 1]]  (0.8ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 42]]  (0.1ms) begin transaction SQL (0.6ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 41]] SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1 WHERE ("position" > 0)  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 42]] SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.8ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.414386"], ["updated_at", "2015-12-24 07:40:33.414386"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.423896"], ["updated_at", "2015-12-24 07:40:33.423896"], ["position", 1]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 44]]  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 43]] SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1 WHERE ("position" > 0)  (1.0ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 44]] SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.443872"], ["updated_at", "2015-12-24 07:40:33.443872"], ["position", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.453143"], ["updated_at", "2015-12-24 07:40:33.453143"], ["position", 1]]  (1.0ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC SQL (1.3ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.470555"], ["updated_at", "2015-12-24 07:40:33.470555"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.481972"], ["updated_at", "2015-12-24 07:40:33.481972"], ["order", 1]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.7ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.494128"], ["updated_at", "2015-12-24 07:40:33.494128"], ["order", 2]]  (0.8ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:40:33.504447' WHERE ("order" >= 1 AND "order" < 2) SQL (0.5ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:40:33.507905"], ["id", 3]]  (1.1ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 3]] SQL (1.1ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.516425"], ["updated_at", "2015-12-24 07:40:33.516425"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.524649"], ["updated_at", "2015-12-24 07:40:33.524649"], ["order", 1]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.532182"], ["updated_at", "2015-12-24 07:40:33.532182"], ["order", 2]]  (0.8ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:40:33.542314' WHERE ("order" >= 1 AND "order" < 2) SQL (0.5ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:40:33.545446"], ["id", 6]]  (2.7ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 4]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (1.0ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.556656"], ["updated_at", "2015-12-24 07:40:33.556656"], ["order", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.564952"], ["updated_at", "2015-12-24 07:40:33.564952"], ["order", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.572480"], ["updated_at", "2015-12-24 07:40:33.572480"], ["order", 2]]  (0.8ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 8]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:40:33.581409' WHERE ("order" >= 1 AND "order" < 2) SQL (0.4ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:40:33.584670"], ["id", 9]]  (3.4ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 8]] SQL (1.7ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.597450"], ["updated_at", "2015-12-24 07:40:33.597450"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.606864"], ["updated_at", "2015-12-24 07:40:33.606864"], ["order", 1]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.614279"], ["updated_at", "2015-12-24 07:40:33.614279"], ["order", 2]]  (0.8ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 11]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:40:33.623314' WHERE ("order" >= 1 AND "order" < 2) SQL (0.5ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:40:33.626578"], ["id", 12]]  (1.0ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 11]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.636493"], ["updated_at", "2015-12-24 07:40:33.636493"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.646133"], ["updated_at", "2015-12-24 07:40:33.646133"], ["order", 1]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.653664"], ["updated_at", "2015-12-24 07:40:33.653664"], ["order", 2]]  (0.8ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 15]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:40:33.664168' WHERE ("order" >= 1 AND "order" < 2) SQL (0.5ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:40:33.667292"], ["id", 15]]  (1.7ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 15]] SQL (1.1ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.677928"], ["updated_at", "2015-12-24 07:40:33.677928"], ["order", 0]]  (1.5ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.686497"], ["updated_at", "2015-12-24 07:40:33.686497"], ["order", 1]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.693738"], ["updated_at", "2015-12-24 07:40:33.693738"], ["order", 2]]  (0.8ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 16]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:40:33.702600' WHERE ("order" > 0 AND "order" <= 1) SQL (0.5ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:40:33.705948"], ["id", 16]]  (2.5ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 16]] SQL (1.1ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.717445"], ["updated_at", "2015-12-24 07:40:33.717445"], ["order", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.729851"], ["updated_at", "2015-12-24 07:40:33.729851"], ["order", 1]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.737282"], ["updated_at", "2015-12-24 07:40:33.737282"], ["order", 2]]  (0.8ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 21]]  (0.1ms) begin transaction SQL (5.4ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:40:33.747493' WHERE ("order" > 0 AND "order" <= 1) SQL (0.5ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:40:33.758279"], ["id", 19]]  (1.0ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 21]] SQL (1.1ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.766743"], ["updated_at", "2015-12-24 07:40:33.766743"], ["order", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.775690"], ["updated_at", "2015-12-24 07:40:33.775690"], ["order", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.783744"], ["updated_at", "2015-12-24 07:40:33.783744"], ["order", 2]]  (0.8ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 23]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:40:33.793510' WHERE ("order" > 0 AND "order" <= 1) SQL (0.5ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:40:33.796758"], ["id", 22]]  (2.3ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 23]] SQL (1.3ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.3ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.807472"], ["updated_at", "2015-12-24 07:40:33.807472"], ["order", 0]]  (2.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.816155"], ["updated_at", "2015-12-24 07:40:33.816155"], ["order", 1]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.823511"], ["updated_at", "2015-12-24 07:40:33.823511"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 26]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:40:33.832955' WHERE ("order" > 0 AND "order" <= 1) SQL (3.2ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:40:33.836059"], ["id", 25]]  (1.1ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 26]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.848267"], ["updated_at", "2015-12-24 07:40:33.848267"], ["order", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.857042"], ["updated_at", "2015-12-24 07:40:33.857042"], ["order", 1]]  (1.4ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.866725"], ["updated_at", "2015-12-24 07:40:33.866725"], ["order", 2]]  (0.8ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 28]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:40:33.875569' WHERE ("order" > 0 AND "order" <= 1) SQL (0.5ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:40:33.879517"], ["id", 28]]  (1.0ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 28]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.888899"], ["updated_at", "2015-12-24 07:40:33.888899"], ["order", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.897717"], ["updated_at", "2015-12-24 07:40:33.897717"], ["order", 1]]  (0.8ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" ORDER BY "order_things"."order" ASC SQL (1.1ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.909576"], ["updated_at", "2015-12-24 07:40:33.909576"], ["order", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.8ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.917038"], ["updated_at", "2015-12-24 07:40:33.917038"], ["order", 1]]  (0.9ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 34]]  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "order_things" WHERE "order_things"."id" = ? [["id", 33]] SQL (0.6ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:40:33.927170' WHERE ("order" > 0)  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 34]] SQL (1.7ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.936262"], ["updated_at", "2015-12-24 07:40:33.936262"], ["order", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.943576"], ["updated_at", "2015-12-24 07:40:33.943576"], ["order", 1]]  (0.8ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 36]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "order_things" WHERE "order_things"."id" = ? [["id", 35]] SQL (0.6ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:40:33.953126' WHERE ("order" > 0)  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 36]] SQL (2.5ms) DELETE FROM "order_things"  (0.1ms) begin transaction SQL (0.3ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:40:33.963024' SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.962767"], ["updated_at", "2015-12-24 07:40:33.962767"], ["order", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:40:33.983438' SQL (0.2ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.983204"], ["updated_at", "2015-12-24 07:40:33.983204"], ["order", 0]]  (1.0ms) commit transaction SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:40:33.999328' SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:33.999076"], ["updated_at", "2015-12-24 07:40:33.999076"], ["order", 0]]  (0.8ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 39]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:40:34.012034' SQL (0.2ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:34.011831"], ["updated_at", "2015-12-24 07:40:34.011831"], ["order", 0]]  (2.7ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 39]] SQL (1.1ms) DELETE FROM "order_things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:40:34.028169' SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:34.027921"], ["updated_at", "2015-12-24 07:40:34.027921"], ["order", 0]]  (0.9ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 41]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "order_things" SET "order" = "order" + 1 SQL (0.2ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:34.041009"], ["updated_at", "2015-12-24 07:40:34.041009"], ["order", 0]]  (1.5ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 41]] SQL (1.3ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:34.052693"], ["updated_at", "2015-12-24 07:40:34.052693"], ["order", 0]]  (0.9ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 43]]  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.9ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:34.063081"], ["updated_at", "2015-12-24 07:40:34.063081"], ["order", 1]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 43]] SQL (1.3ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:34.076703"], ["updated_at", "2015-12-24 07:40:34.076703"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.9ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:34.085786"], ["updated_at", "2015-12-24 07:40:34.085786"], ["order", 1]]  (1.0ms) commit transaction SQL (4.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:34.102955"], ["updated_at", "2015-12-24 07:40:34.102955"], ["position", 0]]  (1.2ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:34.111194"], ["updated_at", "2015-12-24 07:40:34.111194"], ["position", 1]]  (0.8ms) commit transaction  (1.5ms) CREATE TABLE "children" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "parent_id" integer NOT NULL, "position" integer NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) select sqlite_version(*)  (1.2ms) CREATE INDEX "index_children_on_position" ON "children" ("position")  (4.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "position" integer NOT NULL)  (1.1ms) CREATE INDEX "index_items_on_position" ON "items" ("position")  (1.7ms) CREATE TABLE "order_things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.1ms) CREATE INDEX "index_order_things_on_order" ON "order_things" ("order")  (1.1ms) CREATE TABLE "other_things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "place" integer NOT NULL, "created_at" datetime, "updated_at" datetime)  (1.2ms) CREATE INDEX "index_other_things_on_place" ON "other_things" ("place")  (1.1ms) CREATE TABLE "parents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (1.3ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "position" integer NOT NULL, "created_at" datetime, "updated_at" datetime)   (1.2ms) CREATE INDEX "index_things_on_position" ON "things" ("position")  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150408101403')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140512100816')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525104834')  (3.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525111906')  (4.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525112123')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140721161028')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140721161122') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:59.257116"], ["updated_at", "2015-12-24 07:40:59.257116"], ["place", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:59.268824"], ["updated_at", "2015-12-24 07:40:59.268824"], ["place", 1]]  (0.9ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" ORDER BY "other_things"."place" ASC SQL (2.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:59.287770"], ["updated_at", "2015-12-24 07:40:59.287770"], ["place", 0]]  (2.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.9ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:59.297723"], ["updated_at", "2015-12-24 07:40:59.297723"], ["place", 1]]  (0.9ms) commit transaction OtherThing Load (0.3ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.5ms) DELETE FROM "other_things" WHERE "other_things"."id" = ? [["id", 3]] SQL (0.5ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:40:59.320639' WHERE ("place" > 0)  (1.2ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 4]] SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:59.328906"], ["updated_at", "2015-12-24 07:40:59.328906"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:59.336927"], ["updated_at", "2015-12-24 07:40:59.336927"], ["place", 1]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 6]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "other_things" WHERE "other_things"."id" = ? [["id", 5]] SQL (0.5ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:40:59.345733' WHERE ("place" > 0)  (1.2ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 6]] SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:59.354405"], ["updated_at", "2015-12-24 07:40:59.354405"], ["place", 0]]  (1.1ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 7]]  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:59.365517"], ["updated_at", "2015-12-24 07:40:59.365517"], ["place", 1]]  (1.2ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 7]] SQL (1.1ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.4ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:59.377734"], ["updated_at", "2015-12-24 07:40:59.377734"], ["place", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:59.385574"], ["updated_at", "2015-12-24 07:40:59.385574"], ["place", 1]]  (0.9ms) commit transaction SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:40:59.396820' SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:59.396581"], ["updated_at", "2015-12-24 07:40:59.396581"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:40:59.406831' SQL (0.2ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:59.406621"], ["updated_at", "2015-12-24 07:40:59.406621"], ["place", 0]]  (1.2ms) commit transaction SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:40:59.420084' SQL (0.8ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:59.419845"], ["updated_at", "2015-12-24 07:40:59.419845"], ["place", 0]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 13]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:40:59.430768' SQL (0.1ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:59.430445"], ["updated_at", "2015-12-24 07:40:59.430445"], ["place", 0]]  (1.1ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 13]] SQL (1.5ms) DELETE FROM "other_things"  (0.1ms) begin transaction SQL (0.3ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:40:59.444046' SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:59.443802"], ["updated_at", "2015-12-24 07:40:59.443802"], ["place", 0]]  (1.1ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 15]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "other_things" SET "place" = "place" + 1 SQL (0.1ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:59.455536"], ["updated_at", "2015-12-24 07:40:59.455536"], ["place", 0]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 15]] SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:59.467684"], ["updated_at", "2015-12-24 07:40:59.467684"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:59.474723"], ["updated_at", "2015-12-24 07:40:59.474723"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.3ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:59.482493"], ["updated_at", "2015-12-24 07:40:59.482493"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 17]]  (0.1ms) begin transaction SQL (0.9ms) UPDATE "other_things" SET "place" = "place" - 1 WHERE ("place" > 0 AND "place" <= 1) SQL (0.5ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:40:59.491749"], ["id", 17]]  (1.1ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 17]] SQL (1.5ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:59.502583"], ["updated_at", "2015-12-24 07:40:59.502583"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:59.510546"], ["updated_at", "2015-12-24 07:40:59.510546"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:59.517514"], ["updated_at", "2015-12-24 07:40:59.517514"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 20]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "other_things" SET "place" = "place" - 1 WHERE ("place" > 0 AND "place" <= 1) SQL (0.5ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:40:59.527071"], ["id", 20]]  (1.0ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 20]] SQL (3.5ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:59.537693"], ["updated_at", "2015-12-24 07:40:59.537693"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:59.544858"], ["updated_at", "2015-12-24 07:40:59.544858"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.3ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:59.552724"], ["updated_at", "2015-12-24 07:40:59.552724"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 25]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "other_things" SET "place" = "place" - 1 WHERE ("place" > 0 AND "place" <= 1) SQL (0.4ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:40:59.561433"], ["id", 23]]  (1.2ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 25]] SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:59.570813"], ["updated_at", "2015-12-24 07:40:59.570813"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:59.578643"], ["updated_at", "2015-12-24 07:40:59.578643"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:40:59.585689"], ["updated_at", "2015-12-24 07:40:59.585689"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 27]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "other_things" SET "place" = "place" - 1 WHERE ("place" > 0 AND "place" <= 1) SQL (0.4ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:40:59.595213"], ["id", 26]]  (1.1ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 27]]  (1.5ms) CREATE TABLE "children" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "parent_id" integer NOT NULL, "position" integer NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.1ms) select sqlite_version(*)  (1.1ms) CREATE INDEX "index_children_on_position" ON "children" ("position")  (1.4ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "position" integer NOT NULL)  (1.2ms) CREATE INDEX "index_items_on_position" ON "items" ("position")  (1.1ms) CREATE TABLE "order_things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.7ms) CREATE INDEX "index_order_things_on_order" ON "order_things" ("order")  (1.2ms) CREATE TABLE "other_things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "place" integer NOT NULL, "created_at" datetime, "updated_at" datetime)  (1.3ms) CREATE INDEX "index_other_things_on_place" ON "other_things" ("place")  (1.2ms) CREATE TABLE "parents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (1.1ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "position" integer NOT NULL, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE INDEX "index_things_on_position" ON "things" ("position")  (3.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (5.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (3.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150408101403')  (3.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140512100816')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525104834')  (5.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525111906')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525112123')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140721161028')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140721161122') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" SQL (1.4ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:42:04.684780' SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:42:04.684385"], ["updated_at", "2015-12-24 07:42:04.684385"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:42:04.698627' SQL (0.2ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:42:04.698330"], ["updated_at", "2015-12-24 07:42:04.698330"], ["position", 0]]  (1.0ms) commit transaction Started GET "/" for 127.0.0.1 at 2015-12-24 10:42:10 +0300 Processing by ThingsController#index as HTML Thing Load (0.6ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (1.3ms) Rendered things/index.html.erb within layouts/application (11.4ms) Completed 200 OK in 335ms (Views: 333.3ms | ActiveRecord: 0.6ms) Started GET "/assets/application-74d4ef508cb9f93a7458db2aa7708afb98179b78c860a8ba7eeb23f1e18d0945.css" for 127.0.0.1 at 2015-12-24 10:42:10 +0300 Started GET "/assets/application-70c0264bd836b6416e01f0cf971db7f60eef70ed35769d4727e4d6f3100871e7.js" for 127.0.0.1 at 2015-12-24 10:42:10 +0300 Started GET "/assets/jquery.simulate.js?_=1450942930910" for 127.0.0.1 at 2015-12-24 10:42:14 +0300 Started POST "/things/1/move" for 127.0.0.1 at 2015-12-24 10:42:14 +0300 Processing by ThingsController#move as JS Parameters: {"position"=>"0", "id"=>"1"} Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:42:14.110495' WHERE ("position" >= 0 AND "position" < 1) SQL (0.6ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 0], ["updated_at", "2015-12-24 07:42:14.113804"], ["id", 1]]  (1.1ms) commit transaction Rendered things/_thing.html.erb (1.2ms) Rendered things/move.js.erb (20.6ms) Completed 200 OK in 68ms (Views: 44.0ms | ActiveRecord: 2.6ms) Started GET "/" for 127.0.0.1 at 2015-12-24 10:42:17 +0300 Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.4ms) Rendered things/index.html.erb within layouts/application (1.8ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms) Started GET "/assets/application-70c0264bd836b6416e01f0cf971db7f60eef70ed35769d4727e4d6f3100871e7.js" for 127.0.0.1 at 2015-12-24 10:42:17 +0300 Started GET "/assets/application-74d4ef508cb9f93a7458db2aa7708afb98179b78c860a8ba7eeb23f1e18d0945.css" for 127.0.0.1 at 2015-12-24 10:42:17 +0300 SQL (1.4ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:42:17.206200' SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:42:17.205944"], ["updated_at", "2015-12-24 07:42:17.205944"], ["position", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:42:17.217343' SQL (0.2ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:42:17.216273"], ["updated_at", "2015-12-24 07:42:17.216273"], ["position", 0]]  (1.0ms) commit transaction Started GET "/" for 127.0.0.1 at 2015-12-24 10:42:17 +0300 Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.7ms) Rendered things/index.html.erb within layouts/application (2.5ms) Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.3ms) Started GET "/assets/jquery.simulate.js?_=1450942937262" for 127.0.0.1 at 2015-12-24 10:42:20 +0300 Started POST "/things/3/move" for 127.0.0.1 at 2015-12-24 10:42:20 +0300 Processing by ThingsController#move as JS Parameters: {"position"=>"0", "id"=>"3"} Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:42:20.395926' WHERE ("position" >= 0 AND "position" < 1) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 0], ["updated_at", "2015-12-24 07:42:20.399441"], ["id", 3]]  (1.1ms) commit transaction Rendered things/_thing.html.erb (0.2ms) Rendered things/move.js.erb (0.6ms) Completed 200 OK in 13ms (Views: 1.7ms | ActiveRecord: 2.5ms) Started GET "/" for 127.0.0.1 at 2015-12-24 10:42:23 +0300 Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (1.0ms) Rendered things/index.html.erb within layouts/application (2.1ms) Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.2ms) Started GET "/assets/application-74d4ef508cb9f93a7458db2aa7708afb98179b78c860a8ba7eeb23f1e18d0945.css" for 127.0.0.1 at 2015-12-24 10:42:23 +0300 Started GET "/assets/application-70c0264bd836b6416e01f0cf971db7f60eef70ed35769d4727e4d6f3100871e7.js" for 127.0.0.1 at 2015-12-24 10:42:23 +0300 SQL (1.4ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:42:23.509687' SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:42:23.509436"], ["updated_at", "2015-12-24 07:42:23.509436"], ["position", 0]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:42:23.520012' SQL (0.2ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:42:23.519766"], ["updated_at", "2015-12-24 07:42:23.519766"], ["position", 0]]  (1.1ms) commit transaction Started GET "/" for 127.0.0.1 at 2015-12-24 10:42:23 +0300 Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.9ms) Rendered things/index.html.erb within layouts/application (2.1ms) Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms) Started GET "/assets/jquery.simulate.js?_=1450942943562" for 127.0.0.1 at 2015-12-24 10:42:26 +0300 Started POST "/things/6/move" for 127.0.0.1 at 2015-12-24 10:42:26 +0300 Processing by ThingsController#move as JS Parameters: {"position"=>"1", "id"=>"6"} Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 6]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:42:26.695861' WHERE ("position" > 0 AND "position" <= 1) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:42:26.698850"], ["id", 6]]  (1.1ms) commit transaction Rendered things/_thing.html.erb (0.2ms) Rendered things/move.js.erb (1.1ms) Completed 200 OK in 11ms (Views: 1.6ms | ActiveRecord: 2.3ms) Started GET "/" for 127.0.0.1 at 2015-12-24 10:42:29 +0300 Processing by ThingsController#index as HTML Thing Load (0.5ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.4ms) Rendered things/index.html.erb within layouts/application (2.5ms) Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.5ms) Started GET "/assets/application-74d4ef508cb9f93a7458db2aa7708afb98179b78c860a8ba7eeb23f1e18d0945.css" for 127.0.0.1 at 2015-12-24 10:42:29 +0300 Started GET "/assets/application-70c0264bd836b6416e01f0cf971db7f60eef70ed35769d4727e4d6f3100871e7.js" for 127.0.0.1 at 2015-12-24 10:42:29 +0300 SQL (1.4ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:42:29.818178' SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:42:29.817808"], ["updated_at", "2015-12-24 07:42:29.817808"], ["position", 0]]  (1.7ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:42:29.831218' SQL (0.2ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:42:29.830946"], ["updated_at", "2015-12-24 07:42:29.830946"], ["position", 0]]  (1.0ms) commit transaction Started GET "/" for 127.0.0.1 at 2015-12-24 10:42:29 +0300 Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.4ms) Rendered things/index.html.erb within layouts/application (1.5ms) Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.3ms) Started GET "/assets/jquery.simulate.js?_=1450942949874" for 127.0.0.1 at 2015-12-24 10:42:32 +0300 Started POST "/things/8/move" for 127.0.0.1 at 2015-12-24 10:42:33 +0300 Processing by ThingsController#move as JS Parameters: {"position"=>"1", "id"=>"8"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 8]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:42:33.002869' WHERE ("position" > 0 AND "position" <= 1) SQL (0.4ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:42:33.005950"], ["id", 8]]  (1.2ms) commit transaction Rendered things/_thing.html.erb (0.6ms) Rendered things/move.js.erb (1.0ms) Completed 200 OK in 11ms (Views: 1.7ms | ActiveRecord: 2.3ms) Started GET "/" for 127.0.0.1 at 2015-12-24 10:42:35 +0300 Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.4ms) Rendered things/index.html.erb within layouts/application (2.2ms) Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.2ms) Started GET "/assets/application-74d4ef508cb9f93a7458db2aa7708afb98179b78c860a8ba7eeb23f1e18d0945.css" for 127.0.0.1 at 2015-12-24 10:42:36 +0300 Started GET "/assets/application-70c0264bd836b6416e01f0cf971db7f60eef70ed35769d4727e4d6f3100871e7.js" for 127.0.0.1 at 2015-12-24 10:42:36 +0300 Started GET "/parents/new" for 127.0.0.1 at 2015-12-24 10:42:36 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (27.7ms) Rendered parents/new.html.erb within layouts/application (30.3ms) Completed 200 OK in 96ms (Views: 40.5ms | ActiveRecord: 1.0ms) Started GET "/assets/jquery.simulate.js?_=1450942956243" for 127.0.0.1 at 2015-12-24 10:42:39 +0300 Started POST "/parents" for 127.0.0.1 at 2015-12-24 10:42:42 +0300 Processing by ParentsController#create as HTML Parameters: {"utf8"=>"✓", "parent"=>{"children_attributes"=>{"1"=>{"name"=>"Child 1", "position"=>"0"}, "2"=>{"name"=>"Child 2", "position"=>"1"}, "0"=>{"name"=>"Child 0", "position"=>"2"}}}, "commit"=>"Create Parent"}  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-12-24 07:42:42.382757"], ["updated_at", "2015-12-24 07:42:42.382757"]] SQL (0.2ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 1"], ["position", 0], ["parent_id", 1], ["created_at", "2015-12-24 07:42:42.389077"], ["updated_at", "2015-12-24 07:42:42.389077"]] SQL (0.2ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 2"], ["position", 1], ["parent_id", 1], ["created_at", "2015-12-24 07:42:42.394653"], ["updated_at", "2015-12-24 07:42:42.394653"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 0"], ["position", 2], ["parent_id", 1], ["created_at", "2015-12-24 07:42:42.400101"], ["updated_at", "2015-12-24 07:42:42.400101"]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:54158/parents/1 Completed 302 Found in 41ms (ActiveRecord: 2.2ms) Started GET "/parents/1" for 127.0.0.1 at 2015-12-24 10:42:42 +0300 Processing by ParentsController#show as HTML Parameters: {"id"=>"1"} Parent Load (0.3ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", 1]] Child Load (0.3ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = ? [["parent_id", 1]] Rendered parents/show.html.erb within layouts/application (2.8ms) Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.5ms) Started GET "/parents/new" for 127.0.0.1 at 2015-12-24 10:42:42 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (2.1ms) Rendered parents/new.html.erb within layouts/application (2.4ms) Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.2ms) Started GET "/assets/jquery.simulate.js?_=1450942962522" for 127.0.0.1 at 2015-12-24 10:42:45 +0300 Started POST "/parents" for 127.0.0.1 at 2015-12-24 10:42:48 +0300 Processing by ParentsController#create as HTML Parameters: {"utf8"=>"✓", "parent"=>{"children_attributes"=>{"1"=>{"name"=>"Child 1", "position"=>"0"}, "2"=>{"name"=>"Child 2", "position"=>"1"}, "0"=>{"name"=>"Child 0", "position"=>"2"}}}, "commit"=>"Create Parent"}  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-12-24 07:42:48.650964"], ["updated_at", "2015-12-24 07:42:48.650964"]] SQL (0.3ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 1"], ["position", 0], ["parent_id", 2], ["created_at", "2015-12-24 07:42:48.657732"], ["updated_at", "2015-12-24 07:42:48.657732"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 2"], ["position", 1], ["parent_id", 2], ["created_at", "2015-12-24 07:42:48.663822"], ["updated_at", "2015-12-24 07:42:48.663822"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 0"], ["position", 2], ["parent_id", 2], ["created_at", "2015-12-24 07:42:48.669886"], ["updated_at", "2015-12-24 07:42:48.669886"]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:54158/parents/2 Completed 302 Found in 29ms (ActiveRecord: 2.2ms) Started GET "/parents/2" for 127.0.0.1 at 2015-12-24 10:42:48 +0300 Processing by ParentsController#show as HTML Parameters: {"id"=>"2"} Parent Load (0.4ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", 2]] Child Load (0.3ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = ? [["parent_id", 2]] Rendered parents/show.html.erb within layouts/application (2.2ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.7ms) Started GET "/parents/new" for 127.0.0.1 at 2015-12-24 10:42:48 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (5.0ms) Rendered parents/new.html.erb within layouts/application (5.4ms) Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.0ms) Started GET "/assets/jquery.simulate.js?_=1450942968889" for 127.0.0.1 at 2015-12-24 10:42:52 +0300 Started POST "/parents" for 127.0.0.1 at 2015-12-24 10:42:55 +0300 Processing by ParentsController#create as HTML Parameters: {"utf8"=>"✓", "parent"=>{"children_attributes"=>{"1"=>{"name"=>"Child 1", "position"=>"0"}, "2"=>{"name"=>"Child 2", "position"=>"1"}, "0"=>{"name"=>"Child 0", "position"=>"2"}}}, "commit"=>"Create Parent"}  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-12-24 07:42:55.114066"], ["updated_at", "2015-12-24 07:42:55.114066"]] SQL (0.3ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 1"], ["position", 0], ["parent_id", 3], ["created_at", "2015-12-24 07:42:55.121684"], ["updated_at", "2015-12-24 07:42:55.121684"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 2"], ["position", 1], ["parent_id", 3], ["created_at", "2015-12-24 07:42:55.131801"], ["updated_at", "2015-12-24 07:42:55.131801"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 0"], ["position", 2], ["parent_id", 3], ["created_at", "2015-12-24 07:42:55.146683"], ["updated_at", "2015-12-24 07:42:55.146683"]]  (1.1ms) commit transaction Redirected to http://127.0.0.1:54158/parents/3 Completed 302 Found in 48ms (ActiveRecord: 2.5ms) Started GET "/parents/3" for 127.0.0.1 at 2015-12-24 10:42:55 +0300 Processing by ParentsController#show as HTML Parameters: {"id"=>"3"} Parent Load (0.2ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", 3]] Child Load (0.2ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = ? [["parent_id", 3]] Rendered parents/show.html.erb within layouts/application (2.1ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.4ms) Started GET "/parents/new" for 127.0.0.1 at 2015-12-24 10:42:55 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (6.0ms) Rendered parents/new.html.erb within layouts/application (6.4ms) Completed 200 OK in 11ms (Views: 8.3ms | ActiveRecord: 0.0ms) Started GET "/assets/jquery.simulate.js?_=1450942975369" for 127.0.0.1 at 2015-12-24 10:42:58 +0300 Started POST "/parents" for 127.0.0.1 at 2015-12-24 10:43:01 +0300 Processing by ParentsController#create as HTML Parameters: {"utf8"=>"✓", "parent"=>{"children_attributes"=>{"2"=>{"name"=>"Child 2", "position"=>"0"}, "0"=>{"name"=>"Child 0", "position"=>"1"}, "1"=>{"name"=>"Child 1", "position"=>"2"}}}, "commit"=>"Create Parent"}  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-12-24 07:43:01.497094"], ["updated_at", "2015-12-24 07:43:01.497094"]] SQL (0.3ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 2"], ["position", 0], ["parent_id", 4], ["created_at", "2015-12-24 07:43:01.503377"], ["updated_at", "2015-12-24 07:43:01.503377"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 0"], ["position", 1], ["parent_id", 4], ["created_at", "2015-12-24 07:43:01.509216"], ["updated_at", "2015-12-24 07:43:01.509216"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 1"], ["position", 2], ["parent_id", 4], ["created_at", "2015-12-24 07:43:01.516928"], ["updated_at", "2015-12-24 07:43:01.516928"]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:54158/parents/4 Completed 302 Found in 30ms (ActiveRecord: 2.2ms) Started GET "/parents/4" for 127.0.0.1 at 2015-12-24 10:43:01 +0300 Processing by ParentsController#show as HTML Parameters: {"id"=>"4"} Parent Load (0.3ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", 4]] Child Load (0.4ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = ? [["parent_id", 4]] Rendered parents/show.html.erb within layouts/application (3.0ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.7ms) Started GET "/parents/new" for 127.0.0.1 at 2015-12-24 10:43:01 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (2.3ms) Rendered parents/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.0ms) Started GET "/assets/jquery.simulate.js?_=1450942981661" for 127.0.0.1 at 2015-12-24 10:43:04 +0300 Started POST "/parents" for 127.0.0.1 at 2015-12-24 10:43:07 +0300 Processing by ParentsController#create as HTML Parameters: {"utf8"=>"✓", "parent"=>{"children_attributes"=>{"2"=>{"name"=>"Child 2", "position"=>"0"}, "0"=>{"name"=>"Child 0", "position"=>"1"}, "1"=>{"name"=>"Child 1", "position"=>"2"}}}, "commit"=>"Create Parent"}  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-12-24 07:43:07.774804"], ["updated_at", "2015-12-24 07:43:07.774804"]] SQL (0.2ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 2"], ["position", 0], ["parent_id", 5], ["created_at", "2015-12-24 07:43:07.780968"], ["updated_at", "2015-12-24 07:43:07.780968"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 0"], ["position", 1], ["parent_id", 5], ["created_at", "2015-12-24 07:43:07.786439"], ["updated_at", "2015-12-24 07:43:07.786439"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 1"], ["position", 2], ["parent_id", 5], ["created_at", "2015-12-24 07:43:07.791810"], ["updated_at", "2015-12-24 07:43:07.791810"]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:54158/parents/5 Completed 302 Found in 27ms (ActiveRecord: 2.0ms) Started GET "/parents/5" for 127.0.0.1 at 2015-12-24 10:43:07 +0300 Processing by ParentsController#show as HTML Parameters: {"id"=>"5"} Parent Load (0.2ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", 5]] Child Load (0.1ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = ? [["parent_id", 5]] Rendered parents/show.html.erb within layouts/application (1.3ms) Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms) SQL (1.8ms) DELETE FROM "other_things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:43:07.909002' SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:07.908709"], ["updated_at", "2015-12-24 07:43:07.908709"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:43:07.919125' SQL (0.1ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:07.918918"], ["updated_at", "2015-12-24 07:43:07.918918"], ["place", 0]]  (1.3ms) commit transaction SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:43:07.932803' SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:07.932394"], ["updated_at", "2015-12-24 07:43:07.932394"], ["place", 0]]  (0.9ms) commit transaction OtherThing Load (0.3ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" + 1 SQL (0.2ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:07.948628"], ["updated_at", "2015-12-24 07:43:07.948628"], ["place", 0]]  (1.0ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 3]] SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:43:07.962013' SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:07.961775"], ["updated_at", "2015-12-24 07:43:07.961775"], ["place", 0]]  (0.9ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:43:07.972764' SQL (0.1ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:07.972574"], ["updated_at", "2015-12-24 07:43:07.972574"], ["place", 0]]  (0.9ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 5]] SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.7ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:07.985724"], ["updated_at", "2015-12-24 07:43:07.985724"], ["place", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.3ms) SELECT "other_things"."place" FROM "other_things" SQL (1.0ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:07.994030"], ["updated_at", "2015-12-24 07:43:07.994030"], ["place", 1]]  (2.7ms) commit transaction SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.008715"], ["updated_at", "2015-12-24 07:43:08.008715"], ["place", 0]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 9]]  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.017683"], ["updated_at", "2015-12-24 07:43:08.017683"], ["place", 1]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 9]] SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.028597"], ["updated_at", "2015-12-24 07:43:08.028597"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.7ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.036519"], ["updated_at", "2015-12-24 07:43:08.036519"], ["place", 1]]  (1.0ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 12]]  (0.1ms) begin transaction SQL (0.7ms) DELETE FROM "other_things" WHERE "other_things"."id" = ? [["id", 11]] SQL (0.5ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:43:08.048857' WHERE ("place" > 0)  (1.1ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 12]] SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.056876"], ["updated_at", "2015-12-24 07:43:08.056876"], ["place", 0]]  (1.5ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.066605"], ["updated_at", "2015-12-24 07:43:08.066605"], ["place", 1]]  (1.6ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 14]]  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "other_things" WHERE "other_things"."id" = ? [["id", 13]] SQL (0.6ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:43:08.077451' WHERE ("place" > 0)  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 14]] SQL (1.8ms) DELETE FROM "other_things"  (0.2ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.087036"], ["updated_at", "2015-12-24 07:43:08.087036"], ["place", 0]]  (1.1ms) commit transaction  (0.1ms) begin transaction  (0.3ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.096113"], ["updated_at", "2015-12-24 07:43:08.096113"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.103951"], ["updated_at", "2015-12-24 07:43:08.103951"], ["place", 2]]  (0.8ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 16]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:43:08.111869' WHERE ("place" >= 1 AND "place" < 2) SQL (0.6ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:43:08.116332"], ["id", 17]]  (1.0ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 16]] SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.124756"], ["updated_at", "2015-12-24 07:43:08.124756"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.133006"], ["updated_at", "2015-12-24 07:43:08.133006"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.140239"], ["updated_at", "2015-12-24 07:43:08.140239"], ["place", 2]]  (1.0ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 18]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:43:08.149644' WHERE ("place" >= 1 AND "place" < 2) SQL (2.9ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:43:08.153251"], ["id", 20]]  (1.1ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 18]] SQL (1.4ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.166108"], ["updated_at", "2015-12-24 07:43:08.166108"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.174204"], ["updated_at", "2015-12-24 07:43:08.174204"], ["place", 1]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.181207"], ["updated_at", "2015-12-24 07:43:08.181207"], ["place", 2]]  (1.3ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 23]]  (0.1ms) begin transaction SQL (0.9ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:43:08.190335' WHERE ("place" >= 1 AND "place" < 2) SQL (1.9ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:43:08.193956"], ["id", 23]]  (1.4ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 23]] SQL (1.2ms) DELETE FROM "other_things"  (0.2ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.204746"], ["updated_at", "2015-12-24 07:43:08.204746"], ["place", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.213495"], ["updated_at", "2015-12-24 07:43:08.213495"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.220640"], ["updated_at", "2015-12-24 07:43:08.220640"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 25]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:43:08.229984' WHERE ("place" >= 1 AND "place" < 2) SQL (0.5ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:43:08.233002"], ["id", 26]]  (2.8ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 25]] SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.243659"], ["updated_at", "2015-12-24 07:43:08.243659"], ["place", 0]]  (1.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.252796"], ["updated_at", "2015-12-24 07:43:08.252796"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.259777"], ["updated_at", "2015-12-24 07:43:08.259777"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 29]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:43:08.268507' WHERE ("place" >= 1 AND "place" < 2) SQL (0.5ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:43:08.272305"], ["id", 29]]  (2.3ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 29]] SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (1.1ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.282472"], ["updated_at", "2015-12-24 07:43:08.282472"], ["place", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.291204"], ["updated_at", "2015-12-24 07:43:08.291204"], ["place", 1]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.299056"], ["updated_at", "2015-12-24 07:43:08.299056"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 31]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:43:08.308480' WHERE ("place" > 0 AND "place" <= 1) SQL (0.5ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:43:08.311668"], ["id", 30]]  (2.0ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 31]] SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (1.0ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.321992"], ["updated_at", "2015-12-24 07:43:08.321992"], ["place", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.330038"], ["updated_at", "2015-12-24 07:43:08.330038"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.337252"], ["updated_at", "2015-12-24 07:43:08.337252"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 34]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:43:08.346345' WHERE ("place" > 0 AND "place" <= 1) SQL (0.5ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:43:08.349233"], ["id", 33]]  (2.8ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 34]] SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.360111"], ["updated_at", "2015-12-24 07:43:08.360111"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.368875"], ["updated_at", "2015-12-24 07:43:08.368875"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.376423"], ["updated_at", "2015-12-24 07:43:08.376423"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 38]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:43:08.385240' WHERE ("place" > 0 AND "place" <= 1) SQL (0.5ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:43:08.388175"], ["id", 36]]  (0.9ms) commit transaction OtherThing Load (0.5ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 38]] SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.3ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.397349"], ["updated_at", "2015-12-24 07:43:08.397349"], ["place", 0]]  (1.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.406670"], ["updated_at", "2015-12-24 07:43:08.406670"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.414035"], ["updated_at", "2015-12-24 07:43:08.414035"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 39]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:43:08.422983' WHERE ("place" > 0 AND "place" <= 1) SQL (0.5ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:43:08.426055"], ["id", 39]]  (1.2ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 39]] SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.7ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.436181"], ["updated_at", "2015-12-24 07:43:08.436181"], ["place", 0]]  (1.2ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.444876"], ["updated_at", "2015-12-24 07:43:08.444876"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.452008"], ["updated_at", "2015-12-24 07:43:08.452008"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 42]]  (0.2ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:43:08.460982' WHERE ("place" > 0 AND "place" <= 1) SQL (0.4ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:43:08.464070"], ["id", 42]]  (1.0ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 42]] SQL (1.4ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.473482"], ["updated_at", "2015-12-24 07:43:08.473482"], ["place", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.481379"], ["updated_at", "2015-12-24 07:43:08.481379"], ["place", 1]]  (0.9ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" ORDER BY "other_things"."place" ASC SQL (1.7ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.497769"], ["updated_at", "2015-12-24 07:43:08.497769"], ["order", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.506092"], ["updated_at", "2015-12-24 07:43:08.506092"], ["order", 1]]  (1.1ms) commit transaction OrderThing Load (0.4ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (0.5ms) DELETE FROM "order_things" WHERE "order_things"."id" = ? [["id", 1]] SQL (0.6ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:43:08.517028' WHERE ("order" > 0)  (1.1ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 2]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.525173"], ["updated_at", "2015-12-24 07:43:08.525173"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.532938"], ["updated_at", "2015-12-24 07:43:08.532938"], ["order", 1]]  (0.9ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) begin transaction SQL (0.4ms) DELETE FROM "order_things" WHERE "order_things"."id" = ? [["id", 3]] SQL (0.5ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:43:08.542009' WHERE ("order" > 0)  (1.1ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 4]] SQL (1.3ms) DELETE FROM "order_things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:43:08.550707' SQL (0.9ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.550373"], ["updated_at", "2015-12-24 07:43:08.550373"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:43:08.561348' SQL (0.1ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.561064"], ["updated_at", "2015-12-24 07:43:08.561064"], ["order", 0]]  (1.1ms) commit transaction SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction SQL (0.3ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:43:08.574354' SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.574119"], ["updated_at", "2015-12-24 07:43:08.574119"], ["order", 0]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 7]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:43:08.585176' SQL (0.2ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.584980"], ["updated_at", "2015-12-24 07:43:08.584980"], ["order", 0]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 7]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:43:08.599449' SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.599200"], ["updated_at", "2015-12-24 07:43:08.599200"], ["order", 0]]  (1.1ms) commit transaction OrderThing Load (0.3ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 9]]  (0.1ms) begin transaction SQL (0.7ms) UPDATE "order_things" SET "order" = "order" + 1 SQL (0.2ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.610810"], ["updated_at", "2015-12-24 07:43:08.610810"], ["order", 0]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 9]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.622696"], ["updated_at", "2015-12-24 07:43:08.622696"], ["order", 0]]  (1.0ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 11]]  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.631502"], ["updated_at", "2015-12-24 07:43:08.631502"], ["order", 1]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 11]] SQL (1.4ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.642031"], ["updated_at", "2015-12-24 07:43:08.642031"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.649584"], ["updated_at", "2015-12-24 07:43:08.649584"], ["order", 1]]  (1.0ms) commit transaction SQL (1.2ms) DELETE FROM "order_things"  (0.2ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.661385"], ["updated_at", "2015-12-24 07:43:08.661385"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.669837"], ["updated_at", "2015-12-24 07:43:08.669837"], ["order", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.676874"], ["updated_at", "2015-12-24 07:43:08.676874"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 17]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:43:08.685362' WHERE ("order" > 0 AND "order" <= 1) SQL (0.5ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:43:08.688468"], ["id", 15]]  (1.4ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 17]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.3ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.697921"], ["updated_at", "2015-12-24 07:43:08.697921"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.3ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.706175"], ["updated_at", "2015-12-24 07:43:08.706175"], ["order", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.713732"], ["updated_at", "2015-12-24 07:43:08.713732"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 18]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:43:08.722452' WHERE ("order" > 0 AND "order" <= 1) SQL (0.7ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:43:08.725403"], ["id", 18]]  (1.6ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 18]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.8ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.735687"], ["updated_at", "2015-12-24 07:43:08.735687"], ["order", 0]]  (1.0ms) commit transaction  (0.3ms) begin transaction  (0.8ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.745509"], ["updated_at", "2015-12-24 07:43:08.745509"], ["order", 1]]  (2.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.755712"], ["updated_at", "2015-12-24 07:43:08.755712"], ["order", 2]]  (1.0ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 21]]  (0.1ms) begin transaction SQL (0.7ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:43:08.763870' WHERE ("order" > 0 AND "order" <= 1) SQL (0.5ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:43:08.767564"], ["id", 21]]  (1.1ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 21]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.776576"], ["updated_at", "2015-12-24 07:43:08.776576"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.786183"], ["updated_at", "2015-12-24 07:43:08.786183"], ["order", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.801422"], ["updated_at", "2015-12-24 07:43:08.801422"], ["order", 2]]  (1.5ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 25]]  (0.1ms) begin transaction SQL (0.7ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:43:08.811308' WHERE ("order" > 0 AND "order" <= 1) SQL (1.0ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:43:08.815109"], ["id", 24]]  (1.0ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 25]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.824175"], ["updated_at", "2015-12-24 07:43:08.824175"], ["order", 0]]  (1.7ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.832676"], ["updated_at", "2015-12-24 07:43:08.832676"], ["order", 1]]  (1.1ms) commit transaction  (0.3ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.840467"], ["updated_at", "2015-12-24 07:43:08.840467"], ["order", 2]]  (1.0ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 28]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:43:08.849818' WHERE ("order" > 0 AND "order" <= 1) SQL (0.5ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:43:08.852801"], ["id", 27]]  (3.1ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 28]] SQL (1.3ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.864083"], ["updated_at", "2015-12-24 07:43:08.864083"], ["order", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.7ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.873425"], ["updated_at", "2015-12-24 07:43:08.873425"], ["order", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.880835"], ["updated_at", "2015-12-24 07:43:08.880835"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 32]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:43:08.890007' WHERE ("order" >= 1 AND "order" < 2) SQL (0.5ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:43:08.893710"], ["id", 32]]  (2.2ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 32]] SQL (1.6ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.3ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.904482"], ["updated_at", "2015-12-24 07:43:08.904482"], ["order", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (3.9ms) SELECT "order_things"."order" FROM "order_things" SQL (0.7ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.921705"], ["updated_at", "2015-12-24 07:43:08.921705"], ["order", 1]]  (3.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:08.965837"], ["updated_at", "2015-12-24 07:43:08.965837"], ["order", 2]]  (1.6ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 34]]  (0.1ms) begin transaction SQL (5.8ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:43:09.061070' WHERE ("order" >= 1 AND "order" < 2) SQL (0.5ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:43:09.084507"], ["id", 35]]  (1.1ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 34]] SQL (1.3ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.3ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.124895"], ["updated_at", "2015-12-24 07:43:09.124895"], ["order", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.3ms) SELECT "order_things"."order" FROM "order_things" SQL (1.2ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.144054"], ["updated_at", "2015-12-24 07:43:09.144054"], ["order", 1]]  (1.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (1.0ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.164618"], ["updated_at", "2015-12-24 07:43:09.164618"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 36]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:43:09.183525' WHERE ("order" >= 1 AND "order" < 2) SQL (0.5ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:43:09.189423"], ["id", 38]]  (1.2ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 36]] SQL (1.1ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.7ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.200253"], ["updated_at", "2015-12-24 07:43:09.200253"], ["order", 0]]  (1.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.209960"], ["updated_at", "2015-12-24 07:43:09.209960"], ["order", 1]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.217621"], ["updated_at", "2015-12-24 07:43:09.217621"], ["order", 2]]  (1.0ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 41]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:43:09.227104' WHERE ("order" >= 1 AND "order" < 2) SQL (0.5ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:43:09.230123"], ["id", 41]]  (2.0ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 41]] SQL (1.8ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.241910"], ["updated_at", "2015-12-24 07:43:09.241910"], ["order", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.250063"], ["updated_at", "2015-12-24 07:43:09.250063"], ["order", 1]]  (1.6ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.258508"], ["updated_at", "2015-12-24 07:43:09.258508"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 43]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:43:09.268497' WHERE ("order" >= 1 AND "order" < 2) SQL (0.5ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:43:09.271697"], ["id", 44]]  (1.3ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 43]] SQL (2.0ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.282801"], ["updated_at", "2015-12-24 07:43:09.282801"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.291142"], ["updated_at", "2015-12-24 07:43:09.291142"], ["order", 1]]  (1.5ms) commit transaction OrderThing Load (1.0ms) SELECT "order_things".* FROM "order_things" ORDER BY "order_things"."order" ASC SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.3ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:43:09.305749' SQL (0.7ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.305470"], ["updated_at", "2015-12-24 07:43:09.305470"], ["position", 0]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:43:09.317153' SQL (0.2ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.316927"], ["updated_at", "2015-12-24 07:43:09.316927"], ["position", 0]]  (1.0ms) commit transaction SQL (1.4ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:43:09.331113' SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.330872"], ["updated_at", "2015-12-24 07:43:09.330872"], ["position", 0]]  (1.0ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 11]]  (0.1ms) begin transaction SQL (0.8ms) UPDATE "things" SET "position" = "position" + 1 SQL (0.2ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.342296"], ["updated_at", "2015-12-24 07:43:09.342296"], ["position", 0]]  (1.2ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 11]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:43:09.354429' SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.354185"], ["updated_at", "2015-12-24 07:43:09.354185"], ["position", 0]]  (1.2ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 13]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:43:09.366416' SQL (0.2ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.366134"], ["updated_at", "2015-12-24 07:43:09.366134"], ["position", 0]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 13]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.380710"], ["updated_at", "2015-12-24 07:43:09.380710"], ["position", 0]]  (1.2ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 15]]  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.390138"], ["updated_at", "2015-12-24 07:43:09.390138"], ["position", 1]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 15]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.401157"], ["updated_at", "2015-12-24 07:43:09.401157"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.408740"], ["updated_at", "2015-12-24 07:43:09.408740"], ["position", 1]]  (0.9ms) commit transaction SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.421005"], ["updated_at", "2015-12-24 07:43:09.421005"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.429790"], ["updated_at", "2015-12-24 07:43:09.429790"], ["position", 1]]  (1.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.437236"], ["updated_at", "2015-12-24 07:43:09.437236"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 19]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:43:09.446756' WHERE ("position" > 0 AND "position" <= 1) SQL (0.8ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:43:09.450085"], ["id", 19]]  (2.3ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 19]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.460667"], ["updated_at", "2015-12-24 07:43:09.460667"], ["position", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.470480"], ["updated_at", "2015-12-24 07:43:09.470480"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.8ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.478196"], ["updated_at", "2015-12-24 07:43:09.478196"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 23]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:43:09.487267' WHERE ("position" > 0 AND "position" <= 1) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:43:09.490614"], ["id", 22]]  (2.1ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 23]] SQL (1.6ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.9ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.501490"], ["updated_at", "2015-12-24 07:43:09.501490"], ["position", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.509317"], ["updated_at", "2015-12-24 07:43:09.509317"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.516731"], ["updated_at", "2015-12-24 07:43:09.516731"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 26]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:43:09.525723' WHERE ("position" > 0 AND "position" <= 1) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:43:09.528619"], ["id", 25]]  (2.8ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 26]] SQL (1.5ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.540599"], ["updated_at", "2015-12-24 07:43:09.540599"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.549316"], ["updated_at", "2015-12-24 07:43:09.549316"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.556282"], ["updated_at", "2015-12-24 07:43:09.556282"], ["position", 2]]  (1.0ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 28]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:43:09.565130' WHERE ("position" > 0 AND "position" <= 1) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:43:09.568170"], ["id", 28]]  (2.8ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 28]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.7ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.578696"], ["updated_at", "2015-12-24 07:43:09.578696"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.7ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.587315"], ["updated_at", "2015-12-24 07:43:09.587315"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.594906"], ["updated_at", "2015-12-24 07:43:09.594906"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 33]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:43:09.603689' WHERE ("position" > 0 AND "position" <= 1) SQL (0.7ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:43:09.606941"], ["id", 31]]  (2.7ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 33]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.9ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.618246"], ["updated_at", "2015-12-24 07:43:09.618246"], ["position", 0]]  (1.2ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.626486"], ["updated_at", "2015-12-24 07:43:09.626486"], ["position", 1]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.633716"], ["updated_at", "2015-12-24 07:43:09.633716"], ["position", 2]]  (1.0ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 36]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:43:09.642416' WHERE ("position" >= 1 AND "position" < 2) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:43:09.645518"], ["id", 36]]  (1.1ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 36]] SQL (1.4ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.6ms) SELECT "things"."position" FROM "things" SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.655796"], ["updated_at", "2015-12-24 07:43:09.655796"], ["position", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.665106"], ["updated_at", "2015-12-24 07:43:09.665106"], ["position", 1]]  (0.9ms) commit transaction  (0.2ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.672557"], ["updated_at", "2015-12-24 07:43:09.672557"], ["position", 2]]  (1.0ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 38]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:43:09.681342' WHERE ("position" >= 1 AND "position" < 2) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:43:09.684235"], ["id", 39]]  (0.9ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 38]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.693175"], ["updated_at", "2015-12-24 07:43:09.693175"], ["position", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.701182"], ["updated_at", "2015-12-24 07:43:09.701182"], ["position", 1]]  (1.4ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.709940"], ["updated_at", "2015-12-24 07:43:09.709940"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 41]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:43:09.718386' WHERE ("position" >= 1 AND "position" < 2) SQL (0.4ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:43:09.721696"], ["id", 42]]  (0.9ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 41]] SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.730361"], ["updated_at", "2015-12-24 07:43:09.730361"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.738782"], ["updated_at", "2015-12-24 07:43:09.738782"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.4ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.746324"], ["updated_at", "2015-12-24 07:43:09.746324"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 43]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:43:09.754949' WHERE ("position" >= 1 AND "position" < 2) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:43:09.758175"], ["id", 45]]  (1.1ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 43]] SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.9ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.767142"], ["updated_at", "2015-12-24 07:43:09.767142"], ["position", 0]]  (1.2ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.775504"], ["updated_at", "2015-12-24 07:43:09.775504"], ["position", 1]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.4ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.783313"], ["updated_at", "2015-12-24 07:43:09.783313"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 48]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:43:09.791930' WHERE ("position" >= 1 AND "position" < 2) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:43:09.794984"], ["id", 48]]  (1.1ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 48]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.804514"], ["updated_at", "2015-12-24 07:43:09.804514"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.813393"], ["updated_at", "2015-12-24 07:43:09.813393"], ["position", 1]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 50]]  (0.1ms) begin transaction SQL (0.6ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 49]] SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:43:09.822484' WHERE ("position" > 0)  (1.1ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 50]] SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.830745"], ["updated_at", "2015-12-24 07:43:09.830745"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.839315"], ["updated_at", "2015-12-24 07:43:09.839315"], ["position", 1]]  (0.9ms) commit transaction Thing Load (0.4ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 52]]  (0.1ms) begin transaction SQL (0.6ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 51]] SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:43:09.849902' WHERE ("position" > 0)  (1.1ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 52]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.857778"], ["updated_at", "2015-12-24 07:43:09.857778"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:09.865641"], ["updated_at", "2015-12-24 07:43:09.865641"], ["position", 1]]  (0.9ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC  (1.6ms) CREATE TABLE "children" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "parent_id" integer NOT NULL, "position" integer NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.1ms) select sqlite_version(*)  (1.2ms) CREATE INDEX "index_children_on_position" ON "children" ("position")  (1.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime, "position" integer NOT NULL)  (4.6ms) CREATE INDEX "index_items_on_position" ON "items" ("position")  (2.5ms) CREATE TABLE "order_things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "order" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.2ms) CREATE INDEX "index_order_things_on_order" ON "order_things" ("order")  (1.2ms) CREATE TABLE "other_things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "place" integer NOT NULL, "created_at" datetime, "updated_at" datetime)  (1.4ms) CREATE INDEX "index_other_things_on_place" ON "other_things" ("place")  (1.1ms) CREATE TABLE "parents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (4.2ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "position" integer NOT NULL, "created_at" datetime, "updated_at" datetime)   (1.1ms) CREATE INDEX "index_things_on_position" ON "things" ("position")  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150408101403')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140512100816')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525104834')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525111906')  (2.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525112123')  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140721161028')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140721161122') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/parents/new" for 127.0.0.1 at 2015-12-24 10:43:24 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (20.0ms) Rendered parents/new.html.erb within layouts/application (26.8ms) Completed 200 OK in 417ms (Views: 376.1ms | ActiveRecord: 1.0ms) Started GET "/assets/application-74d4ef508cb9f93a7458db2aa7708afb98179b78c860a8ba7eeb23f1e18d0945.css" for 127.0.0.1 at 2015-12-24 10:43:24 +0300 Started GET "/assets/application-70c0264bd836b6416e01f0cf971db7f60eef70ed35769d4727e4d6f3100871e7.js" for 127.0.0.1 at 2015-12-24 10:43:24 +0300 Started GET "/assets/jquery.simulate.js?_=1450943004869" for 127.0.0.1 at 2015-12-24 10:43:27 +0300 Started POST "/parents" for 127.0.0.1 at 2015-12-24 10:43:30 +0300 Processing by ParentsController#create as HTML Parameters: {"utf8"=>"✓", "parent"=>{"children_attributes"=>{"2"=>{"name"=>"Child 2", "position"=>"0"}, "0"=>{"name"=>"Child 0", "position"=>"1"}, "1"=>{"name"=>"Child 1", "position"=>"2"}}}, "commit"=>"Create Parent"}  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-12-24 07:43:30.967617"], ["updated_at", "2015-12-24 07:43:30.967617"]] SQL (0.3ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 2"], ["position", 0], ["parent_id", 1], ["created_at", "2015-12-24 07:43:30.980098"], ["updated_at", "2015-12-24 07:43:30.980098"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 0"], ["position", 1], ["parent_id", 1], ["created_at", "2015-12-24 07:43:30.987639"], ["updated_at", "2015-12-24 07:43:30.987639"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 1"], ["position", 2], ["parent_id", 1], ["created_at", "2015-12-24 07:43:31.009163"], ["updated_at", "2015-12-24 07:43:31.009163"]]  (1.2ms) commit transaction Redirected to http://127.0.0.1:54233/parents/1 Completed 302 Found in 61ms (ActiveRecord: 2.7ms) Started GET "/parents/1" for 127.0.0.1 at 2015-12-24 10:43:31 +0300 Processing by ParentsController#show as HTML Parameters: {"id"=>"1"} Parent Load (0.3ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", 1]] Child Load (0.2ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = ? [["parent_id", 1]] Rendered parents/show.html.erb within layouts/application (3.7ms) Completed 200 OK in 20ms (Views: 8.0ms | ActiveRecord: 0.5ms) Started GET "/parents/new" for 127.0.0.1 at 2015-12-24 10:43:31 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (3.0ms) Rendered parents/new.html.erb within layouts/application (3.3ms) Completed 200 OK in 9ms (Views: 5.4ms | ActiveRecord: 0.3ms) Started GET "/assets/jquery.simulate.js?_=1450943011247" for 127.0.0.1 at 2015-12-24 10:43:34 +0300 Started POST "/parents" for 127.0.0.1 at 2015-12-24 10:43:37 +0300 Processing by ParentsController#create as HTML Parameters: {"utf8"=>"✓", "parent"=>{"children_attributes"=>{"2"=>{"name"=>"Child 2", "position"=>"0"}, "0"=>{"name"=>"Child 0", "position"=>"1"}, "1"=>{"name"=>"Child 1", "position"=>"2"}}}, "commit"=>"Create Parent"}  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-12-24 07:43:37.378075"], ["updated_at", "2015-12-24 07:43:37.378075"]] SQL (0.3ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 2"], ["position", 0], ["parent_id", 2], ["created_at", "2015-12-24 07:43:37.384543"], ["updated_at", "2015-12-24 07:43:37.384543"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 0"], ["position", 1], ["parent_id", 2], ["created_at", "2015-12-24 07:43:37.390438"], ["updated_at", "2015-12-24 07:43:37.390438"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 1"], ["position", 2], ["parent_id", 2], ["created_at", "2015-12-24 07:43:37.396819"], ["updated_at", "2015-12-24 07:43:37.396819"]]  (1.1ms) commit transaction Redirected to http://127.0.0.1:54233/parents/2 Completed 302 Found in 31ms (ActiveRecord: 2.2ms) Started GET "/parents/2" for 127.0.0.1 at 2015-12-24 10:43:37 +0300 Processing by ParentsController#show as HTML Parameters: {"id"=>"2"} Parent Load (0.2ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", 2]] Child Load (0.3ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = ? [["parent_id", 2]] Rendered parents/show.html.erb within layouts/application (1.9ms) Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET "/parents/new" for 127.0.0.1 at 2015-12-24 10:43:37 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (2.9ms) Rendered parents/new.html.erb within layouts/application (3.2ms) Completed 200 OK in 22ms (Views: 14.3ms | ActiveRecord: 0.0ms) Started GET "/assets/jquery.simulate.js?_=1450943017598" for 127.0.0.1 at 2015-12-24 10:43:40 +0300 Started POST "/parents" for 127.0.0.1 at 2015-12-24 10:43:43 +0300 Processing by ParentsController#create as HTML Parameters: {"utf8"=>"✓", "parent"=>{"children_attributes"=>{"1"=>{"name"=>"Child 1", "position"=>"0"}, "2"=>{"name"=>"Child 2", "position"=>"1"}, "0"=>{"name"=>"Child 0", "position"=>"2"}}}, "commit"=>"Create Parent"}  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-12-24 07:43:43.683339"], ["updated_at", "2015-12-24 07:43:43.683339"]] SQL (0.5ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 1"], ["position", 0], ["parent_id", 3], ["created_at", "2015-12-24 07:43:43.689397"], ["updated_at", "2015-12-24 07:43:43.689397"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 2"], ["position", 1], ["parent_id", 3], ["created_at", "2015-12-24 07:43:43.695405"], ["updated_at", "2015-12-24 07:43:43.695405"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 0"], ["position", 2], ["parent_id", 3], ["created_at", "2015-12-24 07:43:43.701302"], ["updated_at", "2015-12-24 07:43:43.701302"]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:54233/parents/3 Completed 302 Found in 29ms (ActiveRecord: 2.3ms) Started GET "/parents/3" for 127.0.0.1 at 2015-12-24 10:43:43 +0300 Processing by ParentsController#show as HTML Parameters: {"id"=>"3"} Parent Load (0.2ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", 3]] Child Load (0.2ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = ? [["parent_id", 3]] Rendered parents/show.html.erb within layouts/application (2.2ms) Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms) Started GET "/parents/new" for 127.0.0.1 at 2015-12-24 10:43:43 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (3.8ms) Rendered parents/new.html.erb within layouts/application (4.1ms) Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.0ms) Started GET "/assets/jquery.simulate.js?_=1450943023841" for 127.0.0.1 at 2015-12-24 10:43:46 +0300 Started POST "/parents" for 127.0.0.1 at 2015-12-24 10:43:49 +0300 Processing by ParentsController#create as HTML Parameters: {"utf8"=>"✓", "parent"=>{"children_attributes"=>{"1"=>{"name"=>"Child 1", "position"=>"0"}, "2"=>{"name"=>"Child 2", "position"=>"1"}, "0"=>{"name"=>"Child 0", "position"=>"2"}}}, "commit"=>"Create Parent"}  (0.1ms) begin transaction SQL (1.6ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-12-24 07:43:49.983924"], ["updated_at", "2015-12-24 07:43:49.983924"]] SQL (0.3ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 1"], ["position", 0], ["parent_id", 4], ["created_at", "2015-12-24 07:43:49.992702"], ["updated_at", "2015-12-24 07:43:49.992702"]] SQL (0.2ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 2"], ["position", 1], ["parent_id", 4], ["created_at", "2015-12-24 07:43:50.009657"], ["updated_at", "2015-12-24 07:43:50.009657"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 0"], ["position", 2], ["parent_id", 4], ["created_at", "2015-12-24 07:43:50.024419"], ["updated_at", "2015-12-24 07:43:50.024419"]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:54233/parents/4 Completed 302 Found in 59ms (ActiveRecord: 3.3ms) Started GET "/parents/4" for 127.0.0.1 at 2015-12-24 10:43:50 +0300 Processing by ParentsController#show as HTML Parameters: {"id"=>"4"} Parent Load (0.2ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", 4]] Child Load (0.1ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = ? [["parent_id", 4]] Rendered parents/show.html.erb within layouts/application (2.0ms) Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.3ms) Started GET "/parents/new" for 127.0.0.1 at 2015-12-24 10:43:50 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (2.2ms) Rendered parents/new.html.erb within layouts/application (2.5ms) Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.0ms) Started GET "/assets/jquery.simulate.js?_=1450943030221" for 127.0.0.1 at 2015-12-24 10:43:53 +0300 Started POST "/parents" for 127.0.0.1 at 2015-12-24 10:43:56 +0300 Processing by ParentsController#create as HTML Parameters: {"utf8"=>"✓", "parent"=>{"children_attributes"=>{"1"=>{"name"=>"Child 1", "position"=>"0"}, "2"=>{"name"=>"Child 2", "position"=>"1"}, "0"=>{"name"=>"Child 0", "position"=>"2"}}}, "commit"=>"Create Parent"}  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-12-24 07:43:56.336741"], ["updated_at", "2015-12-24 07:43:56.336741"]] SQL (0.2ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 1"], ["position", 0], ["parent_id", 5], ["created_at", "2015-12-24 07:43:56.343024"], ["updated_at", "2015-12-24 07:43:56.343024"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 2"], ["position", 1], ["parent_id", 5], ["created_at", "2015-12-24 07:43:56.348699"], ["updated_at", "2015-12-24 07:43:56.348699"]] SQL (0.1ms) INSERT INTO "children" ("name", "position", "parent_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "Child 0"], ["position", 2], ["parent_id", 5], ["created_at", "2015-12-24 07:43:56.355363"], ["updated_at", "2015-12-24 07:43:56.355363"]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:54233/parents/5 Completed 302 Found in 29ms (ActiveRecord: 2.0ms) Started GET "/parents/5" for 127.0.0.1 at 2015-12-24 10:43:56 +0300 Processing by ParentsController#show as HTML Parameters: {"id"=>"5"} Parent Load (0.2ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", 5]] Child Load (0.1ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = ? [["parent_id", 5]] Rendered parents/show.html.erb within layouts/application (1.5ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.3ms) SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:43:56.464423' SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:56.464108"], ["updated_at", "2015-12-24 07:43:56.464108"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:43:56.474841' SQL (0.1ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:43:56.474634"], ["updated_at", "2015-12-24 07:43:56.474634"], ["position", 0]]  (1.0ms) commit transaction Started GET "/" for 127.0.0.1 at 2015-12-24 10:43:56 +0300 Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (1.0ms) Rendered things/index.html.erb within layouts/application (5.0ms) Completed 200 OK in 15ms (Views: 14.0ms | ActiveRecord: 0.3ms) Started GET "/assets/jquery.simulate.js?_=1450943036536" for 127.0.0.1 at 2015-12-24 10:43:59 +0300 Started POST "/things/2/move" for 127.0.0.1 at 2015-12-24 10:43:59 +0300 Processing by ThingsController#move as JS Parameters: {"position"=>"1", "id"=>"2"} Thing Load (0.4ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (1.4ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:43:59.648797' WHERE ("position" > 0 AND "position" <= 1) SQL (0.6ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:43:59.652970"], ["id", 2]]  (1.1ms) commit transaction Rendered things/_thing.html.erb (0.8ms) Rendered things/move.js.erb (18.8ms) Completed 200 OK in 54ms (Views: 41.1ms | ActiveRecord: 3.5ms) Started GET "/" for 127.0.0.1 at 2015-12-24 10:44:02 +0300 Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.4ms) Rendered things/index.html.erb within layouts/application (1.8ms) Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms) Started GET "/assets/application-74d4ef508cb9f93a7458db2aa7708afb98179b78c860a8ba7eeb23f1e18d0945.css" for 127.0.0.1 at 2015-12-24 10:44:02 +0300 Started GET "/assets/application-70c0264bd836b6416e01f0cf971db7f60eef70ed35769d4727e4d6f3100871e7.js" for 127.0.0.1 at 2015-12-24 10:44:02 +0300 SQL (2.6ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:44:02.760989' SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:02.760736"], ["updated_at", "2015-12-24 07:44:02.760736"], ["position", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:44:02.770637' SQL (0.2ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:02.770401"], ["updated_at", "2015-12-24 07:44:02.770401"], ["position", 0]]  (0.9ms) commit transaction Started GET "/" for 127.0.0.1 at 2015-12-24 10:44:02 +0300 Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.4ms) Rendered things/index.html.erb within layouts/application (1.5ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms) Started GET "/assets/jquery.simulate.js?_=1450943042809" for 127.0.0.1 at 2015-12-24 10:44:05 +0300 Started POST "/things/4/move" for 127.0.0.1 at 2015-12-24 10:44:05 +0300 Processing by ThingsController#move as JS Parameters: {"position"=>"1", "id"=>"4"} Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:44:05.954668' WHERE ("position" > 0 AND "position" <= 1) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:44:05.958216"], ["id", 4]]  (1.1ms) commit transaction Rendered things/_thing.html.erb (0.3ms) Rendered things/move.js.erb (0.9ms) Completed 200 OK in 11ms (Views: 1.5ms | ActiveRecord: 2.6ms) Started GET "/" for 127.0.0.1 at 2015-12-24 10:44:08 +0300 Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.3ms) Rendered things/index.html.erb within layouts/application (1.4ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms) Started GET "/assets/application-74d4ef508cb9f93a7458db2aa7708afb98179b78c860a8ba7eeb23f1e18d0945.css" for 127.0.0.1 at 2015-12-24 10:44:08 +0300 Started GET "/assets/application-70c0264bd836b6416e01f0cf971db7f60eef70ed35769d4727e4d6f3100871e7.js" for 127.0.0.1 at 2015-12-24 10:44:08 +0300 SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:44:09.058778' SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:09.058529"], ["updated_at", "2015-12-24 07:44:09.058529"], ["position", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:44:09.068235' SQL (0.1ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:09.068002"], ["updated_at", "2015-12-24 07:44:09.068002"], ["position", 0]]  (0.9ms) commit transaction Started GET "/" for 127.0.0.1 at 2015-12-24 10:44:09 +0300 Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.4ms) Rendered things/index.html.erb within layouts/application (1.6ms) Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms) Started GET "/assets/jquery.simulate.js?_=1450943049106" for 127.0.0.1 at 2015-12-24 10:44:12 +0300 Started POST "/things/5/move" for 127.0.0.1 at 2015-12-24 10:44:12 +0300 Processing by ThingsController#move as JS Parameters: {"position"=>"0", "id"=>"5"} Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:44:12.241744' WHERE ("position" >= 0 AND "position" < 1) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 0], ["updated_at", "2015-12-24 07:44:12.244971"], ["id", 5]]  (1.1ms) commit transaction Rendered things/_thing.html.erb (0.2ms) Rendered things/move.js.erb (0.6ms) Completed 200 OK in 10ms (Views: 1.2ms | ActiveRecord: 2.4ms) Started GET "/" for 127.0.0.1 at 2015-12-24 10:44:15 +0300 Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.4ms) Rendered things/index.html.erb within layouts/application (1.7ms) Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.3ms) Started GET "/assets/application-74d4ef508cb9f93a7458db2aa7708afb98179b78c860a8ba7eeb23f1e18d0945.css" for 127.0.0.1 at 2015-12-24 10:44:15 +0300 Started GET "/assets/application-70c0264bd836b6416e01f0cf971db7f60eef70ed35769d4727e4d6f3100871e7.js" for 127.0.0.1 at 2015-12-24 10:44:15 +0300 SQL (1.1ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:44:15.355502' SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:15.355232"], ["updated_at", "2015-12-24 07:44:15.355232"], ["position", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:44:15.365738' SQL (0.2ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:15.365501"], ["updated_at", "2015-12-24 07:44:15.365501"], ["position", 0]]  (1.0ms) commit transaction Started GET "/" for 127.0.0.1 at 2015-12-24 10:44:15 +0300 Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.4ms) Rendered things/index.html.erb within layouts/application (1.9ms) Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.3ms) Started GET "/assets/jquery.simulate.js?_=1450943055411" for 127.0.0.1 at 2015-12-24 10:44:18 +0300 Started POST "/things/7/move" for 127.0.0.1 at 2015-12-24 10:44:18 +0300 Processing by ThingsController#move as JS Parameters: {"position"=>"0", "id"=>"7"} Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 7]]  (0.1ms) begin transaction SQL (0.7ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:44:18.540702' WHERE ("position" >= 0 AND "position" < 1) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 0], ["updated_at", "2015-12-24 07:44:18.544235"], ["id", 7]]  (1.3ms) commit transaction Rendered things/_thing.html.erb (0.2ms) Rendered things/move.js.erb (0.7ms) Completed 200 OK in 12ms (Views: 1.3ms | ActiveRecord: 2.8ms) Started GET "/" for 127.0.0.1 at 2015-12-24 10:44:21 +0300 Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC Rendered things/_thing.html.erb (0.4ms) Rendered things/index.html.erb within layouts/application (1.7ms) Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.3ms) Started GET "/assets/application-74d4ef508cb9f93a7458db2aa7708afb98179b78c860a8ba7eeb23f1e18d0945.css" for 127.0.0.1 at 2015-12-24 10:44:21 +0300 Started GET "/assets/application-70c0264bd836b6416e01f0cf971db7f60eef70ed35769d4727e4d6f3100871e7.js" for 127.0.0.1 at 2015-12-24 10:44:21 +0300 SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.7ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.656709"], ["updated_at", "2015-12-24 07:44:21.656709"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.664894"], ["updated_at", "2015-12-24 07:44:21.664894"], ["place", 1]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.672261"], ["updated_at", "2015-12-24 07:44:21.672261"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:44:21.684028' WHERE ("place" > 0 AND "place" <= 1) SQL (0.6ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:44:21.687130"], ["id", 1]]  (1.1ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 3]] SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.695845"], ["updated_at", "2015-12-24 07:44:21.695845"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.703492"], ["updated_at", "2015-12-24 07:44:21.703492"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.710710"], ["updated_at", "2015-12-24 07:44:21.710710"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 5]]  (0.0ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:44:21.719208' WHERE ("place" > 0 AND "place" <= 1) SQL (0.5ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:44:21.722242"], ["id", 4]]  (1.0ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 5]] SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.730546"], ["updated_at", "2015-12-24 07:44:21.730546"], ["place", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.737762"], ["updated_at", "2015-12-24 07:44:21.737762"], ["place", 1]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.745013"], ["updated_at", "2015-12-24 07:44:21.745013"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 7]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:44:21.753515' WHERE ("place" > 0 AND "place" <= 1) SQL (0.5ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:44:21.756618"], ["id", 7]]  (1.1ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 7]] SQL (1.4ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.765297"], ["updated_at", "2015-12-24 07:44:21.765297"], ["place", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.772711"], ["updated_at", "2015-12-24 07:44:21.772711"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.780174"], ["updated_at", "2015-12-24 07:44:21.780174"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 10]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:44:21.788829' WHERE ("place" > 0 AND "place" <= 1) SQL (0.5ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:44:21.791934"], ["id", 10]]  (1.0ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 10]] SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.800577"], ["updated_at", "2015-12-24 07:44:21.800577"], ["place", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.807767"], ["updated_at", "2015-12-24 07:44:21.807767"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.815217"], ["updated_at", "2015-12-24 07:44:21.815217"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 14]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:44:21.823911' WHERE ("place" > 0 AND "place" <= 1) SQL (0.4ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:44:21.826980"], ["id", 13]]  (1.0ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 14]] SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.835497"], ["updated_at", "2015-12-24 07:44:21.835497"], ["place", 0]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.843405"], ["updated_at", "2015-12-24 07:44:21.843405"], ["place", 1]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.852057"], ["updated_at", "2015-12-24 07:44:21.852057"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 16]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:44:21.860664' WHERE ("place" >= 1 AND "place" < 2) SQL (0.4ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:44:21.863720"], ["id", 18]]  (1.2ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 16]] SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.872330"], ["updated_at", "2015-12-24 07:44:21.872330"], ["place", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.879803"], ["updated_at", "2015-12-24 07:44:21.879803"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.887257"], ["updated_at", "2015-12-24 07:44:21.887257"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 20]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:44:21.895718' WHERE ("place" >= 1 AND "place" < 2) SQL (0.4ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:44:21.898809"], ["id", 21]]  (1.0ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 20]] SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.906912"], ["updated_at", "2015-12-24 07:44:21.906912"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.914207"], ["updated_at", "2015-12-24 07:44:21.914207"], ["place", 1]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.921919"], ["updated_at", "2015-12-24 07:44:21.921919"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 24]]  (0.1ms) begin transaction SQL (0.7ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:44:21.929971' WHERE ("place" >= 1 AND "place" < 2) SQL (0.4ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:44:21.933575"], ["id", 24]]  (1.1ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 24]] SQL (1.5ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.942245"], ["updated_at", "2015-12-24 07:44:21.942245"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.950132"], ["updated_at", "2015-12-24 07:44:21.950132"], ["place", 1]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.957381"], ["updated_at", "2015-12-24 07:44:21.957381"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 27]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:44:21.965778' WHERE ("place" >= 1 AND "place" < 2) SQL (0.4ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:44:21.968893"], ["id", 27]]  (1.1ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 27]] SQL (1.4ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.977656"], ["updated_at", "2015-12-24 07:44:21.977656"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.984955"], ["updated_at", "2015-12-24 07:44:21.984955"], ["place", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:21.992441"], ["updated_at", "2015-12-24 07:44:21.992441"], ["place", 2]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 29]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:44:22.001182' WHERE ("place" >= 1 AND "place" < 2) SQL (0.4ms) UPDATE "other_things" SET "place" = ?, "updated_at" = ? WHERE "other_things"."id" = ? [["place", 1], ["updated_at", "2015-12-24 07:44:22.004718"], ["id", 30]]  (1.2ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 29]] SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.013204"], ["updated_at", "2015-12-24 07:44:22.013204"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.021028"], ["updated_at", "2015-12-24 07:44:22.021028"], ["place", 1]]  (0.9ms) commit transaction SQL (1.4ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.032444"], ["updated_at", "2015-12-24 07:44:22.032444"], ["place", 0]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 33]]  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.040733"], ["updated_at", "2015-12-24 07:44:22.040733"], ["place", 1]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 33]] SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction SQL (0.3ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:44:22.051985' SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.051751"], ["updated_at", "2015-12-24 07:44:22.051751"], ["place", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:44:22.061747' SQL (0.1ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.061538"], ["updated_at", "2015-12-24 07:44:22.061538"], ["place", 0]]  (0.9ms) commit transaction SQL (1.4ms) DELETE FROM "other_things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:44:22.075608' SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.075330"], ["updated_at", "2015-12-24 07:44:22.075330"], ["place", 0]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 37]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:44:22.087329' SQL (0.1ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.087137"], ["updated_at", "2015-12-24 07:44:22.087137"], ["place", 0]]  (1.0ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 37]] SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-12-24 07:44:22.100418' SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.100178"], ["updated_at", "2015-12-24 07:44:22.100178"], ["place", 0]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 39]]  (0.2ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET "place" = "place" + 1 SQL (0.1ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.110975"], ["updated_at", "2015-12-24 07:44:22.110975"], ["place", 0]]  (1.0ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 39]] SQL (1.4ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.122583"], ["updated_at", "2015-12-24 07:44:22.122583"], ["place", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.130961"], ["updated_at", "2015-12-24 07:44:22.130961"], ["place", 1]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 42]]  (0.1ms) begin transaction SQL (0.5ms) DELETE FROM "other_things" WHERE "other_things"."id" = ? [["id", 41]] SQL (0.5ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:44:22.140809' WHERE ("place" > 0)  (1.0ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 42]] SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.5ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.148849"], ["updated_at", "2015-12-24 07:44:22.148849"], ["place", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.4ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.156562"], ["updated_at", "2015-12-24 07:44:22.156562"], ["place", 1]]  (0.9ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 44]]  (0.1ms) begin transaction SQL (0.7ms) DELETE FROM "other_things" WHERE "other_things"."id" = ? [["id", 43]] SQL (0.5ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-12-24 07:44:22.166761' WHERE ("place" > 0)  (1.0ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 44]] SQL (5.2ms) DELETE FROM "other_things"  (0.2ms) begin transaction  (0.7ms) SELECT "other_things"."place" FROM "other_things" SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.179208"], ["updated_at", "2015-12-24 07:44:22.179208"], ["place", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (0.6ms) INSERT INTO "other_things" ("created_at", "updated_at", "place") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.188831"], ["updated_at", "2015-12-24 07:44:22.188831"], ["place", 1]]  (0.9ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" ORDER BY "other_things"."place" ASC SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.205960"], ["updated_at", "2015-12-24 07:44:22.205960"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.216667"], ["updated_at", "2015-12-24 07:44:22.216667"], ["position", 1]]  (0.8ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 10]]  (0.1ms) begin transaction SQL (0.5ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 9]] SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:44:22.227510' WHERE ("position" > 0)  (1.1ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 10]] SQL (1.4ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.235659"], ["updated_at", "2015-12-24 07:44:22.235659"], ["position", 0]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.244291"], ["updated_at", "2015-12-24 07:44:22.244291"], ["position", 1]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 12]]  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 11]] SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:44:22.253279' WHERE ("position" > 0)  (1.2ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 12]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:44:22.263916' SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.262449"], ["updated_at", "2015-12-24 07:44:22.262449"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:44:22.275151' SQL (0.1ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.274855"], ["updated_at", "2015-12-24 07:44:22.274855"], ["position", 0]]  (1.7ms) commit transaction SQL (1.6ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:44:22.288576' SQL (1.2ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.287844"], ["updated_at", "2015-12-24 07:44:22.287844"], ["position", 0]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 15]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "things" SET "position" = "position" + 1 SQL (0.1ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.302253"], ["updated_at", "2015-12-24 07:44:22.302253"], ["position", 0]]  (1.0ms) commit transaction Thing Load (1.4ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 15]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:44:22.315028' SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.314664"], ["updated_at", "2015-12-24 07:44:22.314664"], ["position", 0]]  (1.0ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 17]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:44:22.326520' SQL (0.1ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.326325"], ["updated_at", "2015-12-24 07:44:22.326325"], ["position", 0]]  (1.1ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 17]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.339484"], ["updated_at", "2015-12-24 07:44:22.339484"], ["position", 0]]  (1.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.346874"], ["updated_at", "2015-12-24 07:44:22.346874"], ["position", 1]]  (1.2ms) commit transaction SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.357311"], ["updated_at", "2015-12-24 07:44:22.357311"], ["position", 0]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 21]]  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.365683"], ["updated_at", "2015-12-24 07:44:22.365683"], ["position", 1]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 21]] SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.377136"], ["updated_at", "2015-12-24 07:44:22.377136"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.384335"], ["updated_at", "2015-12-24 07:44:22.384335"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.392259"], ["updated_at", "2015-12-24 07:44:22.392259"], ["position", 2]]  (1.0ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 23]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:44:22.400530' WHERE ("position" > 0 AND "position" <= 1) SQL (0.4ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:44:22.404489"], ["id", 23]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 23]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.412842"], ["updated_at", "2015-12-24 07:44:22.412842"], ["position", 0]]  (1.3ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.421360"], ["updated_at", "2015-12-24 07:44:22.421360"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.429049"], ["updated_at", "2015-12-24 07:44:22.429049"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 28]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:44:22.437929' WHERE ("position" > 0 AND "position" <= 1) SQL (0.4ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:44:22.440960"], ["id", 26]]  (2.0ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 28]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.451384"], ["updated_at", "2015-12-24 07:44:22.451384"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.459197"], ["updated_at", "2015-12-24 07:44:22.459197"], ["position", 1]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.466132"], ["updated_at", "2015-12-24 07:44:22.466132"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 30]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:44:22.475207' WHERE ("position" > 0 AND "position" <= 1) SQL (0.4ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:44:22.478069"], ["id", 29]]  (1.0ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 30]] SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.486786"], ["updated_at", "2015-12-24 07:44:22.486786"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.494167"], ["updated_at", "2015-12-24 07:44:22.494167"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.501835"], ["updated_at", "2015-12-24 07:44:22.501835"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 32]]  (9.5ms) begin transaction SQL (0.9ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:44:22.522752' WHERE ("position" > 0 AND "position" <= 1) SQL (0.5ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:44:22.527306"], ["id", 32]]  (1.1ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 32]] SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.535837"], ["updated_at", "2015-12-24 07:44:22.535837"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.8ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.549520"], ["updated_at", "2015-12-24 07:44:22.549520"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.557186"], ["updated_at", "2015-12-24 07:44:22.557186"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 36]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-12-24 07:44:22.565931' WHERE ("position" > 0 AND "position" <= 1) SQL (0.4ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:44:22.568936"], ["id", 35]]  (1.6ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 36]] SQL (1.4ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.578511"], ["updated_at", "2015-12-24 07:44:22.578511"], ["position", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.586562"], ["updated_at", "2015-12-24 07:44:22.586562"], ["position", 1]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.593611"], ["updated_at", "2015-12-24 07:44:22.593611"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 39]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:44:22.602206' WHERE ("position" >= 1 AND "position" < 2) SQL (0.4ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:44:22.605164"], ["id", 40]]  (1.0ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 39]] SQL (1.5ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.614320"], ["updated_at", "2015-12-24 07:44:22.614320"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.621555"], ["updated_at", "2015-12-24 07:44:22.621555"], ["position", 1]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.629915"], ["updated_at", "2015-12-24 07:44:22.629915"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 42]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:44:22.637768' WHERE ("position" >= 1 AND "position" < 2) SQL (0.4ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:44:22.641848"], ["id", 43]]  (1.1ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 42]] SQL (1.4ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.6ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.651107"], ["updated_at", "2015-12-24 07:44:22.651107"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.660029"], ["updated_at", "2015-12-24 07:44:22.660029"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.667825"], ["updated_at", "2015-12-24 07:44:22.667825"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 44]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:44:22.676987' WHERE ("position" >= 1 AND "position" < 2) SQL (0.4ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:44:22.679908"], ["id", 46]]  (1.2ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 44]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.688629"], ["updated_at", "2015-12-24 07:44:22.688629"], ["position", 0]]  (1.2ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.696617"], ["updated_at", "2015-12-24 07:44:22.696617"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.703781"], ["updated_at", "2015-12-24 07:44:22.703781"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 49]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:44:22.712286' WHERE ("position" >= 1 AND "position" < 2) SQL (0.4ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:44:22.715380"], ["id", 49]]  (1.5ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 49]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.724484"], ["updated_at", "2015-12-24 07:44:22.724484"], ["position", 0]]  (1.2ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.732076"], ["updated_at", "2015-12-24 07:44:22.732076"], ["position", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.739467"], ["updated_at", "2015-12-24 07:44:22.739467"], ["position", 2]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 52]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-12-24 07:44:22.748109' WHERE ("position" >= 1 AND "position" < 2) SQL (0.4ms) UPDATE "things" SET "position" = ?, "updated_at" = ? WHERE "things"."id" = ? [["position", 1], ["updated_at", "2015-12-24 07:44:22.751147"], ["id", 52]]  (1.6ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 52]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.3ms) SELECT "things"."position" FROM "things" SQL (0.5ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.762043"], ["updated_at", "2015-12-24 07:44:22.762043"], ["position", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (0.4ms) INSERT INTO "things" ("created_at", "updated_at", "position") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.771242"], ["updated_at", "2015-12-24 07:44:22.771242"], ["position", 1]]  (0.9ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.8ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.787599"], ["updated_at", "2015-12-24 07:44:22.787599"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.795782"], ["updated_at", "2015-12-24 07:44:22.795782"], ["order", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.803039"], ["updated_at", "2015-12-24 07:44:22.803039"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:44:22.816881' WHERE ("order" >= 1 AND "order" < 2) SQL (0.6ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:44:22.820999"], ["id", 3]]  (1.0ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 1]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.829568"], ["updated_at", "2015-12-24 07:44:22.829568"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.837999"], ["updated_at", "2015-12-24 07:44:22.837999"], ["order", 1]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.845237"], ["updated_at", "2015-12-24 07:44:22.845237"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:44:22.853907' WHERE ("order" >= 1 AND "order" < 2) SQL (0.4ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:44:22.857309"], ["id", 6]]  (1.8ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 6]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.866242"], ["updated_at", "2015-12-24 07:44:22.866242"], ["order", 0]]  (1.2ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.873954"], ["updated_at", "2015-12-24 07:44:22.873954"], ["order", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.881321"], ["updated_at", "2015-12-24 07:44:22.881321"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 8]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:44:22.889858' WHERE ("order" >= 1 AND "order" < 2) SQL (0.4ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:44:22.892867"], ["id", 9]]  (1.4ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 8]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.901552"], ["updated_at", "2015-12-24 07:44:22.901552"], ["order", 0]]  (1.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.909585"], ["updated_at", "2015-12-24 07:44:22.909585"], ["order", 1]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.916573"], ["updated_at", "2015-12-24 07:44:22.916573"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 12]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:44:22.925927' WHERE ("order" >= 1 AND "order" < 2) SQL (0.4ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:44:22.929175"], ["id", 12]]  (1.3ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 12]] SQL (1.7ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.9ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.938236"], ["updated_at", "2015-12-24 07:44:22.938236"], ["order", 0]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.8ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.946905"], ["updated_at", "2015-12-24 07:44:22.946905"], ["order", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (1.0ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.954646"], ["updated_at", "2015-12-24 07:44:22.954646"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 14]]  (0.1ms) begin transaction SQL (0.8ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:44:22.963518' WHERE ("order" >= 1 AND "order" < 2) SQL (0.4ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:44:22.966969"], ["id", 15]]  (1.2ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 14]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.975769"], ["updated_at", "2015-12-24 07:44:22.975769"], ["order", 0]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.983052"], ["updated_at", "2015-12-24 07:44:22.983052"], ["order", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:22.990335"], ["updated_at", "2015-12-24 07:44:22.990335"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 17]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:44:22.998618' WHERE ("order" > 0 AND "order" <= 1) SQL (0.4ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:44:23.001800"], ["id", 16]]  (1.0ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 17]] SQL (1.3ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:23.010026"], ["updated_at", "2015-12-24 07:44:23.010026"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:23.017179"], ["updated_at", "2015-12-24 07:44:23.017179"], ["order", 1]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:23.024831"], ["updated_at", "2015-12-24 07:44:23.024831"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 20]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:44:23.032934' WHERE ("order" > 0 AND "order" <= 1) SQL (0.5ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:44:23.036476"], ["id", 19]]  (1.1ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 20]] SQL (1.3ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:23.044900"], ["updated_at", "2015-12-24 07:44:23.044900"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:23.052596"], ["updated_at", "2015-12-24 07:44:23.052596"], ["order", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:23.059566"], ["updated_at", "2015-12-24 07:44:23.059566"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 22]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:44:23.067955' WHERE ("order" > 0 AND "order" <= 1) SQL (0.4ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:44:23.071127"], ["id", 22]]  (1.0ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 22]] SQL (1.3ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:23.079521"], ["updated_at", "2015-12-24 07:44:23.079521"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:23.086712"], ["updated_at", "2015-12-24 07:44:23.086712"], ["order", 1]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:23.094673"], ["updated_at", "2015-12-24 07:44:23.094673"], ["order", 2]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 25]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:44:23.102798' WHERE ("order" > 0 AND "order" <= 1) SQL (0.4ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:44:23.106701"], ["id", 25]]  (1.7ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 25]] SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:23.115527"], ["updated_at", "2015-12-24 07:44:23.115527"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:23.123621"], ["updated_at", "2015-12-24 07:44:23.123621"], ["order", 1]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:23.130670"], ["updated_at", "2015-12-24 07:44:23.130670"], ["order", 2]]  (1.0ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 30]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:44:23.140267' WHERE ("order" > 0 AND "order" <= 1) SQL (0.4ms) UPDATE "order_things" SET "order" = ?, "updated_at" = ? WHERE "order_things"."id" = ? [["order", 1], ["updated_at", "2015-12-24 07:44:23.143321"], ["id", 28]]  (1.4ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 30]] SQL (1.4ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:23.152349"], ["updated_at", "2015-12-24 07:44:23.152349"], ["order", 0]]  (1.2ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:23.160248"], ["updated_at", "2015-12-24 07:44:23.160248"], ["order", 1]]  (0.9ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" ORDER BY "order_things"."order" ASC SQL (1.5ms) DELETE FROM "order_things"  (0.1ms) begin transaction SQL (0.3ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:44:23.172213' SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:23.171960"], ["updated_at", "2015-12-24 07:44:23.171960"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:44:23.181562' SQL (0.2ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:23.181300"], ["updated_at", "2015-12-24 07:44:23.181300"], ["order", 0]]  (1.0ms) commit transaction SQL (1.8ms) DELETE FROM "order_things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:44:23.195839' SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:23.195557"], ["updated_at", "2015-12-24 07:44:23.195557"], ["order", 0]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 35]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "order_things" SET "order" = "order" + 1 SQL (0.1ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:23.206728"], ["updated_at", "2015-12-24 07:44:23.206728"], ["order", 0]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 35]] SQL (1.3ms) DELETE FROM "order_things"  (0.1ms) begin transaction SQL (0.3ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:44:23.218707' SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:23.218416"], ["updated_at", "2015-12-24 07:44:23.218416"], ["order", 0]]  (1.2ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 37]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-12-24 07:44:23.229511' SQL (0.1ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:23.229216"], ["updated_at", "2015-12-24 07:44:23.229216"], ["order", 0]]  (1.4ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 37]] SQL (1.3ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:23.243200"], ["updated_at", "2015-12-24 07:44:23.243200"], ["order", 0]]  (1.4ms) commit transaction OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 39]]  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:23.252055"], ["updated_at", "2015-12-24 07:44:23.252055"], ["order", 1]]  (0.9ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 39]] SQL (1.4ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:23.264059"], ["updated_at", "2015-12-24 07:44:23.264059"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:23.271831"], ["updated_at", "2015-12-24 07:44:23.271831"], ["order", 1]]  (0.9ms) commit transaction SQL (1.2ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:23.282184"], ["updated_at", "2015-12-24 07:44:23.282184"], ["order", 0]]  (1.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.4ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:23.289662"], ["updated_at", "2015-12-24 07:44:23.289662"], ["order", 1]]  (1.0ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 44]]  (0.1ms) begin transaction SQL (0.5ms) DELETE FROM "order_things" WHERE "order_things"."id" = ? [["id", 43]] SQL (0.6ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:44:23.298777' WHERE ("order" > 0)  (1.2ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 44]] SQL (1.3ms) DELETE FROM "order_things"  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (2.6ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:23.307910"], ["updated_at", "2015-12-24 07:44:23.307910"], ["order", 0]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "order_things"."order" FROM "order_things" SQL (0.5ms) INSERT INTO "order_things" ("created_at", "updated_at", "order") VALUES (?, ?, ?) [["created_at", "2015-12-24 07:44:23.317462"], ["updated_at", "2015-12-24 07:44:23.317462"], ["order", 1]]  (1.0ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 46]]  (0.1ms) begin transaction SQL (0.5ms) DELETE FROM "order_things" WHERE "order_things"."id" = ? [["id", 45]] SQL (0.5ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-12-24 07:44:23.327618' WHERE ("order" > 0)  (1.3ms) commit transaction OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 46]]