Connecting to database specified by database.yml  (1.8ms) select sqlite_version(*)  (1.3ms) CREATE TABLE "children" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "parent_id" integer NOT NULL, "position" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.2ms) CREATE INDEX "index_children_on_position" ON "children" ("position")  (1.0ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "position" integer NOT NULL)  (1.1ms) CREATE INDEX "index_items_on_position" ON "items" ("position")  (1.0ms) CREATE TABLE "other_things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "place" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.2ms) 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 NOT NULL, "updated_at" datetime NOT NULL)  (1.1ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "position" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) CREATE INDEX "index_things_on_position" ON "things" ("position")  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) 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 ('20140721161122')  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140512100816')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525104834')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525111906')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525112123')  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140721161028')  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Connecting to database specified by database.yml  (1.7ms) select sqlite_version(*)  (1.3ms) CREATE TABLE "children" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "parent_id" integer NOT NULL, "position" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.1ms) CREATE INDEX "index_children_on_position" ON "children" ("position")  (1.1ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "position" integer NOT NULL)  (1.1ms) CREATE INDEX "index_items_on_position" ON "items" ("position")  (1.1ms) CREATE TABLE "other_things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "place" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (1.1ms) 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 NOT NULL, "updated_at" datetime NOT NULL)  (1.1ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "position" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.1ms) CREATE INDEX "index_things_on_position" ON "things" ("position")  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140721161122')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140512100816')  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525104834')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525111906')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525112123')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140721161028')  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET position = position + 1, updated_at = '2015-04-27 11:40:16.468301' SQL (7.8ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:40:16 UTC +00:00], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:40:16 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) UPDATE "things" SET position = position + 1, updated_at = '2015-04-27 11:40:16.490445' SQL (3.8ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:40:16 UTC +00:00], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:40:16 UTC +00:00]]  (0.9ms) commit transaction Started GET "/" for 127.0.0.1 at 2015-04-27 14:40: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.6ms) Rendered things/index.html.erb within layouts/application (12.6ms) Completed 200 OK in 30.4ms (Views: 28.7ms | ActiveRecord: 0.8ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-04-27 14:40:23 +0300 Compiled application.css (3ms) (pid 85158) Served asset /application.css - 200 OK (115ms) Started GET "/assets/application.js" for 127.0.0.1 at 2015-04-27 14:40:23 +0300 Compiled jquery.js (5ms) (pid 85158) Compiled jquery_ujs.js (0ms) (pid 85158) Compiled sortable.js (0ms) (pid 85158) Compiled jquery-ui/core.js (0ms) (pid 85158) Compiled jquery-ui/widget.js (0ms) (pid 85158) Compiled jquery-ui/mouse.js (2ms) (pid 85158) Compiled jquery-ui/sortable.js (236ms) (pid 85158) Compiled application.js (560ms) (pid 85158) Served asset /application.js - 200 OK (727ms) Started GET "/assets/jquery.simulate.js?_=1430134824278" for 127.0.0.1 at 2015-04-27 14:40:27 +0300 Compiled jquery.simulate.js (0ms) (pid 85158) Served asset /jquery.simulate.js - 200 OK (109ms) Started POST "/things/1/move" for 127.0.0.1 at 2015-04-27 14:40:27 +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.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET position = position + 1, updated_at = '2015-04-27 11:40:27.466826' WHERE (position >= 0 AND position < 1)  (1.0ms) UPDATE "things" SET "position" = 0, "updated_at" = '2015-04-27 11:40:27.470846' WHERE "things"."id" = 1  (1.1ms) commit transaction Rendered things/_thing.html.erb (2.0ms) Rendered things/move.js.erb (4.7ms) Completed 200 OK in 31.4ms (Views: 18.1ms | ActiveRecord: 3.0ms) Started GET "/" for 127.0.0.1 at 2015-04-27 14:40:30 +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.8ms) Rendered things/index.html.erb within layouts/application (10.4ms) Completed 200 OK in 17.2ms (Views: 16.4ms | ActiveRecord: 0.3ms) Started GET "/assets/application.js" for 127.0.0.1 at 2015-04-27 14:40:30 +0300 Served asset /application.js - 304 Not Modified (0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-04-27 14:40:30 +0300 Served asset /application.css - 304 Not Modified (0ms) SQL (1.5ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET position = position + 1, updated_at = '2015-04-27 11:40:30.496431' SQL (4.4ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:40:30 UTC +00:00], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:40:30 UTC +00:00]]  (1.6ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "things" SET position = position + 1, updated_at = '2015-04-27 11:40:30.513409' SQL (4.4ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:40:30 UTC +00:00], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:40:30 UTC +00:00]]  (1.0ms) commit transaction Started GET "/" for 127.0.0.1 at 2015-04-27 14:40:30 +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.8ms) Rendered things/index.html.erb within layouts/application (2.3ms) Completed 200 OK in 6.9ms (Views: 6.1ms | ActiveRecord: 0.3ms) Started GET "/assets/application.js" for 127.0.0.1 at 2015-04-27 14:40:30 +0300 Served asset /application.js - 304 Not Modified (0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-04-27 14:40:30 +0300 Served asset /application.css - 304 Not Modified (0ms) Started GET "/assets/jquery.simulate.js?_=1430134830615" for 127.0.0.1 at 2015-04-27 14:40:33 +0300 Served asset /jquery.simulate.js - 200 OK (0ms) Started POST "/things/3/move" for 127.0.0.1 at 2015-04-27 14:40:33 +0300 Processing by ThingsController#move as JS Parameters: {"position"=>"0", "id"=>"3"} Thing Load (0.2ms) 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-04-27 11:40:33.800498' WHERE (position >= 0 AND position < 1)  (0.8ms) UPDATE "things" SET "position" = 0, "updated_at" = '2015-04-27 11:40:33.803375' WHERE "things"."id" = 3  (1.0ms) commit transaction Rendered things/_thing.html.erb (0.5ms) Rendered things/move.js.erb (1.0ms) Completed 200 OK in 11.3ms (Views: 1.7ms | ActiveRecord: 2.6ms) Started GET "/" for 127.0.0.1 at 2015-04-27 14:40:36 +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.8ms) Rendered things/index.html.erb within layouts/application (2.6ms) Completed 200 OK in 15.2ms (Views: 14.5ms | ActiveRecord: 0.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-04-27 14:40:36 +0300 Served asset /application.css - 304 Not Modified (0ms) Started GET "/assets/application.js" for 127.0.0.1 at 2015-04-27 14:40:36 +0300 Served asset /application.js - 304 Not Modified (0ms) SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET position = position + 1, updated_at = '2015-04-27 11:40:36.920877' SQL (4.3ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:40:36 UTC +00:00], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:40:36 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) UPDATE "things" SET position = position + 1, updated_at = '2015-04-27 11:40:36.937415' SQL (4.2ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:40:36 UTC +00:00], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:40:36 UTC +00:00]]  (1.0ms) commit transaction Started GET "/" for 127.0.0.1 at 2015-04-27 14:40:36 +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.7ms) Completed 200 OK in 5.6ms (Views: 4.8ms | ActiveRecord: 0.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-04-27 14:40:36 +0300 Served asset /application.css - 304 Not Modified (0ms) Started GET "/assets/application.js" for 127.0.0.1 at 2015-04-27 14:40:36 +0300 Served asset /application.js - 304 Not Modified (0ms) Started GET "/assets/jquery.simulate.js?_=1430134837006" for 127.0.0.1 at 2015-04-27 14:40:40 +0300 Served asset /jquery.simulate.js - 200 OK (0ms) Started POST "/things/6/move" for 127.0.0.1 at 2015-04-27 14:40:40 +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 (1.4ms) UPDATE "things" SET position = position - 1, updated_at = '2015-04-27 11:40:40.110069' WHERE (position > 0 AND position <= 1)  (0.5ms) UPDATE "things" SET "position" = 1, "updated_at" = '2015-04-27 11:40:40.114118' WHERE "things"."id" = 6  (0.9ms) commit transaction Rendered things/_thing.html.erb (0.5ms) Rendered things/move.js.erb (1.0ms) Completed 200 OK in 11.7ms (Views: 1.9ms | ActiveRecord: 3.1ms) Started GET "/" for 127.0.0.1 at 2015-04-27 14:40: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.8ms) Rendered things/index.html.erb within layouts/application (2.2ms) Completed 200 OK in 4.2ms (Views: 3.5ms | ActiveRecord: 0.2ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-04-27 14:40:43 +0300 Served asset /application.css - 304 Not Modified (0ms) Started GET "/assets/application.js" for 127.0.0.1 at 2015-04-27 14:40:43 +0300 Served asset /application.js - 304 Not Modified (0ms) SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.1ms) UPDATE "things" SET position = position + 1, updated_at = '2015-04-27 11:40:43.229159' SQL (5.0ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:40:43 UTC +00:00], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:40:43 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "things" SET position = position + 1, updated_at = '2015-04-27 11:40:43.244522' SQL (4.2ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:40:43 UTC +00:00], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:40:43 UTC +00:00]]  (1.0ms) commit transaction Started GET "/" for 127.0.0.1 at 2015-04-27 14:40: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.4ms) Completed 200 OK in 9.1ms (Views: 7.8ms | ActiveRecord: 0.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-04-27 14:40:43 +0300 Served asset /application.css - 304 Not Modified (0ms) Started GET "/assets/application.js" for 127.0.0.1 at 2015-04-27 14:40:43 +0300 Served asset /application.js - 304 Not Modified (0ms) Started GET "/assets/jquery.simulate.js?_=1430134843320" for 127.0.0.1 at 2015-04-27 14:40:46 +0300 Served asset /jquery.simulate.js - 200 OK (0ms) Started POST "/things/8/move" for 127.0.0.1 at 2015-04-27 14:40:46 +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.0ms) begin transaction SQL (0.7ms) UPDATE "things" SET position = position - 1, updated_at = '2015-04-27 11:40:46.422474' WHERE (position > 0 AND position <= 1)  (0.4ms) UPDATE "things" SET "position" = 1, "updated_at" = '2015-04-27 11:40:46.425613' WHERE "things"."id" = 8  (3.0ms) commit transaction Rendered things/_thing.html.erb (0.4ms) Rendered things/move.js.erb (0.8ms) Completed 200 OK in 15.6ms (Views: 1.3ms | ActiveRecord: 4.3ms) Started GET "/" for 127.0.0.1 at 2015-04-27 14:40: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 (2.4ms) Rendered things/index.html.erb within layouts/application (5.6ms) Completed 200 OK in 9.0ms (Views: 8.5ms | ActiveRecord: 0.2ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-04-27 14:40:49 +0300 Served asset /application.css - 304 Not Modified (0ms) Started GET "/assets/application.js" for 127.0.0.1 at 2015-04-27 14:40:49 +0300 Served asset /application.js - 304 Not Modified (0ms) Started GET "/parents/new" for 127.0.0.1 at 2015-04-27 14:40:49 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (17.2ms) Rendered parents/new.html.erb within layouts/application (19.8ms) Completed 200 OK in 66.8ms (Views: 27.5ms | ActiveRecord: 0.8ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-04-27 14:40:49 +0300 Served asset /application.css - 304 Not Modified (0ms) Started GET "/assets/application.js" for 127.0.0.1 at 2015-04-27 14:40:49 +0300 Served asset /application.js - 304 Not Modified (0ms) Started GET "/assets/jquery.simulate.js?_=1430134849649" for 127.0.0.1 at 2015-04-27 14:40:52 +0300 Served asset /jquery.simulate.js - 200 OK (0ms) Started POST "/parents" for 127.0.0.1 at 2015-04-27 14:40:55 +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 (4.4ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 27 Apr 2015 11:40:55 UTC +00:00], ["updated_at", Mon, 27 Apr 2015 11:40:55 UTC +00:00]] SQL (3.8ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:40:55 UTC +00:00], ["name", "Child 2"], ["parent_id", 1], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:40:55 UTC +00:00]] SQL (4.5ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:40:55 UTC +00:00], ["name", "Child 0"], ["parent_id", 1], ["position", 1], ["updated_at", Mon, 27 Apr 2015 11:40:55 UTC +00:00]] SQL (3.8ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:40:55 UTC +00:00], ["name", "Child 1"], ["parent_id", 1], ["position", 2], ["updated_at", Mon, 27 Apr 2015 11:40:55 UTC +00:00]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:52360/parents/1 Completed 302 Found in 44.4ms (ActiveRecord: 17.4ms) Started GET "/parents/1" for 127.0.0.1 at 2015-04-27 14:40:55 +0300 Processing by ParentsController#show as HTML Parameters: {"id"=>"1"} Parent Load (0.2ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", "1"]] Child Load (0.2ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = 1 Rendered parents/show.html.erb within layouts/application (3.3ms) Completed 200 OK in 8.5ms (Views: 6.2ms | ActiveRecord: 0.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-04-27 14:40:55 +0300 Served asset /application.css - 304 Not Modified (0ms) Started GET "/assets/application.js" for 127.0.0.1 at 2015-04-27 14:40:55 +0300 Served asset /application.js - 304 Not Modified (0ms) Started GET "/parents/new" for 127.0.0.1 at 2015-04-27 14:40:56 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (3.6ms) Rendered parents/new.html.erb within layouts/application (4.2ms) Completed 200 OK in 7.8ms (Views: 6.1ms | ActiveRecord: 0.0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-04-27 14:40:56 +0300 Served asset /application.css - 304 Not Modified (0ms) Started GET "/assets/application.js" for 127.0.0.1 at 2015-04-27 14:40:56 +0300 Served asset /application.js - 304 Not Modified (0ms) Started GET "/assets/jquery.simulate.js?_=1430134856067" for 127.0.0.1 at 2015-04-27 14:40:59 +0300 Served asset /jquery.simulate.js - 200 OK (0ms) Started POST "/parents" for 127.0.0.1 at 2015-04-27 14:41:02 +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 (4.2ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 27 Apr 2015 11:41:02 UTC +00:00], ["updated_at", Mon, 27 Apr 2015 11:41:02 UTC +00:00]] SQL (4.2ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:02 UTC +00:00], ["name", "Child 2"], ["parent_id", 2], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:41:02 UTC +00:00]] SQL (4.5ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:02 UTC +00:00], ["name", "Child 0"], ["parent_id", 2], ["position", 1], ["updated_at", Mon, 27 Apr 2015 11:41:02 UTC +00:00]] SQL (3.9ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:02 UTC +00:00], ["name", "Child 1"], ["parent_id", 2], ["position", 2], ["updated_at", Mon, 27 Apr 2015 11:41:02 UTC +00:00]]  (1.1ms) commit transaction Redirected to http://127.0.0.1:52360/parents/2 Completed 302 Found in 41.5ms (ActiveRecord: 17.9ms) Started GET "/parents/2" for 127.0.0.1 at 2015-04-27 14:41:02 +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" = 2 Rendered parents/show.html.erb within layouts/application (2.3ms) Completed 200 OK in 5.9ms (Views: 4.1ms | ActiveRecord: 0.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-04-27 14:41:02 +0300 Served asset /application.css - 304 Not Modified (0ms) Started GET "/assets/application.js" for 127.0.0.1 at 2015-04-27 14:41:02 +0300 Served asset /application.js - 304 Not Modified (0ms) Started GET "/parents/new" for 127.0.0.1 at 2015-04-27 14:41:02 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (3.0ms) Rendered parents/new.html.erb within layouts/application (3.7ms) Completed 200 OK in 8.3ms (Views: 6.2ms | ActiveRecord: 0.0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-04-27 14:41:02 +0300 Served asset /application.css - 304 Not Modified (0ms) Started GET "/assets/application.js" for 127.0.0.1 at 2015-04-27 14:41:02 +0300 Served asset /application.js - 304 Not Modified (0ms) Started GET "/assets/jquery.simulate.js?_=1430134862438" for 127.0.0.1 at 2015-04-27 14:41:05 +0300 Served asset /jquery.simulate.js - 200 OK (0ms) Started POST "/parents" for 127.0.0.1 at 2015-04-27 14:41: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 (4.3ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 27 Apr 2015 11:41:08 UTC +00:00], ["updated_at", Mon, 27 Apr 2015 11:41:08 UTC +00:00]] SQL (3.7ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:08 UTC +00:00], ["name", "Child 1"], ["parent_id", 3], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:41:08 UTC +00:00]] SQL (3.6ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:08 UTC +00:00], ["name", "Child 2"], ["parent_id", 3], ["position", 1], ["updated_at", Mon, 27 Apr 2015 11:41:08 UTC +00:00]] SQL (4.5ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:08 UTC +00:00], ["name", "Child 0"], ["parent_id", 3], ["position", 2], ["updated_at", Mon, 27 Apr 2015 11:41:08 UTC +00:00]]  (1.1ms) commit transaction Redirected to http://127.0.0.1:52360/parents/3 Completed 302 Found in 39.5ms (ActiveRecord: 17.2ms) Started GET "/parents/3" for 127.0.0.1 at 2015-04-27 14:41: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.2ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = 3 Rendered parents/show.html.erb within layouts/application (1.8ms) Completed 200 OK in 4.2ms (Views: 2.9ms | ActiveRecord: 0.4ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-04-27 14:41:08 +0300 Served asset /application.css - 304 Not Modified (0ms) Started GET "/assets/application.js" for 127.0.0.1 at 2015-04-27 14:41:08 +0300 Served asset /application.js - 304 Not Modified (0ms) Started GET "/parents/new" for 127.0.0.1 at 2015-04-27 14:41:08 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (2.4ms) Rendered parents/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 5.8ms (Views: 4.4ms | ActiveRecord: 0.0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-04-27 14:41:08 +0300 Served asset /application.css - 304 Not Modified (0ms) Started GET "/assets/application.js" for 127.0.0.1 at 2015-04-27 14:41:08 +0300 Served asset /application.js - 304 Not Modified (0ms) Started GET "/assets/jquery.simulate.js?_=1430134868813" for 127.0.0.1 at 2015-04-27 14:41:11 +0300 Served asset /jquery.simulate.js - 200 OK (0ms) Started POST "/parents" for 127.0.0.1 at 2015-04-27 14:41:14 +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 (4.0ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 27 Apr 2015 11:41:14 UTC +00:00], ["updated_at", Mon, 27 Apr 2015 11:41:14 UTC +00:00]] SQL (3.6ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:14 UTC +00:00], ["name", "Child 1"], ["parent_id", 4], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:41:14 UTC +00:00]] SQL (4.5ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:14 UTC +00:00], ["name", "Child 2"], ["parent_id", 4], ["position", 1], ["updated_at", Mon, 27 Apr 2015 11:41:14 UTC +00:00]] SQL (4.4ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:14 UTC +00:00], ["name", "Child 0"], ["parent_id", 4], ["position", 2], ["updated_at", Mon, 27 Apr 2015 11:41:14 UTC +00:00]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:52360/parents/4 Completed 302 Found in 38.9ms (ActiveRecord: 17.6ms) Started GET "/parents/4" for 127.0.0.1 at 2015-04-27 14:41:14 +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" = 4 Rendered parents/show.html.erb within layouts/application (1.6ms) Completed 200 OK in 4.2ms (Views: 3.0ms | ActiveRecord: 0.3ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-04-27 14:41:14 +0300 Served asset /application.css - 304 Not Modified (0ms) Started GET "/assets/application.js" for 127.0.0.1 at 2015-04-27 14:41:14 +0300 Served asset /application.js - 304 Not Modified (0ms) Started GET "/parents/new" for 127.0.0.1 at 2015-04-27 14:41:15 +0300 Processing by ParentsController#new as HTML Rendered parents/_form.html.erb (2.4ms) Rendered parents/new.html.erb within layouts/application (2.6ms) Completed 200 OK in 5.3ms (Views: 4.0ms | ActiveRecord: 0.0ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-04-27 14:41:15 +0300 Served asset /application.css - 304 Not Modified (0ms) Started GET "/assets/application.js" for 127.0.0.1 at 2015-04-27 14:41:15 +0300 Served asset /application.js - 304 Not Modified (0ms) Started GET "/assets/jquery.simulate.js?_=1430134875081" for 127.0.0.1 at 2015-04-27 14:41:18 +0300 Served asset /jquery.simulate.js - 200 OK (0ms) Started POST "/parents" for 127.0.0.1 at 2015-04-27 14:41:21 +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 (4.1ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]] SQL (3.7ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["name", "Child 1"], ["parent_id", 5], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]] SQL (3.6ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["name", "Child 2"], ["parent_id", 5], ["position", 1], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]] SQL (3.5ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["name", "Child 0"], ["parent_id", 5], ["position", 2], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction Redirected to http://127.0.0.1:52360/parents/5 Completed 302 Found in 35.5ms (ActiveRecord: 15.8ms) Started GET "/parents/5" for 127.0.0.1 at 2015-04-27 14:41:21 +0300 Processing by ParentsController#show as HTML Parameters: {"id"=>"5"} Parent Load (0.3ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", "5"]] Child Load (0.2ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = 5 Rendered parents/show.html.erb within layouts/application (1.6ms) Completed 200 OK in 4.1ms (Views: 2.8ms | ActiveRecord: 0.5ms) Started GET "/assets/application.css" for 127.0.0.1 at 2015-04-27 14:41:21 +0300 Served asset /application.css - 304 Not Modified (0ms) Started GET "/assets/application.js" for 127.0.0.1 at 2015-04-27 14:41:21 +0300 Served asset /application.js - 304 Not Modified (0ms) SQL (1.3ms) DELETE FROM "things"  (0.0ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things"  SQL (4.4ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things"  SQL (4.4ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 1], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (1.0ms) commit transaction Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 10]]  (0.0ms) begin transaction SQL (0.4ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 9]] SQL (0.4ms) UPDATE "things" SET position = position - 1, updated_at = '2015-04-27 11:41:21.331707' WHERE (position > 0)  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 10]] SQL (2.7ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (3.9ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (4.0ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 1], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (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.4ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 11]] SQL (0.5ms) UPDATE "things" SET position = position - 1, updated_at = '2015-04-27 11:41:21.362869' WHERE (position > 0)  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 12]] SQL (1.2ms) DELETE FROM "things"  (0.0ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things"  SQL (4.5ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things"  SQL (3.9ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 1], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things"  SQL (3.8ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 2], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction Thing Load (0.2ms) 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-04-27 11:41:21.403400' WHERE (position >= 1 AND position < 2)  (0.6ms) UPDATE "things" SET "position" = 1, "updated_at" = '2015-04-27 11:41:21.406511' WHERE "things"."id" = 15  (1.0ms) commit transaction Thing Load (0.1ms) 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 (4.6ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (1.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (4.2ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 1], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.3ms) SELECT "things"."position" FROM "things" SQL (4.6ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 2], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 16]]  (0.0ms) begin transaction SQL (1.6ms) UPDATE "things" SET position = position + 1, updated_at = '2015-04-27 11:41:21.449322' WHERE (position >= 1 AND position < 2)  (0.5ms) UPDATE "things" SET "position" = 1, "updated_at" = '2015-04-27 11:41:21.453434' WHERE "things"."id" = 18  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 16]] SQL (1.2ms) DELETE FROM "things"  (0.0ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things"  SQL (4.2ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things"  SQL (4.4ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 1], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things"  SQL (4.3ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 2], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 21]]  (0.0ms) begin transaction SQL (0.4ms) UPDATE "things" SET position = position + 1, updated_at = '2015-04-27 11:41:21.494625' WHERE (position >= 1 AND position < 2)  (0.4ms) UPDATE "things" SET "position" = 1, "updated_at" = '2015-04-27 11:41:21.497353' WHERE "things"."id" = 21  (1.1ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 21]] SQL (1.3ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (4.0ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.4ms) SELECT "things"."position" FROM "things" SQL (5.5ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 1], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (4.2ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 2], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 24]]  (0.0ms) begin transaction SQL (0.5ms) UPDATE "things" SET position = position + 1, updated_at = '2015-04-27 11:41:21.538705' WHERE (position >= 1 AND position < 2)  (0.4ms) UPDATE "things" SET "position" = 1, "updated_at" = '2015-04-27 11:41:21.541809' WHERE "things"."id" = 24  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 24]] SQL (1.0ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things"  SQL (4.4ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things"  SQL (3.9ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 1], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things"  SQL (4.5ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 2], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (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.4ms) UPDATE "things" SET position = position + 1, updated_at = '2015-04-27 11:41:21.581818' WHERE (position >= 1 AND position < 2)  (0.4ms) UPDATE "things" SET "position" = 1, "updated_at" = '2015-04-27 11:41:21.584644' WHERE "things"."id" = 27  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 26]] SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (4.0ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.3ms) SELECT "things"."position" FROM "things" SQL (3.9ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 1], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (4.4ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 2], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 29]]  (0.0ms) begin transaction SQL (0.5ms) UPDATE "things" SET position = position - 1, updated_at = '2015-04-27 11:41:21.623691' WHERE (position > 0 AND position <= 1)  (0.4ms) UPDATE "things" SET "position" = 1, "updated_at" = '2015-04-27 11:41:21.627066' WHERE "things"."id" = 28  (0.9ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 29]] SQL (1.5ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things"  SQL (4.8ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things"  SQL (3.9ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 1], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things"  SQL (4.0ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 2], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.8ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 33]]  (0.0ms) begin transaction SQL (0.5ms) UPDATE "things" SET position = position - 1, updated_at = '2015-04-27 11:41:21.667907' WHERE (position > 0 AND position <= 1)  (0.4ms) UPDATE "things" SET "position" = 1, "updated_at" = '2015-04-27 11:41:21.671639' WHERE "things"."id" = 31  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 33]] SQL (1.1ms) DELETE FROM "things"  (0.0ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (4.8ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (3.9ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 1], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (4.0ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 2], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 34]]  (0.0ms) begin transaction SQL (0.4ms) UPDATE "things" SET position = position - 1, updated_at = '2015-04-27 11:41:21.710868' WHERE (position > 0 AND position <= 1)  (0.5ms) UPDATE "things" SET "position" = 1, "updated_at" = '2015-04-27 11:41:21.713580' WHERE "things"."id" = 34  (1.0ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 34]] SQL (1.2ms) DELETE FROM "things"  (0.0ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things"  SQL (3.9ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (1.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things"  SQL (4.9ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 1], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things"  SQL (4.0ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 2], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (1.0ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 38]]  (0.0ms) begin transaction SQL (0.4ms) UPDATE "things" SET position = position - 1, updated_at = '2015-04-27 11:41:21.757507' WHERE (position > 0 AND position <= 1)  (0.4ms) UPDATE "things" SET "position" = 1, "updated_at" = '2015-04-27 11:41:21.760295' WHERE "things"."id" = 37  (1.0ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 38]] SQL (1.1ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (4.3ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (5.8ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 1], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (3.9ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 2], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (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.4ms) UPDATE "things" SET position = position - 1, updated_at = '2015-04-27 11:41:21.800977' WHERE (position > 0 AND position <= 1)  (0.4ms) UPDATE "things" SET "position" = 1, "updated_at" = '2015-04-27 11:41:21.803805' WHERE "things"."id" = 40  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 40]] SQL (1.2ms) DELETE FROM "things"  (0.0ms) begin transaction SQL (0.1ms) UPDATE "things" SET position = position + 1, updated_at = '2015-04-27 11:41:21.811383' SQL (4.1ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) UPDATE "things" SET position = position + 1, updated_at = '2015-04-27 11:41:21.823437' SQL (3.8ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction SQL (1.1ms) DELETE FROM "things"  (0.1ms) begin transaction SQL (0.2ms) UPDATE "things" SET position = position + 1, updated_at = '2015-04-27 11:41:21.839276' SQL (4.5ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 45]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "things" SET position = position + 1, updated_at = '2015-04-27 11:41:21.853881' SQL (3.8ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 45]] SQL (1.2ms) DELETE FROM "things"  (0.0ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things"  SQL (3.9ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 47]]  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (4.0ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 1], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 47]] SQL (1.2ms) DELETE FROM "things"  (0.1ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things" SQL (3.9ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT "things"."position" FROM "things" SQL (4.3ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 1], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction SQL (1.2ms) DELETE FROM "things"  (0.0ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things"  SQL (3.9ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 0], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT "things"."position" FROM "things"  SQL (5.8ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["position", 1], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction Thing Load (0.2ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC SQL (1.2ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things"  SQL (4.2ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["place", 0], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things"  SQL (4.2ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["place", 1], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.4ms) DELETE FROM "other_things" WHERE "other_things"."id" = ? [["id", 1]] SQL (0.5ms) UPDATE "other_things" SET place = place - 1, updated_at = '2015-04-27 11:41:21.980633' WHERE (place > 0)  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 2]] SQL (1.1ms) DELETE FROM "other_things"  (0.0ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (4.0ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["place", 0], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (3.9ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00], ["place", 1], ["updated_at", Mon, 27 Apr 2015 11:41:21 UTC +00:00]]  (0.9ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "other_things" WHERE "other_things"."id" = ? [["id", 3]] SQL (0.5ms) UPDATE "other_things" SET place = place - 1, updated_at = '2015-04-27 11:41:22.009592' WHERE (place > 0)  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 4]] SQL (1.1ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things"  SQL (4.6ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 0], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things"  SQL (4.5ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 1], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things"  SQL (4.3ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 2], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 7]]  (0.0ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET place = place + 1, updated_at = '2015-04-27 11:41:22.051642' WHERE (place >= 1 AND place < 2)  (0.4ms) UPDATE "other_things" SET "place" = 1, "updated_at" = '2015-04-27 11:41:22.054569' WHERE "other_things"."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.2ms) DELETE FROM "other_things"  (0.0ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (3.9ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 0], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (3.9ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 1], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (4.0ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 2], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 8]]  (0.0ms) begin transaction SQL (0.6ms) UPDATE "other_things" SET place = place + 1, updated_at = '2015-04-27 11:41:22.092747' WHERE (place >= 1 AND place < 2)  (0.5ms) UPDATE "other_things" SET "place" = 1, "updated_at" = '2015-04-27 11:41:22.095712' WHERE "other_things"."id" = 10  (1.0ms) commit transaction OtherThing Load (0.3ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 8]] SQL (1.2ms) DELETE FROM "other_things"  (0.0ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things"  SQL (4.2ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 0], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things"  SQL (3.9ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 1], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things"  SQL (3.9ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 2], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.8ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 12]]  (0.0ms) begin transaction SQL (1.6ms) UPDATE "other_things" SET place = place + 1, updated_at = '2015-04-27 11:41:22.134833' WHERE (place >= 1 AND place < 2)  (0.5ms) UPDATE "other_things" SET "place" = 1, "updated_at" = '2015-04-27 11:41:22.138999' WHERE "other_things"."id" = 13  (1.0ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 12]] SQL (1.1ms) DELETE FROM "other_things"  (0.0ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (6.8ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 0], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (4.1ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 1], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (3.9ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 2], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 15]]  (0.0ms) begin transaction SQL (0.4ms) UPDATE "other_things" SET place = place + 1, updated_at = '2015-04-27 11:41:22.182072' WHERE (place >= 1 AND place < 2)  (0.5ms) UPDATE "other_things" SET "place" = 1, "updated_at" = '2015-04-27 11:41:22.184723' WHERE "other_things"."id" = 16  (1.1ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 15]] SQL (1.3ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things"  SQL (3.9ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 0], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things"  SQL (4.1ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 1], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things"  SQL (3.9ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 2], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.8ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 19]]  (0.0ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET place = place + 1, updated_at = '2015-04-27 11:41:22.223869' WHERE (place >= 1 AND place < 2)  (0.4ms) UPDATE "other_things" SET "place" = 1, "updated_at" = '2015-04-27 11:41:22.226731' WHERE "other_things"."id" = 19  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 19]] SQL (1.2ms) DELETE FROM "other_things"  (0.0ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (4.5ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 0], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (4.1ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 1], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (3.9ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 2], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.8ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 20]]  (0.0ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET place = place - 1, updated_at = '2015-04-27 11:41:22.266413' WHERE (place > 0 AND place <= 1)  (0.4ms) UPDATE "other_things" SET "place" = 1, "updated_at" = '2015-04-27 11:41:22.269462' WHERE "other_things"."id" = 20  (1.1ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 20]] SQL (1.1ms) DELETE FROM "other_things"  (0.0ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things"  SQL (4.4ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 0], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things"  SQL (3.8ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 1], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things"  SQL (4.0ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 2], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.8ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 24]]  (0.0ms) begin transaction SQL (0.6ms) UPDATE "other_things" SET place = place - 1, updated_at = '2015-04-27 11:41:22.307551' WHERE (place > 0 AND place <= 1)  (0.5ms) UPDATE "other_things" SET "place" = 1, "updated_at" = '2015-04-27 11:41:22.310715' WHERE "other_things"."id" = 23  (1.0ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 24]] SQL (1.1ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (4.2ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 0], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (3.9ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 1], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (4.0ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 2], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.9ms) commit transaction OtherThing Load (0.1ms) 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-04-27 11:41:22.351168' WHERE (place > 0 AND place <= 1)  (0.5ms) UPDATE "other_things" SET "place" = 1, "updated_at" = '2015-04-27 11:41:22.354019' WHERE "other_things"."id" = 26  (1.0ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 28]] SQL (1.1ms) DELETE FROM "other_things"  (0.0ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things"  SQL (4.4ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 0], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things"  SQL (4.2ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 1], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things"  SQL (3.9ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 2], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 29]]  (0.0ms) begin transaction SQL (0.4ms) UPDATE "other_things" SET place = place - 1, updated_at = '2015-04-27 11:41:22.393867' WHERE (place > 0 AND place <= 1)  (0.5ms) UPDATE "other_things" SET "place" = 1, "updated_at" = '2015-04-27 11:41:22.396560' WHERE "other_things"."id" = 29  (1.1ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 29]] SQL (1.1ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things" SQL (4.0ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 0], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (4.7ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 1], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (3.9ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 2], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 33]]  (0.0ms) begin transaction SQL (0.6ms) UPDATE "other_things" SET place = place - 1, updated_at = '2015-04-27 11:41:22.436679' WHERE (place > 0 AND place <= 1)  (0.4ms) UPDATE "other_things" SET "place" = 1, "updated_at" = '2015-04-27 11:41:22.439734' WHERE "other_things"."id" = 32  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 33]] SQL (1.0ms) DELETE FROM "other_things"  (0.1ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things"  SQL (4.0ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 0], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things"  SQL (4.2ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 1], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.9ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" ORDER BY "other_things"."place" ASC SQL (1.2ms) DELETE FROM "other_things"  (0.0ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things"  SQL (4.4ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 0], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.9ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT "other_things"."place" FROM "other_things"  SQL (4.7ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 1], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.9ms) commit transaction SQL (1.2ms) DELETE FROM "other_things"  (0.0ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things" SQL (4.2ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 0], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.8ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 39]]  (0.0ms) begin transaction  (0.1ms) SELECT "other_things"."place" FROM "other_things"  SQL (3.9ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 1], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 39]] SQL (1.2ms) DELETE FROM "other_things"  (0.0ms) begin transaction SQL (0.1ms) UPDATE "other_things" SET place = place + 1, updated_at = '2015-04-27 11:41:22.518608' SQL (3.8ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 0], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) UPDATE "other_things" SET place = place + 1, updated_at = '2015-04-27 11:41:22.531553' SQL (3.8ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 0], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.9ms) commit transaction SQL (1.2ms) DELETE FROM "other_things"  (0.0ms) begin transaction SQL (0.1ms) UPDATE "other_things" SET place = place + 1, updated_at = '2015-04-27 11:41:22.546923' SQL (3.8ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 0], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.9ms) commit transaction OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 43]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "other_things" SET place = place + 1, updated_at = '2015-04-27 11:41:22.560662' SQL (3.6ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00], ["place", 0], ["updated_at", Mon, 27 Apr 2015 11:41:22 UTC +00:00]]  (0.9ms) commit transaction OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 43]]