rails_sortable 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 800eca2001f697557f08bd3067b7ce97a9828c44
4
- data.tar.gz: 350a3a1b98fe3d500f61b6aaa13cd86b42c06be6
3
+ metadata.gz: f17638e379aacbde21fa9143d10eae85a20ba780
4
+ data.tar.gz: e12425497f4000922f75408ab1612261d36471c0
5
5
  SHA512:
6
- metadata.gz: 2582ffb4c1253cfbc654c5de4439886c72334d67690ca374531e4e8e19b0334db19a83562b95c0d93080a0f3aa0c199087b03290b7d08f4d6e48e4c60cbcd4bd
7
- data.tar.gz: 36ad985ea2c5ec5901e255e7a4a6bffef6e7752c7fcbc90e81c6e53b84bc070e4a51e2687fda3f564ff1198577b17a6615710841c4b119b27c0c50302ccc7b9a
6
+ metadata.gz: 0500c8372108a65c6bd9dd87968094262c0b6185a78d3c4ef0b726760efbcaecd55e0a69cf5c0e08ad5d2feb5d2cdf624ba50d2f1191da6c48782a63cb0d5b50
7
+ data.tar.gz: 4649c612052168c34c3041eed4e148fead36c750dcc22feeb393824b9b5f5e58526bf8d95c918f4011e80737deb0560e8c0b47a9f18154b86e59d4887f4d291a
data/README.md CHANGED
@@ -1,3 +1,78 @@
1
- = RailsSortable
1
+ # RailsSortable
2
2
 
