activerecord-sortable 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd0dd1ccd5568289c71f1de457310059ee7a3ed5
4
- data.tar.gz: 4f2cff155c2274d81c4f164bd73cb9e6912f9569
3
+ metadata.gz: 98f23ed90649a680f99c819642ccfb3cb09697e8
4
+ data.tar.gz: 2a5ce0afd0e15c10373b6979dc10b7f002262826
5
5
  SHA512:
6
- metadata.gz: b438c958b5a676c4c89676085f920d9adf8c98653ce74cd83574008e5213ff8d863d271e595370d0f5d5224347b89663fb81658363b602073369f9f059e6564e
7
- data.tar.gz: 2f3ae6ea7295a840f29bee3c8174f77a2ee31b18ef619fde4f364c206bf578abc80637a5c9385af2fea078a29605e16a340e005f988f0fe7664d7c66830a2ff6
6
+ metadata.gz: 229c2e8a81ca37ad40a39cb78135ac9b6f46c42add9c20b5356af370e7fc514b00e218506b2367f35ea641b7bf5bd5c82b03724f3cd2fc6f57a4272e9396828b
7
+ data.tar.gz: 6c679607bbd2caba68ae59c13a0a0dd74a062e96fbd345523ff97e540d73bd18de178a09474341379271f6712aab57a2a6a7919a98d634fc4e7c818937d84668
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module Sortable
3
- VERSION = '0.0.5'
3
+ VERSION = '0.0.6'
4
4
  end
5
5
  end
@@ -91,13 +91,16 @@
91
91
  };
92
92
 
93
93
 
94
- function Sortable(node) {
94
+ function Sortable(node, options) {
95
95
  this.node = node;
96
96
 
97
- this.node.sortable({
98
- axis: 'y',
99
- update: $.proxy(this.sortable_stop_handler, this)
100
- });
97
+ if (!options) options = {};
98
+ options['update'] = $.proxy(this.sortable_stop_handler, this);
99
+
100
+ var defaults = { axis: 'y' };
101
+ var settings = $.extend({}, defaults, options);
102
+
103
+ this.node.sortable(settings);
101
104
  };
102
105
 
103
106
  Sortable.prototype.sortable_stop_handler = function(e, ui) {
@@ -923,3 +923,1182 @@ Served asset /application.js - 304 Not Modified (0ms)
923
923
  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]]
924
924
   (0.9ms) commit transaction
925
925
  OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 43]]
