rails_sortable 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -0
- data/app/controllers/sortable_controller.rb +3 -2
- data/lib/rails_sortable/version.rb +1 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/log/development.log +127 -0
- data/spec/dummy/log/test.log +904 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-0/-04WultUGIm_Y6DGzaQeEdWs4rqnYdR5dFslay4ECI0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-n/-nob8_x40i6OuTJnKYdu9vWfcyNR4so8ZnQFZjtzHwQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/0h/0hs9PsMIO89xhM0xQmVPc4tk6beqwN8vrocp0RsQgNk.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/0h/0hwBYo_o7NzxpFs41yC326gdOZ1jatKLrz9YcrzK3Fg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/0l/0lxOLKgMUMzAFvW2sDd-e6N0cnDR_PNDv-s69MSMiAA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/1L/1L7CqN3UdeXwKk-l8DgrgbknMYKblsmKt6WZzV_sXYc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3a/3aVsPpF82NTrOME3q-fLdN_C-dNqaKEch3UZ3KCZ-0g.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3i/3iYssjfoHe6hUT4LNcQLtG0j5Nn4FDPwoa943-RWnfE.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/47/47ABFWVQuZVNPp2rFBDHaSI9aSmq-03nLg_LXqL7TnI.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4S/4SNGC0N4UAfgyk5hO3K9IN4y0mzSpQBHFfBPktGeJ7M.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5H/5HTLYrN2iyEFJnUtsUif6BeIyTbdK3YgMEme5Huu0pQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/6H/6HpFwq6-jgGkQnJR_YkHPNTACJO7ZfoYuPXytyPs_8c.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/6N/6NH2ic-dqzcSdc0aHHxKVWU9ehgqEUGh4E6ENjqLWgY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8C/8CF9P7ktAB3fsFsbCQqooUdvfdrEANZYrHt5WbCGvJ8.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/AU/AUyuSGGWDcoD_sjnBkpxBN8F0YB84dRx1vi7dqFwAU4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/BJ/BJpyPBlW8L-v3Se-MdzObEShxbkzEUEUDLT9xKG-pG0.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Bw/BwXXe9MVSCahD1jLozGLD21EgQ4OD4ZIHOZLS1AK114.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/DQ/DQwv2-82BJterkwfSq-aBtEakxaOc_EDwxpPiUxhBUg.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Dm/DmmfrCpXtt74Hr6NO54lxyOCDv6klnDyBqeDFR7oDU8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Dv/Dv4SRzlAjn6avvr2cUKX8iPyUR_kOrOgjsMoo5KLYMM.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ED/EDygO8NoxqRQ5ZbtcF0-IeGelRZaVuRITaeX2qM5HLs.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/F6/F6VBZW6wfPkig4zAn5KlNHek1ggk5LDltBmXGTEj5Zc.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Fo/Fot6B2GsoEh0JJ1SBIO_53T6e4V9kIqsBG_VbcDE6tc.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/H5/H5L4ED8So5C1e8_8_P9Y1ZmOM-qB0pnXi7PK1m6y-c0.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HF/HFuNhzNZA5ILxIzWi2wxnZ_uEYPrAQ4OVoo0Y_92muU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HL/HL0wxjcBlYx71McT7MG50M7EmfnJGWgwXQ_r7ZGxHQU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HP/HPvwKrVoAvZRbgC5TK-ykPPfN8f1wJzshJJ4hxZLNBE.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HP/HPxrSpscgpLyWgHkqHUWy4lYXTRm-ja0nASxN9rgZCY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/IN/IN56Jy3kJ8keyxPS1KQSu9csGDnhifp5kqjeRSXLmIA.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/K_/K_em1mG3ogJsSU7rBKGL8k1b-MJFzwuqGGlM00vLx_0.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/MB/MBoh4xCrQK62_tnISBIr83XENwlDhHKeQ-dAc2HljII.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/MI/MIE0xDfXVrYJnaBoxTwhVxoAt7JBJG3mcS1sLr_6QLA.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/NW/NWqf7xq8uxCcCLqLyqR4P6Xdp7ptpiR-nfnIdZpLUKM.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Nn/NneUvDUNWVsB9BHgj33tVKpku1Y6wvAkex7TnTypREQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OX/OXQFRQZ5OA2i3YtnP1fZ96aWeUC3_IIqO4fAMdR9FsM.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Pd/PdhFAxvS-pKGfpMWUFkecwUMGbV0x_tyma4E8bhYzwk.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Qz/QzHZOVuxliEUGRc6_327ldOKYVlJc242vB480-yPT5o.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/RN/RNyGepx7EwEJB6Akv76k899nuTZGHVDIoajLLirWEVE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/RV/RV_uxduRftEOUfJaJAjV0fyrvjA5w5BMHt1OPqHHt4g.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Su/SusU-3Y6BEfHT81CiE_HFPr0ps6mld3LoiXPh1ms6Z4.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/UG/UGUKHaW4DiFx1aZgMUpclbzKInIDVBd5f75rfkqDRd4.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/VT/VTRh7T3RaFRYtSxU4n_l-7YBl4aUneDTFvlmCR4oZWo.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/YC/YcatZcAumaRYKvENGd3Dn1nAJs8qI1IF8hcePEMp_aU.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Yd/Yd_x_gMBuDf80j0z_5Cs2uxwmXXrqlIQtE9JzCeXZz0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Zy/Zyzx9MX-rADAndKD-RbVhnXWvxdgCkSEqwWVFxfSYj0.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/bV/bVc9ONSWy2DbnsCC-_aA6eZmvRASL4UaOIwbhV_peUw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/cb/cbm8AuIOkvpKYU6zU46aCNadGPBm4u1GuphZJO2A9Us.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/e-/e-wQ4XMgNt8aVTNM5Yc1lO5JNnfXhQpj3yi4DsSkRjY.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/eR/eRA2yEltNY1c24b_r_8KRGXWsPeKkgM-513zu1rvvWY.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/e_/e_-gryR9yq7c9wpbUaii_sRm27HJ4azewaJrWUk1aTg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fR/fR7lphpj83NQV2tYMU8ejAZ8IE9LVsOaLLjXr3QB0hY.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fs/fsDJJpy7QCTq-Bv5aG5ebdN9pcv60qW1EQ7WfhYCRBU.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ho/hoJx3gEYQ6DNhf9FIMHfjljGfN4G_4qnAKYMYN6Qafw.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/hv/hvk9E5eaUoqJzEdIZow4rM4zE47CzuQyf_voafXg9cs.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/iW/iWCZuiSs4kSvu2Q6UXzA3n-11G1VXaF_DN3cSlJzDW8.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jJ/jJKuyOu8mocUplQ59tn0IJamTKx8m6lxDtl-yyhF4V4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/kP/kP2ttjl8vky2AvGRDnM1J9MP8CeHGZy6aZOF8vuWTtA.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/kf/kfoHkTHobIvlHhkhjVlJszRpjNfiuX8EiZUoqO0Lp_s.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mf/mfjY2c6bfPbp68OYz09JiMXz0kGnYgEpFqg1dtC6dsk.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nI/nIMpNjdzGjeBulaQ1cilV6BJ5FdkI2tTke4I1bC2lAQ.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ns/nsGIeC1c9d_mvpq5Cmsvo_DlkpudHcgQSuQ0pBzEBi4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/o4/o4Y9F2XU_uVXmdHbLHiTSqN0NE0piayqn2EwMN4yDgQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/o7/o7Zh_yhCQpar6MtP4sZM_zCWMs-UU9QbQdme-JAgbpU.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/og/og9gVryCW4y-Lxl3e09IMZDil-JGsGfK88u9Iie6QXE.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pJ/PJGd157caHlpZuzzP2ldBKP2U4MuTSQWThLPyn7wGnQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pJ/pJQ9RK_DjVqB5kRfiMUr-hV8gvqMEEaXNxFv05k7TAE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/q1/q1TRPyM31o2MsmXcVvo9BHsqWClK5j0EQQ01yDeAzew.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/q6/q6BYa32YJF11eGVapO4ouNl6gayPIsARgMavlzZmoi0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qY/qY2ZmJWxK-kVp8WVOlKdoFGOyKbUJlaTfK6Sm000kco.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uW/uWpRXEIJzFMcsSUwp-Vu5QLS3vWbos65wsNMgWi-9k0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ue/ueW0ikEyCsED9Kl4ZlSCOP6vWof7n34Sid8DGfeIOiQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/v9/v9y20Av8j8_DtAf0cZlgMrqwJ5nGXCuD15YoxYsqFLs.cache +3 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/vA/VA9A8A2fXy-GAXmbdiYZMQM6bums7Sg1NJKHz16QQys.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/x7/x7KkTV3ibfIEysLB_ug5bfmnn2VLV_BldukPR3EoPBk.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xP/xP6CXq8ijIC31bX-551FhfNHTjzVi19Y1HM4P-l05gk.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xm/xmzEYT9vU2zilqOPOVas6v0laZBUghwJbMZPkcmseT0.cache +0 -0
- metadata +242 -112
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35da2203e68df3155c4247c6d2c559dcad1afe71625b7c208140b07767a728aa
|
4
|
+
data.tar.gz: 8203be170dd5a5d0530dbf2d35f155de0e0edd6f3e1d4f39b1462c83fb7dc9d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf9ef9532ac87ed135803bbbfbb30a025874ae6d5c55986aad767be4ce2d05bafc8ea5dedfd6f04da969797aae7b0db1e30a1bf7929eb47a201bfb76748b78c6
|
7
|
+
data.tar.gz: 674c3b4b74cc7f4aae0210336ed9323d5e4684c1791d41999b8ba65c3a7e5aa5b21ba3e14b40045bfd280a8cc4abc24a73057864b8cde23429bf4d378225874c
|
data/README.md
CHANGED
@@ -74,6 +74,11 @@ and the listing view (typically - index.html.erb) as
|
|
74
74
|
<% end %>
|
75
75
|
</tbody>
|
76
76
|
</table>
|
77
|
+
|
78
|
+
<!-- or just invoke model#sortable_id to get the id for sotable -->
|
79
|
+
...
|
80
|
+
<% @items.each do |item| %>
|
81
|
+
<tr id="<%= item.sortable_id %>">
|
77
82
|
...
|
78
83
|
```
|
79
84
|
|
@@ -5,11 +5,12 @@ class SortableController < ApplicationController
|
|
5
5
|
def reorder
|
6
6
|
klass, ids = parse_params
|
7
7
|
attr = klass.sort_attribute
|
8
|
-
|
8
|
+
id_to_model = klass.find(ids).index_by(&:id)
|
9
9
|
ids.each_with_index do |id, new_sort|
|
10
|
-
model =
|
10
|
+
model = id_to_model[id]
|
11
11
|
model.update_sort!(new_sort) if model.read_attribute(attr) != new_sort
|
12
12
|
end
|
13
|
+
|
13
14
|
head :ok
|
14
15
|
end
|
15
16
|
|
Binary file
|
@@ -223,3 +223,130 @@ Processing by ItemsController#index as HTML
|
|
223
223
|
Completed 200 OK in 29ms (Views: 26.7ms | ActiveRecord: 0.5ms)
|
224
224
|
|
225
225
|
|
226
|
+
Started GET "/" for ::1 at 2018-02-16 16:25:09 +0900
|
227
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
228
|
+
Processing by Rails::WelcomeController#index as HTML
|
229
|
+
Rendering /Users/madmax/Programs/itmammoth/rails_sortable/vendor/bundle/ruby/2.5.0/gems/railties-5.1.4/lib/rails/templates/rails/welcome/index.html.erb
|
230
|
+
Rendered /Users/madmax/Programs/itmammoth/rails_sortable/vendor/bundle/ruby/2.5.0/gems/railties-5.1.4/lib/rails/templates/rails/welcome/index.html.erb (2.9ms)
|
231
|
+
Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.0ms)
|
232
|
+
|
233
|
+
|
234
|
+
Started GET "/items" for ::1 at 2018-02-16 16:25:13 +0900
|
235
|
+
Processing by ItemsController#index as HTML
|
236
|
+
Rendering items/index.html.erb within layouts/application
|
237
|
+
[1m[36mItem Load (0.2ms)[0m [1m[34mSELECT "items".* FROM "items" ORDER BY "items"."sort" ASC[0m
|
238
|
+
Rendered items/index.html.erb within layouts/application (8.1ms)
|
239
|
+
Completed 200 OK in 357ms (Views: 351.4ms | ActiveRecord: 0.6ms)
|
240
|
+
|
241
|
+
|
242
|
+
Started GET "/assets/scaffold.self-83b741db49389dc7cfdf85bf7537a0219cce48e085c4116afc83d55c9af47c78.css?body=1" for ::1 at 2018-02-16 16:25:13 +0900
|
243
|
+
Started GET "/assets/application.self-f9e7c1541e1b8783561468c59162bd896007380f5a3799ef2169d3a3fdf40bed.css?body=1" for ::1 at 2018-02-16 16:25:13 +0900
|
244
|
+
Started GET "/assets/jquery.self-bd7ddd393353a8d2480a622e80342adf488fb6006d667e8b42e4c0073393abee.js?body=1" for ::1 at 2018-02-16 16:25:13 +0900
|
245
|
+
Started GET "/assets/jquery_ujs.self-784a997f6726036b1993eb2217c9cb558e1cbb801c6da88105588c56f13b466a.js?body=1" for ::1 at 2018-02-16 16:25:13 +0900
|
246
|
+
Started GET "/assets/jquery-ui/version.self-c8e3d1203da26ea7efdf83c1eabb3f0ba55cb68e463f5ccf0d77bd15ce6a8e61.js?body=1" for ::1 at 2018-02-16 16:25:13 +0900
|
247
|
+
Started GET "/assets/jquery-ui/ie.self-163eb039dcb1e0c3471b7d91386eabb8753da6906e84824c019f9ff56bdb83a6.js?body=1" for ::1 at 2018-02-16 16:25:13 +0900
|
248
|
+
Started GET "/assets/jquery-ui/widget.self-fca20bcec06d192f97cffa6e734e24360e227237b8ae7d7e7e60754df7d5444f.js?body=1" for ::1 at 2018-02-16 16:25:13 +0900
|
249
|
+
Started GET "/assets/jquery-ui/widgets/mouse.self-f0790a202dcf54fab051e71b042335d5346f9cceb0f645223c1dab93f349a04b.js?body=1" for ::1 at 2018-02-16 16:25:13 +0900
|
250
|
+
Started GET "/assets/jquery-ui/data.self-2067c82e6fe39a9cba5623206a5dc28d5c60d26b95cd100855b78cacf72865b8.js?body=1" for ::1 at 2018-02-16 16:25:13 +0900
|
251
|
+
Started GET "/assets/jquery-ui/scroll-parent.self-38e26a71a450a29fb63425e8f589a7046862f927eb0a1dbf6a6c44da05196d2e.js?body=1" for ::1 at 2018-02-16 16:25:13 +0900
|
252
|
+
Started GET "/assets/jquery-ui/widgets/sortable.self-6e5e1f07a29b5a89ec1d359363d2800904e3ae548a38ab2f8eded36746d1adbe.js?body=1" for ::1 at 2018-02-16 16:25:13 +0900
|
253
|
+
Started GET "/assets/plugin.self-84bdbacb1efd558ee0dac9e9a39c3f2acc7a75ef4b01112739eec325ddfa2429.js?body=1" for ::1 at 2018-02-16 16:25:14 +0900
|
254
|
+
Started GET "/assets/rails_sortable.self-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855.js?body=1" for ::1 at 2018-02-16 16:25:14 +0900
|
255
|
+
Started GET "/assets/items.self-3f5ee897a5a4a74ee2d01575104d7e38daf09a55678ea0eec89cd57028db5471.js?body=1" for ::1 at 2018-02-16 16:25:14 +0900
|
256
|
+
Started GET "/assets/sequenced_items.self-3f5ee897a5a4a74ee2d01575104d7e38daf09a55678ea0eec89cd57028db5471.js?body=1" for ::1 at 2018-02-16 16:25:14 +0900
|
257
|
+
Started GET "/assets/application.self-120f3cf1cb67bea53c4a2a57336b34ca04b04b55a55c38cf76ce20a147e5eff9.js?body=1" for ::1 at 2018-02-16 16:25:14 +0900
|
258
|
+
Started POST "/sortable/reorder" for ::1 at 2018-02-16 16:25:19 +0900
|
259
|
+
Processing by SortableController#reorder as */*
|
260
|
+
Parameters: {"Item"=>["1", "7", "4", "2", "3", "5", "6", "8", "9", "10"]}
|
261
|
+
[1m[36mItem Load (0.3ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 7, 4, 2, 3, 5, 6, 8, 9, 10) ORDER BY "items"."sort" ASC[0m
|
262
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
263
|
+
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 0], ["updated_at", "2018-02-16 07:25:19.400928"], ["id", 1]]
|
264
|
+
[1m[35m (1.8ms)[0m [1m[36mcommit transaction[0m
|
265
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
266
|
+
[1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 1], ["updated_at", "2018-02-16 07:25:19.404795"], ["id", 7]]
|
267
|
+
[1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
|
268
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
269
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 2], ["updated_at", "2018-02-16 07:25:19.407208"], ["id", 4]]
|
270
|
+
[1m[35m (1.2ms)[0m [1m[36mcommit transaction[0m
|
271
|
+
Completed 200 OK in 11ms (ActiveRecord: 5.4ms)
|
272
|
+
|
273
|
+
|
274
|
+
Started POST "/sortable/reorder" for ::1 at 2018-02-16 16:25:22 +0900
|
275
|
+
Processing by SortableController#reorder as */*
|
276
|
+
Parameters: {"Item"=>["1", "2", "7", "4", "3", "5", "6", "8", "9", "10"]}
|
277
|
+
[1m[36mItem Load (0.2ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2, 7, 4, 3, 5, 6, 8, 9, 10) ORDER BY "items"."sort" ASC[0m
|
278
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
279
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 1], ["updated_at", "2018-02-16 07:25:22.215357"], ["id", 2]]
|
280
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
281
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
282
|
+
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 2], ["updated_at", "2018-02-16 07:25:22.217623"], ["id", 7]]
|
283
|
+
[1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
|
284
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
285
|
+
[1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 3], ["updated_at", "2018-02-16 07:25:22.219932"], ["id", 4]]
|
286
|
+
[1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
|
287
|
+
Completed 200 OK in 8ms (ActiveRecord: 3.6ms)
|
288
|
+
|
289
|
+
|
290
|
+
Started POST "/sortable/reorder" for ::1 at 2018-02-16 16:25:24 +0900
|
291
|
+
Processing by SortableController#reorder as */*
|
292
|
+
Parameters: {"Item"=>["1", "2", "3", "7", "4", "5", "6", "8", "9", "10"]}
|
293
|
+
[1m[36mItem Load (0.2ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2, 3, 7, 4, 5, 6, 8, 9, 10) ORDER BY "items"."sort" ASC[0m
|
294
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
295
|
+
[1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 2], ["updated_at", "2018-02-16 07:25:24.042044"], ["id", 3]]
|
296
|
+
[1m[35m (2.3ms)[0m [1m[36mcommit transaction[0m
|
297
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
298
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 3], ["updated_at", "2018-02-16 07:25:24.046020"], ["id", 7]]
|
299
|
+
[1m[35m (0.9ms)[0m [1m[36mcommit transaction[0m
|
300
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
301
|
+
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 4], ["updated_at", "2018-02-16 07:25:24.048729"], ["id", 4]]
|
302
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
303
|
+
Completed 200 OK in 11ms (ActiveRecord: 5.5ms)
|
304
|
+
|
305
|
+
|
306
|
+
Started POST "/sortable/reorder" for ::1 at 2018-02-16 16:25:25 +0900
|
307
|
+
Processing by SortableController#reorder as */*
|
308
|
+
Parameters: {"Item"=>["1", "2", "3", "4", "7", "5", "6", "8", "9", "10"]}
|
309
|
+
[1m[36mItem Load (0.2ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2, 3, 4, 7, 5, 6, 8, 9, 10) ORDER BY "items"."sort" ASC[0m
|
310
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
311
|
+
[1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 3], ["updated_at", "2018-02-16 07:25:25.222388"], ["id", 4]]
|
312
|
+
[1m[35m (2.1ms)[0m [1m[36mcommit transaction[0m
|
313
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
314
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 4], ["updated_at", "2018-02-16 07:25:25.225974"], ["id", 7]]
|
315
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
316
|
+
Completed 200 OK in 7ms (ActiveRecord: 3.7ms)
|
317
|
+
|
318
|
+
|
319
|
+
Started POST "/sortable/reorder" for ::1 at 2018-02-16 16:25:26 +0900
|
320
|
+
Processing by SortableController#reorder as */*
|
321
|
+
Parameters: {"Item"=>["1", "2", "3", "4", "5", "7", "6", "8", "9", "10"]}
|
322
|
+
[1m[36mItem Load (0.2ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2, 3, 4, 5, 7, 6, 8, 9, 10) ORDER BY "items"."sort" ASC[0m
|
323
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
324
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 4], ["updated_at", "2018-02-16 07:25:26.345063"], ["id", 5]]
|
325
|
+
[1m[35m (2.2ms)[0m [1m[36mcommit transaction[0m
|
326
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
327
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 5], ["updated_at", "2018-02-16 07:25:26.348864"], ["id", 7]]
|
328
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
329
|
+
Completed 200 OK in 8ms (ActiveRecord: 3.8ms)
|
330
|
+
|
331
|
+
|
332
|
+
Started POST "/sortable/reorder" for ::1 at 2018-02-16 16:25:27 +0900
|
333
|
+
Processing by SortableController#reorder as */*
|
334
|
+
Parameters: {"Item"=>["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"]}
|
335
|
+
[1m[36mItem Load (0.3ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10) ORDER BY "items"."sort" ASC[0m
|
336
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
337
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 5], ["updated_at", "2018-02-16 07:25:27.472665"], ["id", 6]]
|
338
|
+
[1m[35m (2.4ms)[0m [1m[36mcommit transaction[0m
|
339
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
340
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 6], ["updated_at", "2018-02-16 07:25:27.476698"], ["id", 7]]
|
341
|
+
[1m[35m (1.1ms)[0m [1m[36mcommit transaction[0m
|
342
|
+
Completed 200 OK in 9ms (ActiveRecord: 4.4ms)
|
343
|
+
|
344
|
+
|
345
|
+
Started GET "/items" for ::1 at 2018-02-16 16:25:30 +0900
|
346
|
+
Processing by ItemsController#index as HTML
|
347
|
+
Rendering items/index.html.erb within layouts/application
|
348
|
+
[1m[36mItem Load (0.2ms)[0m [1m[34mSELECT "items".* FROM "items" ORDER BY "items"."sort" ASC[0m
|
349
|
+
Rendered items/index.html.erb within layouts/application (2.8ms)
|
350
|
+
Completed 200 OK in 23ms (Views: 20.9ms | ActiveRecord: 0.2ms)
|
351
|
+
|
352
|
+
|
data/spec/dummy/log/test.log
CHANGED
@@ -2065,3 +2065,907 @@ Completed 200 OK in 3ms (ActiveRecord: 0.5ms)
|
|
2065
2065
|
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2017-12-16 11:17:48.904231"], ["updated_at", "2017-12-16 11:17:48.904231"]]
|
2066
2066
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2067
2067
|
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
2068
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2069
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2070
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2071
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2072
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2073
|
+
[1m[35m (0.7ms)[0m SELECT MAX("items"."sort") FROM "items"
|
2074
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?)[0m [["created_at", "2018-02-16 06:58:04.607627"], ["updated_at", "2018-02-16 06:58:04.607627"], ["sort", 1]]
|
2075
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2076
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2077
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2078
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2079
|
+
[1m[35m (0.1ms)[0m SELECT MAX("items"."sort") FROM "items"
|
2080
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?)[0m [["created_at", "2018-02-16 06:58:04.613656"], ["updated_at", "2018-02-16 06:58:04.613656"], ["sort", 1]]
|
2081
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2082
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2083
|
+
[1m[35m (0.1ms)[0m SELECT MAX("items"."sort") FROM "items"
|
2084
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?)[0m [["created_at", "2018-02-16 06:58:04.615507"], ["updated_at", "2018-02-16 06:58:04.615507"], ["sort", 2]]
|
2085
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2086
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2087
|
+
[1m[35m (0.1ms)[0m SELECT MAX("items"."sort") FROM "items"
|
2088
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?)[0m [["created_at", "2018-02-16 06:58:04.617094"], ["updated_at", "2018-02-16 06:58:04.617094"], ["sort", 3]]
|
2089
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2090
|
+
Processing by SortableController#reorder as HTML
|
2091
|
+
Parameters: {"Item"=>["1", "3", "2"]}
|
2092
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1[0m [["id", 1]]
|
2093
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2094
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 0], ["updated_at", "2018-02-16 06:58:04.623993"], ["id", 1]]
|
2095
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2096
|
+
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1[0m [["id", 3]]
|
2097
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2098
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 1], ["updated_at", "2018-02-16 06:58:04.625682"], ["id", 3]]
|
2099
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2100
|
+
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1[0m [["id", 2]]
|
2101
|
+
Completed 200 OK in 7ms (ActiveRecord: 0.5ms)
|
2102
|
+
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
|
2103
|
+
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1[0m [["id", 2]]
|
2104
|
+
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 3]]
|
2105
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2106
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2107
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2108
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 0], ["created_at", "2018-02-16 06:58:04.630615"], ["updated_at", "2018-02-16 06:58:04.630615"]]
|
2109
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2110
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2111
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 06:58:04.632022"], ["updated_at", "2018-02-16 06:58:04.632022"]]
|
2112
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2113
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" ORDER BY "items"."sort" ASC[0m
|
2114
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2115
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2116
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2117
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("items"."sort") FROM "items"[0m
|
2118
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:58:04.637599"], ["updated_at", "2018-02-16 06:58:04.637599"], ["sort", 1]]
|
2119
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2120
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2121
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2122
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2123
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1000], ["created_at", "2018-02-16 06:58:04.640359"], ["updated_at", "2018-02-16 06:58:04.640359"]]
|
2124
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2125
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2126
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2127
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2128
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-02-16 06:58:04.642807"], ["updated_at", "2018-02-16 06:58:04.642807"]]
|
2129
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2130
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2131
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("items"."sort") FROM "items"[0m
|
2132
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:58:04.643791"], ["updated_at", "2018-02-16 06:58:04.643791"], ["sort", 1001]]
|
2133
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2134
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2135
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2136
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2137
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("items"."sort") FROM "items"[0m
|
2138
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:58:04.646234"], ["updated_at", "2018-02-16 06:58:04.646234"], ["sort", 1]]
|
2139
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2140
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2141
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 1000], ["updated_at", "2018-02-16 06:58:04.649590"], ["id", 1]]
|
2142
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2143
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2144
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2145
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2146
|
+
[1m[35m (0.1ms)[0m SELECT MAX("items"."sort") FROM "items"
|
2147
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?)[0m [["created_at", "2018-02-16 06:58:04.653054"], ["updated_at", "2018-02-16 06:58:04.653054"], ["sort", 1]]
|
2148
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2149
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2150
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 1000], ["id", 1]]
|
2151
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2152
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2153
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2154
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2155
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"[0m
|
2156
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "sequenced_items" ("created_at", "updated_at", "sequence") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:58:04.660563"], ["updated_at", "2018-02-16 06:58:04.660563"], ["sequence", 1]]
|
2157
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2158
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2159
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2160
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2161
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2162
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1000], ["created_at", "2018-02-16 06:58:06.267885"], ["updated_at", "2018-02-16 06:58:06.267885"]]
|
2163
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2164
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2165
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2166
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1001], ["created_at", "2018-02-16 06:58:06.269322"], ["updated_at", "2018-02-16 06:58:06.269322"]]
|
2167
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2168
|
+
[1m[35m (1.0ms)[0m [1m[31mrollback transaction[0m
|
2169
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2170
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2171
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1000], ["created_at", "2018-02-16 06:58:06.273343"], ["updated_at", "2018-02-16 06:58:06.273343"]]
|
2172
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2173
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2174
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2175
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2176
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2177
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 06:58:06.275684"], ["updated_at", "2018-02-16 06:58:06.275684"]]
|
2178
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2179
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2180
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2181
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2182
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 0], ["created_at", "2018-02-16 06:58:06.278756"], ["updated_at", "2018-02-16 06:58:06.278756"]]
|
2183
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2184
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2185
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 06:58:06.280118"], ["updated_at", "2018-02-16 06:58:06.280118"]]
|
2186
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2187
|
+
[1m[36mItem Load (0.1ms)[0m [1m[34mSELECT "items".* FROM "items" ORDER BY "items"."sort" ASC[0m
|
2188
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2189
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2190
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2191
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2192
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 06:58:06.286050"], ["updated_at", "2018-02-16 06:58:06.286050"]]
|
2193
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2194
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2195
|
+
[1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 1000], ["updated_at", "2018-02-16 06:58:06.288871"], ["id", 1]]
|
2196
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2197
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2198
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2199
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2200
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2201
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 06:58:06.291157"], ["updated_at", "2018-02-16 06:58:06.291157"]]
|
2202
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2203
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2204
|
+
[1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "items" SET "sort" = ? WHERE "items"."id" = ?[0m [["sort", 1000], ["id", 1]]
|
2205
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2206
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2207
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2208
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2209
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"[0m
|
2210
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "sequenced_items" ("sequence", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sequence", 1], ["created_at", "2018-02-16 06:58:06.298953"], ["updated_at", "2018-02-16 06:58:06.298953"]]
|
2211
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2212
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2213
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2214
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2215
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2216
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 06:58:06.305355"], ["updated_at", "2018-02-16 06:58:06.305355"]]
|
2217
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2218
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2219
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2220
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 2], ["created_at", "2018-02-16 06:58:06.307500"], ["updated_at", "2018-02-16 06:58:06.307500"]]
|
2221
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2222
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2223
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2224
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 3], ["created_at", "2018-02-16 06:58:06.308698"], ["updated_at", "2018-02-16 06:58:06.308698"]]
|
2225
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2226
|
+
Processing by SortableController#reorder as HTML
|
2227
|
+
Parameters: {"Item"=>["1", "3", "2"]}
|
2228
|
+
[1m[36mItem Load (0.1ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2229
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2230
|
+
[1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "items" SET "sort" = ? WHERE "items"."id" = ?[0m [["sort", 0], ["id", 1]]
|
2231
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2232
|
+
[1m[36mItem Load (0.0ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
|
2233
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2234
|
+
[1m[35mSQL (0.0ms)[0m [1m[33mUPDATE "items" SET "sort" = ? WHERE "items"."id" = ?[0m [["sort", 1], ["id", 3]]
|
2235
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2236
|
+
[1m[36mItem Load (0.0ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
2237
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.4ms)
|
2238
|
+
[1m[36mItem Load (0.0ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2239
|
+
[1m[36mItem Load (0.0ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
2240
|
+
[1m[36mItem Load (0.0ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
|
2241
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2242
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2243
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2244
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2245
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 06:58:06.320752"], ["updated_at", "2018-02-16 06:58:06.320752"]]
|
2246
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2247
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
2248
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2249
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2250
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2251
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2252
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2253
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2254
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 06:58:07.967471"], ["updated_at", "2018-02-16 06:58:07.967471"]]
|
2255
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2256
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2257
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2258
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 2], ["created_at", "2018-02-16 06:58:07.975593"], ["updated_at", "2018-02-16 06:58:07.975593"]]
|
2259
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2260
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2261
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2262
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 3], ["created_at", "2018-02-16 06:58:07.978501"], ["updated_at", "2018-02-16 06:58:07.978501"]]
|
2263
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2264
|
+
Processing by SortableController#reorder as HTML
|
2265
|
+
Parameters: {"Item"=>["1", "3", "2"]}
|
2266
|
+
[1m[36mItem Load (0.1ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2267
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2268
|
+
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 0], ["updated_at", "2018-02-16 06:58:07.988915"], ["id", 1]]
|
2269
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2270
|
+
[1m[36mItem Load (0.0ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
|
2271
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2272
|
+
[1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 1], ["updated_at", "2018-02-16 06:58:07.992269"], ["id", 3]]
|
2273
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2274
|
+
[1m[36mItem Load (0.0ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
2275
|
+
Completed 200 OK in 7ms (ActiveRecord: 0.9ms)
|
2276
|
+
[1m[36mItem Load (0.0ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2277
|
+
[1m[36mItem Load (0.0ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
2278
|
+
[1m[36mItem Load (0.0ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
|
2279
|
+
[1m[35m (1.6ms)[0m [1m[31mrollback transaction[0m
|
2280
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2281
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2282
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2283
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 06:58:08.000373"], ["updated_at", "2018-02-16 06:58:08.000373"]]
|
2284
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2285
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
2286
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2287
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
2288
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2289
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2290
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2291
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 06:58:08.013274"], ["updated_at", "2018-02-16 06:58:08.013274"]]
|
2292
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2293
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2294
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2295
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2296
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1000], ["created_at", "2018-02-16 06:58:08.017061"], ["updated_at", "2018-02-16 06:58:08.017061"]]
|
2297
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2298
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
2299
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2300
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2301
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1000], ["created_at", "2018-02-16 06:58:08.022621"], ["updated_at", "2018-02-16 06:58:08.022621"]]
|
2302
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2303
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2304
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2305
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1001], ["created_at", "2018-02-16 06:58:08.025099"], ["updated_at", "2018-02-16 06:58:08.025099"]]
|
2306
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2307
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2308
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2309
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2310
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2311
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 06:58:08.027869"], ["updated_at", "2018-02-16 06:58:08.027869"]]
|
2312
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2313
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2314
|
+
[1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 1000], ["updated_at", "2018-02-16 06:58:08.030780"], ["id", 1]]
|
2315
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2316
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2317
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2318
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2319
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2320
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 06:58:08.032769"], ["updated_at", "2018-02-16 06:58:08.032769"]]
|
2321
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2322
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2323
|
+
[1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "items" SET "sort" = ? WHERE "items"."id" = ?[0m [["sort", 1000], ["id", 1]]
|
2324
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2325
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2326
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2327
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2328
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"[0m
|
2329
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "sequenced_items" ("sequence", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sequence", 1], ["created_at", "2018-02-16 06:58:08.044948"], ["updated_at", "2018-02-16 06:58:08.044948"]]
|
2330
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2331
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2332
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2333
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2334
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 0], ["created_at", "2018-02-16 06:58:08.047909"], ["updated_at", "2018-02-16 06:58:08.047909"]]
|
2335
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2336
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2337
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 06:58:08.049339"], ["updated_at", "2018-02-16 06:58:08.049339"]]
|
2338
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2339
|
+
[1m[36mItem Load (0.2ms)[0m [1m[34mSELECT "items".* FROM "items" ORDER BY "items"."sort" ASC[0m
|
2340
|
+
[1m[35m (0.9ms)[0m [1m[31mrollback transaction[0m
|
2341
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2342
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2343
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2344
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2345
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2346
|
+
[1m[35m (0.1ms)[0m SELECT MAX("items"."sort") FROM "items"
|
2347
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?)[0m [["created_at", "2018-02-16 06:59:06.349268"], ["updated_at", "2018-02-16 06:59:06.349268"], ["sort", 1]]
|
2348
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2349
|
+
[1m[36m (1.8ms)[0m [1mrollback transaction[0m
|
2350
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2351
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2352
|
+
[1m[35m (0.1ms)[0m SELECT MAX("items"."sort") FROM "items"
|
2353
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?)[0m [["created_at", "2018-02-16 06:59:06.354933"], ["updated_at", "2018-02-16 06:59:06.354933"], ["sort", 1]]
|
2354
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2355
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2356
|
+
[1m[35m (0.0ms)[0m SELECT MAX("items"."sort") FROM "items"
|
2357
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?)[0m [["created_at", "2018-02-16 06:59:06.356443"], ["updated_at", "2018-02-16 06:59:06.356443"], ["sort", 2]]
|
2358
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2359
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2360
|
+
[1m[35m (0.1ms)[0m SELECT MAX("items"."sort") FROM "items"
|
2361
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?)[0m [["created_at", "2018-02-16 06:59:06.357958"], ["updated_at", "2018-02-16 06:59:06.357958"], ["sort", 3]]
|
2362
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2363
|
+
Processing by SortableController#reorder as HTML
|
2364
|
+
Parameters: {"Item"=>["1", "3", "2"]}
|
2365
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3, 2) ORDER BY "items"."sort" ASC[0m
|
2366
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2367
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 0], ["updated_at", "2018-02-16 06:59:06.364575"], ["id", 1]]
|
2368
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2369
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2370
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1], ["updated_at", "2018-02-16 06:59:06.365555"], ["id", 2]]
|
2371
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2372
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2373
|
+
[1m[36mSQL (0.0ms)[0m [1mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 2], ["updated_at", "2018-02-16 06:59:06.366137"], ["id", 3]]
|
2374
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2375
|
+
Completed 200 OK in 6ms (ActiveRecord: 0.4ms)
|
2376
|
+
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1[0m [["id", 1]]
|
2377
|
+
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
|
2378
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
2379
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2380
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2381
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-02-16 06:59:06.386358"], ["updated_at", "2018-02-16 06:59:06.386358"]]
|
2382
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2383
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2384
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2385
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2386
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1000], ["created_at", "2018-02-16 06:59:06.388745"], ["updated_at", "2018-02-16 06:59:06.388745"]]
|
2387
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2388
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2389
|
+
[1m[35m (0.0ms)[0m SELECT MAX("items"."sort") FROM "items"
|
2390
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?)[0m [["created_at", "2018-02-16 06:59:06.389654"], ["updated_at", "2018-02-16 06:59:06.389654"], ["sort", 1001]]
|
2391
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2392
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2393
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2394
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2395
|
+
[1m[35m (0.1ms)[0m SELECT MAX("items"."sort") FROM "items"
|
2396
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?)[0m [["created_at", "2018-02-16 06:59:06.391808"], ["updated_at", "2018-02-16 06:59:06.391808"], ["sort", 1]]
|
2397
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2398
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2399
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2400
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2401
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 0], ["created_at", "2018-02-16 06:59:06.394905"], ["updated_at", "2018-02-16 06:59:06.394905"]]
|
2402
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2403
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2404
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 06:59:06.396085"], ["updated_at", "2018-02-16 06:59:06.396085"]]
|
2405
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2406
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" ORDER BY "items"."sort" ASC[0m
|
2407
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2408
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2409
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2410
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"[0m
|
2411
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "sequenced_items" ("created_at", "updated_at", "sequence") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:59:06.405291"], ["updated_at", "2018-02-16 06:59:06.405291"], ["sequence", 1]]
|
2412
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2413
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2414
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2415
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2416
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("items"."sort") FROM "items"[0m
|
2417
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:59:06.408820"], ["updated_at", "2018-02-16 06:59:06.408820"], ["sort", 1]]
|
2418
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2419
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2420
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "items" SET "sort" = ? WHERE "items"."id" = ?[0m [["sort", 1000], ["id", 1]]
|
2421
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2422
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
2423
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2424
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2425
|
+
[1m[35m (0.1ms)[0m SELECT MAX("items"."sort") FROM "items"
|
2426
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?)[0m [["created_at", "2018-02-16 06:59:06.415089"], ["updated_at", "2018-02-16 06:59:06.415089"], ["sort", 1]]
|
2427
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2428
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2429
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1000], ["updated_at", "2018-02-16 06:59:06.417031"], ["id", 1]]
|
2430
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2431
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2432
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2433
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2434
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2435
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-02-16 06:59:36.668137"], ["updated_at", "2018-02-16 06:59:36.668137"]]
|
2436
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2437
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2438
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("items"."sort") FROM "items"[0m
|
2439
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:59:36.670573"], ["updated_at", "2018-02-16 06:59:36.670573"], ["sort", 1001]]
|
2440
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2441
|
+
[1m[35m (1.8ms)[0m rollback transaction
|
2442
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2443
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2444
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1000], ["created_at", "2018-02-16 06:59:36.676781"], ["updated_at", "2018-02-16 06:59:36.676781"]]
|
2445
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2446
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2447
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2448
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2449
|
+
[1m[35m (0.1ms)[0m SELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"
|
2450
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "sequenced_items" ("created_at", "updated_at", "sequence") VALUES (?, ?, ?)[0m [["created_at", "2018-02-16 06:59:36.684141"], ["updated_at", "2018-02-16 06:59:36.684141"], ["sequence", 1]]
|
2451
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2452
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2453
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2454
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2455
|
+
[1m[35m (0.1ms)[0m SELECT MAX("items"."sort") FROM "items"
|
2456
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?)[0m [["created_at", "2018-02-16 06:59:36.688283"], ["updated_at", "2018-02-16 06:59:36.688283"], ["sort", 1]]
|
2457
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2458
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2459
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "items" SET "sort" = ? WHERE "items"."id" = ? [["sort", 1000], ["id", 1]]
|
2460
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2461
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2462
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2463
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2464
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("items"."sort") FROM "items"[0m
|
2465
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:59:36.696329"], ["updated_at", "2018-02-16 06:59:36.696329"], ["sort", 1]]
|
2466
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2467
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2468
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 1000], ["updated_at", "2018-02-16 06:59:36.697752"], ["id", 1]]
|
2469
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2470
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2471
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2472
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2473
|
+
[1m[35m (0.1ms)[0m SELECT MAX("items"."sort") FROM "items"
|
2474
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?)[0m [["created_at", "2018-02-16 06:59:36.699551"], ["updated_at", "2018-02-16 06:59:36.699551"], ["sort", 1]]
|
2475
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2476
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2477
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2478
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2479
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 0], ["created_at", "2018-02-16 06:59:36.702863"], ["updated_at", "2018-02-16 06:59:36.702863"]]
|
2480
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2481
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2482
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 06:59:36.704465"], ["updated_at", "2018-02-16 06:59:36.704465"]]
|
2483
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2484
|
+
[1m[36mItem Load (0.2ms)[0m [1mSELECT "items".* FROM "items" ORDER BY "items"."sort" ASC[0m
|
2485
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2486
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2487
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2488
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2489
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2490
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("items"."sort") FROM "items"[0m
|
2491
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:59:36.716157"], ["updated_at", "2018-02-16 06:59:36.716157"], ["sort", 1]]
|
2492
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2493
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2494
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2495
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2496
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("items"."sort") FROM "items"[0m
|
2497
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:59:36.721299"], ["updated_at", "2018-02-16 06:59:36.721299"], ["sort", 1]]
|
2498
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2499
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2500
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("items"."sort") FROM "items"[0m
|
2501
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:59:36.723079"], ["updated_at", "2018-02-16 06:59:36.723079"], ["sort", 2]]
|
2502
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2503
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2504
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("items"."sort") FROM "items"[0m
|
2505
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 06:59:36.724252"], ["updated_at", "2018-02-16 06:59:36.724252"], ["sort", 3]]
|
2506
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2507
|
+
Processing by SortableController#reorder as HTML
|
2508
|
+
Parameters: {"Item"=>["1", "3", "2"]}
|
2509
|
+
[1m[35mItem Load (0.1ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
|
2510
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2511
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 0], ["updated_at", "2018-02-16 06:59:36.729327"], ["id", 1]]
|
2512
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2513
|
+
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 3]]
|
2514
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2515
|
+
[1m[35mSQL (0.0ms)[0m UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1], ["updated_at", "2018-02-16 06:59:36.730523"], ["id", 3]]
|
2516
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2517
|
+
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
|
2518
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.3ms)
|
2519
|
+
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1[0m [["id", 1]]
|
2520
|
+
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
|
2521
|
+
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1[0m [["id", 3]]
|
2522
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2523
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2524
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2525
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2526
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2527
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2528
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2529
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 06:59:38.450654"], ["updated_at", "2018-02-16 06:59:38.450654"]]
|
2530
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2531
|
+
[1m[35m (1.7ms)[0m [1m[31mrollback transaction[0m
|
2532
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2533
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2534
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2535
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 06:59:38.456098"], ["updated_at", "2018-02-16 06:59:38.456098"]]
|
2536
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2537
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2538
|
+
[1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 1000], ["updated_at", "2018-02-16 06:59:38.459129"], ["id", 1]]
|
2539
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2540
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
2541
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2542
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2543
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2544
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 06:59:38.462103"], ["updated_at", "2018-02-16 06:59:38.462103"]]
|
2545
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2546
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2547
|
+
[1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "items" SET "sort" = ? WHERE "items"."id" = ?[0m [["sort", 1000], ["id", 1]]
|
2548
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2549
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2550
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2551
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2552
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"[0m
|
2553
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "sequenced_items" ("sequence", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sequence", 1], ["created_at", "2018-02-16 06:59:38.472254"], ["updated_at", "2018-02-16 06:59:38.472254"]]
|
2554
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2555
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2556
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2557
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2558
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 0], ["created_at", "2018-02-16 06:59:38.475972"], ["updated_at", "2018-02-16 06:59:38.475972"]]
|
2559
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2560
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2561
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 06:59:38.477440"], ["updated_at", "2018-02-16 06:59:38.477440"]]
|
2562
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2563
|
+
[1m[36mItem Load (0.1ms)[0m [1m[34mSELECT "items".* FROM "items" ORDER BY "items"."sort" ASC[0m
|
2564
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2565
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2566
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2567
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1000], ["created_at", "2018-02-16 06:59:38.482107"], ["updated_at", "2018-02-16 06:59:38.482107"]]
|
2568
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2569
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2570
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2571
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1001], ["created_at", "2018-02-16 06:59:38.483069"], ["updated_at", "2018-02-16 06:59:38.483069"]]
|
2572
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2573
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2574
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2575
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2576
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1000], ["created_at", "2018-02-16 06:59:38.485764"], ["updated_at", "2018-02-16 06:59:38.485764"]]
|
2577
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2578
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
2579
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2580
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2581
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2582
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 06:59:38.489225"], ["updated_at", "2018-02-16 06:59:38.489225"]]
|
2583
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2584
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2585
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2586
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2587
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2588
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 06:59:38.493325"], ["updated_at", "2018-02-16 06:59:38.493325"]]
|
2589
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2590
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2591
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2592
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 2], ["created_at", "2018-02-16 06:59:38.495200"], ["updated_at", "2018-02-16 06:59:38.495200"]]
|
2593
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2594
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2595
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2596
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 3], ["created_at", "2018-02-16 06:59:38.496321"], ["updated_at", "2018-02-16 06:59:38.496321"]]
|
2597
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2598
|
+
Processing by SortableController#reorder as HTML
|
2599
|
+
Parameters: {"Item"=>["1", "3", "2"]}
|
2600
|
+
[1m[36mItem Load (0.1ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2601
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2602
|
+
[1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "items" SET "sort" = ? WHERE "items"."id" = ?[0m [["sort", 0], ["id", 1]]
|
2603
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2604
|
+
[1m[36mItem Load (0.0ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
|
2605
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2606
|
+
[1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "items" SET "sort" = ? WHERE "items"."id" = ?[0m [["sort", 1], ["id", 3]]
|
2607
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2608
|
+
[1m[36mItem Load (0.1ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
2609
|
+
Completed 200 OK in 5ms (ActiveRecord: 0.7ms)
|
2610
|
+
[1m[36mItem Load (0.1ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2611
|
+
[1m[36mItem Load (0.0ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
2612
|
+
[1m[36mItem Load (0.0ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
|
2613
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2614
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2615
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2616
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2617
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2618
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2619
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2620
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 06:59:40.117368"], ["updated_at", "2018-02-16 06:59:40.117368"]]
|
2621
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2622
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2623
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2624
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2625
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 0], ["created_at", "2018-02-16 06:59:40.121960"], ["updated_at", "2018-02-16 06:59:40.121960"]]
|
2626
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2627
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2628
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 06:59:40.123656"], ["updated_at", "2018-02-16 06:59:40.123656"]]
|
2629
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2630
|
+
[1m[36mItem Load (0.1ms)[0m [1m[34mSELECT "items".* FROM "items" ORDER BY "items"."sort" ASC[0m
|
2631
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2632
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2633
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2634
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1000], ["created_at", "2018-02-16 06:59:40.131270"], ["updated_at", "2018-02-16 06:59:40.131270"]]
|
2635
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2636
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2637
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2638
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2639
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1000], ["created_at", "2018-02-16 06:59:40.134463"], ["updated_at", "2018-02-16 06:59:40.134463"]]
|
2640
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2641
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2642
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2643
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1001], ["created_at", "2018-02-16 06:59:40.136064"], ["updated_at", "2018-02-16 06:59:40.136064"]]
|
2644
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2645
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2646
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2647
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2648
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2649
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 06:59:40.139684"], ["updated_at", "2018-02-16 06:59:40.139684"]]
|
2650
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2651
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2652
|
+
[1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 1000], ["updated_at", "2018-02-16 06:59:40.144705"], ["id", 1]]
|
2653
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2654
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
2655
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2656
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2657
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2658
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 06:59:40.147649"], ["updated_at", "2018-02-16 06:59:40.147649"]]
|
2659
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2660
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2661
|
+
[1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "items" SET "sort" = ? WHERE "items"."id" = ?[0m [["sort", 1000], ["id", 1]]
|
2662
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2663
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
2664
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2665
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2666
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"[0m
|
2667
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "sequenced_items" ("sequence", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sequence", 1], ["created_at", "2018-02-16 06:59:40.155806"], ["updated_at", "2018-02-16 06:59:40.155806"]]
|
2668
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2669
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2670
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2671
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2672
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2673
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 06:59:40.159876"], ["updated_at", "2018-02-16 06:59:40.159876"]]
|
2674
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2675
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
2676
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2677
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2678
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2679
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 06:59:40.162785"], ["updated_at", "2018-02-16 06:59:40.162785"]]
|
2680
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2681
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2682
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2683
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 2], ["created_at", "2018-02-16 06:59:40.164214"], ["updated_at", "2018-02-16 06:59:40.164214"]]
|
2684
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2685
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2686
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2687
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 3], ["created_at", "2018-02-16 06:59:40.165361"], ["updated_at", "2018-02-16 06:59:40.165361"]]
|
2688
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2689
|
+
Processing by SortableController#reorder as HTML
|
2690
|
+
Parameters: {"Item"=>["1", "3", "2"]}
|
2691
|
+
[1m[36mItem Load (0.1ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2692
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2693
|
+
[1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "items" SET "sort" = ? WHERE "items"."id" = ?[0m [["sort", 0], ["id", 1]]
|
2694
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2695
|
+
[1m[36mItem Load (0.1ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
|
2696
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2697
|
+
[1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "items" SET "sort" = ? WHERE "items"."id" = ?[0m [["sort", 1], ["id", 3]]
|
2698
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2699
|
+
[1m[36mItem Load (0.1ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
2700
|
+
Completed 200 OK in 6ms (ActiveRecord: 0.8ms)
|
2701
|
+
[1m[36mItem Load (0.1ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2702
|
+
[1m[36mItem Load (0.1ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
2703
|
+
[1m[36mItem Load (0.0ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
|
2704
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2705
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2706
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2707
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2708
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 0], ["created_at", "2018-02-16 07:02:22.628298"], ["updated_at", "2018-02-16 07:02:22.628298"]]
|
2709
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2710
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2711
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 07:02:22.629557"], ["updated_at", "2018-02-16 07:02:22.629557"]]
|
2712
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2713
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" ORDER BY "items"."sort" ASC[0m
|
2714
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2715
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2716
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2717
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("items"."sort") FROM "items"[0m
|
2718
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 07:02:22.633889"], ["updated_at", "2018-02-16 07:02:22.633889"], ["sort", 1]]
|
2719
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2720
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2721
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "items" SET "sort" = ? WHERE "items"."id" = ?[0m [["sort", 1000], ["id", 1]]
|
2722
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2723
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2724
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2725
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2726
|
+
[1m[35m (0.1ms)[0m SELECT MAX("items"."sort") FROM "items"
|
2727
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?)[0m [["created_at", "2018-02-16 07:02:22.639918"], ["updated_at", "2018-02-16 07:02:22.639918"], ["sort", 1]]
|
2728
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2729
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2730
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1000], ["updated_at", "2018-02-16 07:02:22.641245"], ["id", 1]]
|
2731
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2732
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2733
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2734
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2735
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"[0m
|
2736
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "sequenced_items" ("created_at", "updated_at", "sequence") VALUES (?, ?, ?) [["created_at", "2018-02-16 07:02:22.646055"], ["updated_at", "2018-02-16 07:02:22.646055"], ["sequence", 1]]
|
2737
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2738
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2739
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2740
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2741
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("items"."sort") FROM "items"[0m
|
2742
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 07:02:22.650067"], ["updated_at", "2018-02-16 07:02:22.650067"], ["sort", 1]]
|
2743
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2744
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2745
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2746
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2747
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1000], ["created_at", "2018-02-16 07:02:22.652887"], ["updated_at", "2018-02-16 07:02:22.652887"]]
|
2748
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2749
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2750
|
+
[1m[35m (0.2ms)[0m begin transaction
|
2751
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2752
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?) [["sort", 1000], ["created_at", "2018-02-16 07:02:22.655777"], ["updated_at", "2018-02-16 07:02:22.655777"]]
|
2753
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2754
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2755
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("items"."sort") FROM "items"[0m
|
2756
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 07:02:22.658984"], ["updated_at", "2018-02-16 07:02:22.658984"], ["sort", 1001]]
|
2757
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2758
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2759
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2760
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2761
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("items"."sort") FROM "items"[0m
|
2762
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 07:02:22.664837"], ["updated_at", "2018-02-16 07:02:22.664837"], ["sort", 1]]
|
2763
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2764
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2765
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("items"."sort") FROM "items"[0m
|
2766
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 07:02:22.666487"], ["updated_at", "2018-02-16 07:02:22.666487"], ["sort", 2]]
|
2767
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2768
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2769
|
+
[1m[36m (0.0ms)[0m [1mSELECT MAX("items"."sort") FROM "items"[0m
|
2770
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 07:02:22.667597"], ["updated_at", "2018-02-16 07:02:22.667597"], ["sort", 3]]
|
2771
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2772
|
+
Processing by SortableController#reorder as HTML
|
2773
|
+
Parameters: {"Item"=>["1", "3", "2"]}
|
2774
|
+
[1m[35mItem Load (0.2ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3, 2) ORDER BY "items"."sort" ASC
|
2775
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2776
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 0], ["updated_at", "2018-02-16 07:02:22.671396"], ["id", 1]]
|
2777
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2778
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2779
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 1], ["updated_at", "2018-02-16 07:02:22.672780"], ["id", 3]]
|
2780
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2781
|
+
Completed 200 OK in 4ms (ActiveRecord: 0.5ms)
|
2782
|
+
[1m[36mItem Load (0.1ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1[0m [["id", 1]]
|
2783
|
+
[1m[35mItem Load (0.0ms)[0m SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
|
2784
|
+
[1m[36mItem Load (0.0ms)[0m [1mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1[0m [["id", 3]]
|
2785
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2786
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2787
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2788
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2789
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2790
|
+
[1m[36m (0.1ms)[0m [1mSELECT MAX("items"."sort") FROM "items"[0m
|
2791
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "items" ("created_at", "updated_at", "sort") VALUES (?, ?, ?) [["created_at", "2018-02-16 07:02:22.682916"], ["updated_at", "2018-02-16 07:02:22.682916"], ["sort", 1]]
|
2792
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2793
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2794
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2795
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2796
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2797
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2798
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 07:02:24.251403"], ["updated_at", "2018-02-16 07:02:24.251403"]]
|
2799
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2800
|
+
[1m[35m (1.7ms)[0m [1m[31mrollback transaction[0m
|
2801
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2802
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2803
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 0], ["created_at", "2018-02-16 07:02:24.257110"], ["updated_at", "2018-02-16 07:02:24.257110"]]
|
2804
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2805
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2806
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 07:02:24.258235"], ["updated_at", "2018-02-16 07:02:24.258235"]]
|
2807
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2808
|
+
[1m[36mItem Load (0.1ms)[0m [1m[34mSELECT "items".* FROM "items" ORDER BY "items"."sort" ASC[0m
|
2809
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2810
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2811
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2812
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1000], ["created_at", "2018-02-16 07:02:24.263735"], ["updated_at", "2018-02-16 07:02:24.263735"]]
|
2813
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2814
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2815
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2816
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1001], ["created_at", "2018-02-16 07:02:24.265200"], ["updated_at", "2018-02-16 07:02:24.265200"]]
|
2817
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2818
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2819
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2820
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2821
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1000], ["created_at", "2018-02-16 07:02:24.268919"], ["updated_at", "2018-02-16 07:02:24.268919"]]
|
2822
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2823
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2824
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2825
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2826
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"[0m
|
2827
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "sequenced_items" ("sequence", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sequence", 1], ["created_at", "2018-02-16 07:02:24.276818"], ["updated_at", "2018-02-16 07:02:24.276818"]]
|
2828
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2829
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2830
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2831
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2832
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2833
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 07:02:24.279768"], ["updated_at", "2018-02-16 07:02:24.279768"]]
|
2834
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2835
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2836
|
+
[1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 1000], ["updated_at", "2018-02-16 07:02:24.283084"], ["id", 1]]
|
2837
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2838
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2839
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2840
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2841
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2842
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 07:02:24.285265"], ["updated_at", "2018-02-16 07:02:24.285265"]]
|
2843
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2844
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2845
|
+
[1m[35mSQL (0.0ms)[0m [1m[33mUPDATE "items" SET "sort" = ? WHERE "items"."id" = ?[0m [["sort", 1000], ["id", 1]]
|
2846
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2847
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2848
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2849
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2850
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2851
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 07:02:24.291823"], ["updated_at", "2018-02-16 07:02:24.291823"]]
|
2852
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2853
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2854
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2855
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 2], ["created_at", "2018-02-16 07:02:24.293146"], ["updated_at", "2018-02-16 07:02:24.293146"]]
|
2856
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2857
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2858
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2859
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 3], ["created_at", "2018-02-16 07:02:24.294113"], ["updated_at", "2018-02-16 07:02:24.294113"]]
|
2860
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2861
|
+
Processing by SortableController#reorder as HTML
|
2862
|
+
Parameters: {"Item"=>["1", "3", "2"]}
|
2863
|
+
[1m[36mItem Load (0.2ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3, 2) ORDER BY "items"."sort" ASC[0m
|
2864
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2865
|
+
[1m[35mSQL (0.0ms)[0m [1m[33mUPDATE "items" SET "sort" = ? WHERE "items"."id" = ?[0m [["sort", 0], ["id", 1]]
|
2866
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2867
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2868
|
+
[1m[35mSQL (0.0ms)[0m [1m[33mUPDATE "items" SET "sort" = ? WHERE "items"."id" = ?[0m [["sort", 1], ["id", 3]]
|
2869
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2870
|
+
Completed 200 OK in 2ms (ActiveRecord: 0.4ms)
|
2871
|
+
[1m[36mItem Load (0.1ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2872
|
+
[1m[36mItem Load (0.0ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
2873
|
+
[1m[36mItem Load (0.0ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
|
2874
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2875
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2876
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2877
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2878
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 07:02:24.305860"], ["updated_at", "2018-02-16 07:02:24.305860"]]
|
2879
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2880
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2881
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2882
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2883
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2884
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2885
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2886
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2887
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 07:02:25.897850"], ["updated_at", "2018-02-16 07:02:25.897850"]]
|
2888
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2889
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2890
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2891
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 2], ["created_at", "2018-02-16 07:02:25.899898"], ["updated_at", "2018-02-16 07:02:25.899898"]]
|
2892
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2893
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2894
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2895
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 3], ["created_at", "2018-02-16 07:02:25.901101"], ["updated_at", "2018-02-16 07:02:25.901101"]]
|
2896
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2897
|
+
Processing by SortableController#reorder as HTML
|
2898
|
+
Parameters: {"Item"=>["1", "3", "2"]}
|
2899
|
+
[1m[36mItem Load (0.2ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" IN (1, 3, 2) ORDER BY "items"."sort" ASC[0m
|
2900
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2901
|
+
[1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 0], ["updated_at", "2018-02-16 07:02:25.907980"], ["id", 1]]
|
2902
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2903
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2904
|
+
[1m[35mSQL (0.0ms)[0m [1m[33mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 1], ["updated_at", "2018-02-16 07:02:25.908877"], ["id", 3]]
|
2905
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2906
|
+
Completed 200 OK in 3ms (ActiveRecord: 0.4ms)
|
2907
|
+
[1m[36mItem Load (0.1ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
2908
|
+
[1m[36mItem Load (0.1ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
2909
|
+
[1m[36mItem Load (0.0ms)[0m [1m[34mSELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ?[0m [["id", 3], ["LIMIT", 1]]
|
2910
|
+
[1m[35m (1.7ms)[0m [1m[31mrollback transaction[0m
|
2911
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2912
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2913
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2914
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 07:02:25.916461"], ["updated_at", "2018-02-16 07:02:25.916461"]]
|
2915
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2916
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2917
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2918
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
2919
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2920
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2921
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2922
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 07:02:25.923671"], ["updated_at", "2018-02-16 07:02:25.923671"]]
|
2923
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2924
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
2925
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2926
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2927
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("sequenced_items"."sequence") FROM "sequenced_items"[0m
|
2928
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "sequenced_items" ("sequence", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sequence", 1], ["created_at", "2018-02-16 07:02:25.934582"], ["updated_at", "2018-02-16 07:02:25.934582"]]
|
2929
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2930
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2931
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2932
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2933
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2934
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 07:02:25.937711"], ["updated_at", "2018-02-16 07:02:25.937711"]]
|
2935
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2936
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2937
|
+
[1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ?[0m [["sort", 1000], ["updated_at", "2018-02-16 07:02:25.940880"], ["id", 1]]
|
2938
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2939
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
2940
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
2941
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2942
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2943
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 07:02:25.944270"], ["updated_at", "2018-02-16 07:02:25.944270"]]
|
2944
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2945
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2946
|
+
[1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "items" SET "sort" = ? WHERE "items"."id" = ?[0m [["sort", 1000], ["id", 1]]
|
2947
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2948
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2949
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2950
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2951
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 0], ["created_at", "2018-02-16 07:02:25.948927"], ["updated_at", "2018-02-16 07:02:25.948927"]]
|
2952
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2953
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2954
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1], ["created_at", "2018-02-16 07:02:25.950704"], ["updated_at", "2018-02-16 07:02:25.950704"]]
|
2955
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2956
|
+
[1m[36mItem Load (0.2ms)[0m [1m[34mSELECT "items".* FROM "items" ORDER BY "items"."sort" ASC[0m
|
2957
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2958
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2959
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2960
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1000], ["created_at", "2018-02-16 07:02:25.956676"], ["updated_at", "2018-02-16 07:02:25.956676"]]
|
2961
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2962
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
2963
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
2964
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2965
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1000], ["created_at", "2018-02-16 07:02:25.960258"], ["updated_at", "2018-02-16 07:02:25.960258"]]
|
2966
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2967
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
2968
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT MAX("items"."sort") FROM "items"[0m
|
2969
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "items" ("sort", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["sort", 1001], ["created_at", "2018-02-16 07:02:25.961738"], ["updated_at", "2018-02-16 07:02:25.961738"]]
|
2970
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
2971
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|