3
- This project rocks and uses MIT-LICENSE.
3
+ RailsSortable is a simple Rails gem that allows you to create a listing view with drag & drop sorting.
4
+
5
+ see the video @YouTube
6
+
7
+ [![IMAGE ALT TEXT HERE](http://img.youtube.com/vi/MpT3hiNVmsc/0.jpg)](http://www.youtube.com/watch?v=MpT3hiNVmsc)
8
+
9
+ ## Setup
10
+
11
+ Add it to your Gemfile then run bundle to install it.
12
+ ```
13
+ gem 'jquery-ui-rails'
14
+ gem 'rails_sortable'
15
+ ```
16
+ * rails_sortable depends on jquery-ui-rails (~> 4.0)
17
+
18
+ And then add it to the Asset Pipeline in the application.js file:
19
+ ```
20
+ //= require jquery.ui.sortable
21
+ //= require rails_sortable
22
+ ```
23
+
24
+ ## Usage
25
+
26
+ RailsSortable requires specific column on ActiveRecord Model for own implementation.
27
+
28
+ For instance, the following migration indicates the case that you are attemtting to make Item model sortable.
29
+
30
+ ```ruby
31
+ class CreateItems < ActiveRecord::Migration
32
+ def change
33
+ create_table :items do |t|
34
+ t.string :title
35
+ t.integer :sort # for RailsSortable
36
+
37
+ t.timestamps
38
+ end
39
+ end
40
+ end
41
+ ```
42
+ and Item model is
43
+ ```ruby
44
+ class Item < ActiveRecord::Base
45
+ include RailsSortable::Model
46
+ set_sortable :sort # indicate sort column
47
+ end
48
+ ```
49
+
50
+ and its listing view (typically - index.html.erb) is
51
+ ```erb
52
+ ...
53
+ <tbody class="sortable"> <!-- sortable target -->
54
+ <% sortable_fetch(@items) do |item, id_tag| %> <!-- RailsSortable helper -->
55
+ <tr id="<%= id_tag %>"> <!-- you must write it -->
56
+ <td><%= item.title %></td>
57
+ <td><%= item.sort %></td>
58
+ <td><%= link_to 'Show', item %></td>
59
+ <td><%= link_to 'Edit', edit_item_path(item) %></td>
60
+ <td><%= link_to 'Destroy', item, method: :delete, data: { confirm: 'Are you sure?' } %></td>
61
+ </tr>
62
+ <% end %>
63
+ </tbody>
64
+ </table>
65
+ ...
66
+ ```
67
+
68
+ finally, you apply sortable with Javascript.
69
+
70
+ ```coffeescript
71
+ jQuery ->
72
+ $(".sortable").railsSortable()
73
+ ```
74
+
75
+ ## Javascript options
76
+ jquery plugin `railsSortable` is just a wrapper `jquery.ui.sortable`. therefore it accepts all of `sortbale` options.
77
+
78
+ see the [http://api.jqueryui.com/sortable/](http://api.jqueryui.com/sortable/) to get detail.
@@ -7,7 +7,7 @@ class SortableController < ApplicationController
7
7
  models = klass.order(:sort).to_a
8
8
  ids.each_with_index do |id, new_sort|
9
9
  model = models.find {|m| m.id == id }
10
- model.update_attributes! sort: new_sort if model.sort != new_sort
10
+ model.update_sort!(new_sort) if model.sort != new_sort
11
11
  end
12
12
  render nothing: true
13
13
  end
@@ -0,0 +1,62 @@
1
+ module RailsSortable
2
+
3
+ #
4
+ # Include this module to your ActiveRecord model.
5
+ # And you must call `set_sortable` method for using sortable model.
6
+ #
7
+ # ex)
8
+ # class SampleModel < ActiveRecord::Base
9
+ # include RailsSortable::Model
10
+ # set_sortable :sort, silence_recording_timestamps: true
11
+ # end
12
+ #
13
+ module Model
14
+ def self.included(base)
15
+ base.class_eval do
16
+ before_create :maximize_sort
17
+ end
18
+ base.extend ClassMethods
19
+ end
20
+
21
+ def update_sort!(new_value)
22
+ write_attribute sort_attribute, new_value
23
+ if sortable_options[:silence_recording_timestamps]
24
+ silence_recording_timestamps { save! }
25
+ else
26
+ save!
27
+ end
28
+ end
29
+
30
+ protected
31
+
32
+ def maximize_sort
33
+ return if read_attribute(sort_attribute)
34
+ write_attribute sort_attribute, max_sort
35
+ end
36
+
37
+ def silence_recording_timestamps
38
+ raise ArgumentError unless block_given?
39
+ original_record_timestamps = self.class.record_timestamps
40
+ self.class.record_timestamps = false
41
+ yield
42
+ self.class.record_timestamps = original_record_timestamps
43
+ end
44
+
45
+ def max_sort
46
+ (self.class.maximum(sort_attribute) || 0) + 1
47
+ end
48
+
49
+ module ClassMethods
50
+ #
51
+ # allowed options
52
+ # - silence_recording_timestamps
53
+ # When it is true, timestamp(updated_at) will be NOT modified with reordering.
54
+ #
55
+ def set_sortable(attribute, options = {})
56
+ define_method("sort_attribute") { attribute }
57
+ define_method("sortable_options") { options }
58
+ end
59
+ end
60
+ end
61
+
62
+ end
@@ -1,3 +1,3 @@
1
1
  module RailsSortable
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -3,9 +3,9 @@ require 'spec_helper'
3
3
  describe SortableController do
4
4
  describe "POST reorder" do
5
5
  before do
6
- @item1 = Item.create! sort: 0
7
- @item2 = Item.create! sort: 1
8
- @item3 = Item.create! sort: 2
6
+ @item1 = Item.create!
7
+ @item2 = Item.create!
8
+ @item3 = Item.create!
9
9
  end
10
10
  it "should reorder models" do
11
11
  post :reorder, Item: [@item1.id, @item3.id, @item2.id]
@@ -1,3 +1,6 @@
1
1
  class Item < ActiveRecord::Base
2
+ include RailsSortable::Model
3
+ set_sortable :sort
4
+
2
5
  default_scope -> { order(:sort) }
3
6
  end
@@ -357,3 +357,1866 @@ Completed 200 OK in 13ms (Views: 6.9ms | ActiveRecord: 0.9ms)
357
357
   (0.1ms) rollback transaction
358
358
   (0.0ms) begin transaction
359
359
   (0.0ms) rollback transaction
360
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
361
+  (0.1ms) begin transaction
362
+  (0.1ms) rollback transaction
363
+  (0.1ms) begin transaction
364
+  (0.1ms) rollback transaction
365
+  (0.1ms) begin transaction
366
+  (0.1ms) SAVEPOINT active_record_1
367
+ SQL (8.0ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 09:36:34 UTC +00:00], ["sort", 0], ["updated_at", Wed, 15 Jan 2014 09:36:34 UTC +00:00]]
368
+  (0.1ms) RELEASE SAVEPOINT active_record_1
369
+  (0.1ms) SAVEPOINT active_record_1
370
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 09:36:34 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 09:36:34 UTC +00:00]]
371
+  (0.0ms) RELEASE SAVEPOINT active_record_1
372
+  (0.0ms) SAVEPOINT active_record_1
373
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 09:36:34 UTC +00:00], ["sort", 2], ["updated_at", Wed, 15 Jan 2014 09:36:34 UTC +00:00]]
374
+  (0.0ms) RELEASE SAVEPOINT active_record_1
375
+ Processing by SortableController#reorder as HTML
376
+ Parameters: {"Item"=>["1", "3", "2"]}
377
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
378
+  (0.0ms) SAVEPOINT active_record_1
379
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 3 [["sort", 1], ["updated_at", Wed, 15 Jan 2014 09:36:34 UTC +00:00]]
380
+  (0.1ms) RELEASE SAVEPOINT active_record_1
381
+  (0.1ms) SAVEPOINT active_record_1
382
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 2 [["sort", 2], ["updated_at", Wed, 15 Jan 2014 09:36:34 UTC +00:00]]
383
+  (0.1ms) RELEASE SAVEPOINT active_record_1
384
+ Completed 200 OK in 19ms (Views: 14.5ms | ActiveRecord: 0.8ms)
385
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
386
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
387
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 3]]
388
+  (0.5ms) rollback transaction
389
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
390
+  (0.1ms) begin transaction
391
+  (0.1ms) rollback transaction
392
+  (0.1ms) begin transaction
393
+  (0.1ms) rollback transaction
394
+  (0.1ms) begin transaction
395
+  (0.1ms) rollback transaction
396
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
397
+  (0.1ms) begin transaction
398
+  (0.1ms) rollback transaction
399
+  (0.1ms) begin transaction
400
+  (0.1ms) rollback transaction
401
+  (0.1ms) begin transaction
402
+  (0.0ms) rollback transaction
403
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
404
+  (0.1ms) begin transaction
405
+  (0.1ms) rollback transaction
406
+  (0.1ms) begin transaction
407
+  (0.1ms) rollback transaction
408
+  (0.0ms) begin transaction
409
+  (0.1ms) rollback transaction
410
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
411
+  (0.1ms) begin transaction
412
+  (0.1ms) rollback transaction
413
+  (0.1ms) begin transaction
414
+  (0.1ms) rollback transaction
415
+  (0.1ms) begin transaction
416
+  (0.1ms) rollback transaction
417
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
418
+  (0.1ms) begin transaction
419
+  (0.1ms) rollback transaction
420
+  (0.1ms) begin transaction
421
+  (0.1ms) rollback transaction
422
+  (0.1ms) begin transaction
423
+  (0.1ms) rollback transaction
424
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
425
+  (0.1ms) begin transaction
426
+  (0.1ms) rollback transaction
427
+  (0.0ms) begin transaction
428
+  (0.1ms) rollback transaction
429
+  (0.1ms) begin transaction
430
+  (0.0ms) rollback transaction
431
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
432
+  (0.1ms) begin transaction
433
+  (0.1ms) rollback transaction
434
+  (0.0ms) begin transaction
435
+  (0.1ms) rollback transaction
436
+  (0.0ms) begin transaction
437
+  (0.0ms) SAVEPOINT active_record_1
438
+ SQL (3.5ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 09:47:11 UTC +00:00], ["sort", 0], ["updated_at", Wed, 15 Jan 2014 09:47:11 UTC +00:00]]
439
+  (0.1ms) RELEASE SAVEPOINT active_record_1
440
+  (0.0ms) SAVEPOINT active_record_1
441
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 09:47:11 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 09:47:11 UTC +00:00]]
442
+  (0.1ms) RELEASE SAVEPOINT active_record_1
443
+  (0.0ms) SAVEPOINT active_record_1
444
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 09:47:11 UTC +00:00], ["sort", 2], ["updated_at", Wed, 15 Jan 2014 09:47:11 UTC +00:00]]
445
+  (0.0ms) RELEASE SAVEPOINT active_record_1
446
+ Processing by SortableController#reorder as HTML
447
+ Parameters: {"Item"=>["1", "3", "2"]}
448
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
449
+  (0.0ms) SAVEPOINT active_record_1
450
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 3 [["sort", 1], ["updated_at", Wed, 15 Jan 2014 09:47:11 UTC +00:00]]
451
+  (0.0ms) RELEASE SAVEPOINT active_record_1
452
+  (0.0ms) SAVEPOINT active_record_1
453
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 2 [["sort", 2], ["updated_at", Wed, 15 Jan 2014 09:47:11 UTC +00:00]]
454
+  (0.1ms) RELEASE SAVEPOINT active_record_1
455
+ Completed 200 OK in 14ms (Views: 4.5ms | ActiveRecord: 0.8ms)
456
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
457
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
458
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 3]]
459
+  (1.9ms) rollback transaction
460
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
461
+  (0.1ms) begin transaction
462
+  (0.1ms) SAVEPOINT active_record_1
463
+ SQL (3.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 09:50:38 UTC +00:00], ["sort", 0], ["updated_at", Wed, 15 Jan 2014 09:50:38 UTC +00:00]]
464
+  (0.1ms) RELEASE SAVEPOINT active_record_1
465
+  (0.0ms) SAVEPOINT active_record_1
466
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 09:50:38 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 09:50:38 UTC +00:00]]
467
+  (0.0ms) RELEASE SAVEPOINT active_record_1
468
+  (0.0ms) SAVEPOINT active_record_1
469
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 09:50:38 UTC +00:00], ["sort", 2], ["updated_at", Wed, 15 Jan 2014 09:50:38 UTC +00:00]]
470
+  (0.0ms) RELEASE SAVEPOINT active_record_1
471
+ Processing by SortableController#reorder as HTML
472
+ Parameters: {"Item"=>["1", "3", "2"]}
473
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
474
+  (0.0ms) SAVEPOINT active_record_1
475
+ SQL (0.2ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 3 [["sort", nil]]
476
+  (0.1ms) RELEASE SAVEPOINT active_record_1
477
+  (0.1ms) SAVEPOINT active_record_1
478
+ SQL (0.2ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 2 [["sort", nil]]
479
+  (0.1ms) RELEASE SAVEPOINT active_record_1
480
+ Rendered text template (0.0ms)
481
+ Completed 200 OK in 16ms (Views: 10.5ms | ActiveRecord: 0.7ms)
482
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
483
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
484
+  (1.7ms) rollback transaction
485
+  (0.1ms) begin transaction
486
+  (0.1ms) rollback transaction
487
+  (0.0ms) begin transaction
488
+  (0.1ms) rollback transaction
489
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
490
+  (0.1ms) begin transaction
491
+  (0.1ms) rollback transaction
492
+  (0.1ms) begin transaction
493
+  (0.1ms) rollback transaction
494
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
495
+  (0.1ms) begin transaction
496
+  (0.0ms) SAVEPOINT active_record_1
497
+ SQL (3.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 09:52:09 UTC +00:00], ["sort", 0], ["updated_at", Wed, 15 Jan 2014 09:52:09 UTC +00:00]]
498
+  (0.1ms) RELEASE SAVEPOINT active_record_1
499
+  (0.0ms) SAVEPOINT active_record_1
500
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 09:52:09 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 09:52:09 UTC +00:00]]
501
+  (0.0ms) RELEASE SAVEPOINT active_record_1
502
+  (0.0ms) SAVEPOINT active_record_1
503
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 09:52:09 UTC +00:00], ["sort", 2], ["updated_at", Wed, 15 Jan 2014 09:52:09 UTC +00:00]]
504
+  (0.0ms) RELEASE SAVEPOINT active_record_1
505
+ Processing by SortableController#reorder as HTML
506
+ Parameters: {"Item"=>["1", "3", "2"]}
507
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
508
+  (0.1ms) SAVEPOINT active_record_1
509
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 3 [["sort", nil]]
510
+  (0.0ms) RELEASE SAVEPOINT active_record_1
511
+  (0.0ms) SAVEPOINT active_record_1
512
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 2 [["sort", nil]]
513
+  (0.1ms) RELEASE SAVEPOINT active_record_1
514
+ Rendered text template (0.0ms)
515
+ Completed 200 OK in 10ms (Views: 5.6ms | ActiveRecord: 0.6ms)
516
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
517
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
518
+  (1.9ms) rollback transaction
519
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
520
+  (0.1ms) begin transaction
521
+  (0.0ms) SAVEPOINT active_record_1
522
+ SQL (3.2ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 09:57:16 UTC +00:00], ["sort", 0], ["updated_at", Wed, 15 Jan 2014 09:57:16 UTC +00:00]]
523
+  (0.1ms) RELEASE SAVEPOINT active_record_1
524
+  (0.0ms) SAVEPOINT active_record_1
525
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 09:57:16 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 09:57:16 UTC +00:00]]
526
+  (0.0ms) RELEASE SAVEPOINT active_record_1
527
+  (0.0ms) SAVEPOINT active_record_1
528
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 09:57:16 UTC +00:00], ["sort", 2], ["updated_at", Wed, 15 Jan 2014 09:57:16 UTC +00:00]]
529
+  (0.0ms) RELEASE SAVEPOINT active_record_1
530
+  (1.6ms) rollback transaction
531
+  (0.1ms) begin transaction
532
+  (0.1ms) rollback transaction
533
+  (0.1ms) begin transaction
534
+  (0.1ms) rollback transaction
535
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
536
+  (0.1ms) begin transaction
537
+  (0.0ms) SAVEPOINT active_record_1
538
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
539
+ SQL (3.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 09:57:33 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 09:57:33 UTC +00:00]]
540
+  (0.1ms) RELEASE SAVEPOINT active_record_1
541
+  (0.0ms) SAVEPOINT active_record_1
542
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
543
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 09:57:33 UTC +00:00], ["sort", 2], ["updated_at", Wed, 15 Jan 2014 09:57:33 UTC +00:00]]
544
+  (0.0ms) RELEASE SAVEPOINT active_record_1
545
+  (0.0ms) SAVEPOINT active_record_1
546
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
547
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 09:57:33 UTC +00:00], ["sort", 3], ["updated_at", Wed, 15 Jan 2014 09:57:33 UTC +00:00]]
548
+  (0.1ms) RELEASE SAVEPOINT active_record_1
549
+ Processing by SortableController#reorder as HTML
550
+ Parameters: {"Item"=>["1", "3", "2"]}
551
+ Item Load (0.2ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
552
+  (0.1ms) SAVEPOINT active_record_1
553
+ SQL (0.2ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", nil]]
554
+  (0.1ms) RELEASE SAVEPOINT active_record_1
555
+  (0.1ms) SAVEPOINT active_record_1
556
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 3 [["sort", nil]]
557
+  (0.1ms) RELEASE SAVEPOINT active_record_1
558
+ Rendered text template (0.0ms)
559
+ Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 0.7ms)
560
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
561
+  (1.9ms) rollback transaction
562
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
563
+  (0.1ms) begin transaction
564
+  (0.0ms) SAVEPOINT active_record_1
565
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
566
+ SQL (3.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 09:58:16 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 09:58:16 UTC +00:00]]
567
+  (0.1ms) RELEASE SAVEPOINT active_record_1
568
+  (0.0ms) SAVEPOINT active_record_1
569
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
570
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 09:58:16 UTC +00:00], ["sort", 2], ["updated_at", Wed, 15 Jan 2014 09:58:16 UTC +00:00]]
571
+  (0.1ms) RELEASE SAVEPOINT active_record_1
572
+  (0.0ms) SAVEPOINT active_record_1
573
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
574
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 09:58:16 UTC +00:00], ["sort", 3], ["updated_at", Wed, 15 Jan 2014 09:58:16 UTC +00:00]]
575
+  (0.0ms) RELEASE SAVEPOINT active_record_1
576
+ Processing by SortableController#reorder as HTML
577
+ Parameters: {"Item"=>["1", "3", "2"]}
578
+ Item Load (0.2ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
579
+  (0.1ms) SAVEPOINT active_record_1
580
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", nil]]
581
+  (0.0ms) RELEASE SAVEPOINT active_record_1
582
+  (0.1ms) SAVEPOINT active_record_1
583
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 3 [["sort", nil]]
584
+  (0.0ms) RELEASE SAVEPOINT active_record_1
585
+ Rendered text template (0.0ms)
586
+ Completed 200 OK in 10ms (Views: 5.2ms | ActiveRecord: 0.7ms)
587
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
588
+  (1.4ms) rollback transaction
589
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
590
+  (0.1ms) begin transaction
591
+  (0.1ms) SAVEPOINT active_record_1
592
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
593
+ SQL (3.0ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 09:58:25 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 09:58:25 UTC +00:00]]
594
+  (0.1ms) RELEASE SAVEPOINT active_record_1
595
+  (0.0ms) SAVEPOINT active_record_1
596
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
597
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 09:58:25 UTC +00:00], ["sort", 2], ["updated_at", Wed, 15 Jan 2014 09:58:25 UTC +00:00]]
598
+  (0.0ms) RELEASE SAVEPOINT active_record_1
599
+  (0.0ms) SAVEPOINT active_record_1
600
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
601
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 09:58:25 UTC +00:00], ["sort", 3], ["updated_at", Wed, 15 Jan 2014 09:58:25 UTC +00:00]]
602
+  (0.0ms) RELEASE SAVEPOINT active_record_1
603
+ Processing by SortableController#reorder as HTML
604
+ Parameters: {"Item"=>["1", "3", "2"]}
605
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
606
+  (0.1ms) SAVEPOINT active_record_1
607
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", nil]]
608
+  (0.0ms) RELEASE SAVEPOINT active_record_1
609
+  (0.0ms) SAVEPOINT active_record_1
610
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 3 [["sort", nil]]
611
+  (0.0ms) RELEASE SAVEPOINT active_record_1
612
+ Rendered text template (0.0ms)
613
+ Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 0.6ms)
614
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
615
+  (1.7ms) rollback transaction
616
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
617
+  (0.1ms) begin transaction
618
+  (0.1ms) SAVEPOINT active_record_1
619
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
620
+ SQL (3.6ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 09:59:36 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 09:59:36 UTC +00:00]]
621
+  (0.1ms) RELEASE SAVEPOINT active_record_1
622
+  (0.1ms) SAVEPOINT active_record_1
623
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
624
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 09:59:36 UTC +00:00], ["sort", 2], ["updated_at", Wed, 15 Jan 2014 09:59:36 UTC +00:00]]
625
+  (0.0ms) RELEASE SAVEPOINT active_record_1
626
+  (0.0ms) SAVEPOINT active_record_1
627
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
628
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 09:59:36 UTC +00:00], ["sort", 3], ["updated_at", Wed, 15 Jan 2014 09:59:36 UTC +00:00]]
629
+  (0.1ms) RELEASE SAVEPOINT active_record_1
630
+ Processing by SortableController#reorder as HTML
631
+ Parameters: {"Item"=>["1", "3", "2"]}
632
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
633
+  (0.1ms) SAVEPOINT active_record_1
634
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", nil]]
635
+  (0.0ms) RELEASE SAVEPOINT active_record_1
636
+  (0.0ms) SAVEPOINT active_record_1
637
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 3 [["sort", nil]]
638
+  (0.0ms) RELEASE SAVEPOINT active_record_1
639
+ Rendered text template (0.0ms)
640
+ Completed 200 OK in 10ms (Views: 5.9ms | ActiveRecord: 0.5ms)
641
+  (0.1ms) SELECT "items"."sort" FROM "items" ORDER BY "items"."sort" ASC
642
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
643
+  (1.7ms) rollback transaction
644
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
645
+  (0.1ms) begin transaction
646
+  (0.1ms) SAVEPOINT active_record_1
647
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
648
+ SQL (3.5ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:00:12 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:00:12 UTC +00:00]]
649
+  (0.1ms) RELEASE SAVEPOINT active_record_1
650
+  (0.0ms) SAVEPOINT active_record_1
651
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
652
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:00:12 UTC +00:00], ["sort", 2], ["updated_at", Wed, 15 Jan 2014 10:00:12 UTC +00:00]]
653
+  (0.0ms) RELEASE SAVEPOINT active_record_1
654
+  (0.0ms) SAVEPOINT active_record_1
655
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
656
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:00:12 UTC +00:00], ["sort", 3], ["updated_at", Wed, 15 Jan 2014 10:00:12 UTC +00:00]]
657
+  (0.1ms) RELEASE SAVEPOINT active_record_1
658
+  (0.1ms) SELECT "items"."sort" FROM "items" ORDER BY "items"."sort" ASC
659
+ Processing by SortableController#reorder as HTML
660
+ Parameters: {"Item"=>["1", "3", "2"]}
661
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
662
+  (0.0ms) SAVEPOINT active_record_1
663
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", nil]]
664
+  (0.0ms) RELEASE SAVEPOINT active_record_1
665
+  (0.0ms) SAVEPOINT active_record_1
666
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 3 [["sort", nil]]
667
+  (0.0ms) RELEASE SAVEPOINT active_record_1
668
+ Rendered text template (0.0ms)
669
+ Completed 200 OK in 9ms (Views: 5.1ms | ActiveRecord: 0.5ms)
670
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
671
+  (1.9ms) rollback transaction
672
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
673
+  (0.1ms) begin transaction
674
+  (0.0ms) SAVEPOINT active_record_1
675
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
676
+ SQL (3.7ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:00:42 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:00:42 UTC +00:00]]
677
+  (0.1ms) RELEASE SAVEPOINT active_record_1
678
+  (0.0ms) SAVEPOINT active_record_1
679
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
680
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:00:42 UTC +00:00], ["sort", 2], ["updated_at", Wed, 15 Jan 2014 10:00:42 UTC +00:00]]
681
+  (0.0ms) RELEASE SAVEPOINT active_record_1
682
+  (0.0ms) SAVEPOINT active_record_1
683
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
684
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:00:42 UTC +00:00], ["sort", 3], ["updated_at", Wed, 15 Jan 2014 10:00:42 UTC +00:00]]
685
+  (0.0ms) RELEASE SAVEPOINT active_record_1
686
+ Processing by SortableController#reorder as HTML
687
+ Parameters: {"Item"=>["1", "3", "2"]}
688
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
689
+  (0.0ms) SAVEPOINT active_record_1
690
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 0]]
691
+  (0.1ms) RELEASE SAVEPOINT active_record_1
692
+  (0.0ms) SAVEPOINT active_record_1
693
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 3 [["sort", 1]]
694
+  (0.0ms) RELEASE SAVEPOINT active_record_1
695
+ Rendered text template (0.1ms)
696
+ Completed 200 OK in 13ms (Views: 8.6ms | ActiveRecord: 0.5ms)
697
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
698
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
699
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 3]]
700
+  (1.7ms) rollback transaction
701
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
702
+  (0.1ms) begin transaction
703
+  (0.1ms) SAVEPOINT active_record_1
704
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
705
+ SQL (3.8ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:00:52 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:00:52 UTC +00:00]]
706
+  (0.1ms) RELEASE SAVEPOINT active_record_1
707
+  (0.0ms) SAVEPOINT active_record_1
708
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
709
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:00:52 UTC +00:00], ["sort", 2], ["updated_at", Wed, 15 Jan 2014 10:00:52 UTC +00:00]]
710
+  (0.0ms) RELEASE SAVEPOINT active_record_1
711
+  (0.0ms) SAVEPOINT active_record_1
712
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
713
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:00:52 UTC +00:00], ["sort", 3], ["updated_at", Wed, 15 Jan 2014 10:00:52 UTC +00:00]]
714
+  (0.0ms) RELEASE SAVEPOINT active_record_1
715
+ Processing by SortableController#reorder as HTML
716
+ Parameters: {"Item"=>["1", "3", "2"]}
717
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
718
+  (0.0ms) SAVEPOINT active_record_1
719
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 0]]
720
+  (0.0ms) RELEASE SAVEPOINT active_record_1
721
+  (0.0ms) SAVEPOINT active_record_1
722
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 3 [["sort", 1]]
723
+  (0.0ms) RELEASE SAVEPOINT active_record_1
724
+ Rendered text template (0.0ms)
725
+ Completed 200 OK in 16ms (Views: 11.6ms | ActiveRecord: 0.5ms)
726
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
727
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
728
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 3]]
729
+  (2.4ms) rollback transaction
730
+  (0.1ms) begin transaction
731
+  (0.1ms) rollback transaction
732
+  (0.1ms) begin transaction
733
+  (0.1ms) rollback transaction
734
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
735
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
736
+  (0.1ms) begin transaction
737
+  (0.0ms) SAVEPOINT active_record_1
738
+ SQL (3.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:06:22 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:06:22 UTC +00:00]]
739
+  (0.1ms) RELEASE SAVEPOINT active_record_1
740
+  (0.0ms) SAVEPOINT active_record_1
741
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
742
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:06:22 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 10:06:22 UTC +00:00]]
743
+  (0.0ms) RELEASE SAVEPOINT active_record_1
744
+  (1.9ms) rollback transaction
745
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
746
+  (0.1ms) begin transaction
747
+  (0.1ms) SAVEPOINT active_record_1
748
+ SQL (3.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:09:39 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:09:39 UTC +00:00]]
749
+  (0.1ms) RELEASE SAVEPOINT active_record_1
750
+  (0.0ms) SAVEPOINT active_record_1
751
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
752
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:09:39 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 10:09:39 UTC +00:00]]
753
+  (0.0ms) RELEASE SAVEPOINT active_record_1
754
+  (1.9ms) rollback transaction
755
+  (0.1ms) begin transaction
756
+  (0.1ms) SAVEPOINT active_record_1
757
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:09:39 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:09:39 UTC +00:00]]
758
+  (0.0ms) RELEASE SAVEPOINT active_record_1
759
+  (0.4ms) rollback transaction
760
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
761
+  (0.1ms) begin transaction
762
+  (0.0ms) SAVEPOINT active_record_1
763
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
764
+ SQL (3.8ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:12:13 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:12:13 UTC +00:00]]
765
+  (0.1ms) RELEASE SAVEPOINT active_record_1
766
+  (8.0ms) rollback transaction
767
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
768
+  (0.1ms) begin transaction
769
+  (0.0ms) SAVEPOINT active_record_1
770
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
771
+ SQL (3.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:12:27 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:12:27 UTC +00:00]]
772
+  (0.1ms) RELEASE SAVEPOINT active_record_1
773
+  (0.0ms) SAVEPOINT active_record_1
774
+ SQL (0.3ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
775
+  (0.0ms) RELEASE SAVEPOINT active_record_1
776
+  (1.7ms) rollback transaction
777
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
778
+  (0.1ms) begin transaction
779
+  (0.0ms) SAVEPOINT active_record_1
780
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
781
+ SQL (3.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:12:40 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:12:40 UTC +00:00]]
782
+  (0.1ms) RELEASE SAVEPOINT active_record_1
783
+  (0.1ms) SAVEPOINT active_record_1
784
+ SQL (0.4ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 1 [["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:12:40 UTC +00:00]]
785
+  (0.0ms) RELEASE SAVEPOINT active_record_1
786
+  (1.6ms) rollback transaction
787
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
788
+  (0.1ms) begin transaction
789
+  (0.0ms) SAVEPOINT active_record_1
790
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
791
+ SQL (3.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:12:50 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:12:50 UTC +00:00]]
792
+  (0.1ms) RELEASE SAVEPOINT active_record_1
793
+  (0.0ms) SAVEPOINT active_record_1
794
+ SQL (0.3ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
795
+  (0.0ms) RELEASE SAVEPOINT active_record_1
796
+  (1.9ms) rollback transaction
797
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
798
+  (0.1ms) begin transaction
799
+  (0.1ms) rollback transaction
800
+  (0.0ms) begin transaction
801
+  (0.1ms) SAVEPOINT active_record_1
802
+ SQL (4.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:15:09 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:15:09 UTC +00:00]]
803
+  (0.1ms) RELEASE SAVEPOINT active_record_1
804
+  (0.3ms) rollback transaction
805
+  (0.1ms) begin transaction
806
+  (0.0ms) SAVEPOINT active_record_1
807
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
808
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:15:09 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:15:09 UTC +00:00]]
809
+  (0.0ms) RELEASE SAVEPOINT active_record_1
810
+  (0.0ms) SAVEPOINT active_record_1
811
+ SQL (0.3ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
812
+  (0.1ms) RELEASE SAVEPOINT active_record_1
813
+  (0.3ms) rollback transaction
814
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
815
+  (0.1ms) begin transaction
816
+  (0.1ms) rollback transaction
817
+  (0.0ms) begin transaction
818
+  (0.1ms) SAVEPOINT active_record_1
819
+ SQL (2.9ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:15:23 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:15:23 UTC +00:00]]
820
+  (0.1ms) RELEASE SAVEPOINT active_record_1
821
+  (1.6ms) rollback transaction
822
+  (0.1ms) begin transaction
823
+  (0.1ms) SAVEPOINT active_record_1
824
+  (0.2ms) SELECT MAX("items"."sort") AS max_id FROM "items"
825
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:15:23 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:15:23 UTC +00:00]]
826
+  (0.0ms) RELEASE SAVEPOINT active_record_1
827
+  (0.1ms) SAVEPOINT active_record_1
828
+ SQL (0.3ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
829
+  (0.1ms) RELEASE SAVEPOINT active_record_1
830
+  (0.4ms) rollback transaction
831
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
832
+  (0.1ms) begin transaction
833
+  (0.0ms) rollback transaction
834
+  (0.1ms) begin transaction
835
+  (0.1ms) SAVEPOINT active_record_1
836
+ SQL (3.0ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:15:37 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:15:37 UTC +00:00]]
837
+  (0.1ms) RELEASE SAVEPOINT active_record_1
838
+  (1.6ms) rollback transaction
839
+  (0.1ms) begin transaction
840
+  (0.0ms) SAVEPOINT active_record_1
841
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:15:37 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:15:37 UTC +00:00]]
842
+  (0.0ms) RELEASE SAVEPOINT active_record_1
843
+  (0.0ms) SAVEPOINT active_record_1
844
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
845
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:15:37 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 10:15:37 UTC +00:00]]
846
+  (0.0ms) RELEASE SAVEPOINT active_record_1
847
+  (0.3ms) rollback transaction
848
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
849
+  (0.1ms) begin transaction
850
+  (0.0ms) SAVEPOINT active_record_1
851
+ SQL (3.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:15:53 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:15:53 UTC +00:00]]
852
+  (0.1ms) RELEASE SAVEPOINT active_record_1
853
+  (0.0ms) SAVEPOINT active_record_1
854
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
855
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:15:53 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 10:15:53 UTC +00:00]]
856
+  (0.0ms) RELEASE SAVEPOINT active_record_1
857
+  (1.9ms) rollback transaction
858
+  (0.1ms) begin transaction
859
+  (0.0ms) SAVEPOINT active_record_1
860
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:15:53 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:15:53 UTC +00:00]]
861
+  (0.0ms) RELEASE SAVEPOINT active_record_1
862
+  (0.3ms) rollback transaction
863
+  (0.0ms) begin transaction
864
+  (0.0ms) SAVEPOINT active_record_1
865
+  (0.2ms) SELECT MAX("items"."sort") AS max_id FROM "items"
866
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:15:53 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:15:53 UTC +00:00]]
867
+  (0.0ms) RELEASE SAVEPOINT active_record_1
868
+  (0.1ms) SAVEPOINT active_record_1
869
+ SQL (0.4ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
870
+  (0.1ms) RELEASE SAVEPOINT active_record_1
871
+  (0.4ms) rollback transaction
872
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
873
+  (0.1ms) begin transaction
874
+  (0.0ms) SAVEPOINT active_record_1
875
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
876
+ SQL (3.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:16:47 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:16:47 UTC +00:00]]
877
+  (0.1ms) RELEASE SAVEPOINT active_record_1
878
+  (0.0ms) SAVEPOINT active_record_1
879
+ SQL (0.3ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
880
+  (0.0ms) RELEASE SAVEPOINT active_record_1
881
+  (1.9ms) rollback transaction
882
+  (0.1ms) begin transaction
883
+  (0.1ms) SAVEPOINT active_record_1
884
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:16:47 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:16:47 UTC +00:00]]
885
+  (0.1ms) RELEASE SAVEPOINT active_record_1
886
+  (0.3ms) rollback transaction
887
+  (0.1ms) begin transaction
888
+  (0.0ms) SAVEPOINT active_record_1
889
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:16:47 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:16:47 UTC +00:00]]
890
+  (0.0ms) RELEASE SAVEPOINT active_record_1
891
+  (0.0ms) SAVEPOINT active_record_1
892
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
893
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:16:47 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 10:16:47 UTC +00:00]]
894
+  (0.0ms) RELEASE SAVEPOINT active_record_1
895
+  (0.3ms) rollback transaction
896
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
897
+  (0.1ms) begin transaction
898
+  (0.1ms) SAVEPOINT active_record_1
899
+ SQL (3.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:17:09 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:17:09 UTC +00:00]]
900
+  (0.1ms) RELEASE SAVEPOINT active_record_1
901
+  (0.0ms) SAVEPOINT active_record_1
902
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
903
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:17:09 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 10:17:09 UTC +00:00]]
904
+  (0.0ms) RELEASE SAVEPOINT active_record_1
905
+  (1.9ms) rollback transaction
906
+  (0.1ms) begin transaction
907
+  (0.0ms) SAVEPOINT active_record_1
908
+ SQL (0.5ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:17:09 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:17:09 UTC +00:00]]
909
+  (0.0ms) RELEASE SAVEPOINT active_record_1
910
+  (0.4ms) rollback transaction
911
+  (0.0ms) begin transaction
912
+  (0.0ms) SAVEPOINT active_record_1
913
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
914
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:17:09 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:17:09 UTC +00:00]]
915
+  (0.1ms) RELEASE SAVEPOINT active_record_1
916
+  (0.0ms) SAVEPOINT active_record_1
917
+ SQL (0.3ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
918
+  (0.0ms) RELEASE SAVEPOINT active_record_1
919
+  (0.4ms) rollback transaction
920
+  (0.0ms) begin transaction
921
+  (0.1ms) rollback transaction
922
+  (0.0ms) begin transaction
923
+  (0.1ms) rollback transaction
924
+  (0.0ms) begin transaction
925
+  (0.0ms) SAVEPOINT active_record_1
926
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
927
+ SQL (0.5ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:17:09 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:17:09 UTC +00:00]]
928
+  (0.0ms) RELEASE SAVEPOINT active_record_1
929
+  (0.0ms) SAVEPOINT active_record_1
930
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
931
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:17:09 UTC +00:00], ["sort", 2], ["updated_at", Wed, 15 Jan 2014 10:17:09 UTC +00:00]]
932
+  (0.0ms) RELEASE SAVEPOINT active_record_1
933
+  (0.0ms) SAVEPOINT active_record_1
934
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
935
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:17:09 UTC +00:00], ["sort", 3], ["updated_at", Wed, 15 Jan 2014 10:17:09 UTC +00:00]]
936
+  (0.0ms) RELEASE SAVEPOINT active_record_1
937
+ Processing by SortableController#reorder as HTML
938
+ Parameters: {"Item"=>["1", "3", "2"]}
939
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
940
+  (0.1ms) SAVEPOINT active_record_1
941
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 0]]
942
+  (0.0ms) RELEASE SAVEPOINT active_record_1
943
+  (0.0ms) SAVEPOINT active_record_1
944
+ SQL (0.1ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 3 [["sort", 1]]
945
+  (0.0ms) RELEASE SAVEPOINT active_record_1
946
+ Completed 200 OK in 8ms (Views: 4.1ms | ActiveRecord: 0.5ms)
947
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
948
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
949
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 3]]
950
+  (0.3ms) rollback transaction
951
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
952
+  (0.1ms) begin transaction
953
+  (0.1ms) SAVEPOINT active_record_1
954
+ SQL (3.2ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:18:46 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:18:46 UTC +00:00]]
955
+  (0.1ms) RELEASE SAVEPOINT active_record_1
956
+  (0.0ms) SAVEPOINT active_record_1
957
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
958
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:18:46 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 10:18:46 UTC +00:00]]
959
+  (0.0ms) RELEASE SAVEPOINT active_record_1
960
+  (1.9ms) rollback transaction
961
+  (0.1ms) begin transaction
962
+  (0.1ms) SAVEPOINT active_record_1
963
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:18:46 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:18:46 UTC +00:00]]
964
+  (0.1ms) RELEASE SAVEPOINT active_record_1
965
+  (0.3ms) rollback transaction
966
+  (0.1ms) begin transaction
967
+  (0.0ms) SAVEPOINT active_record_1
968
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
969
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:18:46 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:18:46 UTC +00:00]]
970
+  (0.0ms) RELEASE SAVEPOINT active_record_1
971
+  (0.4ms) rollback transaction
972
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
973
+  (0.1ms) begin transaction
974
+  (0.0ms) SAVEPOINT active_record_1
975
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
976
+ SQL (4.9ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:18:59 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:18:59 UTC +00:00]]
977
+  (0.1ms) RELEASE SAVEPOINT active_record_1
978
+  (1.8ms) rollback transaction
979
+  (0.1ms) begin transaction
980
+  (0.1ms) SAVEPOINT active_record_1
981
+ SQL (0.3ms) INSERT INTO "items" ("sort") VALUES (?) [["sort", 1000]]
982
+  (0.0ms) RELEASE SAVEPOINT active_record_1
983
+  (0.4ms) rollback transaction
984
+  (0.0ms) begin transaction
985
+  (0.0ms) SAVEPOINT active_record_1
986
+ SQL (0.3ms) INSERT INTO "items" ("sort") VALUES (?) [["sort", 1000]]
987
+  (0.1ms) RELEASE SAVEPOINT active_record_1
988
+  (0.0ms) SAVEPOINT active_record_1
989
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
990
+ SQL (0.3ms) INSERT INTO "items" ("sort") VALUES (?) [["sort", 1001]]
991
+  (0.0ms) RELEASE SAVEPOINT active_record_1
992
+  (0.4ms) rollback transaction
993
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
994
+  (0.1ms) begin transaction
995
+  (0.0ms) SAVEPOINT active_record_1
996
+ SQL (3.2ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:19:11 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:19:11 UTC +00:00]]
997
+  (0.1ms) RELEASE SAVEPOINT active_record_1
998
+  (0.0ms) SAVEPOINT active_record_1
999
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1000
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:19:11 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 10:19:11 UTC +00:00]]
1001
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1002
+  (1.7ms) rollback transaction
1003
+  (0.1ms) begin transaction
1004
+  (0.0ms) SAVEPOINT active_record_1
1005
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:19:11 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:19:11 UTC +00:00]]
1006
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1007
+  (0.3ms) rollback transaction
1008
+  (0.1ms) begin transaction
1009
+  (0.0ms) SAVEPOINT active_record_1
1010
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1011
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:19:11 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:19:11 UTC +00:00]]
1012
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1013
+  (0.3ms) rollback transaction
1014
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1015
+  (0.1ms) begin transaction
1016
+  (0.1ms) SAVEPOINT active_record_1
1017
+ SQL (3.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:19:31 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:19:31 UTC +00:00]]
1018
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1019
+  (0.0ms) SAVEPOINT active_record_1
1020
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1021
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:19:31 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 10:19:31 UTC +00:00]]
1022
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1023
+  (1.8ms) rollback transaction
1024
+  (0.1ms) begin transaction
1025
+  (0.1ms) SAVEPOINT active_record_1
1026
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:19:31 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:19:31 UTC +00:00]]
1027
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1028
+  (0.4ms) rollback transaction
1029
+  (0.1ms) begin transaction
1030
+  (0.1ms) SAVEPOINT active_record_1
1031
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1032
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:19:31 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:19:31 UTC +00:00]]
1033
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1034
+  (0.4ms) rollback transaction
1035
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1036
+  (0.1ms) begin transaction
1037
+  (0.1ms) SAVEPOINT active_record_1
1038
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1039
+ SQL (3.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:19:51 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:19:51 UTC +00:00]]
1040
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1041
+  (1.9ms) rollback transaction
1042
+  (0.1ms) begin transaction
1043
+  (0.1ms) SAVEPOINT active_record_1
1044
+ SQL (0.3ms) INSERT INTO "items" ("sort") VALUES (?) [["sort", 1000]]
1045
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1046
+  (0.4ms) rollback transaction
1047
+  (0.0ms) begin transaction
1048
+  (0.0ms) SAVEPOINT active_record_1
1049
+ SQL (0.3ms) INSERT INTO "items" ("sort") VALUES (?) [["sort", 1000]]
1050
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1051
+  (0.1ms) SAVEPOINT active_record_1
1052
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1053
+ SQL (0.2ms) INSERT INTO "items" ("sort") VALUES (?) [["sort", 1001]]
1054
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1055
+  (0.5ms) rollback transaction
1056
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1057
+  (0.1ms) begin transaction
1058
+  (0.0ms) SAVEPOINT active_record_1
1059
+  (0.2ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1060
+ SQL (3.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:22:27 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:22:27 UTC +00:00]]
1061
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1062
+  (1.9ms) rollback transaction
1063
+  (0.1ms) begin transaction
1064
+  (0.1ms) SAVEPOINT active_record_1
1065
+ SQL (0.4ms) INSERT INTO "items" ("sort") VALUES (?) [["sort", 1000]]
1066
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1067
+  (0.3ms) rollback transaction
1068
+  (0.0ms) begin transaction
1069
+  (0.1ms) SAVEPOINT active_record_1
1070
+ SQL (0.2ms) INSERT INTO "items" ("sort") VALUES (?) [["sort", 1000]]
1071
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1072
+  (0.0ms) SAVEPOINT active_record_1
1073
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1074
+ SQL (0.2ms) INSERT INTO "items" ("sort") VALUES (?) [["sort", 1001]]
1075
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1076
+  (0.3ms) rollback transaction
1077
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1078
+  (0.1ms) begin transaction
1079
+  (0.0ms) SAVEPOINT active_record_1
1080
+ SQL (4.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:23:04 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:23:04 UTC +00:00]]
1081
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1082
+  (0.0ms) SAVEPOINT active_record_1
1083
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1084
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:23:04 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 10:23:04 UTC +00:00]]
1085
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1086
+  (1.7ms) rollback transaction
1087
+  (0.1ms) begin transaction
1088
+  (0.1ms) SAVEPOINT active_record_1
1089
+ SQL (0.5ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:23:04 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:23:04 UTC +00:00]]
1090
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1091
+  (0.6ms) rollback transaction
1092
+  (0.1ms) begin transaction
1093
+  (0.1ms) SAVEPOINT active_record_1
1094
+  (0.2ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1095
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:23:04 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:23:04 UTC +00:00]]
1096
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1097
+  (0.3ms) rollback transaction
1098
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1099
+  (0.1ms) begin transaction
1100
+  (0.0ms) SAVEPOINT active_record_1
1101
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1102
+ SQL (3.8ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:24:11 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:24:11 UTC +00:00]]
1103
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1104
+  (0.4ms) rollback transaction
1105
+  (0.1ms) begin transaction
1106
+  (0.1ms) SAVEPOINT active_record_1
1107
+ SQL (0.3ms) INSERT INTO "items" ("sort") VALUES (?) [["sort", 1000]]
1108
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1109
+  (0.3ms) rollback transaction
1110
+  (0.0ms) begin transaction
1111
+  (0.0ms) SAVEPOINT active_record_1
1112
+ SQL (0.2ms) INSERT INTO "items" ("sort") VALUES (?) [["sort", 1000]]
1113
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1114
+  (0.1ms) SAVEPOINT active_record_1
1115
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1116
+ SQL (0.3ms) INSERT INTO "items" ("sort") VALUES (?) [["sort", 1001]]
1117
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1118
+  (0.3ms) rollback transaction
1119
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1120
+  (0.1ms) begin transaction
1121
+  (0.0ms) SAVEPOINT active_record_1
1122
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1123
+ SQL (3.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:24:30 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:24:30 UTC +00:00]]
1124
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1125
+  (1.7ms) rollback transaction
1126
+  (0.1ms) begin transaction
1127
+  (0.1ms) SAVEPOINT active_record_1
1128
+ SQL (0.3ms) INSERT INTO "items" ("sort") VALUES (?) [["sort", 1000]]
1129
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1130
+  (0.4ms) rollback transaction
1131
+  (0.1ms) begin transaction
1132
+  (0.0ms) SAVEPOINT active_record_1
1133
+ SQL (0.2ms) INSERT INTO "items" ("sort") VALUES (?) [["sort", 1000]]
1134
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1135
+  (0.0ms) SAVEPOINT active_record_1
1136
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1137
+ SQL (0.3ms) INSERT INTO "items" ("sort") VALUES (?) [["sort", 1001]]
1138
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1139
+  (0.3ms) rollback transaction
1140
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1141
+  (0.1ms) begin transaction
1142
+  (0.0ms) SAVEPOINT active_record_1
1143
+ SQL (3.2ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:24:34 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:24:34 UTC +00:00]]
1144
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1145
+  (0.0ms) SAVEPOINT active_record_1
1146
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1147
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:24:34 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 10:24:34 UTC +00:00]]
1148
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1149
+  (1.8ms) rollback transaction
1150
+  (0.1ms) begin transaction
1151
+  (0.0ms) SAVEPOINT active_record_1
1152
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:24:34 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:24:34 UTC +00:00]]
1153
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1154
+  (0.3ms) rollback transaction
1155
+  (0.1ms) begin transaction
1156
+  (0.0ms) SAVEPOINT active_record_1
1157
+  (0.3ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1158
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:24:34 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:24:34 UTC +00:00]]
1159
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1160
+  (0.3ms) rollback transaction
1161
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1162
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1163
+  (0.1ms) begin transaction
1164
+  (0.0ms) SAVEPOINT active_record_1
1165
+ SQL (3.2ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:25:12 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:25:12 UTC +00:00]]
1166
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1167
+  (0.0ms) SAVEPOINT active_record_1
1168
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1169
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:25:12 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 10:25:12 UTC +00:00]]
1170
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1171
+  (1.9ms) rollback transaction
1172
+  (0.1ms) begin transaction
1173
+  (0.1ms) SAVEPOINT active_record_1
1174
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:25:12 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:25:12 UTC +00:00]]
1175
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1176
+  (0.3ms) rollback transaction
1177
+  (0.0ms) begin transaction
1178
+  (0.0ms) SAVEPOINT active_record_1
1179
+  (0.2ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1180
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:25:12 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:25:12 UTC +00:00]]
1181
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1182
+  (0.3ms) rollback transaction
1183
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1184
+  (0.1ms) begin transaction
1185
+  (0.0ms) SAVEPOINT active_record_1
1186
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1187
+ SQL (7.5ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:32:21 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:32:21 UTC +00:00]]
1188
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1189
+  (1.5ms) rollback transaction
1190
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1191
+  (0.1ms) begin transaction
1192
+  (0.0ms) SAVEPOINT active_record_1
1193
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1194
+ SQL (3.7ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:32:48 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:32:48 UTC +00:00]]
1195
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1196
+  (0.0ms) SAVEPOINT active_record_1
1197
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1198
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:32:48 UTC +00:00], ["sort", 2], ["updated_at", Wed, 15 Jan 2014 10:32:48 UTC +00:00]]
1199
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1200
+  (0.0ms) SAVEPOINT active_record_1
1201
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1202
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:32:48 UTC +00:00], ["sort", 3], ["updated_at", Wed, 15 Jan 2014 10:32:48 UTC +00:00]]
1203
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1204
+ Processing by SortableController#reorder as HTML
1205
+ Parameters: {"Item"=>["1", "3", "2"]}
1206
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
1207
+ Completed 500 Internal Server Error in 1ms
1208
+  (1.6ms) rollback transaction
1209
+  (0.1ms) begin transaction
1210
+  (0.1ms) rollback transaction
1211
+  (0.0ms) begin transaction
1212
+  (0.1ms) rollback transaction
1213
+  (0.0ms) begin transaction
1214
+  (0.0ms) SAVEPOINT active_record_1
1215
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:32:48 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:32:48 UTC +00:00]]
1216
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1217
+  (0.0ms) SAVEPOINT active_record_1
1218
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1219
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:32:48 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 10:32:48 UTC +00:00]]
1220
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1221
+  (0.4ms) rollback transaction
1222
+  (0.1ms) begin transaction
1223
+  (0.0ms) SAVEPOINT active_record_1
1224
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:32:48 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:32:48 UTC +00:00]]
1225
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1226
+  (0.4ms) rollback transaction
1227
+  (0.0ms) begin transaction
1228
+  (0.0ms) SAVEPOINT active_record_1
1229
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1230
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:32:48 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:32:48 UTC +00:00]]
1231
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1232
+  (0.4ms) rollback transaction
1233
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1234
+  (0.1ms) begin transaction
1235
+  (0.0ms) SAVEPOINT active_record_1
1236
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1237
+ SQL (3.0ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:33:57 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:33:57 UTC +00:00]]
1238
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1239
+  (0.4ms) rollback transaction
1240
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1241
+  (0.1ms) begin transaction
1242
+  (0.0ms) SAVEPOINT active_record_1
1243
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1244
+ SQL (3.5ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:34:27 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:34:27 UTC +00:00]]
1245
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1246
+  (0.3ms) rollback transaction
1247
+  (0.1ms) begin transaction
1248
+  (0.1ms) SAVEPOINT active_record_1
1249
+ SQL (0.4ms) INSERT INTO "items" ("sort") VALUES (?) [["sort", 1000]]
1250
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1251
+  (0.5ms) rollback transaction
1252
+  (0.1ms) begin transaction
1253
+  (0.1ms) SAVEPOINT active_record_1
1254
+ SQL (0.3ms) INSERT INTO "items" ("sort") VALUES (?) [["sort", 1000]]
1255
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1256
+  (0.1ms) SAVEPOINT active_record_1
1257
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1258
+ SQL (0.4ms) INSERT INTO "items" ("sort") VALUES (?) [["sort", 1001]]
1259
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1260
+  (0.4ms) rollback transaction
1261
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1262
+  (0.1ms) begin transaction
1263
+  (0.1ms) SAVEPOINT active_record_1
1264
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1265
+ SQL (5.5ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:39:47 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:39:47 UTC +00:00]]
1266
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1267
+  (1.4ms) rollback transaction
1268
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1269
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1270
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1271
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1272
+  (0.1ms) begin transaction
1273
+  (0.0ms) SAVEPOINT active_record_1
1274
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1275
+ SQL (3.0ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:43:43 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:43:43 UTC +00:00]]
1276
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1277
+  (0.1ms) SAVEPOINT active_record_1
1278
+ SQL (0.3ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
1279
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1280
+  (1.7ms) rollback transaction
1281
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1282
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1283
+  (0.1ms) begin transaction
1284
+  (0.0ms) SAVEPOINT active_record_1
1285
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1286
+ SQL (3.0ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:44:28 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:44:28 UTC +00:00]]
1287
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1288
+  (0.0ms) SAVEPOINT active_record_1
1289
+ SQL (0.3ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
1290
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1291
+  (1.9ms) rollback transaction
1292
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1293
+  (0.1ms) begin transaction
1294
+  (0.1ms) SAVEPOINT active_record_1
1295
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1296
+ SQL (3.0ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:44:44 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:44:44 UTC +00:00]]
1297
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1298
+  (0.1ms) SAVEPOINT active_record_1
1299
+ SQL (0.3ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
1300
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1301
+  (0.4ms) rollback transaction
1302
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1303
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1304
+  (0.2ms) begin transaction
1305
+  (0.0ms) SAVEPOINT active_record_1
1306
+ SQL (3.2ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:45:52 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:45:52 UTC +00:00]]
1307
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1308
+  (0.0ms) SAVEPOINT active_record_1
1309
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1310
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:45:52 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 10:45:52 UTC +00:00]]
1311
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1312
+  (1.9ms) rollback transaction
1313
+  (0.1ms) begin transaction
1314
+  (0.1ms) SAVEPOINT active_record_1
1315
+ SQL (0.5ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:45:52 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:45:52 UTC +00:00]]
1316
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1317
+  (0.3ms) rollback transaction
1318
+  (0.1ms) begin transaction
1319
+  (0.0ms) SAVEPOINT active_record_1
1320
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1321
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:45:52 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:45:52 UTC +00:00]]
1322
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1323
+  (0.1ms) SAVEPOINT active_record_1
1324
+ SQL (0.5ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
1325
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1326
+  (0.4ms) rollback transaction
1327
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1328
+  (0.1ms) begin transaction
1329
+  (0.0ms) SAVEPOINT active_record_1
1330
+ SQL (3.0ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:46:11 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:46:11 UTC +00:00]]
1331
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1332
+  (0.0ms) SAVEPOINT active_record_1
1333
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1334
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:46:11 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 10:46:11 UTC +00:00]]
1335
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1336
+  (1.7ms) rollback transaction
1337
+  (0.1ms) begin transaction
1338
+  (0.1ms) SAVEPOINT active_record_1
1339
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:46:11 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:46:11 UTC +00:00]]
1340
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1341
+  (0.4ms) rollback transaction
1342
+  (0.0ms) begin transaction
1343
+  (0.0ms) SAVEPOINT active_record_1
1344
+  (0.2ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1345
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:46:11 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:46:11 UTC +00:00]]
1346
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1347
+  (0.4ms) rollback transaction
1348
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1349
+  (0.1ms) begin transaction
1350
+  (0.0ms) SAVEPOINT active_record_1
1351
+ SQL (3.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:46:20 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:46:20 UTC +00:00]]
1352
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1353
+  (0.0ms) SAVEPOINT active_record_1
1354
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1355
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:46:20 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 10:46:20 UTC +00:00]]
1356
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1357
+  (1.9ms) rollback transaction
1358
+  (0.1ms) begin transaction
1359
+  (0.1ms) SAVEPOINT active_record_1
1360
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:46:20 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:46:20 UTC +00:00]]
1361
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1362
+  (0.4ms) rollback transaction
1363
+  (0.1ms) begin transaction
1364
+  (0.1ms) SAVEPOINT active_record_1
1365
+  (0.2ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1366
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:46:20 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:46:20 UTC +00:00]]
1367
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1368
+  (0.0ms) SAVEPOINT active_record_1
1369
+ SQL (0.3ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
1370
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1371
+  (0.3ms) rollback transaction
1372
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1373
+  (0.1ms) begin transaction
1374
+  (0.0ms) SAVEPOINT active_record_1
1375
+ SQL (3.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:47:21 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:47:21 UTC +00:00]]
1376
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1377
+  (0.0ms) SAVEPOINT active_record_1
1378
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1379
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:47:21 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 10:47:21 UTC +00:00]]
1380
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1381
+  (1.7ms) rollback transaction
1382
+  (0.1ms) begin transaction
1383
+  (0.1ms) SAVEPOINT active_record_1
1384
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:47:21 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:47:21 UTC +00:00]]
1385
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1386
+  (0.3ms) rollback transaction
1387
+  (0.0ms) begin transaction
1388
+  (0.0ms) SAVEPOINT active_record_1
1389
+  (0.2ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1390
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:47:21 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:47:21 UTC +00:00]]
1391
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1392
+  (0.1ms) SAVEPOINT active_record_1
1393
+ SQL (0.5ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
1394
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1395
+  (0.3ms) rollback transaction
1396
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1397
+  (0.1ms) begin transaction
1398
+  (0.0ms) SAVEPOINT active_record_1
1399
+ SQL (2.9ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:48:28 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:48:28 UTC +00:00]]
1400
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1401
+  (0.0ms) SAVEPOINT active_record_1
1402
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 15 Jan 2014 10:48:28 UTC +00:00], ["updated_at", Wed, 15 Jan 2014 10:48:28 UTC +00:00]]
1403
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1404
+  (1.7ms) rollback transaction
1405
+  (0.1ms) begin transaction
1406
+  (0.1ms) SAVEPOINT active_record_1
1407
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:48:28 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:48:28 UTC +00:00]]
1408
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1409
+  (0.3ms) rollback transaction
1410
+  (0.0ms) begin transaction
1411
+  (0.0ms) SAVEPOINT active_record_1
1412
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 15 Jan 2014 10:48:28 UTC +00:00], ["updated_at", Wed, 15 Jan 2014 10:48:28 UTC +00:00]]
1413
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1414
+  (0.1ms) SAVEPOINT active_record_1
1415
+ SQL (0.4ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
1416
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1417
+  (0.3ms) rollback transaction
1418
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1419
+  (0.1ms) begin transaction
1420
+  (0.0ms) SAVEPOINT active_record_1
1421
+ SQL (3.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:48:52 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:48:52 UTC +00:00]]
1422
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1423
+  (0.0ms) SAVEPOINT active_record_1
1424
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1425
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:48:52 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 10:48:52 UTC +00:00]]
1426
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1427
+  (1.9ms) rollback transaction
1428
+  (0.1ms) begin transaction
1429
+  (0.1ms) SAVEPOINT active_record_1
1430
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:48:52 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:48:52 UTC +00:00]]
1431
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1432
+  (0.3ms) rollback transaction
1433
+  (0.0ms) begin transaction
1434
+  (0.0ms) SAVEPOINT active_record_1
1435
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1436
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:48:52 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:48:52 UTC +00:00]]
1437
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1438
+  (0.1ms) SAVEPOINT active_record_1
1439
+ SQL (0.5ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
1440
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1441
+  (0.3ms) rollback transaction
1442
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1443
+  (0.1ms) begin transaction
1444
+  (0.1ms) SAVEPOINT active_record_1
1445
+ SQL (2.9ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:50:17 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:50:17 UTC +00:00]]
1446
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1447
+  (0.0ms) SAVEPOINT active_record_1
1448
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1449
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:50:17 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 10:50:17 UTC +00:00]]
1450
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1451
+  (2.1ms) rollback transaction
1452
+  (0.1ms) begin transaction
1453
+  (0.1ms) SAVEPOINT active_record_1
1454
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:50:17 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:50:17 UTC +00:00]]
1455
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1456
+  (0.4ms) rollback transaction
1457
+  (0.1ms) begin transaction
1458
+  (0.0ms) SAVEPOINT active_record_1
1459
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1460
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:50:17 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:50:17 UTC +00:00]]
1461
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1462
+  (0.1ms) SAVEPOINT active_record_1
1463
+ SQL (0.3ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
1464
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1465
+  (0.3ms) rollback transaction
1466
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1467
+  (0.1ms) begin transaction
1468
+  (0.0ms) SAVEPOINT active_record_1
1469
+ SQL (5.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:50:39 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:50:39 UTC +00:00]]
1470
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1471
+  (0.0ms) SAVEPOINT active_record_1
1472
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1473
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:50:39 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 10:50:39 UTC +00:00]]
1474
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1475
+  (2.0ms) rollback transaction
1476
+  (0.1ms) begin transaction
1477
+  (0.1ms) SAVEPOINT active_record_1
1478
+ SQL (0.5ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:50:39 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:50:39 UTC +00:00]]
1479
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1480
+  (0.3ms) rollback transaction
1481
+  (0.1ms) begin transaction
1482
+  (0.1ms) SAVEPOINT active_record_1
1483
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1484
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:50:39 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:50:39 UTC +00:00]]
1485
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1486
+  (0.1ms) SAVEPOINT active_record_1
1487
+ SQL (0.3ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
1488
+  (6.7ms) RELEASE SAVEPOINT active_record_1
1489
+  (0.5ms) rollback transaction
1490
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1491
+  (0.1ms) begin transaction
1492
+  (0.0ms) SAVEPOINT active_record_1
1493
+ SQL (3.7ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:51:13 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:51:13 UTC +00:00]]
1494
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1495
+  (0.0ms) SAVEPOINT active_record_1
1496
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1497
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:51:13 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 10:51:13 UTC +00:00]]
1498
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1499
+  (1.9ms) rollback transaction
1500
+  (0.1ms) begin transaction
1501
+  (0.1ms) SAVEPOINT active_record_1
1502
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:51:13 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:51:13 UTC +00:00]]
1503
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1504
+  (0.3ms) rollback transaction
1505
+  (0.0ms) begin transaction
1506
+  (0.1ms) SAVEPOINT active_record_1
1507
+  (0.2ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1508
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:51:13 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:51:13 UTC +00:00]]
1509
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1510
+  (0.0ms) SAVEPOINT active_record_1
1511
+ SQL (0.3ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
1512
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1513
+  (0.3ms) rollback transaction
1514
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1515
+  (0.1ms) begin transaction
1516
+  (0.1ms) rollback transaction
1517
+  (0.0ms) begin transaction
1518
+  (0.1ms) SAVEPOINT active_record_1
1519
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1520
+  (0.1ms) rollback transaction
1521
+  (0.1ms) begin transaction
1522
+  (0.1ms) SAVEPOINT active_record_1
1523
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1524
+  (0.0ms) rollback transaction
1525
+  (0.0ms) begin transaction
1526
+  (0.0ms) SAVEPOINT active_record_1
1527
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
1528
+  (0.0ms) rollback transaction
1529
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1530
+  (0.1ms) begin transaction
1531
+  (0.1ms) SAVEPOINT active_record_1
1532
+ SQL (3.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:52:53 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:52:53 UTC +00:00]]
1533
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1534
+  (0.0ms) SAVEPOINT active_record_1
1535
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1536
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:52:53 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 10:52:53 UTC +00:00]]
1537
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1538
+  (1.9ms) rollback transaction
1539
+  (0.1ms) begin transaction
1540
+  (0.1ms) SAVEPOINT active_record_1
1541
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:52:53 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:52:53 UTC +00:00]]
1542
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1543
+  (0.3ms) rollback transaction
1544
+  (0.1ms) begin transaction
1545
+  (0.0ms) SAVEPOINT active_record_1
1546
+  (0.2ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1547
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:52:53 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:52:53 UTC +00:00]]
1548
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1549
+  (0.0ms) SAVEPOINT active_record_1
1550
+ SQL (0.3ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
1551
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1552
+  (0.3ms) rollback transaction
1553
+  (0.0ms) begin transaction
1554
+  (0.0ms) SAVEPOINT active_record_1
1555
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1556
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:52:53 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:52:53 UTC +00:00]]
1557
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1558
+  (0.0ms) SAVEPOINT active_record_1
1559
+ SQL (0.2ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
1560
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1561
+  (0.3ms) rollback transaction
1562
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1563
+  (0.1ms) begin transaction
1564
+  (0.0ms) SAVEPOINT active_record_1
1565
+ SQL (3.5ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:53:28 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:53:28 UTC +00:00]]
1566
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1567
+  (0.1ms) SAVEPOINT active_record_1
1568
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1569
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:53:28 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 10:53:28 UTC +00:00]]
1570
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1571
+  (1.9ms) rollback transaction
1572
+  (0.1ms) begin transaction
1573
+  (0.1ms) SAVEPOINT active_record_1
1574
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:53:28 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:53:28 UTC +00:00]]
1575
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1576
+  (0.3ms) rollback transaction
1577
+  (0.1ms) begin transaction
1578
+  (0.1ms) SAVEPOINT active_record_1
1579
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1580
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:53:28 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:53:28 UTC +00:00]]
1581
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1582
+  (0.1ms) SAVEPOINT active_record_1
1583
+ SQL (0.4ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
1584
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1585
+  (0.3ms) rollback transaction
1586
+  (0.1ms) begin transaction
1587
+  (0.1ms) SAVEPOINT active_record_1
1588
+  (0.2ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1589
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:53:28 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:53:28 UTC +00:00]]
1590
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1591
+  (0.0ms) SAVEPOINT active_record_1
1592
+ SQL (0.2ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
1593
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1594
+  (0.3ms) rollback transaction
1595
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1596
+  (0.1ms) begin transaction
1597
+  (0.0ms) SAVEPOINT active_record_1
1598
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1599
+ SQL (3.0ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:54:20 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:54:20 UTC +00:00]]
1600
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1601
+  (0.0ms) SAVEPOINT active_record_1
1602
+ SQL (0.4ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
1603
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1604
+  (1.5ms) rollback transaction
1605
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1606
+  (0.1ms) begin transaction
1607
+  (0.0ms) SAVEPOINT active_record_1
1608
+  (0.2ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1609
+ SQL (3.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:54:51 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:54:51 UTC +00:00]]
1610
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1611
+  (0.1ms) SAVEPOINT active_record_1
1612
+ SQL (0.3ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
1613
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1614
+  (1.8ms) rollback transaction
1615
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1616
+  (0.1ms) begin transaction
1617
+  (0.1ms) SAVEPOINT active_record_1
1618
+ SQL (3.2ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:54:55 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:54:55 UTC +00:00]]
1619
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1620
+  (0.0ms) SAVEPOINT active_record_1
1621
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1622
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:54:55 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 10:54:55 UTC +00:00]]
1623
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1624
+  (1.9ms) rollback transaction
1625
+  (0.1ms) begin transaction
1626
+  (0.1ms) SAVEPOINT active_record_1
1627
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:54:55 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:54:55 UTC +00:00]]
1628
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1629
+  (0.4ms) rollback transaction
1630
+  (0.1ms) begin transaction
1631
+  (0.1ms) SAVEPOINT active_record_1
1632
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1633
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:54:55 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:54:55 UTC +00:00]]
1634
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1635
+  (0.1ms) SAVEPOINT active_record_1
1636
+ SQL (0.3ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
1637
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1638
+  (0.3ms) rollback transaction
1639
+  (0.1ms) begin transaction
1640
+  (0.0ms) SAVEPOINT active_record_1
1641
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1642
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:54:55 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:54:55 UTC +00:00]]
1643
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1644
+  (0.0ms) SAVEPOINT active_record_1
1645
+ SQL (0.2ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
1646
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1647
+  (0.3ms) rollback transaction
1648
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1649
+  (0.1ms) begin transaction
1650
+  (0.0ms) SAVEPOINT active_record_1
1651
+ SQL (3.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:55:27 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:55:27 UTC +00:00]]
1652
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1653
+  (0.0ms) SAVEPOINT active_record_1
1654
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1655
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:55:27 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 10:55:27 UTC +00:00]]
1656
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1657
+  (1.9ms) rollback transaction
1658
+  (0.1ms) begin transaction
1659
+  (0.1ms) SAVEPOINT active_record_1
1660
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:55:27 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:55:27 UTC +00:00]]
1661
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1662
+  (0.3ms) rollback transaction
1663
+  (0.0ms) begin transaction
1664
+  (0.0ms) SAVEPOINT active_record_1
1665
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1666
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:55:27 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:55:27 UTC +00:00]]
1667
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1668
+  (0.3ms) rollback transaction
1669
+  (0.1ms) begin transaction
1670
+  (0.1ms) SAVEPOINT active_record_1
1671
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1672
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:55:27 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:55:27 UTC +00:00]]
1673
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1674
+  (0.4ms) rollback transaction
1675
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1676
+  (0.1ms) begin transaction
1677
+  (0.1ms) SAVEPOINT active_record_1
1678
+ SQL (2.9ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:55:47 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:55:47 UTC +00:00]]
1679
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1680
+  (0.0ms) SAVEPOINT active_record_1
1681
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1682
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:55:47 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 10:55:47 UTC +00:00]]
1683
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1684
+  (1.9ms) rollback transaction
1685
+  (0.1ms) begin transaction
1686
+  (0.0ms) SAVEPOINT active_record_1
1687
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:55:47 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 10:55:47 UTC +00:00]]
1688
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1689
+  (0.4ms) rollback transaction
1690
+  (0.0ms) begin transaction
1691
+  (0.1ms) SAVEPOINT active_record_1
1692
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1693
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:55:47 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:55:47 UTC +00:00]]
1694
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1695
+  (0.1ms) SAVEPOINT active_record_1
1696
+ SQL (0.4ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
1697
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1698
+  (0.4ms) rollback transaction
1699
+  (0.0ms) begin transaction
1700
+  (0.0ms) SAVEPOINT active_record_1
1701
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1702
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 10:55:47 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 10:55:47 UTC +00:00]]
1703
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1704
+  (0.0ms) SAVEPOINT active_record_1
1705
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1706
+  (0.3ms) rollback transaction
1707
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1708
+  (0.1ms) begin transaction
1709
+  (0.1ms) SAVEPOINT active_record_1
1710
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1711
+ SQL (3.6ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:00:21 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:00:21 UTC +00:00]]
1712
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1713
+  (0.1ms) SAVEPOINT active_record_1
1714
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1715
+  (1.5ms) rollback transaction
1716
+  (0.1ms) begin transaction
1717
+  (0.1ms) SAVEPOINT active_record_1
1718
+  (0.2ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1719
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:00:21 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:00:21 UTC +00:00]]
1720
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1721
+  (0.0ms) SAVEPOINT active_record_1
1722
+ SQL (0.3ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
1723
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1724
+  (0.4ms) rollback transaction
1725
+  (0.1ms) begin transaction
1726
+  (0.0ms) SAVEPOINT active_record_1
1727
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:00:21 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 11:00:21 UTC +00:00]]
1728
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1729
+  (0.4ms) rollback transaction
1730
+  (0.0ms) begin transaction
1731
+  (0.1ms) SAVEPOINT active_record_1
1732
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:00:21 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 11:00:21 UTC +00:00]]
1733
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1734
+  (0.0ms) SAVEPOINT active_record_1
1735
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1736
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:00:21 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 11:00:21 UTC +00:00]]
1737
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1738
+  (0.3ms) rollback transaction
1739
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1740
+  (0.1ms) begin transaction
1741
+  (0.1ms) SAVEPOINT active_record_1
1742
+ SQL (3.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:00:34 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 11:00:34 UTC +00:00]]
1743
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1744
+  (0.0ms) SAVEPOINT active_record_1
1745
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1746
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:00:34 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 11:00:34 UTC +00:00]]
1747
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1748
+  (1.5ms) rollback transaction
1749
+  (0.1ms) begin transaction
1750
+  (0.1ms) SAVEPOINT active_record_1
1751
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:00:34 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 11:00:34 UTC +00:00]]
1752
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1753
+  (0.3ms) rollback transaction
1754
+  (0.0ms) begin transaction
1755
+  (0.0ms) SAVEPOINT active_record_1
1756
+  (0.2ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1757
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:00:34 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:00:34 UTC +00:00]]
1758
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1759
+  (0.0ms) SAVEPOINT active_record_1
1760
+ SQL (0.3ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
1761
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1762
+  (0.4ms) rollback transaction
1763
+  (0.1ms) begin transaction
1764
+  (0.1ms) SAVEPOINT active_record_1
1765
+  (0.2ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1766
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:00:34 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:00:34 UTC +00:00]]
1767
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1768
+  (0.1ms) SAVEPOINT active_record_1
1769
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1770
+  (0.3ms) rollback transaction
1771
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1772
+  (0.1ms) begin transaction
1773
+  (0.0ms) SAVEPOINT active_record_1
1774
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1775
+ SQL (3.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:01:14 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:01:14 UTC +00:00]]
1776
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1777
+  (0.2ms) SAVEPOINT active_record_1
1778
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1779
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1780
+  (0.1ms) begin transaction
1781
+  (0.0ms) SAVEPOINT active_record_1
1782
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1783
+ SQL (3.5ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:01:41 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:01:41 UTC +00:00]]
1784
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1785
+  (0.1ms) SAVEPOINT active_record_1
1786
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1787
+  (1.6ms) rollback transaction
1788
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1789
+  (0.1ms) begin transaction
1790
+  (0.1ms) SAVEPOINT active_record_1
1791
+  (0.2ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1792
+ SQL (3.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:01:46 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:01:46 UTC +00:00]]
1793
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1794
+  (0.0ms) SAVEPOINT active_record_1
1795
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1796
+  (1.7ms) rollback transaction
1797
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1798
+  (0.1ms) begin transaction
1799
+  (0.0ms) SAVEPOINT active_record_1
1800
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1801
+ SQL (3.0ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:01:51 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:01:51 UTC +00:00]]
1802
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1803
+  (0.1ms) SAVEPOINT active_record_1
1804
+ SQL (1.2ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
1805
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1806
+  (1.7ms) rollback transaction
1807
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1808
+  (0.1ms) begin transaction
1809
+  (0.1ms) SAVEPOINT active_record_1
1810
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1811
+ SQL (3.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:02:04 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:02:04 UTC +00:00]]
1812
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1813
+  (0.0ms) SAVEPOINT active_record_1
1814
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1815
+  (1.6ms) rollback transaction
1816
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1817
+  (0.1ms) begin transaction
1818
+  (0.0ms) SAVEPOINT active_record_1
1819
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1820
+ SQL (2.9ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:02:15 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:02:15 UTC +00:00]]
1821
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1822
+  (0.1ms) SAVEPOINT active_record_1
1823
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1824
+  (1.8ms) rollback transaction
1825
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1826
+  (0.1ms) begin transaction
1827
+  (0.0ms) SAVEPOINT active_record_1
1828
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1829
+ SQL (3.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:02:53 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:02:53 UTC +00:00]]
1830
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1831
+  (0.1ms) SAVEPOINT active_record_1
1832
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1833
+  (0.8ms) rollback transaction
1834
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1835
+  (0.1ms) begin transaction
1836
+  (0.0ms) SAVEPOINT active_record_1
1837
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1838
+ SQL (3.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:03:09 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:03:09 UTC +00:00]]
1839
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1840
+  (0.1ms) SAVEPOINT active_record_1
1841
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1842
+  (1.8ms) rollback transaction
1843
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1844
+  (0.2ms) begin transaction
1845
+  (0.1ms) SAVEPOINT active_record_1
1846
+  (0.2ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1847
+ SQL (4.0ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:03:45 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:03:45 UTC +00:00]]
1848
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1849
+  (0.1ms) SAVEPOINT active_record_1
1850
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1851
+  (0.5ms) rollback transaction
1852
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1853
+  (0.1ms) begin transaction
1854
+  (0.0ms) SAVEPOINT active_record_1
1855
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1856
+ SQL (3.9ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:03:51 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:03:51 UTC +00:00]]
1857
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1858
+  (0.1ms) SAVEPOINT active_record_1
1859
+ SQL (0.4ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
1860
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1861
+  (1.4ms) rollback transaction
1862
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1863
+  (0.1ms) begin transaction
1864
+  (0.1ms) SAVEPOINT active_record_1
1865
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1866
+ SQL (3.0ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:05:21 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:05:21 UTC +00:00]]
1867
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1868
+  (0.0ms) SAVEPOINT active_record_1
1869
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1870
+  (1.6ms) rollback transaction
1871
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1872
+  (0.1ms) begin transaction
1873
+  (0.0ms) SAVEPOINT active_record_1
1874
+  (0.2ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1875
+ SQL (3.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:05:40 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:05:40 UTC +00:00]]
1876
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1877
+  (0.1ms) SAVEPOINT active_record_1
1878
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1879
+  (1.6ms) rollback transaction
1880
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1881
+  (0.1ms) begin transaction
1882
+  (0.1ms) SAVEPOINT active_record_1
1883
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1884
+ SQL (4.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:05:57 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:05:57 UTC +00:00]]
1885
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1886
+  (0.2ms) SAVEPOINT active_record_1
1887
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1888
+  (1.8ms) rollback transaction
1889
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1890
+  (0.1ms) begin transaction
1891
+  (0.0ms) SAVEPOINT active_record_1
1892
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1893
+ SQL (3.0ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:06:28 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:06:28 UTC +00:00]]
1894
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1895
+  (0.1ms) SAVEPOINT active_record_1
1896
+ SQL (0.6ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 1 [["sort", 1000], ["updated_at", Wed, 15 Jan 2014 11:06:28 UTC +00:00]]
1897
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1898
+  (1.6ms) rollback transaction
1899
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1900
+  (0.1ms) begin transaction
1901
+  (0.1ms) SAVEPOINT active_record_1
1902
+ SQL (3.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:06:32 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 11:06:32 UTC +00:00]]
1903
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1904
+  (0.1ms) SAVEPOINT active_record_1
1905
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1906
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:06:32 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 11:06:32 UTC +00:00]]
1907
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1908
+  (1.9ms) rollback transaction
1909
+  (0.1ms) begin transaction
1910
+  (0.1ms) SAVEPOINT active_record_1
1911
+ SQL (0.5ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:06:32 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 11:06:32 UTC +00:00]]
1912
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1913
+  (0.3ms) rollback transaction
1914
+  (0.1ms) begin transaction
1915
+  (0.1ms) SAVEPOINT active_record_1
1916
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1917
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:06:32 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:06:32 UTC +00:00]]
1918
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1919
+  (0.1ms) SAVEPOINT active_record_1
1920
+ SQL (0.3ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
1921
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1922
+  (0.3ms) rollback transaction
1923
+  (0.1ms) begin transaction
1924
+  (0.1ms) SAVEPOINT active_record_1
1925
+  (0.2ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1926
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:06:32 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:06:32 UTC +00:00]]
1927
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1928
+  (0.1ms) SAVEPOINT active_record_1
1929
+ SQL (0.3ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 1 [["sort", 1000], ["updated_at", Wed, 15 Jan 2014 11:06:32 UTC +00:00]]
1930
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1931
+  (0.4ms) rollback transaction
1932
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1933
+  (0.1ms) begin transaction
1934
+  (0.1ms) SAVEPOINT active_record_1
1935
+ SQL (3.2ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:08:01 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 11:08:01 UTC +00:00]]
1936
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1937
+  (0.0ms) SAVEPOINT active_record_1
1938
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1939
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:08:01 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 11:08:01 UTC +00:00]]
1940
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1941
+  (1.7ms) rollback transaction
1942
+  (0.1ms) begin transaction
1943
+  (0.0ms) SAVEPOINT active_record_1
1944
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:08:01 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 11:08:01 UTC +00:00]]
1945
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1946
+  (0.3ms) rollback transaction
1947
+  (0.0ms) begin transaction
1948
+  (0.0ms) SAVEPOINT active_record_1
1949
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1950
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:08:01 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:08:01 UTC +00:00]]
1951
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1952
+  (0.0ms) SAVEPOINT active_record_1
1953
+ SQL (0.3ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
1954
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1955
+  (0.3ms) rollback transaction
1956
+  (0.1ms) begin transaction
1957
+  (0.1ms) SAVEPOINT active_record_1
1958
+  (0.2ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1959
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:08:01 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:08:01 UTC +00:00]]
1960
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1961
+  (0.0ms) SAVEPOINT active_record_1
1962
+ SQL (0.3ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 1 [["sort", 1000], ["updated_at", Wed, 15 Jan 2014 11:08:01 UTC +00:00]]
1963
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1964
+  (0.4ms) rollback transaction
1965
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1966
+  (0.1ms) begin transaction
1967
+  (0.0ms) SAVEPOINT active_record_1
1968
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1969
+ SQL (3.5ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:08:05 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:08:05 UTC +00:00]]
1970
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1971
+  (0.0ms) SAVEPOINT active_record_1
1972
+ SQL (0.5ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 1 [["sort", 1000], ["updated_at", Wed, 15 Jan 2014 11:08:05 UTC +00:00]]
1973
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1974
+  (1.9ms) rollback transaction
1975
+  (0.1ms) begin transaction
1976
+  (0.0ms) SAVEPOINT active_record_1
1977
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1978
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:08:05 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:08:05 UTC +00:00]]
1979
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1980
+  (0.0ms) SAVEPOINT active_record_1
1981
+ SQL (0.3ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
1982
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1983
+  (0.3ms) rollback transaction
1984
+  (0.0ms) begin transaction
1985
+  (0.0ms) SAVEPOINT active_record_1
1986
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:08:05 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 11:08:05 UTC +00:00]]
1987
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1988
+  (0.2ms) rollback transaction
1989
+  (0.2ms) begin transaction
1990
+  (0.1ms) SAVEPOINT active_record_1
1991
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:08:05 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 11:08:05 UTC +00:00]]
1992
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1993
+  (0.0ms) SAVEPOINT active_record_1
1994
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
1995
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:08:06 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 11:08:06 UTC +00:00]]
1996
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1997
+  (0.3ms) rollback transaction
1998
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1999
+  (0.1ms) begin transaction
2000
+  (0.1ms) SAVEPOINT active_record_1
2001
+ SQL (3.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:08:56 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 11:08:56 UTC +00:00]]
2002
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2003
+  (0.0ms) SAVEPOINT active_record_1
2004
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
2005
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:08:56 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 11:08:56 UTC +00:00]]
2006
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2007
+  (1.7ms) rollback transaction
2008
+  (0.1ms) begin transaction
2009
+  (0.1ms) SAVEPOINT active_record_1
2010
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:08:56 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 11:08:56 UTC +00:00]]
2011
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2012
+  (0.3ms) rollback transaction
2013
+  (0.0ms) begin transaction
2014
+  (0.0ms) SAVEPOINT active_record_1
2015
+  (0.2ms) SELECT MAX("items"."sort") AS max_id FROM "items"
2016
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:08:56 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:08:56 UTC +00:00]]
2017
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2018
+  (0.1ms) SAVEPOINT active_record_1
2019
+ SQL (0.3ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
2020
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2021
+  (0.4ms) rollback transaction
2022
+  (0.1ms) begin transaction
2023
+  (0.1ms) SAVEPOINT active_record_1
2024
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
2025
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:08:56 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:08:56 UTC +00:00]]
2026
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2027
+  (0.0ms) SAVEPOINT active_record_1
2028
+ SQL (0.3ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 1 [["sort", 1000], ["updated_at", Wed, 15 Jan 2014 11:08:56 UTC +00:00]]
2029
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2030
+  (0.3ms) rollback transaction
2031
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
2032
+  (0.1ms) begin transaction
2033
+  (0.1ms) SAVEPOINT active_record_1
2034
+ SQL (3.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:13:53 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 11:13:53 UTC +00:00]]
2035
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2036
+  (0.0ms) SAVEPOINT active_record_1
2037
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
2038
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:13:53 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 11:13:53 UTC +00:00]]
2039
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2040
+  (0.7ms) rollback transaction
2041
+  (0.1ms) begin transaction
2042
+  (0.0ms) SAVEPOINT active_record_1
2043
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:13:53 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 11:13:53 UTC +00:00]]
2044
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2045
+  (0.4ms) rollback transaction
2046
+  (0.0ms) begin transaction
2047
+  (0.1ms) SAVEPOINT active_record_1
2048
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
2049
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:13:53 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:13:53 UTC +00:00]]
2050
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2051
+  (0.1ms) SAVEPOINT active_record_1
2052
+ SQL (0.3ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
2053
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2054
+  (0.3ms) rollback transaction
2055
+  (0.1ms) begin transaction
2056
+  (0.0ms) SAVEPOINT active_record_1
2057
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
2058
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:13:53 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:13:53 UTC +00:00]]
2059
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2060
+  (0.0ms) SAVEPOINT active_record_1
2061
+ SQL (0.3ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 1 [["sort", 1000], ["updated_at", Wed, 15 Jan 2014 11:13:53 UTC +00:00]]
2062
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2063
+  (0.4ms) rollback transaction
2064
+  (0.1ms) begin transaction
2065
+  (0.1ms) rollback transaction
2066
+  (0.0ms) begin transaction
2067
+  (0.1ms) rollback transaction
2068
+  (0.0ms) begin transaction
2069
+  (0.0ms) SAVEPOINT active_record_1
2070
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
2071
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:13:53 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:13:53 UTC +00:00]]
2072
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2073
+  (0.0ms) SAVEPOINT active_record_1
2074
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
2075
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:13:53 UTC +00:00], ["sort", 2], ["updated_at", Wed, 15 Jan 2014 11:13:53 UTC +00:00]]
2076
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2077
+  (0.1ms) SAVEPOINT active_record_1
2078
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
2079
+ SQL (0.2ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:13:53 UTC +00:00], ["sort", 3], ["updated_at", Wed, 15 Jan 2014 11:13:53 UTC +00:00]]
2080
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2081
+ Processing by SortableController#reorder as HTML
2082
+ Parameters: {"Item"=>["1", "3", "2"]}
2083
+ Item Load (0.2ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
2084
+  (0.1ms) SAVEPOINT active_record_1
2085
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 1 [["sort", 0], ["updated_at", Wed, 15 Jan 2014 11:13:53 UTC +00:00]]
2086
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2087
+  (0.0ms) SAVEPOINT active_record_1
2088
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 3 [["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:13:53 UTC +00:00]]
2089
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2090
+ Completed 200 OK in 12ms (Views: 7.8ms | ActiveRecord: 0.7ms)
2091
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
2092
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
2093
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 3]]
2094
+  (0.4ms) rollback transaction
2095
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2096
+  (0.1ms) begin transaction
2097
+  (0.1ms) SAVEPOINT active_record_1
2098
+ SQL (3.5ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:18:18 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 11:18:18 UTC +00:00]]
2099
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2100
+  (0.0ms) SAVEPOINT active_record_1
2101
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
2102
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:18:18 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 11:18:18 UTC +00:00]]
2103
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2104
+  (1.7ms) rollback transaction
2105
+  (0.1ms) begin transaction
2106
+  (0.1ms) SAVEPOINT active_record_1
2107
+ SQL (0.4ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:18:18 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 11:18:18 UTC +00:00]]
2108
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2109
+  (0.4ms) rollback transaction
2110
+  (0.0ms) begin transaction
2111
+  (0.0ms) SAVEPOINT active_record_1
2112
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
2113
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:18:18 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:18:18 UTC +00:00]]
2114
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2115
+  (0.1ms) SAVEPOINT active_record_1
2116
+ SQL (0.3ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
2117
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2118
+  (0.5ms) rollback transaction
2119
+  (0.0ms) begin transaction
2120
+  (0.1ms) SAVEPOINT active_record_1
2121
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
2122
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:18:18 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:18:18 UTC +00:00]]
2123
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2124
+  (0.0ms) SAVEPOINT active_record_1
2125
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 1 [["sort", 1000], ["updated_at", Wed, 15 Jan 2014 11:18:18 UTC +00:00]]
2126
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2127
+  (0.4ms) rollback transaction
2128
+  (0.1ms) begin transaction
2129
+  (0.1ms) rollback transaction
2130
+  (0.1ms) begin transaction
2131
+  (0.1ms) rollback transaction
2132
+  (0.0ms) begin transaction
2133
+  (0.1ms) SAVEPOINT active_record_1
2134
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
2135
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:18:19 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:18:19 UTC +00:00]]
2136
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2137
+  (0.0ms) SAVEPOINT active_record_1
2138
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
2139
+ SQL (0.2ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:18:19 UTC +00:00], ["sort", 2], ["updated_at", Wed, 15 Jan 2014 11:18:19 UTC +00:00]]
2140
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2141
+  (0.0ms) SAVEPOINT active_record_1
2142
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
2143
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 11:18:19 UTC +00:00], ["sort", 3], ["updated_at", Wed, 15 Jan 2014 11:18:19 UTC +00:00]]
2144
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2145
+ Processing by SortableController#reorder as HTML
2146
+ Parameters: {"Item"=>["1", "3", "2"]}
2147
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
2148
+  (0.1ms) SAVEPOINT active_record_1
2149
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 1 [["sort", 0], ["updated_at", Wed, 15 Jan 2014 11:18:19 UTC +00:00]]
2150
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2151
+  (0.0ms) SAVEPOINT active_record_1
2152
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 3 [["sort", 1], ["updated_at", Wed, 15 Jan 2014 11:18:19 UTC +00:00]]
2153
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2154
+ Completed 200 OK in 9ms (Views: 5.6ms | ActiveRecord: 0.6ms)
2155
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
2156
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
2157
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 3]]
2158
+  (0.4ms) rollback transaction
2159
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2160
+  (0.1ms) begin transaction
2161
+  (0.1ms) rollback transaction
2162
+  (0.1ms) begin transaction
2163
+  (0.1ms) rollback transaction
2164
+  (0.0ms) begin transaction
2165
+  (0.0ms) SAVEPOINT active_record_1
2166
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
2167
+ SQL (8.0ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 13:53:17 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 13:53:17 UTC +00:00]]
2168
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2169
+  (0.0ms) SAVEPOINT active_record_1
2170
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
2171
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 13:53:17 UTC +00:00], ["sort", 2], ["updated_at", Wed, 15 Jan 2014 13:53:17 UTC +00:00]]
2172
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2173
+  (0.0ms) SAVEPOINT active_record_1
2174
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
2175
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 13:53:17 UTC +00:00], ["sort", 3], ["updated_at", Wed, 15 Jan 2014 13:53:17 UTC +00:00]]
2176
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2177
+ Processing by SortableController#reorder as HTML
2178
+ Parameters: {"Item"=>["1", "3", "2"]}
2179
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
2180
+  (0.0ms) SAVEPOINT active_record_1
2181
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 1 [["sort", 0], ["updated_at", Wed, 15 Jan 2014 13:53:17 UTC +00:00]]
2182
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2183
+  (0.0ms) SAVEPOINT active_record_1
2184
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 3 [["sort", 1], ["updated_at", Wed, 15 Jan 2014 13:53:17 UTC +00:00]]
2185
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2186
+ Completed 200 OK in 15ms (Views: 10.3ms | ActiveRecord: 0.7ms)
2187
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
2188
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
2189
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 3]]
2190
+  (0.5ms) rollback transaction
2191
+  (0.1ms) begin transaction
2192
+  (0.1ms) SAVEPOINT active_record_1
2193
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 13:53:17 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 13:53:17 UTC +00:00]]
2194
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2195
+  (0.0ms) SAVEPOINT active_record_1
2196
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
2197
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 13:53:17 UTC +00:00], ["sort", 1001], ["updated_at", Wed, 15 Jan 2014 13:53:17 UTC +00:00]]
2198
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2199
+  (0.5ms) rollback transaction
2200
+  (0.1ms) begin transaction
2201
+  (0.0ms) SAVEPOINT active_record_1
2202
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 13:53:17 UTC +00:00], ["sort", 1000], ["updated_at", Wed, 15 Jan 2014 13:53:17 UTC +00:00]]
2203
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2204
+  (0.3ms) rollback transaction
2205
+  (0.0ms) begin transaction
2206
+  (0.0ms) SAVEPOINT active_record_1
2207
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
2208
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 13:53:17 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 13:53:17 UTC +00:00]]
2209
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2210
+  (0.1ms) SAVEPOINT active_record_1
2211
+ SQL (0.3ms) UPDATE "items" SET "sort" = ? WHERE "items"."id" = 1 [["sort", 1000]]
2212
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2213
+  (0.4ms) rollback transaction
2214
+  (0.0ms) begin transaction
2215
+  (0.1ms) SAVEPOINT active_record_1
2216
+  (0.1ms) SELECT MAX("items"."sort") AS max_id FROM "items"
2217
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 15 Jan 2014 13:53:17 UTC +00:00], ["sort", 1], ["updated_at", Wed, 15 Jan 2014 13:53:17 UTC +00:00]]
2218
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2219
+  (0.0ms) SAVEPOINT active_record_1
2220
+ SQL (0.3ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 1 [["sort", 1000], ["updated_at", Wed, 15 Jan 2014 13:53:17 UTC +00:00]]
2221
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2222
+  (0.4ms) rollback transaction