926
+ Connecting to database specified by database.yml
927
+  (8.1ms) select sqlite_version(*)
928
+  (1.5ms) 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)
929
+  (1.5ms) CREATE INDEX "index_children_on_position" ON "children" ("position")
930
+  (1.4ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "position" integer NOT NULL)
931
+  (1.5ms) CREATE INDEX "index_items_on_position" ON "items" ("position")
932
+  (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)
933
+  (1.3ms) CREATE INDEX "index_order_things_on_order" ON "order_things" ("order")
934
+  (1.3ms) 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)
935
+  (1.2ms) CREATE INDEX "index_other_things_on_place" ON "other_things" ("place")
936
+  (1.2ms) CREATE TABLE "parents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
937
+  (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) 
938
+  (1.2ms) CREATE INDEX "index_things_on_position" ON "things" ("position")
939
+  (1.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
940
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
941
+  (0.4ms) SELECT version FROM "schema_migrations"
942
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150408101403')
943
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140512100816')
944
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525104834')
945
+  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525111906')
946
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525112123')
947
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140721161028')
948
+  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140721161122')
949
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
950
+ Connecting to database specified by database.yml
951
+  (2.9ms) select sqlite_version(*)
952
+  (1.6ms) 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)
953
+  (1.1ms) CREATE INDEX "index_children_on_position" ON "children" ("position")
954
+  (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)
955
+  (1.0ms) CREATE INDEX "index_items_on_position" ON "items" ("position")
956
+  (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)
957
+  (1.9ms) CREATE INDEX "index_order_things_on_order" ON "order_things" ("order")
958
+  (1.2ms) 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)
959
+  (1.0ms) CREATE INDEX "index_other_things_on_place" ON "other_things" ("place")
960
+  (1.1ms) CREATE TABLE "parents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
961
+  (1.7ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "position" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
962
+  (4.5ms) CREATE INDEX "index_things_on_position" ON "things" ("position")
963
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
964
+  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
965
+  (0.1ms) SELECT version FROM "schema_migrations"
966
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150408101403')
967
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140512100816')
968
+  (3.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525104834')
969
+  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525111906')
970
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525112123')
971
+  (2.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140721161028')
972
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140721161122')
973
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
974
+ Connecting to database specified by database.yml
975
+  (2.0ms) select sqlite_version(*)
976
+  (1.4ms) 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)
977
+  (1.1ms) CREATE INDEX "index_children_on_position" ON "children" ("position")
978
+  (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)
979
+  (1.1ms) CREATE INDEX "index_items_on_position" ON "items" ("position")
980
+  (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)
981
+  (1.2ms) CREATE INDEX "index_order_things_on_order" ON "order_things" ("order")
982
+  (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)
983
+  (1.2ms) CREATE INDEX "index_other_things_on_place" ON "other_things" ("place")
984
+  (1.1ms) CREATE TABLE "parents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
985
+  (1.2ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "position" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
986
+  (1.2ms) CREATE INDEX "index_things_on_position" ON "things" ("position")
987
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
988
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
989
+  (0.1ms) SELECT version FROM "schema_migrations"
990
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150408101403')
991
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140512100816')
992
+  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525104834')
993
+  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525111906')
994
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525112123')
995
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140721161028')
996
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140721161122')
997
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
998
+ SQL (1.2ms) DELETE FROM "other_things"
999
+  (0.1ms) begin transaction
1000
+  (0.2ms) SELECT "other_things"."place" FROM "other_things"
1001
+ SQL (12.1ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 0], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1002
+  (0.9ms) commit transaction
1003
+  (0.0ms) begin transaction
1004
+  (0.1ms) SELECT "other_things"."place" FROM "other_things"
1005
+ SQL (5.8ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 1], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1006
+  (0.9ms) commit transaction
1007
+ OtherThing Load (0.3ms) SELECT "other_things".* FROM "other_things" ORDER BY "other_things"."place" ASC
1008
+ SQL (1.3ms) DELETE FROM "other_things"
1009
+  (0.1ms) begin transaction
1010
+  (0.1ms) SELECT "other_things"."place" FROM "other_things"
1011
+ SQL (4.5ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 0], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1012
+  (0.9ms) commit transaction
1013
+  (0.0ms) begin transaction
1014
+  (0.1ms) SELECT "other_things"."place" FROM "other_things"
1015
+ SQL (4.0ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 1], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1016
+  (0.9ms) commit transaction
1017
+ SQL (1.2ms) DELETE FROM "other_things"
1018
+  (0.0ms) begin transaction
1019
+  (0.1ms) SELECT "other_things"."place" FROM "other_things" 
1020
+ SQL (4.1ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 0], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1021
+  (0.9ms) commit transaction
1022
+ OtherThing Load (0.3ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 5]]
1023
+  (0.0ms) begin transaction
1024
+  (0.1ms) SELECT "other_things"."place" FROM "other_things"
1025
+ SQL (4.3ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 1], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1026
+  (1.0ms) commit transaction
1027
+ OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 5]]
1028
+ SQL (1.2ms) DELETE FROM "other_things"
1029
+  (0.0ms) begin transaction
1030
+ SQL (0.1ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-08-12 05:39:03.638866'
1031
+ SQL (4.2ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 0], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1032
+  (0.9ms) commit transaction
1033
+  (0.0ms) begin transaction
1034
+ SQL (0.4ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-08-12 05:39:03.651772'
1035
+ SQL (4.4ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 0], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1036
+  (0.9ms) commit transaction
1037
+ SQL (1.3ms) DELETE FROM "other_things"
1038
+  (0.1ms) begin transaction
1039
+ SQL (0.2ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-08-12 05:39:03.666831'
1040
+ SQL (4.2ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 0], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1041
+  (0.9ms) commit transaction
1042
+ OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 9]]
1043
+  (0.0ms) begin transaction
1044
+ SQL (0.4ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-08-12 05:39:03.683282'
1045
+ SQL (4.2ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 0], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1046
+  (0.9ms) commit transaction
1047
+ OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 9]]
1048
+ SQL (1.2ms) DELETE FROM "other_things"
1049
+  (0.1ms) begin transaction
1050
+  (0.1ms) SELECT "other_things"."place" FROM "other_things"
1051
+ SQL (4.0ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 0], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1052
+  (0.9ms) commit transaction
1053
+  (0.1ms) begin transaction
1054
+  (0.1ms) SELECT "other_things"."place" FROM "other_things"
1055
+ SQL (3.9ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 1], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1056
+  (0.9ms) commit transaction
1057
+  (0.0ms) begin transaction
1058
+  (0.1ms) SELECT "other_things"."place" FROM "other_things"
1059
+ SQL (4.0ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 2], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1060
+  (0.9ms) commit transaction
1061
+ OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 13]]
1062
+  (0.2ms) begin transaction
1063
+ SQL (0.5ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-08-12 05:39:03.732396' WHERE ("place" >= 1 AND "place" < 2)
1064
+  (0.5ms) UPDATE "other_things" SET "place" = 1, "updated_at" = '2015-08-12 05:39:03.737127' WHERE "other_things"."id" = 13
1065
+  (1.1ms) commit transaction
1066
+ OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 13]]
1067
+ SQL (1.2ms) DELETE FROM "other_things"
1068
+  (0.1ms) begin transaction
1069
+  (0.2ms) SELECT "other_things"."place" FROM "other_things" 
1070
+ SQL (5.7ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 0], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1071
+  (0.9ms) commit transaction
1072
+  (0.0ms) begin transaction
1073
+  (0.1ms) SELECT "other_things"."place" FROM "other_things" 
1074
+ SQL (4.0ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 1], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1075
+  (0.9ms) commit transaction
1076
+  (0.0ms) begin transaction
1077
+  (0.2ms) SELECT "other_things"."place" FROM "other_things" 
1078
+ SQL (4.7ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 2], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1079
+  (1.7ms) commit transaction
1080
+ OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 15]]
1081
+  (0.1ms) begin transaction
1082
+ SQL (0.5ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-08-12 05:39:03.781759' WHERE ("place" >= 1 AND "place" < 2)
1083
+  (0.4ms) UPDATE "other_things" SET "place" = 1, "updated_at" = '2015-08-12 05:39:03.784891' WHERE "other_things"."id" = 16
1084
+  (0.9ms) commit transaction
1085
+ OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 15]]
1086
+ SQL (1.2ms) DELETE FROM "other_things"
1087
+  (0.1ms) begin transaction
1088
+  (0.2ms) SELECT "other_things"."place" FROM "other_things"
1089
+ SQL (4.0ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 0], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1090
+  (0.9ms) commit transaction
1091
+  (0.1ms) begin transaction
1092
+  (0.2ms) SELECT "other_things"."place" FROM "other_things"
1093
+ SQL (3.9ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 1], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1094
+  (1.1ms) commit transaction
1095
+  (0.1ms) begin transaction
1096
+  (0.2ms) SELECT "other_things"."place" FROM "other_things"
1097
+ SQL (3.9ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 2], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1098
+  (1.1ms) commit transaction
1099
+ OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 18]]
1100
+  (0.1ms) begin transaction
1101
+ SQL (0.6ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-08-12 05:39:03.825192' WHERE ("place" >= 1 AND "place" < 2)
1102
+  (0.5ms) UPDATE "other_things" SET "place" = 1, "updated_at" = '2015-08-12 05:39:03.828615' WHERE "other_things"."id" = 19
1103
+  (1.1ms) commit transaction
1104
+ OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 18]]
1105
+ SQL (1.2ms) DELETE FROM "other_things"
1106
+  (0.1ms) begin transaction
1107
+  (0.1ms) SELECT "other_things"."place" FROM "other_things" 
1108
+ SQL (3.9ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 0], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1109
+  (0.8ms) commit transaction
1110
+  (0.1ms) begin transaction
1111
+  (0.1ms) SELECT "other_things"."place" FROM "other_things" 
1112
+ SQL (3.9ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 1], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1113
+  (0.8ms) commit transaction
1114
+  (0.1ms) begin transaction
1115
+  (0.2ms) SELECT "other_things"."place" FROM "other_things" 
1116
+ SQL (5.1ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 2], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1117
+  (1.1ms) commit transaction
1118
+ OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 20]]
1119
+  (0.1ms) begin transaction
1120
+ SQL (0.4ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-08-12 05:39:03.872295' WHERE ("place" >= 1 AND "place" < 2)
1121
+  (0.6ms) UPDATE "other_things" SET "place" = 1, "updated_at" = '2015-08-12 05:39:03.875082' WHERE "other_things"."id" = 22
1122
+  (1.0ms) commit transaction
1123
+ OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 20]]
1124
+ SQL (1.2ms) DELETE FROM "other_things"
1125
+  (0.1ms) begin transaction
1126
+  (0.1ms) SELECT "other_things"."place" FROM "other_things"
1127
+ SQL (4.0ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 0], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1128
+  (0.9ms) commit transaction
1129
+  (0.0ms) begin transaction
1130
+  (0.2ms) SELECT "other_things"."place" FROM "other_things"
1131
+ SQL (4.0ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 1], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1132
+  (1.1ms) commit transaction
1133
+  (0.1ms) begin transaction
1134
+  (0.2ms) SELECT "other_things"."place" FROM "other_things"
1135
+ SQL (3.9ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 2], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1136
+  (1.1ms) commit transaction
1137
+ OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 25]]
1138
+  (0.1ms) begin transaction
1139
+ SQL (0.5ms) UPDATE "other_things" SET "place" = "place" + 1, updated_at = '2015-08-12 05:39:03.916107' WHERE ("place" >= 1 AND "place" < 2)
1140
+  (0.4ms) UPDATE "other_things" SET "place" = 1, "updated_at" = '2015-08-12 05:39:03.919267' WHERE "other_things"."id" = 25
1141
+  (1.0ms) commit transaction
1142
+ OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 25]]
1143
+ SQL (1.7ms) DELETE FROM "other_things"
1144
+  (0.1ms) begin transaction
1145
+  (0.2ms) SELECT "other_things"."place" FROM "other_things" 
1146
+ SQL (5.1ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 0], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1147
+  (0.9ms) commit transaction
1148
+  (0.1ms) begin transaction
1149
+  (0.1ms) SELECT "other_things"."place" FROM "other_things" 
1150
+ SQL (4.4ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 1], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1151
+  (1.1ms) commit transaction
1152
+  (0.1ms) begin transaction
1153
+  (0.2ms) SELECT "other_things"."place" FROM "other_things" 
1154
+ SQL (4.1ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 2], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1155
+  (3.4ms) commit transaction
1156
+ OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 26]]
1157
+  (0.1ms) begin transaction
1158
+ SQL (0.5ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-08-12 05:39:03.973357' WHERE ("place" > 0 AND "place" <= 1)
1159
+  (0.5ms) UPDATE "other_things" SET "place" = 1, "updated_at" = '2015-08-12 05:39:03.976539' WHERE "other_things"."id" = 26
1160
+  (1.0ms) commit transaction
1161
+ OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 26]]
1162
+ SQL (1.2ms) DELETE FROM "other_things"
1163
+  (0.0ms) begin transaction
1164
+  (0.1ms) SELECT "other_things"."place" FROM "other_things"
1165
+ SQL (4.7ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 0], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1166
+  (0.9ms) commit transaction
1167
+  (0.0ms) begin transaction
1168
+  (0.1ms) SELECT "other_things"."place" FROM "other_things"
1169
+ SQL (3.9ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00], ["place", 1], ["updated_at", Wed, 12 Aug 2015 05:39:03 UTC +00:00]]
1170
+  (0.9ms) commit transaction
1171
+  (0.1ms) begin transaction
1172
+  (0.1ms) SELECT "other_things"."place" FROM "other_things"
1173
+ SQL (4.3ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["place", 2], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1174
+  (0.8ms) commit transaction
1175
+ OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 29]]
1176
+  (0.1ms) begin transaction
1177
+ SQL (0.5ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-08-12 05:39:04.017435' WHERE ("place" > 0 AND "place" <= 1)
1178
+  (0.4ms) UPDATE "other_things" SET "place" = 1, "updated_at" = '2015-08-12 05:39:04.020415' WHERE "other_things"."id" = 29
1179
+  (1.0ms) commit transaction
1180
+ OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 29]]
1181
+ SQL (1.1ms) DELETE FROM "other_things"
1182
+  (0.1ms) begin transaction
1183
+  (0.2ms) SELECT "other_things"."place" FROM "other_things" 
1184
+ SQL (4.9ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["place", 0], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1185
+  (0.9ms) commit transaction
1186
+  (0.0ms) begin transaction
1187
+  (0.1ms) SELECT "other_things"."place" FROM "other_things" 
1188
+ SQL (4.2ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["place", 1], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1189
+  (0.9ms) commit transaction
1190
+  (0.1ms) begin transaction
1191
+  (0.2ms) SELECT "other_things"."place" FROM "other_things" 
1192
+ SQL (3.9ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["place", 2], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1193
+  (0.8ms) commit transaction
1194
+ OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 33]]
1195
+  (0.1ms) begin transaction
1196
+ SQL (0.6ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-08-12 05:39:04.063502' WHERE ("place" > 0 AND "place" <= 1)
1197
+  (0.5ms) UPDATE "other_things" SET "place" = 1, "updated_at" = '2015-08-12 05:39:04.066619' WHERE "other_things"."id" = 32
1198
+  (1.1ms) commit transaction
1199
+ OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 33]]
1200
+ SQL (1.2ms) DELETE FROM "other_things"
1201
+  (0.0ms) begin transaction
1202
+  (0.1ms) SELECT "other_things"."place" FROM "other_things"
1203
+ SQL (5.0ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["place", 0], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1204
+  (0.9ms) commit transaction
1205
+  (0.0ms) begin transaction
1206
+  (0.2ms) SELECT "other_things"."place" FROM "other_things"
1207
+ SQL (4.1ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["place", 1], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1208
+  (0.9ms) commit transaction
1209
+  (0.1ms) begin transaction
1210
+  (0.1ms) SELECT "other_things"."place" FROM "other_things"
1211
+ SQL (4.1ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["place", 2], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1212
+  (0.8ms) commit transaction
1213
+ OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 36]]
1214
+  (0.1ms) begin transaction
1215
+ SQL (0.7ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-08-12 05:39:04.108751' WHERE ("place" > 0 AND "place" <= 1)
1216
+  (0.5ms) UPDATE "other_things" SET "place" = 1, "updated_at" = '2015-08-12 05:39:04.112310' WHERE "other_things"."id" = 35
1217
+  (1.1ms) commit transaction
1218
+ OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 36]]
1219
+ SQL (1.2ms) DELETE FROM "other_things"
1220
+  (0.1ms) begin transaction
1221
+  (0.1ms) SELECT "other_things"."place" FROM "other_things" 
1222
+ SQL (4.5ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["place", 0], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1223
+  (0.9ms) commit transaction
1224
+  (0.1ms) begin transaction
1225
+  (0.2ms) SELECT "other_things"."place" FROM "other_things" 
1226
+ SQL (4.0ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["place", 1], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1227
+  (0.9ms) commit transaction
1228
+  (0.0ms) begin transaction
1229
+  (0.1ms) SELECT "other_things"."place" FROM "other_things" 
1230
+ SQL (4.3ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["place", 2], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1231
+  (1.6ms) commit transaction
1232
+ OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 40]]
1233
+  (0.1ms) begin transaction
1234
+ SQL (0.5ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-08-12 05:39:04.154272' WHERE ("place" > 0 AND "place" <= 1)
1235
+  (0.4ms) UPDATE "other_things" SET "place" = 1, "updated_at" = '2015-08-12 05:39:04.157014' WHERE "other_things"."id" = 38
1236
+  (1.5ms) commit transaction
1237
+ OtherThing Load (0.2ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 40]]
1238
+ SQL (1.3ms) DELETE FROM "other_things"
1239
+  (0.1ms) begin transaction
1240
+  (0.1ms) SELECT "other_things"."place" FROM "other_things"
1241
+ SQL (3.9ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["place", 0], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1242
+  (1.1ms) commit transaction
1243
+  (0.1ms) begin transaction
1244
+  (0.2ms) SELECT "other_things"."place" FROM "other_things"
1245
+ SQL (5.2ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["place", 1], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1246
+  (0.9ms) commit transaction
1247
+ OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 42]]
1248
+  (0.1ms) begin transaction
1249
+ SQL (0.4ms) DELETE FROM "other_things" WHERE "other_things"."id" = ? [["id", 41]]
1250
+ SQL (0.4ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-08-12 05:39:04.191538' WHERE ("place" > 0)
1251
+  (1.0ms) commit transaction
1252
+ OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 42]]
1253
+ SQL (1.5ms) DELETE FROM "other_things"
1254
+  (0.1ms) begin transaction
1255
+  (0.2ms) SELECT "other_things"."place" FROM "other_things" 
1256
+ SQL (4.1ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["place", 0], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1257
+  (1.0ms) commit transaction
1258
+  (0.1ms) begin transaction
1259
+  (0.2ms) SELECT "other_things"."place" FROM "other_things" 
1260
+ SQL (6.6ms) INSERT INTO "other_things" ("created_at", "place", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["place", 1], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1261
+  (2.8ms) commit transaction
1262
+ OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 44]]
1263
+  (0.1ms) begin transaction
1264
+ SQL (0.3ms) DELETE FROM "other_things" WHERE "other_things"."id" = ? [["id", 43]]
1265
+ SQL (0.4ms) UPDATE "other_things" SET "place" = "place" - 1, updated_at = '2015-08-12 05:39:04.234947' WHERE ("place" > 0)
1266
+  (1.0ms) commit transaction
1267
+ OtherThing Load (0.1ms) SELECT "other_things".* FROM "other_things" WHERE "other_things"."id" = ? LIMIT 1 [["id", 44]]
1268
+ SQL (1.2ms) DELETE FROM "things"
1269
+  (0.1ms) begin transaction
1270
+ SQL (0.1ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-08-12 05:39:04.251038'
1271
+ SQL (4.4ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 0], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1272
+  (0.9ms) commit transaction
1273
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
1274
+  (0.0ms) begin transaction
1275
+ SQL (0.4ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-08-12 05:39:04.265445'
1276
+ SQL (5.4ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 0], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1277
+  (1.0ms) commit transaction
1278
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
1279
+ SQL (1.2ms) DELETE FROM "things"
1280
+  (0.0ms) begin transaction
1281
+ SQL (0.1ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-08-12 05:39:04.283170'
1282
+ SQL (3.8ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 0], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1283
+  (1.0ms) commit transaction
1284
+  (0.0ms) begin transaction
1285
+ SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-08-12 05:39:04.295962'
1286
+ SQL (3.5ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 0], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1287
+  (0.8ms) commit transaction
1288
+ SQL (1.2ms) DELETE FROM "things"
1289
+  (0.0ms) begin transaction
1290
+  (0.1ms) SELECT "things"."position" FROM "things"
1291
+ SQL (3.9ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 0], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1292
+  (0.9ms) commit transaction
1293
+  (0.0ms) begin transaction
1294
+  (0.1ms) SELECT "things"."position" FROM "things"
1295
+ SQL (3.8ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 1], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1296
+  (0.9ms) commit transaction
1297
+ SQL (1.2ms) DELETE FROM "things"
1298
+  (0.0ms) begin transaction
1299
+  (0.1ms) SELECT "things"."position" FROM "things" 
1300
+ SQL (5.4ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 0], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1301
+  (0.9ms) commit transaction
1302
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 7]]
1303
+  (0.0ms) begin transaction
1304
+  (0.1ms) SELECT "things"."position" FROM "things"
1305
+ SQL (4.8ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 1], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1306
+  (0.9ms) commit transaction
1307
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 7]]
1308
+ SQL (1.1ms) DELETE FROM "things"
1309
+  (0.1ms) begin transaction
1310
+  (0.1ms) SELECT "things"."position" FROM "things"
1311
+ SQL (5.5ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 0], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1312
+  (1.4ms) commit transaction
1313
+  (0.1ms) begin transaction
1314
+  (0.2ms) SELECT "things"."position" FROM "things"
1315
+ SQL (4.7ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 1], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1316
+  (1.0ms) commit transaction
1317
+  (0.0ms) begin transaction
1318
+  (0.1ms) SELECT "things"."position" FROM "things"
1319
+ SQL (3.9ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 2], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1320
+  (1.1ms) commit transaction
1321
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 10]]
1322
+  (0.0ms) begin transaction
1323
+ SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-08-12 05:39:04.400774' WHERE ("position" >= 1 AND "position" < 2)
1324
+  (0.4ms) UPDATE "things" SET "position" = 1, "updated_at" = '2015-08-12 05:39:04.403682' WHERE "things"."id" = 11
1325
+  (1.0ms) commit transaction
1326
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 10]]
1327
+ SQL (3.0ms) DELETE FROM "things"
1328
+  (0.1ms) begin transaction
1329
+  (0.2ms) SELECT "things"."position" FROM "things" 
1330
+ SQL (4.5ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 0], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1331
+  (1.0ms) commit transaction
1332
+  (0.1ms) begin transaction
1333
+  (0.2ms) SELECT "things"."position" FROM "things" 
1334
+ SQL (4.7ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 1], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1335
+  (1.0ms) commit transaction
1336
+  (0.1ms) begin transaction
1337
+  (0.2ms) SELECT "things"."position" FROM "things" 
1338
+ SQL (3.9ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 2], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1339
+  (1.0ms) commit transaction
1340
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 13]]
1341
+  (0.1ms) begin transaction
1342
+ SQL (0.6ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-08-12 05:39:04.447819' WHERE ("position" >= 1 AND "position" < 2)
1343
+  (0.5ms) UPDATE "things" SET "position" = 1, "updated_at" = '2015-08-12 05:39:04.450973' WHERE "things"."id" = 14
1344
+  (1.1ms) commit transaction
1345
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 13]]
1346
+ SQL (1.3ms) DELETE FROM "things"
1347
+  (0.1ms) begin transaction
1348
+  (0.1ms) SELECT "things"."position" FROM "things"
1349
+ SQL (4.0ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 0], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1350
+  (0.9ms) commit transaction
1351
+  (0.1ms) begin transaction
1352
+  (0.2ms) SELECT "things"."position" FROM "things"
1353
+ SQL (3.9ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 1], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1354
+  (2.0ms) commit transaction
1355
+  (0.1ms) begin transaction
1356
+  (0.2ms) SELECT "things"."position" FROM "things"
1357
+ SQL (3.9ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 2], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1358
+  (0.9ms) commit transaction
1359
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 15]]
1360
+  (0.1ms) begin transaction
1361
+ SQL (0.6ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-08-12 05:39:04.493599' WHERE ("position" >= 1 AND "position" < 2)
1362
+  (0.5ms) UPDATE "things" SET "position" = 1, "updated_at" = '2015-08-12 05:39:04.496690' WHERE "things"."id" = 17
1363
+  (1.1ms) commit transaction
1364
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 15]]
1365
+ SQL (1.1ms) DELETE FROM "things"
1366
+  (0.0ms) begin transaction
1367
+  (0.1ms) SELECT "things"."position" FROM "things" 
1368
+ SQL (5.5ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 0], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1369
+  (0.9ms) commit transaction
1370
+  (0.0ms) begin transaction
1371
+  (0.1ms) SELECT "things"."position" FROM "things" 
1372
+ SQL (3.9ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 1], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1373
+  (0.9ms) commit transaction
1374
+  (0.0ms) begin transaction
1375
+  (0.1ms) SELECT "things"."position" FROM "things" 
1376
+ SQL (4.5ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 2], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1377
+  (1.9ms) commit transaction
1378
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 20]]
1379
+  (0.1ms) begin transaction
1380
+ SQL (0.4ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-08-12 05:39:04.538935' WHERE ("position" >= 1 AND "position" < 2)
1381
+  (3.4ms) UPDATE "things" SET "position" = 1, "updated_at" = '2015-08-12 05:39:04.541626' WHERE "things"."id" = 20
1382
+  (0.9ms) commit transaction
1383
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 20]]
1384
+ SQL (1.2ms) DELETE FROM "things"
1385
+  (0.0ms) begin transaction
1386
+  (0.1ms) SELECT "things"."position" FROM "things"
1387
+ SQL (4.0ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 0], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1388
+  (0.9ms) commit transaction
1389
+  (0.0ms) begin transaction
1390
+  (0.1ms) SELECT "things"."position" FROM "things"
1391
+ SQL (4.2ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 1], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1392
+  (0.9ms) commit transaction
1393
+  (0.1ms) begin transaction
1394
+  (0.2ms) SELECT "things"."position" FROM "things"
1395
+ SQL (4.4ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 2], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1396
+  (2.1ms) commit transaction
1397
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 23]]
1398
+  (0.1ms) begin transaction
1399
+ SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-08-12 05:39:04.586971' WHERE ("position" >= 1 AND "position" < 2)
1400
+  (0.4ms) UPDATE "things" SET "position" = 1, "updated_at" = '2015-08-12 05:39:04.589753' WHERE "things"."id" = 23
1401
+  (1.1ms) commit transaction
1402
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 23]]
1403
+ SQL (1.3ms) DELETE FROM "things"
1404
+  (0.1ms) begin transaction
1405
+  (0.2ms) SELECT "things"."position" FROM "things" 
1406
+ SQL (4.0ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 0], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1407
+  (1.1ms) commit transaction
1408
+  (0.1ms) begin transaction
1409
+  (0.2ms) SELECT "things"."position" FROM "things" 
1410
+ SQL (4.0ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 1], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1411
+  (1.0ms) commit transaction
1412
+  (0.1ms) begin transaction
1413
+  (0.2ms) SELECT "things"."position" FROM "things" 
1414
+ SQL (3.9ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 2], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1415
+  (0.8ms) commit transaction
1416
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 25]]
1417
+  (0.1ms) begin transaction
1418
+ SQL (0.6ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-08-12 05:39:04.632277' WHERE ("position" > 0 AND "position" <= 1)
1419
+  (0.5ms) UPDATE "things" SET "position" = 1, "updated_at" = '2015-08-12 05:39:04.636182' WHERE "things"."id" = 24
1420
+  (1.0ms) commit transaction
1421
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 25]]
1422
+ SQL (1.1ms) DELETE FROM "things"
1423
+  (0.0ms) begin transaction
1424
+  (0.1ms) SELECT "things"."position" FROM "things"
1425
+ SQL (5.4ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 0], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1426
+  (1.0ms) commit transaction
1427
+  (0.1ms) begin transaction
1428
+  (0.2ms) SELECT "things"."position" FROM "things"
1429
+ SQL (4.3ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 1], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1430
+  (0.9ms) commit transaction
1431
+  (0.0ms) begin transaction
1432
+  (0.1ms) SELECT "things"."position" FROM "things"
1433
+ SQL (4.4ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 2], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1434
+  (4.5ms) commit transaction
1435
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 28]]
1436
+  (0.1ms) begin transaction
1437
+ SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-08-12 05:39:04.685248' WHERE ("position" > 0 AND "position" <= 1)
1438
+  (0.4ms) UPDATE "things" SET "position" = 1, "updated_at" = '2015-08-12 05:39:04.688061' WHERE "things"."id" = 27
1439
+  (1.1ms) commit transaction
1440
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 28]]
1441
+ SQL (1.2ms) DELETE FROM "things"
1442
+  (0.1ms) begin transaction
1443
+  (0.1ms) SELECT "things"."position" FROM "things" 
1444
+ SQL (4.9ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 0], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1445
+  (0.9ms) commit transaction
1446
+  (0.0ms) begin transaction
1447
+  (0.1ms) SELECT "things"."position" FROM "things" 
1448
+ SQL (4.5ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 1], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1449
+  (1.0ms) commit transaction
1450
+  (0.0ms) begin transaction
1451
+  (0.1ms) SELECT "things"."position" FROM "things" 
1452
+ SQL (3.9ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 2], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1453
+  (0.8ms) commit transaction
1454
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 30]]
1455
+  (0.1ms) begin transaction
1456
+ SQL (0.6ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-08-12 05:39:04.730497' WHERE ("position" > 0 AND "position" <= 1)
1457
+  (0.5ms) UPDATE "things" SET "position" = 1, "updated_at" = '2015-08-12 05:39:04.734276' WHERE "things"."id" = 30
1458
+  (0.9ms) commit transaction
1459
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 30]]
1460
+ SQL (1.2ms) DELETE FROM "things"
1461
+  (0.1ms) begin transaction
1462
+  (0.1ms) SELECT "things"."position" FROM "things"
1463
+ SQL (5.0ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 0], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1464
+  (0.9ms) commit transaction
1465
+  (0.0ms) begin transaction
1466
+  (0.1ms) SELECT "things"."position" FROM "things"
1467
+ SQL (3.9ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 1], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1468
+  (1.0ms) commit transaction
1469
+  (0.0ms) begin transaction
1470
+  (0.1ms) SELECT "things"."position" FROM "things"
1471
+ SQL (4.2ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 2], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1472
+  (1.5ms) commit transaction
1473
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 35]]
1474
+  (0.1ms) begin transaction
1475
+ SQL (0.5ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-08-12 05:39:04.779401' WHERE ("position" > 0 AND "position" <= 1)
1476
+  (0.4ms) UPDATE "things" SET "position" = 1, "updated_at" = '2015-08-12 05:39:04.782514' WHERE "things"."id" = 33
1477
+  (1.1ms) commit transaction
1478
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 35]]
1479
+ SQL (1.3ms) DELETE FROM "things"
1480
+  (0.1ms) begin transaction
1481
+  (0.1ms) SELECT "things"."position" FROM "things" 
1482
+ SQL (4.1ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 0], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1483
+  (1.4ms) commit transaction
1484
+  (0.1ms) begin transaction
1485
+  (0.2ms) SELECT "things"."position" FROM "things" 
1486
+ SQL (4.1ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 1], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1487
+  (0.9ms) commit transaction
1488
+  (0.0ms) begin transaction
1489
+  (0.2ms) SELECT "things"."position" FROM "things" 
1490
+ SQL (4.0ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 2], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1491
+  (1.2ms) commit transaction
1492
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 36]]
1493
+  (0.1ms) begin transaction
1494
+ SQL (0.4ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-08-12 05:39:04.823909' WHERE ("position" > 0 AND "position" <= 1)
1495
+  (0.6ms) UPDATE "things" SET "position" = 1, "updated_at" = '2015-08-12 05:39:04.826598' WHERE "things"."id" = 36
1496
+  (1.0ms) commit transaction
1497
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 36]]
1498
+ SQL (1.2ms) DELETE FROM "things"
1499
+  (0.0ms) begin transaction
1500
+  (0.1ms) SELECT "things"."position" FROM "things"
1501
+ SQL (3.9ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 0], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1502
+  (1.0ms) commit transaction
1503
+  (0.0ms) begin transaction
1504
+  (0.1ms) SELECT "things"."position" FROM "things"
1505
+ SQL (3.9ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 1], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1506
+  (0.8ms) commit transaction
1507
+ Thing Load (0.2ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC
1508
+ SQL (1.2ms) DELETE FROM "things"
1509
+  (0.1ms) begin transaction
1510
+  (0.1ms) SELECT "things"."position" FROM "things"
1511
+ SQL (4.9ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 0], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1512
+  (0.9ms) commit transaction
1513
+  (0.0ms) begin transaction
1514
+  (0.1ms) SELECT "things"."position" FROM "things"
1515
+ SQL (3.9ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 1], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1516
+  (1.1ms) commit transaction
1517
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 42]]
1518
+  (0.1ms) begin transaction
1519
+ SQL (0.5ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 41]]
1520
+ SQL (0.4ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-08-12 05:39:04.886057' WHERE ("position" > 0)
1521
+  (1.1ms) commit transaction
1522
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 42]]
1523
+ SQL (1.2ms) DELETE FROM "things"
1524
+  (0.0ms) begin transaction
1525
+  (0.1ms) SELECT "things"."position" FROM "things" 
1526
+ SQL (4.3ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 0], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1527
+  (0.9ms) commit transaction
1528
+  (0.0ms) begin transaction
1529
+  (0.1ms) SELECT "things"."position" FROM "things" 
1530
+ SQL (3.8ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["position", 1], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1531
+  (0.9ms) commit transaction
1532
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 44]]
1533
+  (0.1ms) begin transaction
1534
+ SQL (0.4ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 43]]
1535
+ SQL (0.4ms) UPDATE "things" SET "position" = "position" - 1, updated_at = '2015-08-12 05:39:04.917532' WHERE ("position" > 0)
1536
+  (0.9ms) commit transaction
1537
+ Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 44]]
1538
+ SQL (1.1ms) DELETE FROM "order_things"
1539
+  (0.1ms) begin transaction
1540
+  (0.1ms) SELECT "order_things"."order" FROM "order_things"
1541
+ SQL (4.3ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["order", 0], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1542
+  (1.2ms) commit transaction
1543
+ OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 1]]
1544
+  (0.0ms) begin transaction
1545
+  (0.1ms) SELECT "order_things"."order" FROM "order_things" 
1546
+ SQL (4.7ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["order", 1], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1547
+  (0.9ms) commit transaction
1548
+ OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 1]]
1549
+ SQL (1.2ms) DELETE FROM "order_things"
1550
+  (0.0ms) begin transaction
1551
+  (0.1ms) SELECT "order_things"."order" FROM "order_things" 
1552
+ SQL (4.8ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["order", 0], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1553
+  (0.9ms) commit transaction
1554
+  (0.0ms) begin transaction
1555
+  (0.1ms) SELECT "order_things"."order" FROM "order_things" 
1556
+ SQL (3.8ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["order", 1], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1557
+  (1.0ms) commit transaction
1558
+ SQL (1.1ms) DELETE FROM "order_things"
1559
+  (0.1ms) begin transaction
1560
+ SQL (0.2ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-08-12 05:39:04.983330'
1561
+ SQL (3.9ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00], ["order", 0], ["updated_at", Wed, 12 Aug 2015 05:39:04 UTC +00:00]]
1562
+  (1.0ms) commit transaction
1563
+  (0.1ms) begin transaction
1564
+ SQL (0.5ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-08-12 05:39:04.997208'
1565
+ SQL (4.6ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 0], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1566
+  (1.0ms) commit transaction
1567
+ SQL (1.2ms) DELETE FROM "order_things"
1568
+  (0.1ms) begin transaction
1569
+ SQL (0.2ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-08-12 05:39:05.013640'
1570
+ SQL (3.9ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 0], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1571
+  (0.9ms) commit transaction
1572
+ OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 7]]
1573
+  (0.0ms) begin transaction
1574
+ SQL (0.5ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-08-12 05:39:05.026905'
1575
+ SQL (3.6ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 0], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1576
+  (0.9ms) commit transaction
1577
+ OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 7]]
1578
+ SQL (1.2ms) DELETE FROM "order_things"
1579
+  (0.0ms) begin transaction
1580
+  (0.1ms) SELECT "order_things"."order" FROM "order_things"
1581
+ SQL (5.9ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 0], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1582
+  (1.0ms) commit transaction
1583
+  (0.0ms) begin transaction
1584
+  (0.1ms) SELECT "order_things"."order" FROM "order_things"
1585
+ SQL (3.9ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 1], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1586
+  (0.9ms) commit transaction
1587
+ OrderThing Load (1.3ms) SELECT "order_things".* FROM "order_things" ORDER BY "order_things"."order" ASC
1588
+ SQL (1.2ms) DELETE FROM "order_things"
1589
+  (0.0ms) begin transaction
1590
+  (0.1ms) SELECT "order_things"."order" FROM "order_things"
1591
+ SQL (3.9ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 0], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1592
+  (1.0ms) commit transaction
1593
+  (0.0ms) begin transaction
1594
+  (0.2ms) SELECT "order_things"."order" FROM "order_things"
1595
+ SQL (3.9ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 1], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1596
+  (0.8ms) commit transaction
1597
+  (0.0ms) begin transaction
1598
+  (0.1ms) SELECT "order_things"."order" FROM "order_things"
1599
+ SQL (4.1ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 2], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1600
+  (1.0ms) commit transaction
1601
+ OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 13]]
1602
+  (0.1ms) begin transaction
1603
+ SQL (0.5ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-08-12 05:39:05.102945' WHERE ("order" > 0 AND "order" <= 1)
1604
+  (0.5ms) UPDATE "order_things" SET "order" = 1, "updated_at" = '2015-08-12 05:39:05.106101' WHERE "order_things"."id" = 11
1605
+  (1.1ms) commit transaction
1606
+ OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 13]]
1607
+ SQL (1.2ms) DELETE FROM "order_things"
1608
+  (0.1ms) begin transaction
1609
+  (0.2ms) SELECT "order_things"."order" FROM "order_things" 
1610
+ SQL (4.0ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 0], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1611
+  (0.9ms) commit transaction
1612
+  (0.0ms) begin transaction
1613
+  (0.1ms) SELECT "order_things"."order" FROM "order_things" 
1614
+ SQL (4.1ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 1], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1615
+  (1.5ms) commit transaction
1616
+  (0.1ms) begin transaction
1617
+  (0.2ms) SELECT "order_things"."order" FROM "order_things" 
1618
+ SQL (3.9ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 2], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1619
+  (0.9ms) commit transaction
1620
+ OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 14]]
1621
+  (0.0ms) begin transaction
1622
+ SQL (0.5ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-08-12 05:39:05.156987' WHERE ("order" > 0 AND "order" <= 1)
1623
+  (0.5ms) UPDATE "order_things" SET "order" = 1, "updated_at" = '2015-08-12 05:39:05.159861' WHERE "order_things"."id" = 14
1624
+  (1.2ms) commit transaction
1625
+ OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 14]]
1626
+ SQL (1.2ms) DELETE FROM "order_things"
1627
+  (0.1ms) begin transaction
1628
+  (0.1ms) SELECT "order_things"."order" FROM "order_things"
1629
+ SQL (3.9ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 0], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1630
+  (1.2ms) commit transaction
1631
+  (0.1ms) begin transaction
1632
+  (0.2ms) SELECT "order_things"."order" FROM "order_things"
1633
+ SQL (4.1ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 1], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1634
+  (1.5ms) commit transaction
1635
+  (0.1ms) begin transaction
1636
+  (0.1ms) SELECT "order_things"."order" FROM "order_things"
1637
+ SQL (3.9ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 2], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1638
+  (1.1ms) commit transaction
1639
+ OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 18]]
1640
+  (0.1ms) begin transaction
1641
+ SQL (0.5ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-08-12 05:39:05.202523' WHERE ("order" > 0 AND "order" <= 1)
1642
+  (0.5ms) UPDATE "order_things" SET "order" = 1, "updated_at" = '2015-08-12 05:39:05.205444' WHERE "order_things"."id" = 17
1643
+  (1.1ms) commit transaction
1644
+ OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 18]]
1645
+ SQL (1.2ms) DELETE FROM "order_things"
1646
+  (0.1ms) begin transaction
1647
+  (0.2ms) SELECT "order_things"."order" FROM "order_things" 
1648
+ SQL (5.5ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 0], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1649
+  (1.0ms) commit transaction
1650
+  (0.1ms) begin transaction
1651
+  (0.2ms) SELECT "order_things"."order" FROM "order_things" 
1652
+ SQL (5.0ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 1], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1653
+  (0.9ms) commit transaction
1654
+  (0.0ms) begin transaction
1655
+  (0.1ms) SELECT "order_things"."order" FROM "order_things" 
1656
+ SQL (3.9ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 2], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1657
+  (1.1ms) commit transaction
1658
+ OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 21]]
1659
+  (0.1ms) begin transaction
1660
+ SQL (0.5ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-08-12 05:39:05.252525' WHERE ("order" > 0 AND "order" <= 1)
1661
+  (0.5ms) UPDATE "order_things" SET "order" = 1, "updated_at" = '2015-08-12 05:39:05.255555' WHERE "order_things"."id" = 20
1662
+  (1.1ms) commit transaction
1663
+ OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 21]]
1664
+ SQL (1.1ms) DELETE FROM "order_things"
1665
+  (0.1ms) begin transaction
1666
+  (0.1ms) SELECT "order_things"."order" FROM "order_things"
1667
+ SQL (4.0ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 0], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1668
+  (0.9ms) commit transaction
1669
+  (0.0ms) begin transaction
1670
+  (0.1ms) SELECT "order_things"."order" FROM "order_things"
1671
+ SQL (3.9ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 1], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1672
+  (0.9ms) commit transaction
1673
+  (0.0ms) begin transaction
1674
+  (0.6ms) SELECT "order_things"."order" FROM "order_things"
1675
+ SQL (4.1ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 2], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1676
+  (0.9ms) commit transaction
1677
+ OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 23]]
1678
+  (0.1ms) begin transaction
1679
+ SQL (0.5ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-08-12 05:39:05.297674' WHERE ("order" > 0 AND "order" <= 1)
1680
+  (0.5ms) UPDATE "order_things" SET "order" = 1, "updated_at" = '2015-08-12 05:39:05.300688' WHERE "order_things"."id" = 23
1681
+  (1.1ms) commit transaction
1682
+ OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 23]]
1683
+ SQL (1.2ms) DELETE FROM "order_things"
1684
+  (0.0ms) begin transaction
1685
+  (0.1ms) SELECT "order_things"."order" FROM "order_things" 
1686
+ SQL (4.0ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 0], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1687
+  (0.9ms) commit transaction
1688
+  (0.0ms) begin transaction
1689
+  (0.1ms) SELECT "order_things"."order" FROM "order_things" 
1690
+ SQL (3.8ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 1], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1691
+  (1.4ms) commit transaction
1692
+  (0.1ms) begin transaction
1693
+  (0.2ms) SELECT "order_things"."order" FROM "order_things" 
1694
+ SQL (4.5ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 2], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1695
+  (2.3ms) commit transaction
1696
+ OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 27]]
1697
+  (0.1ms) begin transaction
1698
+ SQL (0.6ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-08-12 05:39:05.347171' WHERE ("order" >= 1 AND "order" < 2)
1699
+  (0.4ms) UPDATE "order_things" SET "order" = 1, "updated_at" = '2015-08-12 05:39:05.350715' WHERE "order_things"."id" = 28
1700
+  (1.1ms) commit transaction
1701
+ OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 27]]
1702
+ SQL (1.2ms) DELETE FROM "order_things"
1703
+  (0.0ms) begin transaction
1704
+  (0.1ms) SELECT "order_things"."order" FROM "order_things"
1705
+ SQL (4.1ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 0], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1706
+  (2.0ms) commit transaction
1707
+  (0.1ms) begin transaction
1708
+  (0.2ms) SELECT "order_things"."order" FROM "order_things"
1709
+ SQL (3.9ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 1], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1710
+  (1.4ms) commit transaction
1711
+  (0.1ms) begin transaction
1712
+  (0.2ms) SELECT "order_things"."order" FROM "order_things"
1713
+ SQL (5.2ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 2], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1714
+  (0.9ms) commit transaction
1715
+ OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 29]]
1716
+  (0.0ms) begin transaction
1717
+ SQL (0.6ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-08-12 05:39:05.395308' WHERE ("order" >= 1 AND "order" < 2)
1718
+  (0.5ms) UPDATE "order_things" SET "order" = 1, "updated_at" = '2015-08-12 05:39:05.398437' WHERE "order_things"."id" = 31
1719
+  (1.0ms) commit transaction
1720
+ OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 29]]
1721
+ SQL (1.2ms) DELETE FROM "order_things"
1722
+  (0.1ms) begin transaction
1723
+  (0.1ms) SELECT "order_things"."order" FROM "order_things" 
1724
+ SQL (3.9ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 0], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1725
+  (1.1ms) commit transaction
1726
+  (0.1ms) begin transaction
1727
+  (0.2ms) SELECT "order_things"."order" FROM "order_things" 
1728
+ SQL (4.0ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 1], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1729
+  (0.9ms) commit transaction
1730
+  (0.0ms) begin transaction
1731
+  (0.1ms) SELECT "order_things"."order" FROM "order_things" 
1732
+ SQL (4.0ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 2], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1733
+  (0.8ms) commit transaction
1734
+ OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 34]]
1735
+  (0.1ms) begin transaction
1736
+ SQL (0.5ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-08-12 05:39:05.440833' WHERE ("order" >= 1 AND "order" < 2)
1737
+  (0.6ms) UPDATE "order_things" SET "order" = 1, "updated_at" = '2015-08-12 05:39:05.443576' WHERE "order_things"."id" = 34
1738
+  (1.0ms) commit transaction
1739
+ OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 34]]
1740
+ SQL (1.2ms) DELETE FROM "order_things"
1741
+  (0.1ms) begin transaction
1742
+  (0.1ms) SELECT "order_things"."order" FROM "order_things"
1743
+ SQL (3.9ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 0], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1744
+  (0.9ms) commit transaction
1745
+  (0.0ms) begin transaction
1746
+  (0.2ms) SELECT "order_things"."order" FROM "order_things"
1747
+ SQL (4.0ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 1], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1748
+  (0.9ms) commit transaction
1749
+  (0.1ms) begin transaction
1750
+  (0.2ms) SELECT "order_things"."order" FROM "order_things"
1751
+ SQL (4.0ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 2], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1752
+  (1.1ms) commit transaction
1753
+ OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 36]]
1754
+  (0.1ms) begin transaction
1755
+ SQL (0.5ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-08-12 05:39:05.486681' WHERE ("order" >= 1 AND "order" < 2)
1756
+  (0.5ms) UPDATE "order_things" SET "order" = 1, "updated_at" = '2015-08-12 05:39:05.489429' WHERE "order_things"."id" = 37
1757
+  (1.1ms) commit transaction
1758
+ OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 36]]
1759
+ SQL (1.1ms) DELETE FROM "order_things"
1760
+  (0.1ms) begin transaction
1761
+  (0.2ms) SELECT "order_things"."order" FROM "order_things" 
1762
+ SQL (5.5ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 0], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1763
+  (0.9ms) commit transaction
1764
+  (0.0ms) begin transaction
1765
+  (0.1ms) SELECT "order_things"."order" FROM "order_things" 
1766
+ SQL (4.0ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 1], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1767
+  (0.9ms) commit transaction
1768
+  (0.0ms) begin transaction
1769
+  (0.1ms) SELECT "order_things"."order" FROM "order_things" 
1770
+ SQL (4.5ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 2], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1771
+  (2.6ms) commit transaction
1772
+ OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 40]]
1773
+  (0.1ms) begin transaction
1774
+ SQL (0.6ms) UPDATE "order_things" SET "order" = "order" + 1, updated_at = '2015-08-12 05:39:05.533877' WHERE ("order" >= 1 AND "order" < 2)
1775
+  (0.4ms) UPDATE "order_things" SET "order" = 1, "updated_at" = '2015-08-12 05:39:05.537135' WHERE "order_things"."id" = 40
1776
+  (1.1ms) commit transaction
1777
+ OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 40]]
1778
+ SQL (1.2ms) DELETE FROM "order_things"
1779
+  (0.0ms) begin transaction
1780
+  (0.1ms) SELECT "order_things"."order" FROM "order_things"
1781
+ SQL (4.3ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 0], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1782
+  (0.9ms) commit transaction
1783
+  (0.1ms) begin transaction
1784
+  (0.2ms) SELECT "order_things"."order" FROM "order_things"
1785
+ SQL (3.9ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 1], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1786
+  (0.9ms) commit transaction
1787
+ OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 42]]
1788
+  (0.1ms) begin transaction
1789
+ SQL (0.5ms) DELETE FROM "order_things" WHERE "order_things"."id" = ? [["id", 41]]
1790
+ SQL (0.4ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-08-12 05:39:05.569373' WHERE ("order" > 0)
1791
+  (0.9ms) commit transaction
1792
+ OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 42]]
1793
+ SQL (1.2ms) DELETE FROM "order_things"
1794
+  (0.1ms) begin transaction
1795
+  (0.2ms) SELECT "order_things"."order" FROM "order_things" 
1796
+ SQL (11.3ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 0], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1797
+  (0.9ms) commit transaction
1798
+  (0.0ms) begin transaction
1799
+  (0.2ms) SELECT "order_things"."order" FROM "order_things" 
1800
+ SQL (4.3ms) INSERT INTO "order_things" ("created_at", "order", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00], ["order", 1], ["updated_at", Wed, 12 Aug 2015 05:39:05 UTC +00:00]]
1801
+  (0.9ms) commit transaction
1802
+ OrderThing Load (0.1ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 44]]
1803
+  (0.0ms) begin transaction
1804
+ SQL (0.3ms) DELETE FROM "order_things" WHERE "order_things"."id" = ? [["id", 43]]
1805
+ SQL (0.4ms) UPDATE "order_things" SET "order" = "order" - 1, updated_at = '2015-08-12 05:39:05.608234' WHERE ("order" > 0)
1806
+  (1.5ms) commit transaction
1807
+ OrderThing Load (0.2ms) SELECT "order_things".* FROM "order_things" WHERE "order_things"."id" = ? LIMIT 1 [["id", 44]]
1808
+ Started GET "/parents/new" for 127.0.0.1 at 2015-08-12 08:39:13 +0300
1809
+ Processing by ParentsController#new as HTML
1810
+ Rendered parents/_form.html.erb (14.4ms)
1811
+ Rendered parents/new.html.erb within layouts/application (23.3ms)
1812
+ Completed 200 OK in 92.6ms (Views: 43.3ms | ActiveRecord: 1.3ms)
1813
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-08-12 08:39:13 +0300
1814
+ Served asset /application.css - 200 OK (26ms)
1815
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-08-12 08:39:13 +0300
1816
+ Compiled sortable.js (0ms) (pid 124)
1817
+ Compiled application.js (6ms) (pid 124)
1818
+ Served asset /application.js - 200 OK (163ms)
1819
+ Started GET "/assets/jquery.simulate.js?_=1439357953467" for 127.0.0.1 at 2015-08-12 08:39:16 +0300
1820
+ Served asset /jquery.simulate.js - 200 OK (3ms)
1821
+ Started POST "/parents" for 127.0.0.1 at 2015-08-12 08:39:19 +0300
1822
+ Processing by ParentsController#create as HTML
1823
+ 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"}
1824
+  (0.1ms) begin transaction
1825
+ SQL (4.5ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 12 Aug 2015 05:39:19 UTC +00:00], ["updated_at", Wed, 12 Aug 2015 05:39:19 UTC +00:00]]
1826
+ SQL (4.2ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:19 UTC +00:00], ["name", "Child 2"], ["parent_id", 1], ["position", 0], ["updated_at", Wed, 12 Aug 2015 05:39:19 UTC +00:00]]
1827
+ SQL (3.5ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:19 UTC +00:00], ["name", "Child 0"], ["parent_id", 1], ["position", 1], ["updated_at", Wed, 12 Aug 2015 05:39:19 UTC +00:00]]
1828
+ SQL (3.4ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:19 UTC +00:00], ["name", "Child 1"], ["parent_id", 1], ["position", 2], ["updated_at", Wed, 12 Aug 2015 05:39:19 UTC +00:00]]
1829
+  (1.0ms) commit transaction
1830
+ Redirected to http://127.0.0.1:57522/parents/1
1831
+ Completed 302 Found in 40.2ms (ActiveRecord: 16.8ms)
1832
+ Started GET "/parents/1" for 127.0.0.1 at 2015-08-12 08:39:19 +0300
1833
+ Processing by ParentsController#show as HTML
1834
+ Parameters: {"id"=>"1"}
1835
+ Parent Load (0.2ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", "1"]]
1836
+ Child Load (0.2ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = 1
1837
+ Rendered parents/show.html.erb within layouts/application (2.7ms)
1838
+ Completed 200 OK in 7.7ms (Views: 5.5ms | ActiveRecord: 0.4ms)
1839
+ Started GET "/parents/new" for 127.0.0.1 at 2015-08-12 08:39:19 +0300
1840
+ Processing by ParentsController#new as HTML
1841
+ Rendered parents/_form.html.erb (8.4ms)
1842
+ Rendered parents/new.html.erb within layouts/application (8.8ms)
1843
+ Completed 200 OK in 11.7ms (Views: 10.2ms | ActiveRecord: 0.0ms)
1844
+ Started GET "/assets/jquery.simulate.js?_=1439357959819" for 127.0.0.1 at 2015-08-12 08:39:22 +0300
1845
+ Served asset /jquery.simulate.js - 200 OK (0ms)
1846
+ Started POST "/parents" for 127.0.0.1 at 2015-08-12 08:39:25 +0300
1847
+ Processing by ParentsController#create as HTML
1848
+ 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"}
1849
+  (0.1ms) begin transaction
1850
+ SQL (4.3ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 12 Aug 2015 05:39:25 UTC +00:00], ["updated_at", Wed, 12 Aug 2015 05:39:25 UTC +00:00]]
1851
+ SQL (3.5ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:25 UTC +00:00], ["name", "Child 2"], ["parent_id", 2], ["position", 0], ["updated_at", Wed, 12 Aug 2015 05:39:25 UTC +00:00]]
1852
+ SQL (3.6ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:25 UTC +00:00], ["name", "Child 0"], ["parent_id", 2], ["position", 1], ["updated_at", Wed, 12 Aug 2015 05:39:25 UTC +00:00]]
1853
+ SQL (3.5ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:25 UTC +00:00], ["name", "Child 1"], ["parent_id", 2], ["position", 2], ["updated_at", Wed, 12 Aug 2015 05:39:25 UTC +00:00]]
1854
+  (0.9ms) commit transaction
1855
+ Redirected to http://127.0.0.1:57522/parents/2
1856
+ Completed 302 Found in 36.0ms (ActiveRecord: 16.0ms)
1857
+ Started GET "/parents/2" for 127.0.0.1 at 2015-08-12 08:39:25 +0300
1858
+ Processing by ParentsController#show as HTML
1859
+ Parameters: {"id"=>"2"}
1860
+ Parent Load (0.2ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", "2"]]
1861
+ Child Load (0.2ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = 2
1862
+ Rendered parents/show.html.erb within layouts/application (1.6ms)
1863
+ Completed 200 OK in 4.0ms (Views: 2.9ms | ActiveRecord: 0.3ms)
1864
+ Started GET "/parents/new" for 127.0.0.1 at 2015-08-12 08:39:26 +0300
1865
+ Processing by ParentsController#new as HTML
1866
+ Rendered parents/_form.html.erb (3.0ms)
1867
+ Rendered parents/new.html.erb within layouts/application (3.3ms)
1868
+ Completed 200 OK in 6.2ms (Views: 4.7ms | ActiveRecord: 0.0ms)
1869
+ Started GET "/assets/jquery.simulate.js?_=1439357966077" for 127.0.0.1 at 2015-08-12 08:39:29 +0300
1870
+ Served asset /jquery.simulate.js - 200 OK (0ms)
1871
+ Started POST "/parents" for 127.0.0.1 at 2015-08-12 08:39:32 +0300
1872
+ Processing by ParentsController#create as HTML
1873
+ 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"}
1874
+  (0.1ms) begin transaction
1875
+ SQL (4.8ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 12 Aug 2015 05:39:32 UTC +00:00], ["updated_at", Wed, 12 Aug 2015 05:39:32 UTC +00:00]]
1876
+ SQL (4.0ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:32 UTC +00:00], ["name", "Child 1"], ["parent_id", 3], ["position", 0], ["updated_at", Wed, 12 Aug 2015 05:39:32 UTC +00:00]]
1877
+ SQL (4.3ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:32 UTC +00:00], ["name", "Child 2"], ["parent_id", 3], ["position", 1], ["updated_at", Wed, 12 Aug 2015 05:39:32 UTC +00:00]]
1878
+ SQL (3.5ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:32 UTC +00:00], ["name", "Child 0"], ["parent_id", 3], ["position", 2], ["updated_at", Wed, 12 Aug 2015 05:39:32 UTC +00:00]]
1879
+  (1.0ms) commit transaction
1880
+ Redirected to http://127.0.0.1:57522/parents/3
1881
+ Completed 302 Found in 39.0ms (ActiveRecord: 17.7ms)
1882
+ Started GET "/parents/3" for 127.0.0.1 at 2015-08-12 08:39:32 +0300
1883
+ Processing by ParentsController#show as HTML
1884
+ Parameters: {"id"=>"3"}
1885
+ Parent Load (0.2ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", "3"]]
1886
+ Child Load (0.2ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = 3
1887
+ Rendered parents/show.html.erb within layouts/application (1.6ms)
1888
+ Completed 200 OK in 4.1ms (Views: 2.9ms | ActiveRecord: 0.3ms)
1889
+ Started GET "/parents/new" for 127.0.0.1 at 2015-08-12 08:39:32 +0300
1890
+ Processing by ParentsController#new as HTML
1891
+ Rendered parents/_form.html.erb (3.2ms)
1892
+ Rendered parents/new.html.erb within layouts/application (3.8ms)
1893
+ Completed 200 OK in 7.6ms (Views: 5.3ms | ActiveRecord: 0.0ms)
1894
+ Started GET "/assets/jquery.simulate.js?_=1439357972343" for 127.0.0.1 at 2015-08-12 08:39:35 +0300
1895
+ Served asset /jquery.simulate.js - 200 OK (0ms)
1896
+ Started POST "/parents" for 127.0.0.1 at 2015-08-12 08:39:38 +0300
1897
+ Processing by ParentsController#create as HTML
1898
+ 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"}
1899
+  (0.1ms) begin transaction
1900
+ SQL (4.1ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 12 Aug 2015 05:39:38 UTC +00:00], ["updated_at", Wed, 12 Aug 2015 05:39:38 UTC +00:00]]
1901
+ SQL (3.6ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:38 UTC +00:00], ["name", "Child 1"], ["parent_id", 4], ["position", 0], ["updated_at", Wed, 12 Aug 2015 05:39:38 UTC +00:00]]
1902
+ SQL (3.5ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:38 UTC +00:00], ["name", "Child 2"], ["parent_id", 4], ["position", 1], ["updated_at", Wed, 12 Aug 2015 05:39:38 UTC +00:00]]
1903
+ SQL (4.6ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:38 UTC +00:00], ["name", "Child 0"], ["parent_id", 4], ["position", 2], ["updated_at", Wed, 12 Aug 2015 05:39:38 UTC +00:00]]
1904
+  (1.2ms) commit transaction
1905
+ Redirected to http://127.0.0.1:57522/parents/4
1906
+ Completed 302 Found in 37.7ms (ActiveRecord: 17.1ms)
1907
+ Started GET "/parents/4" for 127.0.0.1 at 2015-08-12 08:39:38 +0300
1908
+ Processing by ParentsController#show as HTML
1909
+ Parameters: {"id"=>"4"}
1910
+ Parent Load (0.2ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", "4"]]
1911
+ Child Load (0.2ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = 4
1912
+ Rendered parents/show.html.erb within layouts/application (1.9ms)
1913
+ Completed 200 OK in 4.4ms (Views: 3.1ms | ActiveRecord: 0.4ms)
1914
+ Started GET "/parents/new" for 127.0.0.1 at 2015-08-12 08:39:38 +0300
1915
+ Processing by ParentsController#new as HTML
1916
+ Rendered parents/_form.html.erb (2.6ms)
1917
+ Rendered parents/new.html.erb within layouts/application (2.9ms)
1918
+ Completed 200 OK in 5.9ms (Views: 4.4ms | ActiveRecord: 0.0ms)
1919
+ Started GET "/assets/jquery.simulate.js?_=1439357978606" for 127.0.0.1 at 2015-08-12 08:39:41 +0300
1920
+ Served asset /jquery.simulate.js - 200 OK (0ms)
1921
+ Started POST "/parents" for 127.0.0.1 at 2015-08-12 08:39:44 +0300
1922
+ Processing by ParentsController#create as HTML
1923
+ 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"}
1924
+  (0.1ms) begin transaction
1925
+ SQL (4.7ms) INSERT INTO "parents" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 12 Aug 2015 05:39:44 UTC +00:00], ["updated_at", Wed, 12 Aug 2015 05:39:44 UTC +00:00]]
1926
+ SQL (4.0ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:44 UTC +00:00], ["name", "Child 1"], ["parent_id", 5], ["position", 0], ["updated_at", Wed, 12 Aug 2015 05:39:44 UTC +00:00]]
1927
+ SQL (3.6ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:44 UTC +00:00], ["name", "Child 2"], ["parent_id", 5], ["position", 1], ["updated_at", Wed, 12 Aug 2015 05:39:44 UTC +00:00]]
1928
+ SQL (3.5ms) INSERT INTO "children" ("created_at", "name", "parent_id", "position", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:44 UTC +00:00], ["name", "Child 0"], ["parent_id", 5], ["position", 2], ["updated_at", Wed, 12 Aug 2015 05:39:44 UTC +00:00]]
1929
+  (0.9ms) commit transaction
1930
+ Redirected to http://127.0.0.1:57522/parents/5
1931
+ Completed 302 Found in 38.6ms (ActiveRecord: 16.7ms)
1932
+ Started GET "/parents/5" for 127.0.0.1 at 2015-08-12 08:39:44 +0300
1933
+ Processing by ParentsController#show as HTML
1934
+ Parameters: {"id"=>"5"}
1935
+ Parent Load (0.2ms) SELECT "parents".* FROM "parents" WHERE "parents"."id" = ? LIMIT 1 [["id", "5"]]
1936
+ Child Load (0.3ms) SELECT "children".* FROM "children" WHERE "children"."parent_id" = 5
1937
+ Rendered parents/show.html.erb within layouts/application (3.2ms)
1938
+ Completed 200 OK in 5.8ms (Views: 4.4ms | ActiveRecord: 0.4ms)
1939
+ SQL (1.2ms) DELETE FROM "things"
1940
+  (0.1ms) begin transaction
1941
+  (0.1ms) SELECT "things"."position" FROM "things"
1942
+ SQL (4.9ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:44 UTC +00:00], ["position", 0], ["updated_at", Wed, 12 Aug 2015 05:39:44 UTC +00:00]]
1943
+  (0.8ms) commit transaction
1944
+  (0.1ms) begin transaction
1945
+  (0.1ms) SELECT "things"."position" FROM "things"
1946
+ SQL (4.1ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:44 UTC +00:00], ["position", 1], ["updated_at", Wed, 12 Aug 2015 05:39:44 UTC +00:00]]
1947
+  (1.1ms) commit transaction
1948
+ Started GET "/" for 127.0.0.1 at 2015-08-12 08:39:44 +0300
1949
+ Processing by ThingsController#index as HTML
1950
+ Thing Load (0.1ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC
1951
+ Rendered things/_thing.html.erb (1.5ms)
1952
+ Rendered things/index.html.erb within layouts/application (6.1ms)
1953
+ Completed 200 OK in 15.3ms (Views: 13.9ms | ActiveRecord: 0.5ms)
1954
+ Started GET "/assets/jquery.simulate.js?_=1439357984905" for 127.0.0.1 at 2015-08-12 08:39:47 +0300
1955
+ Served asset /jquery.simulate.js - 200 OK (0ms)
1956
+ Started GET "/" for 127.0.0.1 at 2015-08-12 08:39:51 +0300
1957
+ Processing by ThingsController#index as HTML
1958
+ Thing Load (0.2ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC
1959
+ Rendered things/_thing.html.erb (0.7ms)
1960
+ Rendered things/index.html.erb within layouts/application (2.0ms)
1961
+ Completed 200 OK in 3.7ms (Views: 3.1ms | ActiveRecord: 0.2ms)
1962
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-08-12 08:39:51 +0300
1963
+ Served asset /application.css - 304 Not Modified (0ms)
1964
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-08-12 08:39:51 +0300
1965
+ Served asset /application.js - 304 Not Modified (0ms)
1966
+ SQL (1.3ms) DELETE FROM "things"
1967
+  (0.1ms) begin transaction
1968
+  (0.1ms) SELECT "things"."position" FROM "things" 
1969
+ SQL (4.2ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:51 UTC +00:00], ["position", 0], ["updated_at", Wed, 12 Aug 2015 05:39:51 UTC +00:00]]
1970
+  (0.9ms) commit transaction
1971
+  (0.0ms) begin transaction
1972
+  (0.1ms) SELECT "things"."position" FROM "things" 
1973
+ SQL (4.2ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:51 UTC +00:00], ["position", 1], ["updated_at", Wed, 12 Aug 2015 05:39:51 UTC +00:00]]
1974
+  (1.0ms) commit transaction
1975
+ Started GET "/" for 127.0.0.1 at 2015-08-12 08:39:51 +0300
1976
+ Processing by ThingsController#index as HTML
1977
+ Thing Load (0.3ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC
1978
+ Rendered things/_thing.html.erb (0.8ms)
1979
+ Rendered things/index.html.erb within layouts/application (2.6ms)
1980
+ Completed 200 OK in 5.4ms (Views: 4.5ms | ActiveRecord: 0.3ms)
1981
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-08-12 08:39:51 +0300
1982
+ Served asset /application.css - 304 Not Modified (0ms)
1983
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-08-12 08:39:51 +0300
1984
+ Served asset /application.js - 304 Not Modified (0ms)
1985
+ Started GET "/assets/jquery.simulate.js?_=1439357991215" for 127.0.0.1 at 2015-08-12 08:39:54 +0300
1986
+ Served asset /jquery.simulate.js - 200 OK (0ms)
1987
+ Started GET "/" for 127.0.0.1 at 2015-08-12 08:39:57 +0300
1988
+ Processing by ThingsController#index as HTML
1989
+ Thing Load (0.2ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC
1990
+ Rendered things/_thing.html.erb (0.6ms)
1991
+ Rendered things/index.html.erb within layouts/application (1.8ms)
1992
+ Completed 200 OK in 3.7ms (Views: 3.2ms | ActiveRecord: 0.2ms)
1993
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-08-12 08:39:57 +0300
1994
+ Served asset /application.js - 304 Not Modified (0ms)
1995
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-08-12 08:39:57 +0300
1996
+ Served asset /application.css - 304 Not Modified (0ms)
1997
+ SQL (1.3ms) DELETE FROM "things"
1998
+  (0.0ms) begin transaction
1999
+  (0.1ms) SELECT "things"."position" FROM "things"
2000
+ SQL (4.3ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:57 UTC +00:00], ["position", 0], ["updated_at", Wed, 12 Aug 2015 05:39:57 UTC +00:00]]
2001
+  (0.8ms) commit transaction
2002
+  (0.0ms) begin transaction
2003
+  (0.2ms) SELECT "things"."position" FROM "things"
2004
+ SQL (3.9ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:39:57 UTC +00:00], ["position", 1], ["updated_at", Wed, 12 Aug 2015 05:39:57 UTC +00:00]]
2005
+  (0.9ms) commit transaction
2006
+ Started GET "/" for 127.0.0.1 at 2015-08-12 08:39:57 +0300
2007
+ Processing by ThingsController#index as HTML
2008
+ Thing Load (0.3ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC
2009
+ Rendered things/_thing.html.erb (0.6ms)
2010
+ Rendered things/index.html.erb within layouts/application (2.1ms)
2011
+ Completed 200 OK in 4.1ms (Views: 3.5ms | ActiveRecord: 0.3ms)
2012
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-08-12 08:39:57 +0300
2013
+ Served asset /application.css - 304 Not Modified (0ms)
2014
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-08-12 08:39:57 +0300
2015
+ Served asset /application.js - 304 Not Modified (0ms)
2016
+ Started GET "/assets/jquery.simulate.js?_=1439357997507" for 127.0.0.1 at 2015-08-12 08:40:00 +0300
2017
+ Served asset /jquery.simulate.js - 200 OK (0ms)
2018
+ Started POST "/things/50/move" for 127.0.0.1 at 2015-08-12 08:40:00 +0300
2019
+ Processing by ThingsController#move as JS
2020
+ Parameters: {"position"=>"0", "id"=>"50"}
2021
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "50"]]
2022
+  (0.0ms) begin transaction
2023
+ SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-08-12 05:40:00.624451' WHERE ("position" >= 0 AND "position" < 1)
2024
+  (0.4ms) UPDATE "things" SET "position" = 0, "updated_at" = '2015-08-12 05:40:00.627387' WHERE "things"."id" = 50
2025
+  (1.1ms) commit transaction
2026
+ Rendered things/_thing.html.erb (1.0ms)
2027
+ Rendered things/move.js.erb (3.9ms)
2028
+ Completed 200 OK in 27.0ms (Views: 17.9ms | ActiveRecord: 2.3ms)
2029
+ Started GET "/" for 127.0.0.1 at 2015-08-12 08:40:03 +0300
2030
+ Processing by ThingsController#index as HTML
2031
+ Thing Load (0.3ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC
2032
+ Rendered things/_thing.html.erb (0.6ms)
2033
+ Rendered things/index.html.erb within layouts/application (1.9ms)
2034
+ Completed 200 OK in 3.6ms (Views: 3.1ms | ActiveRecord: 0.3ms)
2035
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-08-12 08:40:03 +0300
2036
+ Served asset /application.css - 304 Not Modified (0ms)
2037
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-08-12 08:40:03 +0300
2038
+ Served asset /application.js - 304 Not Modified (0ms)
2039
+ SQL (1.3ms) DELETE FROM "things"
2040
+  (0.1ms) begin transaction
2041
+  (0.1ms) SELECT "things"."position" FROM "things"
2042
+ SQL (4.1ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:40:03 UTC +00:00], ["position", 0], ["updated_at", Wed, 12 Aug 2015 05:40:03 UTC +00:00]]
2043
+  (0.8ms) commit transaction
2044
+  (0.1ms) begin transaction
2045
+  (0.2ms) SELECT "things"."position" FROM "things"
2046
+ SQL (4.1ms) INSERT INTO "things" ("created_at", "position", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Aug 2015 05:40:03 UTC +00:00], ["position", 1], ["updated_at", Wed, 12 Aug 2015 05:40:03 UTC +00:00]]
2047
+  (1.0ms) commit transaction
2048
+ Started GET "/" for 127.0.0.1 at 2015-08-12 08:40:03 +0300
2049
+ Processing by ThingsController#index as HTML
2050
+ Thing Load (0.3ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC
2051
+ Rendered things/_thing.html.erb (0.7ms)
2052
+ Rendered things/index.html.erb within layouts/application (2.3ms)
2053
+ Completed 200 OK in 4.3ms (Views: 3.6ms | ActiveRecord: 0.3ms)
2054
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-08-12 08:40:03 +0300
2055
+ Served asset /application.css - 304 Not Modified (0ms)
2056
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-08-12 08:40:03 +0300
2057
+ Served asset /application.js - 304 Not Modified (0ms)
2058
+ Started GET "/assets/jquery.simulate.js?_=1439358003798" for 127.0.0.1 at 2015-08-12 08:40:06 +0300
2059
+ Served asset /jquery.simulate.js - 200 OK (0ms)
2060
+ Started POST "/things/52/move" for 127.0.0.1 at 2015-08-12 08:40:06 +0300
2061
+ Processing by ThingsController#move as JS
2062
+ Parameters: {"position"=>"0", "id"=>"52"}
2063
+ Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "52"]]
2064
+  (0.1ms) begin transaction
2065
+ SQL (0.5ms) UPDATE "things" SET "position" = "position" + 1, updated_at = '2015-08-12 05:40:06.908709' WHERE ("position" >= 0 AND "position" < 1)
2066
+  (0.4ms) UPDATE "things" SET "position" = 0, "updated_at" = '2015-08-12 05:40:06.911568' WHERE "things"."id" = 52
2067
+  (1.1ms) commit transaction
2068
+ Rendered things/_thing.html.erb (0.4ms)
2069
+ Rendered things/move.js.erb (0.8ms)
2070
+ Completed 200 OK in 9.6ms (Views: 1.4ms | ActiveRecord: 2.2ms)
2071
+ Started GET "/" for 127.0.0.1 at 2015-08-12 08:40:09 +0300
2072
+ Processing by ThingsController#index as HTML
2073
+ Thing Load (0.2ms) SELECT "things".* FROM "things" ORDER BY "things"."position" ASC
2074
+ Rendered things/_thing.html.erb (0.6ms)
2075
+ Rendered things/index.html.erb within layouts/application (2.4ms)
2076
+ Completed 200 OK in 4.2ms (Views: 3.6ms | ActiveRecord: 0.2ms)
2077
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-08-12 08:40:09 +0300
2078
+ Served asset /application.css - 304 Not Modified (0ms)
2079
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-08-12 08:40:09 +0300
2080
+ Served asset /application.js - 304 Not Modified (0ms)
2081
+ Connecting to database specified by database.yml
2082
+  (2.0ms) select sqlite_version(*)
2083
+  (1.7ms) 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)
2084
+  (1.1ms) CREATE INDEX "index_children_on_position" ON "children" ("position")
2085
+  (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)
2086
+  (1.2ms) CREATE INDEX "index_items_on_position" ON "items" ("position")
2087
+  (1.4ms) 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)
2088
+  (1.2ms) CREATE INDEX "index_order_things_on_order" ON "order_things" ("order")
2089
+  (1.2ms) 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)
2090
+  (1.2ms) CREATE INDEX "index_other_things_on_place" ON "other_things" ("place")
2091
+  (1.1ms) CREATE TABLE "parents" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
2092
+  (1.2ms) CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "position" integer NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
2093
+  (1.5ms) CREATE INDEX "index_things_on_position" ON "things" ("position")
2094
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2095
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2096
+  (0.1ms) SELECT version FROM "schema_migrations"
2097
+  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150408101403')
2098
+  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140512100816')
2099
+  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525104834')
2100
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525111906')
2101
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140525112123')
2102
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20140721161028')
2103
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140721161122')
2104
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"