sunrise-cms 0.6.3 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. data/CHANGELOG.rdoc +5 -0
  2. data/app/assets/javascripts/sunrise/application.js +6 -4
  3. data/{vendor/assets/javascripts → app/assets/javascripts/sunrise}/chosen.jquery.js +254 -113
  4. data/app/assets/javascripts/sunrise/chosen.overflow.fix.js +66 -0
  5. data/{vendor/assets/javascripts → app/assets/javascripts/sunrise}/jquery-ui-timepicker-addon.js +0 -0
  6. data/{vendor/assets/javascripts → app/assets/javascripts/sunrise}/jquery.cookie.js +0 -0
  7. data/{vendor/assets/javascripts → app/assets/javascripts/sunrise}/jquery.tmpl.min.js +0 -0
  8. data/app/assets/javascripts/sunrise/manage.js.coffee +5 -1
  9. data/app/assets/stylesheets/sunrise/application.css +3 -1
  10. data/{vendor/assets/stylesheets → app/assets/stylesheets/sunrise}/chosen.css +3 -3
  11. data/app/assets/stylesheets/sunrise/customize.css +41 -0
  12. data/app/assets/stylesheets/sunrise/pagination.css +145 -0
  13. data/app/assets/stylesheets/sunrise/plugins.css +0 -0
  14. data/app/views/kaminari/sunrise/_first_page.html.erb +2 -0
  15. data/app/views/kaminari/sunrise/_gap.html.erb +2 -0
  16. data/app/views/kaminari/sunrise/_last_page.html.erb +2 -0
  17. data/app/views/kaminari/sunrise/_next_page.html.erb +3 -1
  18. data/app/views/kaminari/sunrise/_page.html.erb +7 -3
  19. data/app/views/kaminari/sunrise/_paginator.html.erb +12 -10
  20. data/app/views/kaminari/sunrise/_prev_page.html.erb +4 -1
  21. data/app/views/sunrise/manager/table/index.html.erb +1 -1
  22. data/app/views/sunrise/manager/thumbs/index.html.erb +1 -1
  23. data/lib/sunrise/version.rb +1 -1
  24. data/spec/dummy/log/test.log +3027 -0
  25. data/spec/dummy/public/uploads/avatar/content_rails.png +0 -0
  26. data/spec/dummy/public/uploads/avatar/rails.png +0 -0
  27. data/spec/dummy/public/uploads/avatar/thumb_rails.png +0 -0
  28. data/spec/dummy/public/uploads/tmp/20130329-1713-12193-1429/rails.png +0 -0
  29. data/spec/dummy/public/uploads/tmp/20130329-1713-12193-1429/small_rails.png +0 -0
  30. data/spec/dummy/public/uploads/tmp/20130329-1713-12193-1429/thumb_rails.png +0 -0
  31. data/spec/dummy/public/uploads/tmp/20130329-1713-12193-2911/silicon_valley.jpg +0 -0
  32. data/spec/dummy/public/uploads/tmp/20130329-1713-12193-2911/small_silicon_valley.jpg +0 -0
  33. data/spec/dummy/public/uploads/tmp/20130329-1713-12193-2911/thumb_silicon_valley.jpg +0 -0
  34. data/spec/dummy/public/uploads/tmp/20130329-1713-12193-3054/rails.png +0 -0
  35. data/spec/dummy/public/uploads/tmp/20130329-1713-12193-3369/rails.png +0 -0
  36. data/spec/dummy/public/uploads/tmp/20130329-1713-12193-4170/rails.png +0 -0
  37. data/spec/dummy/public/uploads/tmp/20130329-1713-12193-4170/small_rails.png +0 -0
  38. data/spec/dummy/public/uploads/tmp/20130329-1713-12193-4170/thumb_rails.png +0 -0
  39. data/spec/dummy/public/uploads/tmp/20130329-1713-12193-7130/rails.png +0 -0
  40. data/spec/dummy/public/uploads/tmp/20130329-1713-12193-7130/small_rails.png +0 -0
  41. data/spec/dummy/public/uploads/tmp/20130329-1713-12193-7130/thumb_rails.png +0 -0
  42. data/spec/dummy/public/uploads/tmp/20130329-1714-12193-2865/rails.png +0 -0
  43. data/spec/dummy/public/uploads/tmp/20130329-1714-12193-3844/rails.png +0 -0
  44. data/spec/dummy/public/uploads/tmp/20130329-1714-12193-6957/rails.png +0 -0
  45. data/vendor/assets/images/sunrise/chosen-sprite.png +0 -0
  46. data/vendor/assets/images/sunrise/chosen-sprite@2x.png +0 -0
  47. metadata +45 -7
@@ -0,0 +1,66 @@
1
+ /*
2
+ Chosen gets "cut" when placed in area with "overflow:hidden".
3
+ https://github.com/harvesthq/chosen/issues/86#issuecomment-11632999
4
+ */
5
+ Chosen.prototype.results_reposition = function() {
6
+ var dd_top, offset, scrolly, toppy;
7
+
8
+ dd_top = this.is_multiple ? this.container.height() : this.container.height() - 1;
9
+
10
+ // when in a modal get the scroll distance and apply to top of .chzn-drop
11
+ offset = this.container.offset();
12
+ scrolly = parseInt($(window).scrollTop(), 10);
13
+ scrolly = scrolly < 0 ? 0 : scrolly;
14
+ toppy = offset.top+ dd_top - scrolly;
15
+
16
+ this.dropdown.css({
17
+ "top": toppy + "px",
18
+ "left": offset.left + "px"
19
+ });
20
+ };
21
+
22
+ Chosen.prototype.results_show = function() {
23
+ var dd_top;
24
+ var self = this;
25
+
26
+ // hide .chzn-drop when the window resizes else it will stay fixed with previous top and left coordinates
27
+ $(window).resize(function() {
28
+ self.results_hide();
29
+ });
30
+
31
+ if (!this.is_multiple) {
32
+ this.selected_item.addClass("chzn-single-with-drop");
33
+ if (this.result_single_selected) {
34
+ this.result_do_highlight(this.result_single_selected);
35
+ }
36
+ } else if (this.max_selected_options <= this.choices) {
37
+ this.form_field_jq.trigger("liszt:maxselected", {
38
+ chosen: this
39
+ });
40
+ return false;
41
+ }
42
+ dd_top = this.is_multiple ? this.container.height() : this.container.height() - 1;
43
+ this.form_field_jq.trigger("liszt:showing_dropdown", {
44
+ chosen: this
45
+ });
46
+
47
+ if($('.post-edit-holder').length) {
48
+ this.results_reposition();
49
+
50
+ $(window).scroll(function() {
51
+ if (self.results_showing) {
52
+ self.results_reposition();
53
+ }
54
+ });
55
+ } else {
56
+ this.dropdown.css({
57
+ "top": dd_top + "px",
58
+ "left": 0
59
+ });
60
+ }
61
+
62
+ this.results_showing = true;
63
+ this.search_field.focus();
64
+ this.search_field.val(this.search_field.val());
65
+ return this.winnow_results();
66
+ };
@@ -6,10 +6,14 @@ class Sunrise
6
6
 
7
7
  setup: ->
8
8
  ($ '[title]').tooltip()
9
- ($ ".chzn-select").chosen()
10
9
  ($ ".ddmenu").ddmenu()
11
10
  ($ '[data-editable]').editable()
12
11
  ($ '[data-lang]').lang_tabs()
12
+ ($ "select.select:hidden").css("width", "225")
13
+ ($ "select.select").chosen(
14
+ allow_single_deselect: true
15
+ disable_search_threshold: 10
16
+ )
13
17
 
14
18
  this.init_submit_buttons()
15
19
  this.init_group_menus()
@@ -3,8 +3,10 @@
3
3
  * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
4
4
  * the top of the compiled file, but it's generally better to create a new file per style scope.
5
5
  *= require sunrise/main.css
6
+ *= require sunrise/pagination.css
6
7
  *= require sunrise/customize.css
7
- *= require chosen.css
8
+ *= require sunrise/plugins.css
9
+ *= require sunrise/chosen.css
8
10
  *= require smoothness/jquery-ui-1.8.16.custom.css
9
11
  *= require uploader/application
10
12
  */
@@ -63,9 +63,9 @@
63
63
  display: block;
64
64
  position: absolute;
65
65
  right: 26px;
66
- top: 6px;
66
+ top: 9px;
67
67
  width: 12px;
68
- height: 13px;
68
+ height: 10px;
69
69
  font-size: 1px;
70
70
  background: url(chosen-sprite.png) right top no-repeat;
71
71
  }
@@ -81,7 +81,7 @@
81
81
  width: 18px;
82
82
  }
83
83
  .chzn-container-single .chzn-single div b {
84
- background: url('chosen-sprite.png') no-repeat 0 2px;
84
+ background: url('chosen-sprite.png') no-repeat 0 4px;
85
85
  display: block;
86
86
  width: 100%;
87
87
  height: 100%;
@@ -238,4 +238,45 @@ div.input.boolean input {
238
238
  .buttons-holder .grey-but {
239
239
  float: left;
240
240
  margin-right: 15px;
241
+ }
242
+
243
+ /* Datepicker */
244
+ .padder input.date,
245
+ .padder input.datetime {
246
+ width: 190px;
247
+ float: left;
248
+ }
249
+ .padder .calend-holder .but-holder {
250
+ width: 50px;
251
+ position: absolute;
252
+ top: 0;
253
+ right: 0;
254
+ }
255
+ .padder .calend-holder .but-holder .but-container {
256
+ height: 29px;
257
+ }
258
+ .padder .calend-holder {
259
+ margin-bottom: 10px;
260
+ height: 30px;
261
+ position: relative;
262
+ width: 255px;
263
+ }
264
+ .ui-datepicker {
265
+ font-size: 12px !important;
266
+ }
267
+
268
+ /* css for timepicker */
269
+ .ui-timepicker-div .ui-widget-header { margin-bottom: 8px; }
270
+ .ui-timepicker-div dl { text-align: left; }
271
+ .ui-timepicker-div dl dt { height: 25px; margin-bottom: -25px; }
272
+ .ui-timepicker-div dl dd { margin: 0 10px 10px 65px; }
273
+ .ui-timepicker-div td { font-size: 90%; }
274
+ .ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }
275
+
276
+ .ui-timepicker-rtl{ direction: rtl; }
277
+ .ui-timepicker-rtl dl { text-align: right; }
278
+ .ui-timepicker-rtl dl dd { margin: 0 65px 10px 10px; }
279
+
280
+ .post-edit-holder .chzn-container .chzn-drop {
281
+ position:fixed;
241
282
  }
@@ -0,0 +1,145 @@
1
+ .pagination {
2
+ margin: 20px 0;
3
+ }
4
+
5
+ .pagination ul {
6
+ display: inline-block;
7
+ *display: inline;
8
+ margin-bottom: 0;
9
+ margin-left: 0;
10
+ -webkit-border-radius: 4px;
11
+ -moz-border-radius: 4px;
12
+ border-radius: 4px;
13
+ *zoom: 1;
14
+ -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
15
+ -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
16
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
17
+ }
18
+
19
+ .pagination ul > li {
20
+ display: inline;
21
+ }
22
+
23
+ .pagination ul > li > a,
24
+ .pagination ul > li > span {
25
+ float: left;
26
+ padding: 4px 12px;
27
+ line-height: 20px;
28
+ text-decoration: none;
29
+ background-color: #ffffff;
30
+ border: 1px solid #dddddd;
31
+ border-left-width: 0;
32
+ }
33
+
34
+ .pagination ul > li > a:hover,
35
+ .pagination ul > li > a:focus,
36
+ .pagination ul > .active > a,
37
+ .pagination ul > .active > span {
38
+ background-color: #f5f5f5;
39
+ }
40
+
41
+ .pagination ul > .active > a,
42
+ .pagination ul > .active > span {
43
+ color: #999999;
44
+ cursor: default;
45
+ }
46
+
47
+ .pagination ul > .disabled > span,
48
+ .pagination ul > .disabled > a,
49
+ .pagination ul > .disabled > a:hover,
50
+ .pagination ul > .disabled > a:focus {
51
+ color: #999999;
52
+ cursor: default;
53
+ background-color: transparent;
54
+ }
55
+
56
+ .pagination ul > li:first-child > a,
57
+ .pagination ul > li:first-child > span {
58
+ border-left-width: 1px;
59
+ -webkit-border-bottom-left-radius: 4px;
60
+ border-bottom-left-radius: 4px;
61
+ -webkit-border-top-left-radius: 4px;
62
+ border-top-left-radius: 4px;
63
+ -moz-border-radius-bottomleft: 4px;
64
+ -moz-border-radius-topleft: 4px;
65
+ }
66
+
67
+ .pagination ul > li:last-child > a,
68
+ .pagination ul > li:last-child > span {
69
+ -webkit-border-top-right-radius: 4px;
70
+ border-top-right-radius: 4px;
71
+ -webkit-border-bottom-right-radius: 4px;
72
+ border-bottom-right-radius: 4px;
73
+ -moz-border-radius-topright: 4px;
74
+ -moz-border-radius-bottomright: 4px;
75
+ }
76
+
77
+ .pagination-centered {
78
+ text-align: center;
79
+ }
80
+
81
+ .pagination-right {
82
+ text-align: right;
83
+ }
84
+
85
+ .pagination-large ul > li > a,
86
+ .pagination-large ul > li > span {
87
+ padding: 11px 19px;
88
+ font-size: 17.5px;
89
+ }
90
+
91
+ .pagination-large ul > li:first-child > a,
92
+ .pagination-large ul > li:first-child > span {
93
+ -webkit-border-bottom-left-radius: 6px;
94
+ border-bottom-left-radius: 6px;
95
+ -webkit-border-top-left-radius: 6px;
96
+ border-top-left-radius: 6px;
97
+ -moz-border-radius-bottomleft: 6px;
98
+ -moz-border-radius-topleft: 6px;
99
+ }
100
+
101
+ .pagination-large ul > li:last-child > a,
102
+ .pagination-large ul > li:last-child > span {
103
+ -webkit-border-top-right-radius: 6px;
104
+ border-top-right-radius: 6px;
105
+ -webkit-border-bottom-right-radius: 6px;
106
+ border-bottom-right-radius: 6px;
107
+ -moz-border-radius-topright: 6px;
108
+ -moz-border-radius-bottomright: 6px;
109
+ }
110
+
111
+ .pagination-mini ul > li:first-child > a,
112
+ .pagination-small ul > li:first-child > a,
113
+ .pagination-mini ul > li:first-child > span,
114
+ .pagination-small ul > li:first-child > span {
115
+ -webkit-border-bottom-left-radius: 3px;
116
+ border-bottom-left-radius: 3px;
117
+ -webkit-border-top-left-radius: 3px;
118
+ border-top-left-radius: 3px;
119
+ -moz-border-radius-bottomleft: 3px;
120
+ -moz-border-radius-topleft: 3px;
121
+ }
122
+
123
+ .pagination-mini ul > li:last-child > a,
124
+ .pagination-small ul > li:last-child > a,
125
+ .pagination-mini ul > li:last-child > span,
126
+ .pagination-small ul > li:last-child > span {
127
+ -webkit-border-top-right-radius: 3px;
128
+ border-top-right-radius: 3px;
129
+ -webkit-border-bottom-right-radius: 3px;
130
+ border-bottom-right-radius: 3px;
131
+ -moz-border-radius-topright: 3px;
132
+ -moz-border-radius-bottomright: 3px;
133
+ }
134
+
135
+ .pagination-small ul > li > a,
136
+ .pagination-small ul > li > span {
137
+ padding: 2px 10px;
138
+ font-size: 11.9px;
139
+ }
140
+
141
+ .pagination-mini ul > li > a,
142
+ .pagination-mini ul > li > span {
143
+ padding: 0 6px;
144
+ font-size: 10.5px;
145
+ }
@@ -6,6 +6,8 @@
6
6
  per_page: number of items to fetch per page
7
7
  remote: data-remote
8
8
  -%>
9
+ <li>
9
10
  <span class="first">
10
11
  <%= link_to_unless current_page.first?, raw(t 'views.pagination.first'), url, :remote => remote %>
11
12
  </span>
13
+ </li>
@@ -5,4 +5,6 @@
5
5
  per_page: number of items to fetch per page
6
6
  remote: data-remote
7
7
  -%>
8
+ <li>
8
9
  <span class="page gap"><%= raw(t 'views.pagination.truncate') %></span>
10
+ </li>
@@ -6,6 +6,8 @@
6
6
  per_page: number of items to fetch per page
7
7
  remote: data-remote
8
8
  -%>
9
+ <li>
9
10
  <span class="last">
10
11
  <%= link_to_unless current_page.last?, raw(t 'views.pagination.last'), url, {:remote => remote} %>
11
12
  </span>
13
+ </li>
@@ -6,4 +6,6 @@
6
6
  per_page: number of items to fetch per page
7
7
  remote: data-remote
8
8
  -%>
9
- <%= link_to_unless_span current_page.last?, image_tag('sunrise/page_next_arr.gif', :alt => t('views.pagination.next')), url, :rel => 'next', :remote => remote, :class => "next_page disabled" %>
9
+ <li>
10
+ <%= link_to_unless_span current_page.last?, raw("&rarr;"), url, :rel => 'next', :remote => remote, :class => "next_page disabled" %>
11
+ </li>
@@ -9,7 +9,11 @@
9
9
  -%>
10
10
 
11
11
  <% unless page.current? %>
12
- <%= link_to page, url, opts = {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} %>
12
+ <li>
13
+ <%= link_to page, url, opts = {:remote => remote, :rel => page.next? ? 'next' : page.prev? ? 'prev' : nil} %>
14
+ </li>
13
15
  <% else -%>
14
- <%= content_tag(:span, page)%>
15
- <% end -%>
16
+ <li class="active">
17
+ <%= content_tag(:span, page)%>
18
+ </li>
19
+ <% end -%>
@@ -8,16 +8,18 @@
8
8
  -%>
9
9
  <%= paginator.render do -%>
10
10
  <div class="pagination">
11
- <%#= first_page_tag unless current_page.first? %>
12
- <%= prev_page_tag %>
13
- <% each_page do |page| -%>
14
- <% if page.left_outer? || page.right_outer? || page.inside_window? -%>
15
- <%= page_tag page %>
16
- <% elsif !page.was_truncated? -%>
17
- <%= gap_tag %>
11
+ <ul>
12
+ <%#= first_page_tag unless current_page.first? %>
13
+ <%= prev_page_tag %>
14
+ <% each_page do |page| -%>
15
+ <% if page.left_outer? || page.right_outer? || page.inside_window? -%>
16
+ <%= page_tag page %>
17
+ <% elsif !page.was_truncated? -%>
18
+ <%= gap_tag %>
19
+ <% end -%>
18
20
  <% end -%>
19
- <% end -%>
20
- <%= next_page_tag %>
21
- <%#= last_page_tag unless current_page.last? %>
21
+ <%= next_page_tag %>
22
+ <%#= last_page_tag unless current_page.last? %>
23
+ </ul>
22
24
  </div>
23
25
  <% end -%>
@@ -7,4 +7,7 @@
7
7
  remote: data-remote
8
8
  -%>
9
9
 
10
- <%= link_to_unless_span current_page.first?, image_tag('sunrise/page_prev_arr.gif', :alt => t('views.pagination.previous')), url, :rel => 'prev', :remote => remote, :class => "prev_page disabled" %>
10
+ <li>
11
+ <%= link_to_unless_span current_page.first?, raw("&larr;"), url, :rel => 'prev', :remote => remote, :class => "prev_page disabled" %>
12
+ </li>
13
+
@@ -12,6 +12,6 @@
12
12
  <%= render :partial => "sunrise/manager/table/record", :collection => @records %>
13
13
  </table>
14
14
 
15
- <%= paginate @records, :theme => 'sunrise' %>
15
+ <%= paginate @records, :theme => 'sunrise', :outer_window => 2 %>
16
16
  </div>
17
17
  </div>
@@ -1,7 +1,7 @@
1
1
  <div class="wrapper">
2
2
  <div class="main-item-list" id="records">
3
3
  <%= render :partial => apply_scope("record"), :collection => @records %>
4
- <%= paginate @records, :theme => 'sunrise' %>
4
+ <%= paginate @records, :theme => 'sunrise', :outer_window => 2 %>
5
5
  </div>
6
6
 
7
7
  <script type='text/javascript'>
@@ -1,3 +1,3 @@
1
1
  module Sunrise
2
- VERSION = "0.6.3".freeze
2
+ VERSION = "0.6.4".freeze
3
3
  end
@@ -133734,3 +133734,3030 @@ Completed 200 OK in 65ms (Views: 1.8ms | ActiveRecord: 0.2ms)
133734
133734
   (341.5ms) TRUNCATE TABLE `structures`;
133735
133735
   (411.5ms) TRUNCATE TABLE `users`;
133736
133736
   (0.1ms) SET FOREIGN_KEY_CHECKS = 1
133737
+ Connecting to database specified by database.yml
133738
+  (317.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
133739
+ Migrating to InstallActsAsAudited (20111227111941)
133740
+ Migrating to CreatePageParts (20111227143901)
133741
+ Migrating to CreatePosts (20111228152051)
133742
+ Migrating to CreateMetaTags (20120105114018)
133743
+ Migrating to CreateActivities (20130214090723)
133744
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
133745
+ Migrating to CreateAssets (20111216144515)
133746
+ Migrating to CreateStructures (20111216144915)
133747
+ Migrating to CreateUsers (20111216145015)
133748
+ Migrating to CreateSettings (20120611095315)
133749
+ Connecting to database specified by database.yml
133750
+  (5.9ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
133751
+ Migrating to InstallActsAsAudited (20111227111941)
133752
+ Migrating to CreatePageParts (20111227143901)
133753
+ Migrating to CreatePosts (20111228152051)
133754
+ Migrating to CreateMetaTags (20120105114018)
133755
+ Migrating to CreateActivities (20130214090723)
133756
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
133757
+ Migrating to CreateAssets (20111216144515)
133758
+ Migrating to CreateStructures (20111216144915)
133759
+ Migrating to CreateUsers (20111216145015)
133760
+ Migrating to CreateSettings (20120611095315)
133761
+  (24.1ms) SELECT @@FOREIGN_KEY_CHECKS
133762
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
133763
+  (123.0ms) SELECT DATABASE() as db
133764
+  (1119.4ms) select table_name from information_schema.views where table_schema = 'sunrise_dummy_test'
133765
+  (1109.7ms) TRUNCATE TABLE `activities`;
133766
+  (674.7ms) TRUNCATE TABLE `assets`;
133767
+  (597.3ms) TRUNCATE TABLE `audits`;
133768
+  (764.2ms) TRUNCATE TABLE `meta_tags`;
133769
+  (295.5ms) TRUNCATE TABLE `page_parts`;
133770
+  (532.2ms) TRUNCATE TABLE `posts`;
133771
+  (570.9ms) TRUNCATE TABLE `settings`;
133772
+  (662.8ms) TRUNCATE TABLE `structures`;
133773
+  (597.5ms) TRUNCATE TABLE `users`;
133774
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
133775
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
133776
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
133777
+  (206.3ms) TRUNCATE TABLE `activities`;
133778
+  (307.4ms) TRUNCATE TABLE `assets`;
133779
+  (363.9ms) TRUNCATE TABLE `audits`;
133780
+  (289.3ms) TRUNCATE TABLE `meta_tags`;
133781
+  (396.3ms) TRUNCATE TABLE `page_parts`;
133782
+  (139.3ms) TRUNCATE TABLE `posts`;
133783
+  (270.6ms) TRUNCATE TABLE `settings`;
133784
+  (386.2ms) TRUNCATE TABLE `structures`;
133785
+  (822.2ms) TRUNCATE TABLE `users`;
133786
+  (0.3ms) SET FOREIGN_KEY_CHECKS = 1
133787
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
133788
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
133789
+  (1290.2ms) TRUNCATE TABLE `activities`;
133790
+  (754.1ms) TRUNCATE TABLE `assets`;
133791
+  (513.2ms) TRUNCATE TABLE `audits`;
133792
+  (250.6ms) TRUNCATE TABLE `meta_tags`;
133793
+  (295.9ms) TRUNCATE TABLE `page_parts`;
133794
+  (162.6ms) TRUNCATE TABLE `posts`;
133795
+  (570.3ms) TRUNCATE TABLE `settings`;
133796
+  (227.8ms) TRUNCATE TABLE `structures`;
133797
+  (608.3ms) TRUNCATE TABLE `users`;
133798
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
133799
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
133800
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
133801
+  (406.4ms) TRUNCATE TABLE `activities`;
133802
+  (340.9ms) TRUNCATE TABLE `assets`;
133803
+  (352.6ms) TRUNCATE TABLE `audits`;
133804
+  (173.9ms) TRUNCATE TABLE `meta_tags`;
133805
+  (261.0ms) TRUNCATE TABLE `page_parts`;
133806
+  (250.5ms) TRUNCATE TABLE `posts`;
133807
+  (128.3ms) TRUNCATE TABLE `settings`;
133808
+  (366.0ms) TRUNCATE TABLE `structures`;
133809
+  (388.3ms) TRUNCATE TABLE `users`;
133810
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
133811
+  (0.1ms) BEGIN
133812
+ User Exists (46.2ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing1@example.com' LIMIT 1
133813
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:13:32', '2013-03-29 15:13:32', NULL, NULL, 'testing1@example.com', 'd6fdcb9b9141c71e01a823b82b549dacff46bd21fb50885207fa6603142d2010084afe65821246452fbad4d8a7c370fbb394469846e9c0a553bc592460e50c01', 0, NULL, NULL, NULL, 'Test', 'Lvnvrsc6ZTKxVAUcGojt', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:13:32')
133814
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:13:33', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:13:33')
133815
+  (24.4ms) COMMIT
133816
+ User Exists (0.6ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'wrong' AND `users`.`id` != 1) LIMIT 1
133817
+ User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'wrong' AND `users`.`id` != 1) LIMIT 1
133818
+  (0.1ms) BEGIN
133819
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing2@example.com' LIMIT 1
133820
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:13:33', '2013-03-29 15:13:33', NULL, NULL, 'testing2@example.com', '35e1d621d0ea113b5bb461b6158a73b492baad2df853766b73419da24f08761a02a394ee53e56c4d0c1fc87b8354a8acf44a892bcf1b19637b6afcdf58e150a8', 0, NULL, NULL, NULL, 'Test', 'NS5XDBwCp6obXmVid1i9', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:13:33')
133821
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:13:33', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 2, 'User', '2013-03-29 15:13:33')
133822
+  (29.5ms) COMMIT
133823
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'testing2@example.com' LIMIT 1
133824
+  (0.1ms) BEGIN
133825
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing3@example.com' LIMIT 1
133826
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:13:33', '2013-03-29 15:13:33', NULL, NULL, 'testing3@example.com', '33e8e5852de8b2879f9da477a642a4739c5618bc61ac04a43252998c38edc8d82c96451ef00a3790f8419748ae257c179fc482b4f609a38d46586d86ebcb9e9b', 0, NULL, NULL, NULL, 'Test', 'JMMzqS4SFxN6wwsZFZdu', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:13:33')
133827
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:13:33', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 3, 'User', '2013-03-29 15:13:33')
133828
+  (34.0ms) COMMIT
133829
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`role_type_id` = 1
133830
+  (0.1ms) BEGIN
133831
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing4@example.com' LIMIT 1
133832
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:13:33', '2013-03-29 15:13:33', NULL, NULL, 'testing4@example.com', '40eb2edae423b30aa56a78bd9a67ad8e6ba359730b1c95f8a3402cbdff0246ef1354442ac2f578e607291ca7deadb2fc26f5082533694d974a08027d5086ba75', 0, NULL, NULL, NULL, 'Test', 'wxfDjEynkTXduyevszTm', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:13:33')
133833
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:13:33', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 4, 'User', '2013-03-29 15:13:33')
133834
+  (57.0ms) COMMIT
133835
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
133836
+ User Load (0.6ms) SELECT id, email, name, current_sign_in_ip FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000
133837
+  (0.1ms) BEGIN
133838
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing5@example.com' LIMIT 1
133839
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:13:33', '2013-03-29 15:13:33', NULL, NULL, 'testing5@example.com', '028c87df77bade42fad1db649f7fe5bdb8da899113eebab49f7110b14fef532a988553868f41096430737398c87d48ecbfcc8306b3a77cd4d2ed57ccf88c8c01', 0, NULL, NULL, NULL, 'Test', 'Lw7Dyh4zRziUqSZqq1UZ', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:13:33')
133840
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:13:34', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 5, 'User', '2013-03-29 15:13:34')
133841
+  (58.4ms) COMMIT
133842
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
133843
+ User Load (0.5ms) SELECT id, email, confirmed_at, created_at FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000
133844
+  (0.1ms) BEGIN
133845
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing6@example.com' LIMIT 1
133846
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:13:34', '2013-03-29 15:13:34', NULL, NULL, 'testing6@example.com', '566e67d803c7b9609ee672f7749b4456de4fe595e7d79dc205aa8006f36b2bdb70362de9c13c6d5096b681e36caa388bb2181191bbdfe503eabc7c495b67a10a', 0, NULL, NULL, NULL, 'Test', '3fopyTfqGLvKneJypEfT', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:13:34')
133847
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:13:34', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 6, 'User', '2013-03-29 15:13:34')
133848
+  (60.7ms) COMMIT
133849
+  (0.1ms) BEGIN
133850
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing7@example.com' LIMIT 1
133851
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:13:34', '2013-03-29 15:13:34', NULL, NULL, 'testing7@example.com', '15d4f7feb1d76a5fbc0fb6c514f0f49a735fc748a71dc08d44f1d6810b1756764b51c195d74904c47210c15cdfdb9ff667f4fe410e0d8202d2e5c814c12f6c35', 0, NULL, NULL, NULL, 'Test', 'rrt7FpXg7p5NNfVXdMmk', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:13:34')
133852
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:13:34', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 7, 'User', '2013-03-29 15:13:34')
133853
+  (41.9ms) COMMIT
133854
+  (0.1ms) BEGIN
133855
+  (32.6ms) UPDATE `users` SET `confirmed_at` = NULL, `locked_at` = '2013-03-29 15:13:34', `unlock_token` = 'pytogtBUbj6jp7w9jMB7', `updated_at` = '2013-03-29 15:13:34' WHERE `users`.`id` = 7
133856
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:13:34', 'user.update', NULL, NULL, '--- {}\n', NULL, NULL, 7, 'User', '2013-03-29 15:13:34')
133857
+  (35.2ms) COMMIT
133858
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.3/app/views/devise/mailer/unlock_instructions.html.erb (23.0ms)
133859
+
133860
+ Sent mail to testing7@example.com (218ms)
133861
+ Date: Fri, 29 Mar 2013 17:13:35 +0200
133862
+ From: please-change-me-at-config-initializers-devise@example.com
133863
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
133864
+ To: testing7@example.com
133865
+ Message-ID: <5155af9f3c3d0_2fa14f9780c3469f@mario.mail>
133866
+ Subject: Unlock Instructions
133867
+ Mime-Version: 1.0
133868
+ Content-Type: text/html;
133869
+ charset=UTF-8
133870
+ Content-Transfer-Encoding: 7bit
133871
+
133872
+ <p>Hello testing7@example.com!</p>
133873
+
133874
+ <p>Your account has been locked due to an excessive number of unsuccessful sign in attempts.</p>
133875
+
133876
+ <p>Click the link below to unlock your account:</p>
133877
+
133878
+ <p><a href="http://test.com/users/unlock?unlock_token=pytogtBUbj6jp7w9jMB7">Unlock my account</a></p>
133879
+
133880
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
133881
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
133882
+  (291.0ms) TRUNCATE TABLE `activities`;
133883
+  (446.8ms) TRUNCATE TABLE `assets`;
133884
+  (397.5ms) TRUNCATE TABLE `audits`;
133885
+  (294.9ms) TRUNCATE TABLE `meta_tags`;
133886
+  (140.4ms) TRUNCATE TABLE `page_parts`;
133887
+  (228.7ms) TRUNCATE TABLE `posts`;
133888
+  (239.3ms) TRUNCATE TABLE `settings`;
133889
+  (208.9ms) TRUNCATE TABLE `structures`;
133890
+  (330.7ms) TRUNCATE TABLE `users`;
133891
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
133892
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
133893
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
133894
+  (295.2ms) TRUNCATE TABLE `activities`;
133895
+  (307.7ms) TRUNCATE TABLE `assets`;
133896
+  (330.5ms) TRUNCATE TABLE `audits`;
133897
+  (372.8ms) TRUNCATE TABLE `meta_tags`;
133898
+  (1677.7ms) TRUNCATE TABLE `page_parts`;
133899
+  (248.1ms) TRUNCATE TABLE `posts`;
133900
+  (239.2ms) TRUNCATE TABLE `settings`;
133901
+  (220.0ms) TRUNCATE TABLE `structures`;
133902
+  (418.9ms) TRUNCATE TABLE `users`;
133903
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
133904
+  (0.1ms) BEGIN
133905
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing8@example.com' LIMIT 1
133906
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:13:43', '2013-03-29 15:13:43', NULL, NULL, 'testing8@example.com', 'a92f57d3a1e5b7651a63e78d31a2f329327fecbcbb3b626a99a36b446bfc315d86253f379dc8c27823b61c33c69415c6f7ecefe9d852cf81c4e5caf6e36bf9b3', 0, NULL, NULL, NULL, 'Test', 'nyDbrpNhHzm2DCaq6nKr', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:13:43')
133907
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:13:43', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:13:43')
133908
+  (29.0ms) COMMIT
133909
+  (0.1ms) BEGIN
133910
+ SQL (0.4ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (1, 'User', '2013-03-29 15:13:43', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-03-29 15:13:43', NULL, 50)
133911
+  (36.8ms) COMMIT
133912
+  (0.1ms) BEGIN
133913
+ SQL (36.1ms) DELETE FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`id` = 1
133914
+  (38.8ms) COMMIT
133915
+  (0.1ms) BEGIN
133916
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing9@example.com' LIMIT 1
133917
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:13:43', '2013-03-29 15:13:44', NULL, NULL, 'testing9@example.com', 'e3fb765e3db7c13eb38294d9dd3c266be9e7f410852242a571171cbf9c296bcda035830c4f3fa93a2418ddc47df3d5e8e83954ed4edc0090ee9b9f57eb6b3ca5', 0, NULL, NULL, NULL, 'Test', 'iLQ1x7xp9XkCCqHgssiv', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:13:44')
133918
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:13:44', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 2, 'User', '2013-03-29 15:13:44')
133919
+  (34.1ms) COMMIT
133920
+  (0.2ms) BEGIN
133921
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing10@example.com' LIMIT 1
133922
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:13:44', '2013-03-29 15:13:44', NULL, NULL, 'testing10@example.com', 'cd2de127fa51eca74c7b8ac70e783ec79ef5944114fd7f459adebc60840c88e1b2a71bf6847dd20c7da3104d9ead8cac84197f67e186e6e806dd08b19a660e23', 0, NULL, NULL, NULL, 'Test', 'RqwiKjswP4trb6KCtBsh', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:13:44')
133923
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:13:44', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 3, 'User', '2013-03-29 15:13:44')
133924
+  (34.9ms) COMMIT
133925
+  (0.1ms) BEGIN
133926
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing11@example.com' LIMIT 1
133927
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:13:44', '2013-03-29 15:13:44', NULL, NULL, 'testing11@example.com', '37c58ca0221d49310d78e25f505b58e1a7e790a8eb929a881d0afcee203bbd70388825e0ae408d66eacef86c1de307c5d02a60b3452476fefd40515c04b59675', 0, NULL, NULL, NULL, 'Test', '5VHzSxrwx5zThWN81GXj', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:13:44')
133928
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:13:44', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 4, 'User', '2013-03-29 15:13:44')
133929
+  (26.0ms) COMMIT
133930
+  (0.2ms) BEGIN
133931
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing12@example.com' LIMIT 1
133932
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:13:47', '2013-03-29 15:13:47', NULL, NULL, 'testing12@example.com', 'b9bd5b1418f8163c3aaae02863687fe69804c10c2411fdf88efb675992934c0d15b61db9351375c5d8ac2481c5df089511c9c31c59db74433823fb85afd87288', 0, NULL, NULL, NULL, 'Test', 'RMwWFE1hNFULxfGVsXbE', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:13:47')
133933
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:13:47', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 5, 'User', '2013-03-29 15:13:47')
133934
+  (30.4ms) COMMIT
133935
+  (0.1ms) BEGIN
133936
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing13@example.com' LIMIT 1
133937
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:13:48', '2013-03-29 15:13:48', NULL, NULL, 'testing13@example.com', '289cafa290b25a8da6c17ba45eeb9c403d3c4eb0dc0bd778a0c9590d8529292b498924bde47bf69370b9d41aab6d3ef4238bf9dd7f4858d59f5c5d0517c9f464', 0, NULL, NULL, NULL, 'Test', 'cDxNiXrQqYmSK1QyHizP', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:13:48')
133938
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:13:48', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 6, 'User', '2013-03-29 15:13:48')
133939
+  (32.9ms) COMMIT
133940
+  (0.1ms) BEGIN
133941
+ SQL (0.4ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (6, 'User', '2013-03-29 15:13:48', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-03-29 15:13:48', NULL, 50)
133942
+  (36.4ms) COMMIT
133943
+  (0.1ms) BEGIN
133944
+ SQL (0.4ms) DELETE FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`id` = 2
133945
+  (20.6ms) COMMIT
133946
+  (0.1ms) BEGIN
133947
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing14@example.com' LIMIT 1
133948
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:13:48', '2013-03-29 15:13:48', NULL, NULL, 'testing14@example.com', '97fa27e03bd0075ef261c6ed677b665b21a4e8eccdd93886be2ef6e70d6b5df134209c309d910f3f247d2402ab32e6d4a1584d3316ccdcdfa94efd5249fe84f7', 0, NULL, NULL, NULL, 'Test', 'tkisAt7s1h5RfwEYYDEY', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:13:48')
133949
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:13:48', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 7, 'User', '2013-03-29 15:13:48')
133950
+  (32.8ms) COMMIT
133951
+  (0.1ms) BEGIN
133952
+ SQL (0.4ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (7, 'User', '2013-03-29 15:13:48', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-03-29 15:13:48', NULL, 50)
133953
+  (37.2ms) COMMIT
133954
+  (0.1ms) BEGIN
133955
+ SQL (0.4ms) DELETE FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`id` = 3
133956
+  (42.9ms) COMMIT
133957
+  (0.2ms) BEGIN
133958
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing15@example.com' LIMIT 1
133959
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:13:49', '2013-03-29 15:13:49', NULL, NULL, 'testing15@example.com', '5a0b9ab4f03ee98b7959a3cde1c53eb2b5427497a2e959e694b9c858a298f0b87ed561f9d3b00677e4498669df9255fb255a1fbe0b4cf1037aaed73da3431829', 0, NULL, NULL, NULL, 'Test', 'Dvazy1B6iK5zt6XFizwC', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:13:49')
133960
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:13:49', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 8, 'User', '2013-03-29 15:13:49')
133961
+  (172.8ms) COMMIT
133962
+  (0.1ms) BEGIN
133963
+ SQL (0.4ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (8, 'User', '2013-03-29 15:13:49', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-03-29 15:13:49', NULL, 50)
133964
+  (46.0ms) COMMIT
133965
+  (0.1ms) BEGIN
133966
+ SQL (0.4ms) DELETE FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`id` = 4
133967
+  (31.6ms) COMMIT
133968
+  (0.1ms) BEGIN
133969
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing16@example.com' LIMIT 1
133970
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:13:49', '2013-03-29 15:13:49', NULL, NULL, 'testing16@example.com', '75f29c88b4d4f9ff3ab9715733f1fd32d689edf6da6b2c43020e8d416c5a7435bd41cef4cf81f52825fa74f3a515ea9b55ab397f09a38ed9e68dace8ead6943d', 0, NULL, NULL, NULL, 'Test', 'BeDbzcFGtYKUvKbBo8sz', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:13:49')
133971
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:13:49', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 9, 'User', '2013-03-29 15:13:49')
133972
+  (29.3ms) COMMIT
133973
+  (0.1ms) BEGIN
133974
+ SQL (0.4ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (9, 'User', '2013-03-29 15:13:49', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-03-29 15:13:49', NULL, 50)
133975
+  (37.1ms) COMMIT
133976
+  (0.1ms) BEGIN
133977
+ SQL (0.4ms) DELETE FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`id` = 5
133978
+  (20.6ms) COMMIT
133979
+  (0.2ms) BEGIN
133980
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing17@example.com' LIMIT 1
133981
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:13:50', '2013-03-29 15:13:50', NULL, NULL, 'testing17@example.com', '2e02e7b01756bebcc876ec5e1f34c455086ed23e003feb3824e9f0ec58e7883eb69076109331f378dc093af8526180f4e8b589fcd13e01835fc342412156c989', 0, NULL, NULL, NULL, 'Test', '49DyspVayAVVa1c8JiSS', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:13:50')
133982
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:13:50', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 10, 'User', '2013-03-29 15:13:50')
133983
+  (120.6ms) COMMIT
133984
+  (0.1ms) BEGIN
133985
+ SQL (0.4ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (10, 'User', '2013-03-29 15:13:50', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-03-29 15:13:50', NULL, 50)
133986
+  (380.2ms) COMMIT
133987
+  (0.1ms) BEGIN
133988
+ SQL (0.4ms) DELETE FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`id` = 6
133989
+  (28.7ms) COMMIT
133990
+  (0.1ms) BEGIN
133991
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing18@example.com' LIMIT 1
133992
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:13:51', '2013-03-29 15:13:51', NULL, NULL, 'testing18@example.com', '944f4d6e85aeb1a5334b54659b05b8f72b985138f1646db1080893f3a795c03d789059c8257cfa4b2adf35b8fe37c5565cd684afd55e8116cf0cef49d9ac929c', 0, NULL, NULL, NULL, 'Test', 'SYc35gtAScn1AwcHyE38', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:13:51')
133993
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:13:51', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 11, 'User', '2013-03-29 15:13:51')
133994
+  (34.1ms) COMMIT
133995
+  (0.1ms) BEGIN
133996
+ SQL (0.4ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (11, 'User', '2013-03-29 15:13:51', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-03-29 15:13:51', NULL, 50)
133997
+  (37.1ms) COMMIT
133998
+  (0.1ms) BEGIN
133999
+ SQL (0.4ms) DELETE FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`id` = 7
134000
+  (20.7ms) COMMIT
134001
+  (0.1ms) BEGIN
134002
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing19@example.com' LIMIT 1
134003
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:13:51', '2013-03-29 15:13:51', NULL, NULL, 'testing19@example.com', '135b8d248c4495325382d7e8d01c352955f571d38ce2c9713e745d8c9593d758eccaeb55c6910a19d4eb25f71df297be58ed2dd654ebb8422a25dba2f18735cb', 0, NULL, NULL, NULL, 'Test', 'pxznGpA153RfdpKTDqMM', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:13:51')
134004
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:13:51', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 12, 'User', '2013-03-29 15:13:51')
134005
+  (29.7ms) COMMIT
134006
+  (0.1ms) BEGIN
134007
+ SQL (0.4ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (12, 'User', '2013-03-29 15:13:51', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-03-29 15:13:51', NULL, 50)
134008
+  (20.5ms) COMMIT
134009
+  (0.1ms) BEGIN
134010
+ SQL (0.4ms) DELETE FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`id` = 8
134011
+  (41.3ms) COMMIT
134012
+  (0.1ms) BEGIN
134013
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing20@example.com' LIMIT 1
134014
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:13:52', '2013-03-29 15:13:52', NULL, NULL, 'testing20@example.com', 'b1c5cabbcf73ca23ee6bfdfdaef4d1de88011209132f10474cb2b98d1c8e1db1b5d197a9f6c3de0664d76570935f6b39d56e37eb276f25182bf4c07d5260cdc0', 0, NULL, NULL, NULL, 'Test', 'oTErFEyAo8qESoJ6AwSh', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:13:52')
134015
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:13:52', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 13, 'User', '2013-03-29 15:13:52')
134016
+  (30.9ms) COMMIT
134017
+  (0.1ms) BEGIN
134018
+ SQL (0.4ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (13, 'User', '2013-03-29 15:13:52', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-03-29 15:13:52', NULL, 50)
134019
+  (36.8ms) COMMIT
134020
+  (0.1ms) BEGIN
134021
+ SQL (0.4ms) DELETE FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`id` = 9
134022
+  (58.7ms) COMMIT
134023
+  (0.2ms) BEGIN
134024
+ User Exists (0.7ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing21@example.com' LIMIT 1
134025
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:13:52', '2013-03-29 15:13:52', NULL, NULL, 'testing21@example.com', '59722c184d1b778ea6b3b32a076b9efd1c2782f6412f2bf8b474cc5537111a5c30a5840fe543c752efa8bcadfb20f0b46cb28b82d4bf8a175847f6702209624c', 0, NULL, NULL, NULL, 'Test', 'AwLd12Du1sJoZzYHympM', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:13:52')
134026
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:13:52', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 14, 'User', '2013-03-29 15:13:52')
134027
+  (185.8ms) COMMIT
134028
+  (0.1ms) BEGIN
134029
+ SQL (0.6ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (14, 'User', '2013-03-29 15:13:53', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-03-29 15:13:53', NULL, 50)
134030
+  (165.4ms) COMMIT
134031
+  (0.2ms) BEGIN
134032
+ SQL (0.5ms) DELETE FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`id` = 10
134033
+  (46.2ms) COMMIT
134034
+  (0.2ms) BEGIN
134035
+ User Exists (0.8ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing22@example.com' LIMIT 1
134036
+ SQL (0.7ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:13:53', '2013-03-29 15:13:53', NULL, NULL, 'testing22@example.com', 'c4929b59f2b05f1fe566e72cdba26ddf9430807e9fe7f408de3af3c57567aface9ac028127eb63103e2354cff8c23f3fa7776a47bda4c0ee6bc67880f015d8e7', 0, NULL, NULL, NULL, 'Test', 'uEAsRGmtqFoJx9kLZ7Ba', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:13:53')
134037
+ SQL (0.5ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:13:53', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 15, 'User', '2013-03-29 15:13:53')
134038
+  (63.4ms) COMMIT
134039
+  (0.1ms) BEGIN
134040
+ SQL (0.4ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (15, 'User', '2013-03-29 15:13:53', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-03-29 15:13:53', NULL, 50)
134041
+  (35.5ms) COMMIT
134042
+  (0.1ms) BEGIN
134043
+  (0.2ms) ROLLBACK
134044
+  (0.1ms) BEGIN
134045
+ SQL (0.5ms) DELETE FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`id` = 11
134046
+  (30.8ms) COMMIT
134047
+  (0.2ms) BEGIN
134048
+ User Exists (0.6ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing23@example.com' LIMIT 1
134049
+ SQL (0.6ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:13:54', '2013-03-29 15:13:54', NULL, NULL, 'testing23@example.com', '1dd5b44ef691a8b3ca01adbb271c7b4669f0d47a351288aa6c5eb0be98dd60badb51cf42e7708252555364b8dc60f10b37330c8127453b4da4a370752f41fc65', 0, NULL, NULL, NULL, 'Test', 'Vn7Hrpz6YR1uZoDA8Kzx', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:13:54')
134050
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:13:54', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 16, 'User', '2013-03-29 15:13:54')
134051
+  (66.2ms) COMMIT
134052
+  (0.1ms) BEGIN
134053
+ SQL (0.4ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (16, 'User', '2013-03-29 15:13:54', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-03-29 15:13:54', NULL, 50)
134054
+  (47.4ms) COMMIT
134055
+  (0.1ms) BEGIN
134056
+ SQL (0.4ms) DELETE FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`id` = 12
134057
+  (31.5ms) COMMIT
134058
+  (0.2ms) BEGIN
134059
+ User Exists (0.6ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing24@example.com' LIMIT 1
134060
+ SQL (0.6ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:13:55', '2013-03-29 15:13:55', NULL, NULL, 'testing24@example.com', '4123ebe94dd81790bee879239259061ae9415817b09158ec301cbe2af6112868b7654c2d38fcd86f0e4ac5124ecacf6305e9e0067d1f5abc9538bb0c4788c77a', 0, NULL, NULL, NULL, 'Test', 'z1uTPW6NDPt9u7x5VqSu', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:13:55')
134061
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:13:55', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 17, 'User', '2013-03-29 15:13:55')
134062
+  (48.4ms) COMMIT
134063
+  (0.1ms) BEGIN
134064
+ SQL (2.5ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (17, 'User', '2013-03-29 15:13:55', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-03-29 15:13:55', NULL, 50)
134065
+  (33.1ms) COMMIT
134066
+  (0.1ms) BEGIN
134067
+ SQL (0.4ms) DELETE FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`id` = 13
134068
+  (46.2ms) COMMIT
134069
+  (0.2ms) BEGIN
134070
+ User Exists (0.6ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing25@example.com' LIMIT 1
134071
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:13:55', '2013-03-29 15:13:55', NULL, NULL, 'testing25@example.com', 'f940350d7dba09a85f1a30d4d482cf13d2d02ac362f2f5999529d6bd2bdaeb38d246dcc754c08ef51cea7cfa26109058214950ba2ad395b355bfa422be6e797f', 0, NULL, NULL, NULL, 'Test', 'PRJBJG8KUfWnzmGdcfBy', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:13:55')
134072
+ SQL (0.5ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:13:55', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 18, 'User', '2013-03-29 15:13:55')
134073
+  (184.2ms) COMMIT
134074
+  (0.1ms) BEGIN
134075
+ SQL (3.5ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (18, 'User', '2013-03-29 15:13:56', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-03-29 15:13:56', NULL, 50)
134076
+  (113.2ms) COMMIT
134077
+  (0.1ms) BEGIN
134078
+  (0.2ms) ROLLBACK
134079
+  (0.1ms) BEGIN
134080
+ SQL (0.5ms) DELETE FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`id` = 14
134081
+  (303.9ms) COMMIT
134082
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
134083
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
134084
+  (850.8ms) TRUNCATE TABLE `activities`;
134085
+  (774.9ms) TRUNCATE TABLE `assets`;
134086
+  (853.3ms) TRUNCATE TABLE `audits`;
134087
+  (521.2ms) TRUNCATE TABLE `meta_tags`;
134088
+  (1581.7ms) TRUNCATE TABLE `page_parts`;
134089
+  (927.4ms) TRUNCATE TABLE `posts`;
134090
+  (435.7ms) TRUNCATE TABLE `settings`;
134091
+  (858.3ms) TRUNCATE TABLE `structures`;
134092
+  (1182.8ms) TRUNCATE TABLE `users`;
134093
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
134094
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
134095
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
134096
+  (1022.5ms) TRUNCATE TABLE `activities`;
134097
+  (723.6ms) TRUNCATE TABLE `assets`;
134098
+  (1423.3ms) TRUNCATE TABLE `audits`;
134099
+  (540.3ms) TRUNCATE TABLE `meta_tags`;
134100
+  (307.5ms) TRUNCATE TABLE `page_parts`;
134101
+  (573.5ms) TRUNCATE TABLE `posts`;
134102
+  (377.8ms) TRUNCATE TABLE `settings`;
134103
+  (445.5ms) TRUNCATE TABLE `structures`;
134104
+  (733.3ms) TRUNCATE TABLE `users`;
134105
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
134106
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
134107
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
134108
+  (341.9ms) TRUNCATE TABLE `activities`;
134109
+  (391.4ms) TRUNCATE TABLE `assets`;
134110
+  (435.1ms) TRUNCATE TABLE `audits`;
134111
+  (284.3ms) TRUNCATE TABLE `meta_tags`;
134112
+  (364.9ms) TRUNCATE TABLE `page_parts`;
134113
+  (265.2ms) TRUNCATE TABLE `posts`;
134114
+  (271.9ms) TRUNCATE TABLE `settings`;
134115
+  (286.8ms) TRUNCATE TABLE `structures`;
134116
+  (329.7ms) TRUNCATE TABLE `users`;
134117
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
134118
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
134119
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
134120
+  (297.1ms) TRUNCATE TABLE `activities`;
134121
+  (398.8ms) TRUNCATE TABLE `assets`;
134122
+  (354.6ms) TRUNCATE TABLE `audits`;
134123
+  (264.4ms) TRUNCATE TABLE `meta_tags`;
134124
+  (386.9ms) TRUNCATE TABLE `page_parts`;
134125
+  (250.0ms) TRUNCATE TABLE `posts`;
134126
+  (233.0ms) TRUNCATE TABLE `settings`;
134127
+  (253.1ms) TRUNCATE TABLE `structures`;
134128
+  (454.8ms) TRUNCATE TABLE `users`;
134129
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
134130
+  (0.1ms) BEGIN
134131
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing26@example.com' LIMIT 1
134132
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:14:16', '2013-03-29 15:14:16', NULL, NULL, 'testing26@example.com', 'f5c4e3902f79934d9b1077aeec5d3664e7261e693e117681197262de4a8a995f6da8d7d91350dea64066188656bab7e76729f505c3ce3647feccad644f1b9c6f', 0, NULL, NULL, NULL, 'Test', 'pphCFwgyxs7gwFxNuApL', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:14:16')
134133
+ SQL (28.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:16', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:14:16')
134134
+  (51.6ms) COMMIT
134135
+  (0.2ms) BEGIN
134136
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing27@example.com' LIMIT 1
134137
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:14:17', '2013-03-29 15:14:17', NULL, NULL, 'testing27@example.com', '5d7fed2929b75fc0067a964af63c59d230b9be342b9aa18f0b91485e8ec0beb0dab1fd81dd052d7a5638e232ed17356255e01655d12cf7dc31eb56352ea2f6f0', 0, NULL, NULL, NULL, 'Test', 'NwUs53qSqnnZU1Nh1fRw', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:14:17')
134138
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:17', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 2, 'User', '2013-03-29 15:14:17')
134139
+  (41.0ms) COMMIT
134140
+  (1.6ms) BEGIN
134141
+ User Exists (6.1ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing28@example.com' LIMIT 1
134142
+ SQL (1.3ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:14:18', '2013-03-29 15:14:18', NULL, NULL, 'testing28@example.com', '5cfd2fe1e8eeea3fd58c3d84274336270866f48c288fe7cbbd467a23993fb756e1e4878e77acbecad4899711911f0b6202cae4718527971607f31bf4f6231a45', 0, NULL, NULL, NULL, 'Test', '5fzxojqjz1dkC74BWVED', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:14:18')
134143
+ SQL (0.5ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:18', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 3, 'User', '2013-03-29 15:14:18')
134144
+  (29.6ms) COMMIT
134145
+  (0.1ms) BEGIN
134146
+ User Exists (0.9ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing29@example.com' LIMIT 1
134147
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:14:19', '2013-03-29 15:14:19', NULL, NULL, 'testing29@example.com', 'a010dac2211aaa35cb47b42d5030f22fdc3e7aa9e820b30246b7d987fedf81872cc05f34b0f5ebc4610f1a465884f43dd1839b0afc1b56a0154cb17bb7e6e137', 0, NULL, NULL, NULL, 'Test', 'Tgydp38x8zRW6qVzm1bp', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:14:19')
134148
+ SQL (112.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:19', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 4, 'User', '2013-03-29 15:14:19')
134149
+  (40.8ms) COMMIT
134150
+  (0.1ms) BEGIN
134151
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing30@example.com' LIMIT 1
134152
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:14:20', '2013-03-29 15:14:20', NULL, NULL, 'testing30@example.com', '9495286f8f67be72e9d59578dc0612bc0eac2f44b0e83ba4d1b5619ed1a547fe9156d32ff174fe529b8777b059e3ec43e61f7081a0495d0d0550c263ba02ebca', 0, NULL, NULL, NULL, 'Test', 'ZuzSmB1wyQpQAX6QBHyK', NULL, NULL, NULL, 1, 0, NULL, '2013-03-29 15:14:20')
134153
+ SQL (0.5ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:20', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 5, 'User', '2013-03-29 15:14:20')
134154
+  (79.1ms) COMMIT
134155
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
134156
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
134157
+  (275.1ms) TRUNCATE TABLE `activities`;
134158
+  (341.0ms) TRUNCATE TABLE `assets`;
134159
+  (330.3ms) TRUNCATE TABLE `audits`;
134160
+  (284.9ms) TRUNCATE TABLE `meta_tags`;
134161
+  (174.9ms) TRUNCATE TABLE `page_parts`;
134162
+  (249.1ms) TRUNCATE TABLE `posts`;
134163
+  (150.2ms) TRUNCATE TABLE `settings`;
134164
+  (340.4ms) TRUNCATE TABLE `structures`;
134165
+  (376.6ms) TRUNCATE TABLE `users`;
134166
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
134167
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
134168
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
134169
+  (327.5ms) TRUNCATE TABLE `activities`;
134170
+  (318.3ms) TRUNCATE TABLE `assets`;
134171
+  (264.2ms) TRUNCATE TABLE `audits`;
134172
+  (270.6ms) TRUNCATE TABLE `meta_tags`;
134173
+  (262.4ms) TRUNCATE TABLE `page_parts`;
134174
+  (832.3ms) TRUNCATE TABLE `posts`;
134175
+  (139.2ms) TRUNCATE TABLE `settings`;
134176
+  (423.5ms) TRUNCATE TABLE `structures`;
134177
+  (678.3ms) TRUNCATE TABLE `users`;
134178
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
134179
+  (0.1ms) BEGIN
134180
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
134181
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:14:27', 0, 1, 1, NULL, 2, NULL, 2, 'slug1', 1, 'Structure', '2013-03-29 15:14:27')
134182
+ SQL (0.5ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:27', 'structure.create', NULL, NULL, '--- {}\n', NULL, NULL, 1, 'Structure', '2013-03-29 15:14:27')
134183
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
134184
+ SQL (0.5ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
134185
+  (20.8ms) COMMIT
134186
+  (22.8ms) SELECT COUNT(*) FROM `structures`
134187
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` IN (1)
134188
+  (0.1ms) BEGIN
134189
+ Structure Load (0.5ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
134190
+ SQL (0.7ms) DELETE FROM `structures` WHERE (`lft` > 1 AND `rgt` < 2)
134191
+ SQL (1.6ms) UPDATE `structures` SET `lft` = (`lft` - 2) WHERE (`structures`.`lft` > 2) ORDER BY `structures`.`lft`
134192
+ SQL (0.4ms) UPDATE `structures` SET `rgt` = (`rgt` - 2) WHERE (`structures`.`rgt` > 2) ORDER BY `structures`.`lft`
134193
+ PagePart Load (0.6ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 1 AND `page_parts`.`partable_type` = 'Structure'
134194
+ MetaTag Load (0.6ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 1 AND `meta_tags`.`taggable_type` = 'Structure'
134195
+ SQL (0.7ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:27', 'structure.destroy', NULL, NULL, '--- {}\n', NULL, NULL, 1, 'Structure', '2013-03-29 15:14:27')
134196
+ Post Load (0.4ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 1
134197
+ SQL (0.4ms) DELETE FROM `structures` WHERE `structures`.`id` = 1
134198
+  (44.5ms) COMMIT
134199
+  (0.5ms) SELECT COUNT(*) FROM `structures` 
134200
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
134201
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
134202
+  (198.3ms) TRUNCATE TABLE `activities`;
134203
+  (262.9ms) TRUNCATE TABLE `assets`;
134204
+  (385.6ms) TRUNCATE TABLE `audits`;
134205
+  (253.9ms) TRUNCATE TABLE `meta_tags`;
134206
+  (148.5ms) TRUNCATE TABLE `page_parts`;
134207
+  (239.0ms) TRUNCATE TABLE `posts`;
134208
+  (162.7ms) TRUNCATE TABLE `settings`;
134209
+  (524.0ms) TRUNCATE TABLE `structures`;
134210
+  (385.8ms) TRUNCATE TABLE `users`;
134211
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
134212
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
134213
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
134214
+  (984.4ms) TRUNCATE TABLE `activities`;
134215
+  (1542.0ms) TRUNCATE TABLE `assets`;
134216
+  (899.4ms) TRUNCATE TABLE `audits`;
134217
+  (162.4ms) TRUNCATE TABLE `meta_tags`;
134218
+  (252.8ms) TRUNCATE TABLE `page_parts`;
134219
+  (313.6ms) TRUNCATE TABLE `posts`;
134220
+  (189.7ms) TRUNCATE TABLE `settings`;
134221
+  (504.7ms) TRUNCATE TABLE `structures`;
134222
+  (583.2ms) TRUNCATE TABLE `users`;
134223
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
134224
+  (0.1ms) BEGIN
134225
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
134226
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:14:35', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-03-29 15:14:35')
134227
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:35', 'structure.create', NULL, NULL, '--- {}\n', NULL, NULL, 1, 'Structure', '2013-03-29 15:14:35')
134228
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
134229
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
134230
+  (30.6ms) COMMIT
134231
+  (0.1ms) BEGIN
134232
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
134233
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:14:35', 0, 1, 3, 1, 2, NULL, 4, 'slug2', 1, 'Structure', '2013-03-29 15:14:35')
134234
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:35', 'structure.create', NULL, NULL, '--- {}\n', NULL, NULL, 2, 'Structure', '2013-03-29 15:14:35')
134235
+ Structure Load (0.7ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
134236
+ Structure Load (0.5ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
134237
+ SQL (0.7ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
134238
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
134239
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134240
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134241
+ SQL (0.5ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
134242
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134243
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
134244
+ Structure Load (0.5ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
134245
+ Structure Load (1.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134246
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134247
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
134248
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134249
+  (198.2ms) COMMIT
134250
+  (0.1ms) BEGIN
134251
+  (0.1ms) ROLLBACK
134252
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134253
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
134254
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134255
+  (0.1ms) BEGIN
134256
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
134257
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:35', 'structure.update', NULL, NULL, '--- {}\n', NULL, NULL, 2, 'Structure', '2013-03-29 15:14:35')
134258
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134259
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134260
+ SQL (16.6ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
134261
+  (30.1ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134262
+  (38.4ms) COMMIT
134263
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134264
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
134265
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
134266
+  (0.1ms) BEGIN
134267
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:35', 'structure.update', NULL, NULL, '--- {}\n', NULL, NULL, 2, 'Structure', '2013-03-29 15:14:35')
134268
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134269
+  (0.1ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134270
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
134271
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134272
+  (27.5ms) COMMIT
134273
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134274
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
134275
+  (0.1ms) BEGIN
134276
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:35', 'structure.update', NULL, NULL, '--- {}\n', NULL, NULL, 2, 'Structure', '2013-03-29 15:14:35')
134277
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134278
+  (0.1ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134279
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
134280
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134281
+  (28.9ms) COMMIT
134282
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134283
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
134284
+  (0.2ms) BEGIN
134285
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
134286
+ SQL (0.5ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:14:36', 0, 1, 5, 2, 2, NULL, 6, 'slug3', 1, 'Structure', '2013-03-29 15:14:36')
134287
+ SQL (0.5ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:36', 'structure.create', NULL, NULL, '--- {}\n', NULL, NULL, 3, 'Structure', '2013-03-29 15:14:36')
134288
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft` LIMIT 1
134289
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1 FOR UPDATE
134290
+ SQL (0.8ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 6 - 4 WHEN `lft` BETWEEN 5 AND 6 THEN `lft` + 3 - 5 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 6 - 4 WHEN `rgt` BETWEEN 5 AND 6 THEN `rgt` + 3 - 5 ELSE `rgt` END, `parent_id` = CASE WHEN id = 3 THEN 2 ELSE `parent_id` END ORDER BY `structures`.`lft`
134291
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
134292
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1
134293
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
134294
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 2 WHERE `structures`.`id` = 3 ORDER BY `structures`.`lft`
134295
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
134296
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 3 AND `structures`.`lft` < 4) AND (`structures`.id != 3) ORDER BY `structures`.`lft`
134297
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1 FOR UPDATE
134298
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1
134299
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
134300
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 2 WHERE `structures`.`id` = 3 ORDER BY `structures`.`lft`
134301
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
134302
+  (43.6ms) COMMIT
134303
+  (0.1ms) BEGIN
134304
+ SQL (0.5ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:36', 'structure.update', NULL, NULL, '--- {}\n', NULL, NULL, 2, 'Structure', '2013-03-29 15:14:36')
134305
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134306
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
134307
+ SQL (0.5ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
134308
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
134309
+  (26.4ms) COMMIT
134310
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134311
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
134312
+ Structure Load (40.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
134313
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 6) ORDER BY `structures`.`lft`
134314
+  (0.1ms) BEGIN
134315
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
134316
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:14:36', 0, 1, 7, 1, 2, NULL, 8, 'slug4', 1, 'Some super title', '2013-03-29 15:14:36')
134317
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:36', 'structure.create', NULL, NULL, '--- {}\n', NULL, NULL, 4, 'Structure', '2013-03-29 15:14:36')
134318
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
134319
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1 FOR UPDATE
134320
+ SQL (0.5ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 6 AND 6 THEN `lft` + 8 - 6 WHEN `lft` BETWEEN 7 AND 8 THEN `lft` + 6 - 7 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 6 AND 6 THEN `rgt` + 8 - 6 WHEN `rgt` BETWEEN 7 AND 8 THEN `rgt` + 6 - 7 ELSE `rgt` END, `parent_id` = CASE WHEN id = 4 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
134321
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
134322
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1
134323
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
134324
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 4 ORDER BY `structures`.`lft`
134325
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
134326
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 6 AND `structures`.`lft` < 7) AND (`structures`.id != 4) ORDER BY `structures`.`lft`
134327
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1 FOR UPDATE
134328
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1
134329
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
134330
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 4 ORDER BY `structures`.`lft`
134331
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
134332
+  (41.7ms) COMMIT
134333
+  (0.1ms) BEGIN
134334
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
134335
+  (0.4ms) UPDATE `structures` SET `title` = 'Other big title', `updated_at` = '2013-03-29 15:14:36' WHERE `structures`.`id` = 4
134336
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:36', 'structure.update', NULL, NULL, '--- {}\n', NULL, NULL, 4, 'Structure', '2013-03-29 15:14:36')
134337
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1
134338
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
134339
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 4 ORDER BY `structures`.`lft`
134340
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
134341
+  (26.9ms) COMMIT
134342
+  (0.1ms) BEGIN
134343
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
134344
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:14:36', 0, 1, 9, 1, 2, NULL, 10, 'original-slug', 1, 'Tra ta ta', '2013-03-29 15:14:36')
134345
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:36', 'structure.create', NULL, NULL, '--- {}\n', NULL, NULL, 5, 'Structure', '2013-03-29 15:14:36')
134346
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
134347
+ Structure Load (0.6ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 5 LIMIT 1 FOR UPDATE
134348
+ SQL (0.7ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 8 AND 8 THEN `lft` + 10 - 8 WHEN `lft` BETWEEN 9 AND 10 THEN `lft` + 8 - 9 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 8 AND 8 THEN `rgt` + 10 - 8 WHEN `rgt` BETWEEN 9 AND 10 THEN `rgt` + 8 - 9 ELSE `rgt` END, `parent_id` = CASE WHEN id = 5 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
134349
+ Structure Load (0.5ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
134350
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 5 LIMIT 1
134351
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 8 AND `structures`.`rgt` >= 9) AND (`structures`.id != 5)
134352
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 5 ORDER BY `structures`.`lft`
134353
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 8 AND `structures`.`rgt` >= 9) AND (`structures`.id != 5)
134354
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 8 AND `structures`.`lft` < 9) AND (`structures`.id != 5) ORDER BY `structures`.`lft`
134355
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 5 LIMIT 1 FOR UPDATE
134356
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 5 LIMIT 1
134357
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 8 AND `structures`.`rgt` >= 9) AND (`structures`.id != 5)
134358
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 5 ORDER BY `structures`.`lft`
134359
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 8 AND `structures`.`rgt` >= 9) AND (`structures`.id != 5)
134360
+  (42.1ms) COMMIT
134361
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 5 LIMIT 1
134362
+  (0.1ms) BEGIN
134363
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:36', 'structure.update', NULL, NULL, '--- {}\n', NULL, NULL, 2, 'Structure', '2013-03-29 15:14:36')
134364
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134365
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
134366
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
134367
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
134368
+  (39.7ms) COMMIT
134369
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134370
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = 'slug2' LIMIT 1
134371
+  (0.1ms) BEGIN
134372
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
134373
+ SQL (0.5ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:36', 'structure.update', NULL, NULL, '--- {}\n', NULL, NULL, 2, 'Structure', '2013-03-29 15:14:36')
134374
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134375
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
134376
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
134377
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
134378
+  (25.1ms) COMMIT
134379
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1364570076 LIMIT 1
134380
+  (0.1ms) BEGIN
134381
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
134382
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:36', 'structure.update', NULL, NULL, '--- {}\n', NULL, NULL, 2, 'Structure', '2013-03-29 15:14:36')
134383
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134384
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
134385
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
134386
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
134387
+  (53.6ms) COMMIT
134388
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = 'wrong' LIMIT 1
134389
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = 'slug2' LIMIT 1
134390
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
134391
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
134392
+  (180.5ms) TRUNCATE TABLE `activities`;
134393
+  (285.3ms) TRUNCATE TABLE `assets`;
134394
+  (297.8ms) TRUNCATE TABLE `audits`;
134395
+  (273.9ms) TRUNCATE TABLE `meta_tags`;
134396
+  (151.5ms) TRUNCATE TABLE `page_parts`;
134397
+  (249.0ms) TRUNCATE TABLE `posts`;
134398
+  (150.3ms) TRUNCATE TABLE `settings`;
134399
+  (317.7ms) TRUNCATE TABLE `structures`;
134400
+  (421.4ms) TRUNCATE TABLE `users`;
134401
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
134402
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
134403
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
134404
+  (292.6ms) TRUNCATE TABLE `activities`;
134405
+  (229.9ms) TRUNCATE TABLE `assets`;
134406
+  (307.3ms) TRUNCATE TABLE `audits`;
134407
+  (251.4ms) TRUNCATE TABLE `meta_tags`;
134408
+  (251.4ms) TRUNCATE TABLE `page_parts`;
134409
+  (117.0ms) TRUNCATE TABLE `posts`;
134410
+  (307.0ms) TRUNCATE TABLE `settings`;
134411
+  (346.4ms) TRUNCATE TABLE `structures`;
134412
+  (397.9ms) TRUNCATE TABLE `users`;
134413
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
134414
+  (0.1ms) BEGIN
134415
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY '1364570081@gmail.com' LIMIT 1
134416
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:14:41', '2013-03-29 15:14:41', NULL, NULL, '1364570081@gmail.com', '2da87b22f6286835ffdcc5cfc43cb34b98b0f26f4ea43b7188e6a605cf11fd99e0fb09d6b0b08499b71b59743e3b8bc48799c31c78e5990742ba88941cea81f0', 0, NULL, NULL, NULL, 'Admin', 'eVJwdLasKpHtNNZ2sMNs', NULL, NULL, NULL, 4, 0, NULL, '2013-03-29 15:14:41')
134417
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:41', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:14:41')
134418
+  (30.8ms) COMMIT
134419
+  (0.1ms) BEGIN
134420
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
134421
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:14:41', 0, 1, 1, NULL, 2, NULL, 2, 'slug6', 1, 'Structure', '2013-03-29 15:14:41')
134422
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:41', 'structure.create', NULL, NULL, '--- {}\n', NULL, NULL, 1, 'Structure', '2013-03-29 15:14:41')
134423
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
134424
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
134425
+  (46.4ms) COMMIT
134426
+  (0.1ms) BEGIN
134427
+ SQL (41.6ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-03-29 15:14:41', 1, 1, 'Default title', '2013-03-29 15:14:41')
134428
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:41', 'post.create', NULL, NULL, '--- {}\n', NULL, NULL, 1, 'Post', '2013-03-29 15:14:41')
134429
+  (44.0ms) COMMIT
134430
+  (0.1ms) BEGIN
134431
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing31@example.com' LIMIT 1
134432
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:14:41', '2013-03-29 15:14:41', NULL, NULL, 'testing31@example.com', '1b9606ba26b5ba476592a1a0f2ce0d875797e2e1694defe12292456aded88b5f8c522bc9310f9f466c50c2cc56850bc177c1c2dd0a47556195ed581a490f30b7', 0, NULL, NULL, NULL, 'Redactor', 'TCcvs1oSrJZDZaq42Gct', NULL, NULL, NULL, 2, 0, NULL, '2013-03-29 15:14:41')
134433
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:41', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 2, 'User', '2013-03-29 15:14:41')
134434
+  (41.3ms) COMMIT
134435
+  (0.1ms) BEGIN
134436
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:41', 'post.create', 2, 'User', '--- {}\n', NULL, NULL, 1, 'Post', '2013-03-29 15:14:41')
134437
+  (29.4ms) COMMIT
134438
+ Started GET "/manage/" for 127.0.0.1 at 2013-03-29 17:14:41 +0200
134439
+  (0.1ms) BEGIN
134440
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:42', 'user.update', NULL, NULL, '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:14:42')
134441
+  (29.6ms) COMMIT
134442
+  (0.1ms) BEGIN
134443
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2013-03-29 15:14:42', `current_sign_in_at` = '2013-03-29 15:14:42', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-03-29 15:14:42' WHERE `users`.`id` = 1
134444
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:42', 'user.update', NULL, NULL, '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:14:42')
134445
+  (26.1ms) COMMIT
134446
+ Processing by Sunrise::DashboardController#index as HTML
134447
+ PublicActivity::ORM::ActiveRecord::Activity Load (21.9ms) SELECT `activities`.* FROM `activities` ORDER BY created_at DESC LIMIT 50 OFFSET 0
134448
+ User Load (23.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
134449
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
134450
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
134451
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
134452
+ Post Load (5.8ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
134453
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1
134454
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1
134455
+ CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
134456
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_activity.html.erb (60.2ms)
134457
+  (7.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `activities` LIMIT 50 OFFSET 0) subquery_for_count
134458
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/index.html.erb within layouts/sunrise/application (127.7ms)
134459
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (148.2ms)
134460
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (2.9ms)
134461
+ Completed 200 OK in 376ms (Views: 280.0ms | ActiveRecord: 59.4ms)
134462
+ Started GET "/manage/" for 127.0.0.1 at 2013-03-29 17:14:42 +0200
134463
+  (0.1ms) BEGIN
134464
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:42', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:14:42')
134465
+  (31.6ms) COMMIT
134466
+  (0.1ms) BEGIN
134467
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-03-29 15:14:42' WHERE `users`.`id` = 1
134468
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:42', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:14:42')
134469
+  (25.9ms) COMMIT
134470
+ Processing by Sunrise::DashboardController#index as HTML
134471
+ PublicActivity::ORM::ActiveRecord::Activity Load (0.6ms) SELECT `activities`.* FROM `activities` ORDER BY created_at DESC LIMIT 50 OFFSET 0
134472
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
134473
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
134474
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
134475
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
134476
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
134477
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
134478
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
134479
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
134480
+ Post Load (0.1ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
134481
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1
134482
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1
134483
+ CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
134484
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_activity.html.erb (31.6ms)
134485
+  (0.5ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `activities` LIMIT 50 OFFSET 0) subquery_for_count 
134486
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
134487
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (1.3ms)
134488
+ Completed 200 OK in 57ms (Views: 44.7ms | ActiveRecord: 2.3ms)
134489
+ Started GET "/manage/" for 127.0.0.1 at 2013-03-29 17:14:43 +0200
134490
+ Processing by Sunrise::DashboardController#index as HTML
134491
+ Completed 401 Unauthorized in 1ms
134492
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-03-29 17:14:43 +0200
134493
+ Processing by Devise::SessionsController#new as HTML
134494
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.3/app/views/devise/shared/_links.erb (3.6ms)
134495
+ Completed 200 OK in 65ms (Views: 63.2ms | ActiveRecord: 0.0ms)
134496
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
134497
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
134498
+  (202.9ms) TRUNCATE TABLE `activities`;
134499
+  (274.2ms) TRUNCATE TABLE `assets`;
134500
+  (330.8ms) TRUNCATE TABLE `audits`;
134501
+  (261.8ms) TRUNCATE TABLE `meta_tags`;
134502
+  (140.3ms) TRUNCATE TABLE `page_parts`;
134503
+  (249.8ms) TRUNCATE TABLE `posts`;
134504
+  (150.3ms) TRUNCATE TABLE `settings`;
134505
+  (296.1ms) TRUNCATE TABLE `structures`;
134506
+  (387.6ms) TRUNCATE TABLE `users`;
134507
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
134508
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
134509
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
134510
+  (1239.3ms) TRUNCATE TABLE `activities`;
134511
+  (608.3ms) TRUNCATE TABLE `assets`;
134512
+  (321.8ms) TRUNCATE TABLE `audits`;
134513
+  (193.5ms) TRUNCATE TABLE `meta_tags`;
134514
+  (271.8ms) TRUNCATE TABLE `page_parts`;
134515
+  (250.3ms) TRUNCATE TABLE `posts`;
134516
+  (162.4ms) TRUNCATE TABLE `settings`;
134517
+  (320.3ms) TRUNCATE TABLE `structures`;
134518
+  (364.7ms) TRUNCATE TABLE `users`;
134519
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
134520
+  (0.1ms) BEGIN
134521
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing32@example.com' LIMIT 1
134522
+ SQL (0.6ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:14:49', '2013-03-29 15:14:49', NULL, NULL, 'testing32@example.com', '40a81133c129de5f088f42d8d099c402518c8cb25aa3a0ce6b95a294117285567200651caf8cfb5b11e2a392dbe3328e306dd63c9c0f718e35efe0d261791180', 0, NULL, NULL, NULL, 'Admin', 'CpFGCwourDGbimxRpkHz', NULL, NULL, NULL, 4, 0, NULL, '2013-03-29 15:14:49')
134523
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:49', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:14:49')
134524
+  (99.8ms) COMMIT
134525
+  (0.1ms) BEGIN
134526
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
134527
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:14:49', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-03-29 15:14:49')
134528
+ SQL (104.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:49', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-03-29 15:14:49')
134529
+ Structure Load (0.7ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
134530
+ SQL (0.5ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
134531
+  (68.9ms) COMMIT
134532
+  (0.1ms) BEGIN
134533
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
134534
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:14:49', 0, 1, 3, 1, 2, NULL, 4, 'slug7', 1, 'Structure', '2013-03-29 15:14:49')
134535
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:49', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-03-29 15:14:49')
134536
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
134537
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
134538
+ SQL (0.4ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
134539
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
134540
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134541
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134542
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
134543
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134544
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
134545
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
134546
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134547
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134548
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
134549
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134550
+  (195.3ms) COMMIT
134551
+ Started GET "/manage/structures/2" for 127.0.0.1 at 2013-03-29 17:14:49 +0200
134552
+  (0.1ms) BEGIN
134553
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:49', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:14:49')
134554
+  (31.2ms) COMMIT
134555
+  (0.1ms) BEGIN
134556
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2013-03-29 15:14:49', `current_sign_in_at` = '2013-03-29 15:14:49', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-03-29 15:14:49' WHERE `users`.`id` = 1
134557
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:49', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:14:49')
134558
+  (37.2ms) COMMIT
134559
+ Processing by Sunrise::ManagerController#show as HTML
134560
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
134561
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134562
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.3ms)
134563
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (1.2ms)
134564
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_controls.html.erb (0.6ms)
134565
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_show.html.erb (27.2ms)
134566
+ Completed 200 OK in 152ms (Views: 121.1ms | ActiveRecord: 0.5ms)
134567
+ Started GET "/manage/structures/2" for 127.0.0.1 at 2013-03-29 17:14:49 +0200
134568
+  (0.1ms) BEGIN
134569
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:49', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:14:49')
134570
+  (16.8ms) COMMIT
134571
+  (0.1ms) BEGIN
134572
+  (0.5ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-03-29 15:14:49' WHERE `users`.`id` = 1
134573
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:49', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:14:49')
134574
+  (36.9ms) COMMIT
134575
+ Processing by Sunrise::ManagerController#show as HTML
134576
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
134577
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134578
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
134579
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
134580
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_controls.html.erb (0.1ms)
134581
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_show.html.erb (4.6ms)
134582
+ Completed 200 OK in 17ms (Views: 13.0ms | ActiveRecord: 0.2ms)
134583
+ Started GET "/manage/structures/2" for 127.0.0.1 at 2013-03-29 17:14:50 +0200
134584
+ Processing by Sunrise::ManagerController#show as HTML
134585
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
134586
+ Completed 401 Unauthorized in 1ms
134587
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-03-29 17:14:50 +0200
134588
+ Processing by Devise::SessionsController#new as HTML
134589
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.3/app/views/devise/shared/_links.erb (1.2ms)
134590
+ Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.0ms)
134591
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
134592
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
134593
+  (166.8ms) TRUNCATE TABLE `activities`;
134594
+  (285.4ms) TRUNCATE TABLE `assets`;
134595
+  (314.7ms) TRUNCATE TABLE `audits`;
134596
+  (282.4ms) TRUNCATE TABLE `meta_tags`;
134597
+  (251.7ms) TRUNCATE TABLE `page_parts`;
134598
+  (139.5ms) TRUNCATE TABLE `posts`;
134599
+  (240.2ms) TRUNCATE TABLE `settings`;
134600
+  (320.0ms) TRUNCATE TABLE `structures`;
134601
+  (442.3ms) TRUNCATE TABLE `users`;
134602
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
134603
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
134604
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
134605
+  (325.3ms) TRUNCATE TABLE `activities`;
134606
+  (177.9ms) TRUNCATE TABLE `assets`;
134607
+  (308.6ms) TRUNCATE TABLE `audits`;
134608
+  (339.4ms) TRUNCATE TABLE `meta_tags`;
134609
+  (173.4ms) TRUNCATE TABLE `page_parts`;
134610
+  (248.2ms) TRUNCATE TABLE `posts`;
134611
+  (139.1ms) TRUNCATE TABLE `settings`;
134612
+  (318.0ms) TRUNCATE TABLE `structures`;
134613
+  (386.8ms) TRUNCATE TABLE `users`;
134614
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
134615
+  (0.1ms) BEGIN
134616
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing33@example.com' LIMIT 1
134617
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:14:54', '2013-03-29 15:14:54', NULL, NULL, 'testing33@example.com', 'e33639dad36c99fd0ef2fcb4ba8096fbf18be9fdacc65eff25aa882b9d2930be13dc02b343fe6d2e564c7357eaf4598ddf37721cc52a539bbaaea61b43301551', 0, NULL, NULL, NULL, 'Admin', 'SXUYZi3U2rJ4zgazJwfw', NULL, NULL, NULL, 4, 0, NULL, '2013-03-29 15:14:54')
134618
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:54', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:14:54')
134619
+  (32.4ms) COMMIT
134620
+  (0.1ms) BEGIN
134621
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
134622
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:14:55', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-03-29 15:14:55')
134623
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:55', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-03-29 15:14:55')
134624
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
134625
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
134626
+  (32.5ms) COMMIT
134627
+  (0.1ms) BEGIN
134628
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
134629
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:14:55', 0, 1, 3, 1, 2, NULL, 4, 'slug8', 1, 'Structure', '2013-03-29 15:14:55')
134630
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:55', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-03-29 15:14:55')
134631
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
134632
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
134633
+ SQL (0.4ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
134634
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
134635
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134636
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134637
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
134638
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134639
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
134640
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
134641
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134642
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134643
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
134644
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134645
+  (35.8ms) COMMIT
134646
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-03-29 17:14:55 +0200
134647
+  (0.1ms) BEGIN
134648
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:55', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:14:55')
134649
+  (34.4ms) COMMIT
134650
+  (0.1ms) BEGIN
134651
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-03-29 15:14:55', `current_sign_in_at` = '2013-03-29 15:14:55', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-03-29 15:14:55' WHERE `users`.`id` = 1
134652
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:55', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:14:55')
134653
+  (37.0ms) COMMIT
134654
+ Processing by Sunrise::ManagerController#index as HTML
134655
+ Parameters: {"model_name"=>"structures"}
134656
+ Structure Load (1.0ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
134657
+ Structure Load (1.0ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
134658
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (2.6ms)
134659
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (24.9ms)
134660
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.6ms)
134661
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
134662
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (7.8ms)
134663
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (12.3ms)
134664
+ Completed 200 OK in 91ms (Views: 73.5ms | ActiveRecord: 2.0ms)
134665
+ Started DELETE "/manage/structures/2/delete" for 127.0.0.1 at 2013-03-29 17:14:55 +0200
134666
+ Processing by Sunrise::ManagerController#destroy as HTML
134667
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
134668
+ User Load (27.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
134669
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134670
+  (0.1ms) BEGIN
134671
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
134672
+ SQL (0.2ms) DELETE FROM `structures` WHERE (`lft` > 2 AND `rgt` < 3)
134673
+ SQL (0.2ms) UPDATE `structures` SET `lft` = (`lft` - 2) WHERE (`structures`.`lft` > 3) ORDER BY `structures`.`lft`
134674
+ SQL (0.3ms) UPDATE `structures` SET `rgt` = (`rgt` - 2) WHERE (`structures`.`rgt` > 3) ORDER BY `structures`.`lft`
134675
+ PagePart Load (0.4ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
134676
+ MetaTag Load (0.3ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
134677
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:14:55', 'structure.destroy', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-03-29 15:14:55')
134678
+ Post Load (0.4ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2
134679
+ SQL (0.2ms) DELETE FROM `structures` WHERE `structures`.`id` = 2
134680
+  (45.6ms) COMMIT
134681
+ Redirected to http://www.example.com/manage/structures
134682
+ Completed 302 Found in 215ms (ActiveRecord: 0.0ms)
134683
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-03-29 17:14:55 +0200
134684
+ Processing by Sunrise::ManagerController#index as HTML
134685
+ Parameters: {"model_name"=>"structures"}
134686
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
134687
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
134688
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (1.6ms)
134689
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.9ms)
134690
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
134691
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (3.0ms)
134692
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.4ms)
134693
+ Completed 200 OK in 20ms (Views: 14.9ms | ActiveRecord: 0.8ms)
134694
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134695
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-03-29 17:14:55 +0200
134696
+ Processing by Sunrise::ManagerController#index as HTML
134697
+ Parameters: {"model_name"=>"structures"}
134698
+ Completed 401 Unauthorized in 1ms
134699
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-03-29 17:14:55 +0200
134700
+ Processing by Devise::SessionsController#new as HTML
134701
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.3/app/views/devise/shared/_links.erb (1.0ms)
134702
+ Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.0ms)
134703
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
134704
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
134705
+  (246.1ms) TRUNCATE TABLE `activities`;
134706
+  (704.9ms) TRUNCATE TABLE `assets`;
134707
+  (363.3ms) TRUNCATE TABLE `audits`;
134708
+  (162.3ms) TRUNCATE TABLE `meta_tags`;
134709
+  (262.8ms) TRUNCATE TABLE `page_parts`;
134710
+  (228.0ms) TRUNCATE TABLE `posts`;
134711
+  (138.9ms) TRUNCATE TABLE `settings`;
134712
+  (330.3ms) TRUNCATE TABLE `structures`;
134713
+  (432.9ms) TRUNCATE TABLE `users`;
134714
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
134715
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
134716
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
134717
+  (326.5ms) TRUNCATE TABLE `activities`;
134718
+  (185.4ms) TRUNCATE TABLE `assets`;
134719
+  (352.6ms) TRUNCATE TABLE `audits`;
134720
+  (1063.4ms) TRUNCATE TABLE `meta_tags`;
134721
+  (1161.1ms) TRUNCATE TABLE `page_parts`;
134722
+  (470.5ms) TRUNCATE TABLE `posts`;
134723
+  (802.3ms) TRUNCATE TABLE `settings`;
134724
+  (1089.5ms) TRUNCATE TABLE `structures`;
134725
+  (1185.1ms) TRUNCATE TABLE `users`;
134726
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
134727
+  (0.2ms) BEGIN
134728
+ User Exists (0.6ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing34@example.com' LIMIT 1
134729
+ SQL (0.6ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:15:05', '2013-03-29 15:15:05', NULL, NULL, 'testing34@example.com', '17817cf52281ae083c9a5d25aba0ad8dfb66b35ebef9355a9bc6fa753c60ba4e28630110dc554efdb70312a10c1c742f351ea5c1af4adea7ed5241b811b433d6', 0, NULL, NULL, NULL, 'Admin', 'FLEZUBGVp23rXLusidnF', NULL, NULL, NULL, 4, 0, NULL, '2013-03-29 15:15:05')
134730
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:05', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:15:05')
134731
+  (222.6ms) COMMIT
134732
+  (0.1ms) BEGIN
134733
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
134734
+ SQL (451.0ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:15:05', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-03-29 15:15:05')
134735
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:06', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-03-29 15:15:06')
134736
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
134737
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
134738
+  (407.1ms) COMMIT
134739
+  (0.1ms) BEGIN
134740
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
134741
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:15:06', 0, 1, 3, 1, 2, NULL, 4, 'slug9', 1, 'Structure', '2013-03-29 15:15:06')
134742
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:06', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-03-29 15:15:06')
134743
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
134744
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
134745
+ SQL (0.5ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
134746
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
134747
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134748
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134749
+ SQL (0.5ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
134750
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134751
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
134752
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
134753
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134754
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134755
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
134756
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134757
+  (150.6ms) COMMIT
134758
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-03-29 17:15:06 +0200
134759
+  (0.1ms) BEGIN
134760
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:06', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:15:06')
134761
+  (114.2ms) COMMIT
134762
+  (0.1ms) BEGIN
134763
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-03-29 15:15:06', `current_sign_in_at` = '2013-03-29 15:15:06', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-03-29 15:15:06' WHERE `users`.`id` = 1
134764
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:06', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:15:06')
134765
+  (186.1ms) COMMIT
134766
+ Processing by Sunrise::ManagerController#edit as HTML
134767
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
134768
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134769
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
134770
+ Structure Load (5.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
134771
+ Structure Load (0.7ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 4) ORDER BY `structures`.`lft`
134772
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (90.9ms)
134773
+ MetaTag Load (0.5ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
134774
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (12.0ms)
134775
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (1156.6ms)
134776
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (14.7ms)
134777
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (3.1ms)
134778
+ Completed 200 OK in 1208ms (Views: 1189.9ms | ActiveRecord: 6.9ms)
134779
+ Started PUT "/manage/structures/2/edit" for 127.0.0.1 at 2013-03-29 17:15:08 +0200
134780
+ Processing by Sunrise::ManagerController#update as HTML
134781
+ Parameters: {"utf8"=>"✓", "parent_id"=>"", "parent_type"=>"", "structure"=>{"title"=>"Title updated", "redirect_url"=>"", "slug"=>"slug9", "parent_id"=>"1", "structure_type_id"=>"2", "position_type_id"=>"1", "is_visible"=>"0", "tag_title"=>"", "tag_keywords"=>"", "tag_description"=>""}, "commit"=>"Update Structure", "model_name"=>"structures", "id"=>"2"}
134782
+ User Load (28.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
134783
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134784
+  (0.1ms) BEGIN
134785
+ MetaTag Load (0.9ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
134786
+  (0.6ms) UPDATE `structures` SET `title` = 'Title updated', `redirect_url` = '', `structure_type_id` = 2, `position_type_id` = 1, `is_visible` = 0, `updated_at` = '2013-03-29 15:15:08' WHERE `structures`.`id` = 2
134787
+ SQL (0.5ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:08', 'structure.update', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-03-29 15:15:08')
134788
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134789
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134790
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
134791
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134792
+  (90.9ms) COMMIT
134793
+ Redirected to http://www.example.com/manage/structures
134794
+ Completed 302 Found in 167ms (ActiveRecord: 0.0ms)
134795
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-03-29 17:15:08 +0200
134796
+ Processing by Sunrise::ManagerController#index as HTML
134797
+ Parameters: {"model_name"=>"structures"}
134798
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
134799
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
134800
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
134801
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (2.4ms)
134802
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (6.6ms)
134803
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.2ms)
134804
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
134805
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (3.3ms)
134806
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.9ms)
134807
+ Completed 200 OK in 26ms (Views: 20.0ms | ActiveRecord: 1.4ms)
134808
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134809
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-03-29 17:15:08 +0200
134810
+  (0.3ms) BEGIN
134811
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:08', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:15:08')
134812
+  (106.2ms) COMMIT
134813
+  (0.1ms) BEGIN
134814
+  (0.4ms) UPDATE `users` SET `current_sign_in_at` = '2013-03-29 15:15:08', `sign_in_count` = 2, `updated_at` = '2013-03-29 15:15:08' WHERE `users`.`id` = 1
134815
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:08', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:15:08')
134816
+  (93.0ms) COMMIT
134817
+ Processing by Sunrise::ManagerController#edit as HTML
134818
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
134819
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134820
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
134821
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
134822
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 4) ORDER BY `structures`.`lft`
134823
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (19.0ms)
134824
+ MetaTag Load (0.2ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
134825
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (8.0ms)
134826
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (31.0ms)
134827
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
134828
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
134829
+ Completed 200 OK in 43ms (Views: 38.1ms | ActiveRecord: 1.1ms)
134830
+ Started PUT "/manage/structures/2/edit" for 127.0.0.1 at 2013-03-29 17:15:08 +0200
134831
+ Processing by Sunrise::ManagerController#update as HTML
134832
+ Parameters: {"utf8"=>"✓", "parent_id"=>"", "parent_type"=>"", "structure"=>{"title"=>"Title updated", "redirect_url"=>"", "slug"=>"slug9", "parent_id"=>"1", "structure_type_id"=>"2", "position_type_id"=>"1", "is_visible"=>"0", "tag_title"=>"", "tag_keywords"=>"", "tag_description"=>""}, "commit"=>"Update Structure", "model_name"=>"structures", "id"=>"2"}
134833
+ User Load (0.8ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
134834
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134835
+  (0.1ms) BEGIN
134836
+ MetaTag Load (0.1ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
134837
+ SQL (0.5ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:09', 'structure.update', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-03-29 15:15:09')
134838
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134839
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134840
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
134841
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134842
+  (217.0ms) COMMIT
134843
+ Redirected to http://www.example.com/manage/structures
134844
+ Completed 302 Found in 242ms (ActiveRecord: 0.0ms)
134845
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-03-29 17:15:09 +0200
134846
+ Processing by Sunrise::ManagerController#index as HTML
134847
+ Parameters: {"model_name"=>"structures"}
134848
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
134849
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
134850
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
134851
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (3.8ms)
134852
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (9.6ms)
134853
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.1ms)
134854
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
134855
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (3.6ms)
134856
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (4.2ms)
134857
+ Completed 200 OK in 31ms (Views: 24.0ms | ActiveRecord: 0.6ms)
134858
+  (0.1ms) BEGIN
134859
+ PagePart Load (0.6ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
134860
+ PagePart Exists (1.9ms) SELECT 1 AS one FROM `page_parts` WHERE (`page_parts`.`key` = BINARY 'main' AND `page_parts`.`partable_type` = 'Structure' AND `page_parts`.`partable_id` = 2) LIMIT 1
134861
+ PagePart Exists (0.5ms) SELECT 1 AS one FROM `page_parts` WHERE (`page_parts`.`key` = BINARY 'sidebar' AND `page_parts`.`partable_type` = 'Structure' AND `page_parts`.`partable_id` = 2) LIMIT 1
134862
+ SQL (0.5ms) INSERT INTO `page_parts` (`content`, `created_at`, `key`, `partable_id`, `partable_type`, `updated_at`) VALUES ('Main', '2013-03-29 15:15:09', 'main', 2, 'Structure', '2013-03-29 15:15:09')
134863
+ SQL (0.3ms) INSERT INTO `page_parts` (`content`, `created_at`, `key`, `partable_id`, `partable_type`, `updated_at`) VALUES ('Sidebar', '2013-03-29 15:15:09', 'sidebar', 2, 'Structure', '2013-03-29 15:15:09')
134864
+ SQL (0.6ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:09', 'structure.update', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-03-29 15:15:09')
134865
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134866
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134867
+ SQL (0.5ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
134868
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134869
+  (41.2ms) COMMIT
134870
+ Started GET "/manage/pages/2/edit" for 127.0.0.1 at 2013-03-29 17:15:09 +0200
134871
+  (0.1ms) BEGIN
134872
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:09', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:15:09')
134873
+  (76.8ms) COMMIT
134874
+  (0.1ms) BEGIN
134875
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-03-29 15:15:08', `current_sign_in_at` = '2013-03-29 15:15:09', `sign_in_count` = 3, `updated_at` = '2013-03-29 15:15:09' WHERE `users`.`id` = 1
134876
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:09', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:15:09')
134877
+  (58.4ms) COMMIT
134878
+ Processing by Sunrise::ManagerController#edit as HTML
134879
+ Parameters: {"model_name"=>"pages", "id"=>"2"}
134880
+ Structure Load (0.9ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134881
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
134882
+ PagePart Load (22.9ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
134883
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (49.0ms)
134884
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (53.4ms)
134885
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (5.9ms)
134886
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.6ms)
134887
+ Completed 200 OK in 69ms (Views: 41.5ms | ActiveRecord: 23.8ms)
134888
+ Started PUT "/manage/pages/2/edit" for 127.0.0.1 at 2013-03-29 17:15:09 +0200
134889
+ Processing by Sunrise::ManagerController#update as HTML
134890
+ Parameters: {"utf8"=>"✓", "parent_id"=>"", "parent_type"=>"", "structure"=>{"main"=>"Main updated", "sidebar"=>"Sidebar updated"}, "commit"=>"Update Structure", "model_name"=>"pages", "id"=>"2"}
134891
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
134892
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134893
+  (0.2ms) BEGIN
134894
+ PagePart Load (0.6ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
134895
+ PagePart Exists (0.7ms) SELECT 1 AS one FROM `page_parts` WHERE (`page_parts`.`key` = BINARY 'main' AND `page_parts`.`id` != 1 AND `page_parts`.`partable_type` = 'Structure' AND `page_parts`.`partable_id` = 2) LIMIT 1
134896
+ PagePart Exists (0.6ms) SELECT 1 AS one FROM `page_parts` WHERE (`page_parts`.`key` = BINARY 'sidebar' AND `page_parts`.`id` != 2 AND `page_parts`.`partable_type` = 'Structure' AND `page_parts`.`partable_id` = 2) LIMIT 1
134897
+  (0.6ms) UPDATE `page_parts` SET `content` = 'Main updated', `updated_at` = '2013-03-29 15:15:09' WHERE `page_parts`.`id` = 1
134898
+  (32.7ms) UPDATE `page_parts` SET `content` = 'Sidebar updated', `updated_at` = '2013-03-29 15:15:09' WHERE `page_parts`.`id` = 2
134899
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:09', 'structure.update', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-03-29 15:15:09')
134900
+ Structure Load (2.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134901
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134902
+ SQL (0.7ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
134903
+  (3.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
134904
+  (36.8ms) COMMIT
134905
+ Redirected to http://www.example.com/manage/structures
134906
+ Completed 302 Found in 118ms (ActiveRecord: 0.0ms)
134907
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-03-29 17:15:09 +0200
134908
+ Processing by Sunrise::ManagerController#index as HTML
134909
+ Parameters: {"model_name"=>"structures"}
134910
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
134911
+ Structure Load (1.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
134912
+ Structure Load (1.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
134913
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (2.6ms)
134914
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (8.0ms)
134915
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.6ms)
134916
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
134917
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (6.2ms)
134918
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (6.8ms)
134919
+ Completed 200 OK in 39ms (Views: 28.4ms | ActiveRecord: 2.7ms)
134920
+ Structure Load (1.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
134921
+ PagePart Load (0.7ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
134922
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-03-29 17:15:09 +0200
134923
+ Processing by Sunrise::ManagerController#edit as HTML
134924
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
134925
+ Completed 401 Unauthorized in 2ms
134926
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-03-29 17:15:09 +0200
134927
+ Processing by Devise::SessionsController#new as HTML
134928
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.3/app/views/devise/shared/_links.erb (1.4ms)
134929
+ Completed 200 OK in 13ms (Views: 10.6ms | ActiveRecord: 0.0ms)
134930
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
134931
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
134932
+  (1102.3ms) TRUNCATE TABLE `activities`;
134933
+  (866.3ms) TRUNCATE TABLE `assets`;
134934
+  (539.3ms) TRUNCATE TABLE `audits`;
134935
+  (491.3ms) TRUNCATE TABLE `meta_tags`;
134936
+  (575.3ms) TRUNCATE TABLE `page_parts`;
134937
+  (509.2ms) TRUNCATE TABLE `posts`;
134938
+  (437.5ms) TRUNCATE TABLE `settings`;
134939
+  (413.2ms) TRUNCATE TABLE `structures`;
134940
+  (466.3ms) TRUNCATE TABLE `users`;
134941
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
134942
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
134943
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
134944
+  (217.2ms) TRUNCATE TABLE `activities`;
134945
+  (295.4ms) TRUNCATE TABLE `assets`;
134946
+  (344.6ms) TRUNCATE TABLE `audits`;
134947
+  (440.6ms) TRUNCATE TABLE `meta_tags`;
134948
+  (913.0ms) TRUNCATE TABLE `page_parts`;
134949
+  (1032.9ms) TRUNCATE TABLE `posts`;
134950
+  (1448.4ms) TRUNCATE TABLE `settings`;
134951
+  (1041.5ms) TRUNCATE TABLE `structures`;
134952
+  (1332.7ms) TRUNCATE TABLE `users`;
134953
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
134954
+  (0.1ms) BEGIN
134955
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing35@example.com' LIMIT 1
134956
+ SQL (0.7ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:15:22', '2013-03-29 15:15:22', NULL, NULL, 'testing35@example.com', '23857a7c8c9c3b084113d08c6ee75dd38d112608630cbbedb6fab49572de865d142aa40b8d4fed09d1536a291ce7c46a87017795375f25e19574a8adc2bd1e43', 0, NULL, NULL, NULL, 'Admin', 'Phuiov6cxHfnB13qqZx3', NULL, NULL, NULL, 4, 0, NULL, '2013-03-29 15:15:22')
134957
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:22', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:15:22')
134958
+  (266.2ms) COMMIT
134959
+ Started GET "/manage/whatever/new" for 127.0.0.1 at 2013-03-29 17:15:22 +0200
134960
+  (0.2ms) BEGIN
134961
+ SQL (1.0ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:22', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:15:22')
134962
+  (28.4ms) COMMIT
134963
+  (0.1ms) BEGIN
134964
+  (0.6ms) UPDATE `users` SET `last_sign_in_at` = '2013-03-29 15:15:22', `current_sign_in_at` = '2013-03-29 15:15:22', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-03-29 15:15:22' WHERE `users`.`id` = 1
134965
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:22', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:15:22')
134966
+  (71.1ms) COMMIT
134967
+ Processing by Sunrise::ManagerController#new as HTML
134968
+ Parameters: {"model_name"=>"whatever"}
134969
+ Error while loading 'SunriseWhatever': uninitialized constant SunriseWhatever
134970
+ Completed 404 Not Found in 12ms
134971
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2013-03-29 17:15:22 +0200
134972
+  (3.7ms) BEGIN
134973
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:22', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:15:22')
134974
+  (63.6ms) COMMIT
134975
+  (0.1ms) BEGIN
134976
+  (0.5ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-03-29 15:15:22' WHERE `users`.`id` = 1
134977
+ SQL (0.5ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:22', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:15:22')
134978
+  (68.9ms) COMMIT
134979
+ Processing by Sunrise::ManagerController#new as HTML
134980
+ Parameters: {"model_name"=>"structures"}
134981
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (1.4ms)
134982
+ Structure Load (0.9ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
134983
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (19.9ms)
134984
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (18.0ms)
134985
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (45.0ms)
134986
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.4ms)
134987
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (1.6ms)
134988
+ Completed 200 OK in 78ms (Views: 69.0ms | ActiveRecord: 0.9ms)
134989
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2013-03-29 17:15:23 +0200
134990
+  (0.1ms) BEGIN
134991
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:23', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:15:23')
134992
+  (46.6ms) COMMIT
134993
+  (0.1ms) BEGIN
134994
+  (0.5ms) UPDATE `users` SET `current_sign_in_at` = '2013-03-29 15:15:23', `sign_in_count` = 3, `updated_at` = '2013-03-29 15:15:23' WHERE `users`.`id` = 1
134995
+ SQL (2.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:23', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:15:23')
134996
+  (187.3ms) COMMIT
134997
+ Processing by Sunrise::ManagerController#new as HTML
134998
+ Parameters: {"model_name"=>"structures"}
134999
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
135000
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
135001
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (17.9ms)
135002
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (7.4ms)
135003
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (30.8ms)
135004
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.3ms)
135005
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.5ms)
135006
+ Completed 200 OK in 42ms (Views: 39.7ms | ActiveRecord: 0.2ms)
135007
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2013-03-29 17:15:23 +0200
135008
+ Processing by Sunrise::ManagerController#new as HTML
135009
+ Parameters: {"model_name"=>"structures"}
135010
+ Completed 401 Unauthorized in 1ms
135011
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-03-29 17:15:23 +0200
135012
+ Processing by Devise::SessionsController#new as HTML
135013
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.3/app/views/devise/shared/_links.erb (1.7ms)
135014
+ Completed 200 OK in 109ms (Views: 13.3ms | ActiveRecord: 0.0ms)
135015
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
135016
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
135017
+  (1501.2ms) TRUNCATE TABLE `activities`;
135018
+  (799.2ms) TRUNCATE TABLE `assets`;
135019
+  (345.0ms) TRUNCATE TABLE `audits`;
135020
+  (342.1ms) TRUNCATE TABLE `meta_tags`;
135021
+  (612.5ms) TRUNCATE TABLE `page_parts`;
135022
+  (772.7ms) TRUNCATE TABLE `posts`;
135023
+  (760.6ms) TRUNCATE TABLE `settings`;
135024
+  (1133.7ms) TRUNCATE TABLE `structures`;
135025
+  (608.9ms) TRUNCATE TABLE `users`;
135026
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
135027
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
135028
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
135029
+  (595.8ms) TRUNCATE TABLE `activities`;
135030
+  (869.6ms) TRUNCATE TABLE `assets`;
135031
+  (2152.8ms) TRUNCATE TABLE `audits`;
135032
+  (605.8ms) TRUNCATE TABLE `meta_tags`;
135033
+  (451.9ms) TRUNCATE TABLE `page_parts`;
135034
+  (251.7ms) TRUNCATE TABLE `posts`;
135035
+  (314.5ms) TRUNCATE TABLE `settings`;
135036
+  (852.6ms) TRUNCATE TABLE `structures`;
135037
+  (2067.6ms) TRUNCATE TABLE `users`;
135038
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
135039
+  (0.1ms) BEGIN
135040
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing36@example.com' LIMIT 1
135041
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:15:38', '2013-03-29 15:15:38', NULL, NULL, 'testing36@example.com', 'c4e6ba9844dbd66c880c3c9c8292b30c1f737edbe5dba5166ebde4a679cde4c3d84c6769615390e497ab46268ea2ac74958a004a3061316e0b3b0b612153a3f0', 0, NULL, NULL, NULL, 'Admin', 'jDKHeqgnBbkmsuvfmpWD', NULL, NULL, NULL, 4, 0, NULL, '2013-03-29 15:15:38')
135042
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:38', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:15:38')
135043
+  (40.3ms) COMMIT
135044
+  (0.1ms) BEGIN
135045
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
135046
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:15:38', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-03-29 15:15:38')
135047
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:38', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-03-29 15:15:38')
135048
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
135049
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
135050
+  (109.5ms) COMMIT
135051
+  (0.1ms) BEGIN
135052
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
135053
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:15:38', 0, 1, 3, 1, 2, NULL, 4, 'slug10', 1, 'Structure', '2013-03-29 15:15:38')
135054
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:38', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-03-29 15:15:38')
135055
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
135056
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
135057
+ SQL (0.5ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
135058
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
135059
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
135060
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
135061
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
135062
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
135063
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
135064
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
135065
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
135066
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
135067
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
135068
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
135069
+  (76.7ms) COMMIT
135070
+ Started GET "/manage/users/export.xlsx" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
135071
+  (0.0ms) BEGIN
135072
+ SQL (0.0ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2012-01-01 16:00:00', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2012-01-01 16:00:00')
135073
+  (0.0ms) COMMIT
135074
+  (0.0ms) BEGIN
135075
+  (0.0ms) UPDATE `users` SET `last_sign_in_at` = '2012-01-01 16:00:00', `current_sign_in_at` = '2012-01-01 16:00:00', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-01-01 16:00:00' WHERE `users`.`id` = 1
135076
+ SQL (0.0ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2012-01-01 16:00:00', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2012-01-01 16:00:00')
135077
+  (0.0ms) COMMIT
135078
+ Processing by Sunrise::ManagerController#export as XLSX
135079
+ Parameters: {"model_name"=>"users"}
135080
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
135081
+ User Load (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000 OFFSET 0
135082
+ Sent data users_2012-01-01_16h00m00.xls (0.0ms)
135083
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
135084
+ Started GET "/manage/users/export.csv" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
135085
+  (0.0ms) BEGIN
135086
+ SQL (0.0ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2012-01-01 16:00:00', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2012-01-01 16:00:00')
135087
+  (0.0ms) COMMIT
135088
+  (0.0ms) BEGIN
135089
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 2 WHERE `users`.`id` = 1
135090
+ SQL (0.0ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2012-01-01 16:00:00', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2012-01-01 16:00:00')
135091
+  (0.0ms) COMMIT
135092
+ Processing by Sunrise::ManagerController#export as CSV
135093
+ Parameters: {"model_name"=>"users"}
135094
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
135095
+ User Load (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000 OFFSET 0
135096
+ Sent data users_2012-01-01_16h00m00.csv (0.0ms)
135097
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
135098
+ Started GET "/manage/users/export.json" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
135099
+  (0.0ms) BEGIN
135100
+ SQL (0.0ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2012-01-01 16:00:00', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2012-01-01 16:00:00')
135101
+  (0.0ms) COMMIT
135102
+  (0.0ms) BEGIN
135103
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 3 WHERE `users`.`id` = 1
135104
+ SQL (0.0ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2012-01-01 16:00:00', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2012-01-01 16:00:00')
135105
+  (0.0ms) COMMIT
135106
+ Processing by Sunrise::ManagerController#export as JSON
135107
+ Parameters: {"model_name"=>"users"}
135108
+ User Load (0.0ms) SELECT `users`.* FROM `users` LIMIT 25 OFFSET 0
135109
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
135110
+  (0.0ms) BEGIN
135111
+ SQL (0.0ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES (NULL, '2012-01-01 16:00:00', 1, 2, 'Some title', '2012-01-01 16:00:00')
135112
+ SQL (0.0ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2012-01-01 16:00:00', 'post.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Post', '2012-01-01 16:00:00')
135113
+  (0.0ms) COMMIT
135114
+ Started GET "/manage/posts/export.csv" for 127.0.0.1 at 2012-01-01 16:00:00 UTC
135115
+  (0.0ms) BEGIN
135116
+ SQL (0.0ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2012-01-01 16:00:00', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2012-01-01 16:00:00')
135117
+  (0.0ms) COMMIT
135118
+  (0.0ms) BEGIN
135119
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 4 WHERE `users`.`id` = 1
135120
+ SQL (0.0ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2012-01-01 16:00:00', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2012-01-01 16:00:00')
135121
+  (0.0ms) COMMIT
135122
+ Processing by Sunrise::ManagerController#export as CSV
135123
+ Parameters: {"model_name"=>"posts"}
135124
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
135125
+ Post Load (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.`id` >= 0) ORDER BY `posts`.`id` ASC LIMIT 1000 OFFSET 0
135126
+ Structure Load (0.0ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` IN (2)
135127
+ Sent data posts_2012-01-01_16h00m00.csv (0.0ms)
135128
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
135129
+ Started GET "/manage/structures/export.xlsx" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
135130
+  (0.0ms) BEGIN
135131
+ SQL (0.0ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2012-01-01 16:00:00', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2012-01-01 16:00:00')
135132
+  (0.0ms) COMMIT
135133
+  (0.0ms) BEGIN
135134
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 5 WHERE `users`.`id` = 1
135135
+ SQL (0.0ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2012-01-01 16:00:00', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2012-01-01 16:00:00')
135136
+  (0.0ms) COMMIT
135137
+ Processing by Sunrise::ManagerController#export as XLSX
135138
+ Parameters: {"model_name"=>"structures"}
135139
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
135140
+ Structure Load (0.0ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`id` >= 0) ORDER BY `structures`.`id` ASC LIMIT 1000 OFFSET 0
135141
+ Sent data structures_2012-01-01_16h00m00.xls (0.0ms)
135142
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
135143
+ Started GET "/manage/structures/export.xml" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
135144
+  (0.0ms) BEGIN
135145
+ SQL (0.0ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2012-01-01 16:00:00', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2012-01-01 16:00:00')
135146
+  (0.0ms) COMMIT
135147
+  (0.0ms) BEGIN
135148
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 6 WHERE `users`.`id` = 1
135149
+ SQL (0.0ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2012-01-01 16:00:00', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2012-01-01 16:00:00')
135150
+  (0.0ms) COMMIT
135151
+ Processing by Sunrise::ManagerController#export as XML
135152
+ Parameters: {"model_name"=>"structures"}
135153
+ Structure Load (0.0ms) SELECT `structures`.* FROM `structures` LIMIT 25 OFFSET 0
135154
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
135155
+ Started GET "/manage/users/export.xlsx" for 127.0.0.1 at 2013-03-29 17:15:44 +0200
135156
+ Processing by Sunrise::ManagerController#export as XLSX
135157
+ Parameters: {"model_name"=>"users"}
135158
+ Completed 401 Unauthorized in 1ms
135159
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
135160
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
135161
+  (319.4ms) TRUNCATE TABLE `activities`;
135162
+  (185.7ms) TRUNCATE TABLE `assets`;
135163
+  (296.4ms) TRUNCATE TABLE `audits`;
135164
+  (305.8ms) TRUNCATE TABLE `meta_tags`;
135165
+  (162.5ms) TRUNCATE TABLE `page_parts`;
135166
+  (226.1ms) TRUNCATE TABLE `posts`;
135167
+  (139.2ms) TRUNCATE TABLE `settings`;
135168
+  (352.3ms) TRUNCATE TABLE `structures`;
135169
+  (857.7ms) TRUNCATE TABLE `users`;
135170
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
135171
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
135172
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
135173
+  (768.1ms) TRUNCATE TABLE `activities`;
135174
+  (306.6ms) TRUNCATE TABLE `assets`;
135175
+  (356.6ms) TRUNCATE TABLE `audits`;
135176
+  (284.9ms) TRUNCATE TABLE `meta_tags`;
135177
+  (162.5ms) TRUNCATE TABLE `page_parts`;
135178
+  (535.3ms) TRUNCATE TABLE `posts`;
135179
+  (175.1ms) TRUNCATE TABLE `settings`;
135180
+  (307.4ms) TRUNCATE TABLE `structures`;
135181
+  (408.8ms) TRUNCATE TABLE `users`;
135182
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
135183
+  (0.1ms) BEGIN
135184
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing37@example.com' LIMIT 1
135185
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:15:50', '2013-03-29 15:15:50', NULL, NULL, 'testing37@example.com', 'ea5c33a4f09fd2514ef2c031602e20201984effbb0320c7b5f22da3624a3f51dc0d2f8fa5cc0e12b0f267836a80a543b13da3f6ca99d4ece7dbd53c42eb6155c', 0, NULL, NULL, NULL, 'Admin', 'uLHH7TtF8itycZLtpC1N', NULL, NULL, NULL, 4, 0, NULL, '2013-03-29 15:15:50')
135186
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:50', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:15:50')
135187
+  (31.7ms) COMMIT
135188
+  (0.1ms) BEGIN
135189
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
135190
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:15:50', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-03-29 15:15:50')
135191
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:50', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-03-29 15:15:50')
135192
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
135193
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
135194
+  (32.6ms) COMMIT
135195
+  (0.1ms) BEGIN
135196
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
135197
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:15:50', 0, 1, 3, 1, 2, NULL, 4, 'slug11', 1, 'Structure', '2013-03-29 15:15:50')
135198
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:50', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-03-29 15:15:50')
135199
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
135200
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
135201
+ SQL (0.4ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
135202
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
135203
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
135204
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
135205
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
135206
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
135207
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
135208
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
135209
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
135210
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
135211
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
135212
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
135213
+  (35.7ms) COMMIT
135214
+ Started GET "/manage/" for 127.0.0.1 at 2013-03-29 17:15:50 +0200
135215
+  (0.1ms) BEGIN
135216
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:50', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:15:50')
135217
+  (34.4ms) COMMIT
135218
+  (0.1ms) BEGIN
135219
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2013-03-29 15:15:50', `current_sign_in_at` = '2013-03-29 15:15:50', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-03-29 15:15:50' WHERE `users`.`id` = 1
135220
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:50', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:15:50')
135221
+  (37.5ms) COMMIT
135222
+ Processing by Sunrise::DashboardController#index as HTML
135223
+ PublicActivity::ORM::ActiveRecord::Activity Load (0.5ms) SELECT `activities`.* FROM `activities` ORDER BY created_at DESC LIMIT 50 OFFSET 0
135224
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
135225
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
135226
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
135227
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
135228
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
135229
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
135230
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
135231
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
135232
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
135233
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
135234
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_activity.html.erb (24.7ms)
135235
+  (0.5ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `activities` LIMIT 50 OFFSET 0) subquery_for_count 
135236
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
135237
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (1.3ms)
135238
+ Completed 200 OK in 50ms (Views: 37.3ms | ActiveRecord: 2.3ms)
135239
+ Started GET "/manage/whatever" for 127.0.0.1 at 2013-03-29 17:15:50 +0200
135240
+  (0.1ms) BEGIN
135241
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:50', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:15:50')
135242
+  (29.3ms) COMMIT
135243
+  (0.1ms) BEGIN
135244
+  (0.5ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-03-29 15:15:50' WHERE `users`.`id` = 1
135245
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:50', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:15:50')
135246
+  (26.3ms) COMMIT
135247
+ Processing by Sunrise::ManagerController#index as HTML
135248
+ Parameters: {"model_name"=>"whatever"}
135249
+ Error while loading 'SunriseWhatever': uninitialized constant SunriseWhatever
135250
+ Completed 404 Not Found in 9ms
135251
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-03-29 17:15:50 +0200
135252
+  (0.1ms) BEGIN
135253
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:50', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:15:50')
135254
+  (55.2ms) COMMIT
135255
+  (0.1ms) BEGIN
135256
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 3, `updated_at` = '2013-03-29 15:15:50' WHERE `users`.`id` = 1
135257
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:50', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:15:50')
135258
+  (26.3ms) COMMIT
135259
+ Processing by Sunrise::ManagerController#index as HTML
135260
+ Parameters: {"model_name"=>"structures"}
135261
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
135262
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
135263
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (2.2ms)
135264
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (6.0ms)
135265
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
135266
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
135267
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (3.5ms)
135268
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (4.1ms)
135269
+ Completed 200 OK in 24ms (Views: 19.9ms | ActiveRecord: 1.1ms)
135270
+ Started GET "/manage/users" for 127.0.0.1 at 2013-03-29 17:15:51 +0200
135271
+  (0.2ms) BEGIN
135272
+ SQL (0.5ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:51', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:15:51')
135273
+  (17.5ms) COMMIT
135274
+  (0.1ms) BEGIN
135275
+  (0.4ms) UPDATE `users` SET `current_sign_in_at` = '2013-03-29 15:15:51', `sign_in_count` = 4, `updated_at` = '2013-03-29 15:15:51' WHERE `users`.`id` = 1
135276
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:51', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:15:51')
135277
+  (26.0ms) COMMIT
135278
+ Processing by Sunrise::ManagerController#index as HTML
135279
+ Parameters: {"model_name"=>"users"}
135280
+ User Load (0.5ms) SELECT `users`.* FROM `users` LIMIT 25 OFFSET 0
135281
+ Avatar Load (0.6ms) SELECT `assets`.* FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`assetable_type` = 'User' AND `assets`.`assetable_id` IN (1) ORDER BY `assets`.sort_order
135282
+ Rendered sunrise/manager/users/thumbs/_record.html.erb (4.5ms)
135283
+  (0.4ms) SELECT COUNT(*) FROM `users` 
135284
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.1ms)
135285
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
135286
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
135287
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (31.9ms)
135288
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (48.0ms)
135289
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (1.8ms)
135290
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (1.6ms)
135291
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (1.4ms)
135292
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (2.3ms)
135293
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_export.html.erb (1.5ms)
135294
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (24.9ms)
135295
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (76.0ms)
135296
+ Completed 200 OK in 201ms (Views: 191.3ms | ActiveRecord: 1.5ms)
135297
+ Started GET "/manage/pages" for 127.0.0.1 at 2013-03-29 17:15:51 +0200
135298
+  (0.1ms) BEGIN
135299
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:51', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:15:51')
135300
+  (24.3ms) COMMIT
135301
+  (0.1ms) BEGIN
135302
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2013-03-29 15:15:51', `sign_in_count` = 5, `updated_at` = '2013-03-29 15:15:51' WHERE `users`.`id` = 1
135303
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:51', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:15:51')
135304
+  (26.2ms) COMMIT
135305
+ Processing by Sunrise::ManagerController#index as HTML
135306
+ Parameters: {"model_name"=>"pages"}
135307
+ Completed 404 Not Found in 2ms
135308
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-03-29 17:15:51 +0200
135309
+ Processing by Sunrise::ManagerController#index as HTML
135310
+ Parameters: {"model_name"=>"structures"}
135311
+ Completed 401 Unauthorized in 1ms
135312
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-03-29 17:15:51 +0200
135313
+ Processing by Devise::SessionsController#new as HTML
135314
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.3/app/views/devise/shared/_links.erb (1.0ms)
135315
+ Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms)
135316
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
135317
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
135318
+  (212.3ms) TRUNCATE TABLE `activities`;
135319
+  (251.9ms) TRUNCATE TABLE `assets`;
135320
+  (341.4ms) TRUNCATE TABLE `audits`;
135321
+  (258.2ms) TRUNCATE TABLE `meta_tags`;
135322
+  (155.4ms) TRUNCATE TABLE `page_parts`;
135323
+  (217.7ms) TRUNCATE TABLE `posts`;
135324
+  (247.4ms) TRUNCATE TABLE `settings`;
135325
+  (417.2ms) TRUNCATE TABLE `structures`;
135326
+  (404.2ms) TRUNCATE TABLE `users`;
135327
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
135328
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
135329
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
135330
+  (197.8ms) TRUNCATE TABLE `activities`;
135331
+  (577.2ms) TRUNCATE TABLE `assets`;
135332
+  (468.9ms) TRUNCATE TABLE `audits`;
135333
+  (481.6ms) TRUNCATE TABLE `meta_tags`;
135334
+  (334.4ms) TRUNCATE TABLE `page_parts`;
135335
+  (372.7ms) TRUNCATE TABLE `posts`;
135336
+  (318.2ms) TRUNCATE TABLE `settings`;
135337
+  (299.9ms) TRUNCATE TABLE `structures`;
135338
+  (479.6ms) TRUNCATE TABLE `users`;
135339
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
135340
+  (0.2ms) BEGIN
135341
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing38@example.com' LIMIT 1
135342
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:15:57', '2013-03-29 15:15:57', NULL, NULL, 'testing38@example.com', '86406d25d12f37ad2842ba654696f80eb03018812b572e7a2f52963055386a5e5126aa29695cd55455d4f2aff46fb439d573d1a41bab7d2da3bf8a64dcdb2bd8', 0, NULL, NULL, NULL, 'Admin', 'VymhqhyyrPyBc7HwLog7', NULL, NULL, NULL, 4, 0, NULL, '2013-03-29 15:15:57')
135343
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:57', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:15:57')
135344
+  (25.1ms) COMMIT
135345
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2013-03-29 17:15:57 +0200
135346
+  (0.1ms) BEGIN
135347
+ SQL (0.5ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:57', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:15:57')
135348
+  (50.6ms) COMMIT
135349
+  (0.1ms) BEGIN
135350
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-03-29 15:15:57', `current_sign_in_at` = '2013-03-29 15:15:57', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-03-29 15:15:57' WHERE `users`.`id` = 1
135351
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:57', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:15:57')
135352
+  (46.6ms) COMMIT
135353
+ Processing by Sunrise::ManagerController#new as HTML
135354
+ Parameters: {"model_name"=>"structures"}
135355
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
135356
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
135357
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (18.5ms)
135358
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (7.9ms)
135359
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (31.0ms)
135360
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.9ms)
135361
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.6ms)
135362
+ Completed 200 OK in 44ms (Views: 40.8ms | ActiveRecord: 0.5ms)
135363
+ Started POST "/manage/structures/new" for 127.0.0.1 at 2013-03-29 17:15:57 +0200
135364
+ Processing by Sunrise::ManagerController#create as HTML
135365
+ Parameters: {"utf8"=>"✓", "parent_id"=>"", "parent_type"=>"", "structure"=>{"title"=>"Good day", "redirect_url"=>"", "slug"=>"", "parent_id"=>"", "structure_type_id"=>"1", "position_type_id"=>"2", "is_visible"=>"1", "tag_title"=>"", "tag_keywords"=>"", "tag_description"=>""}, "commit"=>"Create Structure", "model_name"=>"structures"}
135366
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
135367
+  (0.1ms) BEGIN
135368
+ Structure Load (27.7ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
135369
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:15:58', 0, 1, 1, NULL, 2, '', 2, 'good-day', 1, 'Good day', '2013-03-29 15:15:58')
135370
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:15:58', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-03-29 15:15:58')
135371
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
135372
+ SQL (0.5ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
135373
+  (90.2ms) COMMIT
135374
+ Redirected to http://www.example.com/manage/structures
135375
+ Completed 302 Found in 442ms (ActiveRecord: 0.0ms)
135376
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-03-29 17:15:58 +0200
135377
+ Processing by Sunrise::ManagerController#index as HTML
135378
+ Parameters: {"model_name"=>"structures"}
135379
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
135380
+ Structure Load (0.7ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
135381
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (2.1ms)
135382
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.5ms)
135383
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
135384
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (3.8ms)
135385
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (4.5ms)
135386
+ Completed 200 OK in 26ms (Views: 18.2ms | ActiveRecord: 0.9ms)
135387
+ Structure Load (2.8ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`id` DESC LIMIT 1
135388
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2013-03-29 17:15:58 +0200
135389
+ Processing by Sunrise::ManagerController#new as HTML
135390
+ Parameters: {"model_name"=>"structures"}
135391
+ Completed 401 Unauthorized in 1ms
135392
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-03-29 17:15:58 +0200
135393
+ Processing by Devise::SessionsController#new as HTML
135394
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.3/app/views/devise/shared/_links.erb (1.2ms)
135395
+ Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.0ms)
135396
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
135397
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
135398
+  (2560.8ms) TRUNCATE TABLE `activities`;
135399
+  (1206.1ms) TRUNCATE TABLE `assets`;
135400
+  (401.6ms) TRUNCATE TABLE `audits`;
135401
+  (526.7ms) TRUNCATE TABLE `meta_tags`;
135402
+  (162.3ms) TRUNCATE TABLE `page_parts`;
135403
+  (508.8ms) TRUNCATE TABLE `posts`;
135404
+  (131.8ms) TRUNCATE TABLE `settings`;
135405
+  (342.2ms) TRUNCATE TABLE `structures`;
135406
+  (332.0ms) TRUNCATE TABLE `users`;
135407
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
135408
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
135409
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
135410
+  (317.5ms) TRUNCATE TABLE `activities`;
135411
+  (195.9ms) TRUNCATE TABLE `assets`;
135412
+  (329.6ms) TRUNCATE TABLE `audits`;
135413
+  (283.8ms) TRUNCATE TABLE `meta_tags`;
135414
+  (162.3ms) TRUNCATE TABLE `page_parts`;
135415
+  (272.6ms) TRUNCATE TABLE `posts`;
135416
+  (432.4ms) TRUNCATE TABLE `settings`;
135417
+  (466.8ms) TRUNCATE TABLE `structures`;
135418
+  (387.8ms) TRUNCATE TABLE `users`;
135419
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
135420
+  (0.1ms) BEGIN
135421
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing39@example.com' LIMIT 1
135422
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:16:07', '2013-03-29 15:16:07', NULL, NULL, 'testing39@example.com', '29115a68d16105cbd94076af30a970650b0f76517283f999a295bae438480269a4fe85da14a94d5fac95015bab78025c64ac180ebad3be06771c73b83558b47d', 0, NULL, NULL, NULL, 'Admin', 'kZpq9r7igHxty1TgEh3i', NULL, NULL, NULL, 4, 0, NULL, '2013-03-29 15:16:07')
135423
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:07', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:07')
135424
+  (17.9ms) COMMIT
135425
+  (0.1ms) BEGIN
135426
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
135427
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:16:07', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-03-29 15:16:07')
135428
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:07', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-03-29 15:16:07')
135429
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
135430
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
135431
+  (63.6ms) COMMIT
135432
+  (0.1ms) BEGIN
135433
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
135434
+ SQL (0.7ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:16:07', 0, 1, 3, 1, 2, NULL, 4, 'slug12', 1, 'Structure', '2013-03-29 15:16:07')
135435
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:07', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-03-29 15:16:07')
135436
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
135437
+ Structure Load (0.5ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
135438
+ SQL (0.5ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
135439
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
135440
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
135441
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
135442
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
135443
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
135444
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
135445
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
135446
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
135447
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
135448
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
135449
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
135450
+  (31.9ms) COMMIT
135451
+ Started GET "/manage/whatever/2/edit" for 127.0.0.1 at 2013-03-29 17:16:07 +0200
135452
+  (0.1ms) BEGIN
135453
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:07', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:07')
135454
+  (42.8ms) COMMIT
135455
+  (0.1ms) BEGIN
135456
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-03-29 15:16:07', `current_sign_in_at` = '2013-03-29 15:16:07', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-03-29 15:16:07' WHERE `users`.`id` = 1
135457
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:07', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:07')
135458
+  (25.5ms) COMMIT
135459
+ Processing by Sunrise::ManagerController#edit as HTML
135460
+ Parameters: {"model_name"=>"whatever", "id"=>"2"}
135461
+ Error while loading 'SunriseWhatever': uninitialized constant SunriseWhatever
135462
+ Completed 404 Not Found in 10ms
135463
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-03-29 17:16:07 +0200
135464
+  (0.2ms) BEGIN
135465
+ SQL (2.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:07', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:07')
135466
+  (47.4ms) COMMIT
135467
+  (0.2ms) BEGIN
135468
+  (0.5ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-03-29 15:16:07' WHERE `users`.`id` = 1
135469
+ SQL (2.2ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:07', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:07')
135470
+  (65.5ms) COMMIT
135471
+ Processing by Sunrise::ManagerController#edit as HTML
135472
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
135473
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
135474
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
135475
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
135476
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 4) ORDER BY `structures`.`lft`
135477
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (18.2ms)
135478
+ MetaTag Load (0.5ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
135479
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (8.3ms)
135480
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (30.4ms)
135481
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
135482
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
135483
+ Completed 200 OK in 43ms (Views: 37.2ms | ActiveRecord: 2.0ms)
135484
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-03-29 17:16:07 +0200
135485
+  (0.1ms) BEGIN
135486
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:07', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:07')
135487
+  (16.9ms) COMMIT
135488
+  (0.1ms) BEGIN
135489
+  (0.5ms) UPDATE `users` SET `sign_in_count` = 3, `updated_at` = '2013-03-29 15:16:07' WHERE `users`.`id` = 1
135490
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:07', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:07')
135491
+  (25.8ms) COMMIT
135492
+ Processing by Sunrise::ManagerController#edit as HTML
135493
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
135494
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
135495
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
135496
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
135497
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 4) ORDER BY `structures`.`lft`
135498
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (17.2ms)
135499
+ MetaTag Load (0.2ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
135500
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (7.9ms)
135501
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (29.0ms)
135502
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.9ms)
135503
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
135504
+ Completed 200 OK in 41ms (Views: 36.8ms | ActiveRecord: 0.6ms)
135505
+ Started GET "/manage/pages/2/edit" for 127.0.0.1 at 2013-03-29 17:16:07 +0200
135506
+  (0.1ms) BEGIN
135507
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:07', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:07')
135508
+  (16.9ms) COMMIT
135509
+  (0.1ms) BEGIN
135510
+  (0.5ms) UPDATE `users` SET `sign_in_count` = 4, `updated_at` = '2013-03-29 15:16:07' WHERE `users`.`id` = 1
135511
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:07', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:07')
135512
+  (25.9ms) COMMIT
135513
+ Processing by Sunrise::ManagerController#edit as HTML
135514
+ Parameters: {"model_name"=>"pages", "id"=>"2"}
135515
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
135516
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
135517
+ PagePart Load (0.6ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
135518
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (8.2ms)
135519
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (11.4ms)
135520
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
135521
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
135522
+ Completed 200 OK in 23ms (Views: 18.9ms | ActiveRecord: 0.8ms)
135523
+ Started GET "/manage/pages/2/edit" for 127.0.0.1 at 2013-03-29 17:16:08 +0200
135524
+  (0.1ms) BEGIN
135525
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:08', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:08')
135526
+  (26.3ms) COMMIT
135527
+  (0.1ms) BEGIN
135528
+  (0.4ms) UPDATE `users` SET `current_sign_in_at` = '2013-03-29 15:16:08', `sign_in_count` = 5, `updated_at` = '2013-03-29 15:16:08' WHERE `users`.`id` = 1
135529
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:08', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:08')
135530
+  (26.1ms) COMMIT
135531
+ Processing by Sunrise::ManagerController#edit as HTML
135532
+ Parameters: {"model_name"=>"pages", "id"=>"2"}
135533
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
135534
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
135535
+ PagePart Load (0.2ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
135536
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (8.6ms)
135537
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (12.0ms)
135538
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.6ms)
135539
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.6ms)
135540
+ Completed 200 OK in 25ms (Views: 21.4ms | ActiveRecord: 0.4ms)
135541
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-03-29 17:16:08 +0200
135542
+ Processing by Sunrise::ManagerController#edit as HTML
135543
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
135544
+ Completed 401 Unauthorized in 1ms
135545
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-03-29 17:16:08 +0200
135546
+ Processing by Devise::SessionsController#new as HTML
135547
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.3/app/views/devise/shared/_links.erb (1.2ms)
135548
+ Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.0ms)
135549
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
135550
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
135551
+  (357.0ms) TRUNCATE TABLE `activities`;
135552
+  (185.6ms) TRUNCATE TABLE `assets`;
135553
+  (264.0ms) TRUNCATE TABLE `audits`;
135554
+  (322.3ms) TRUNCATE TABLE `meta_tags`;
135555
+  (273.0ms) TRUNCATE TABLE `page_parts`;
135556
+  (161.5ms) TRUNCATE TABLE `posts`;
135557
+  (214.6ms) TRUNCATE TABLE `settings`;
135558
+  (375.7ms) TRUNCATE TABLE `structures`;
135559
+  (342.5ms) TRUNCATE TABLE `users`;
135560
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
135561
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
135562
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
135563
+  (228.5ms) TRUNCATE TABLE `activities`;
135564
+  (273.6ms) TRUNCATE TABLE `assets`;
135565
+  (363.6ms) TRUNCATE TABLE `audits`;
135566
+  (272.8ms) TRUNCATE TABLE `meta_tags`;
135567
+  (162.1ms) TRUNCATE TABLE `page_parts`;
135568
+  (274.6ms) TRUNCATE TABLE `posts`;
135569
+  (284.5ms) TRUNCATE TABLE `settings`;
135570
+  (412.4ms) TRUNCATE TABLE `structures`;
135571
+  (1625.3ms) TRUNCATE TABLE `users`;
135572
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
135573
+  (0.2ms) BEGIN
135574
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing40@example.com' LIMIT 1
135575
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:16:14', '2013-03-29 15:16:14', NULL, NULL, 'testing40@example.com', '3e77a55579800a80a7d15f3165024bde583d37d07297a68f5aaa613d8175d674caa1b562fc5469a10e9770095fb825673bff22ac84013f6313a302533d219fed', 0, NULL, NULL, NULL, 'Admin', 'KtzMNNWpz6L9eF2RTm49', NULL, NULL, NULL, 4, 0, NULL, '2013-03-29 15:16:14')
135576
+ SQL (0.9ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:14', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:14')
135577
+  (66.0ms) COMMIT
135578
+  (0.2ms) BEGIN
135579
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
135580
+ SQL (0.9ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:16:14', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-03-29 15:16:14')
135581
+ SQL (1.2ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:14', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-03-29 15:16:14')
135582
+ Structure Load (1.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
135583
+ SQL (3.1ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
135584
+  (221.9ms) COMMIT
135585
+  (0.1ms) BEGIN
135586
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
135587
+ SQL (0.6ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:16:14', 0, 1, 3, 1, 2, NULL, 4, 'slug13', 1, 'Structure', '2013-03-29 15:16:14')
135588
+ SQL (3.5ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:14', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-03-29 15:16:14')
135589
+ Structure Load (1.0ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
135590
+ Structure Load (0.6ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
135591
+ SQL (0.8ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
135592
+ Structure Load (1.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
135593
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
135594
+  (2.1ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
135595
+ SQL (0.5ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
135596
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
135597
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
135598
+ Structure Load (0.5ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
135599
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
135600
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
135601
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
135602
+  (0.7ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
135603
+  (250.0ms) COMMIT
135604
+  (0.2ms) BEGIN
135605
+ SQL (75.1ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-03-29 15:16:15', 1, 2, 'Default title', '2013-03-29 15:16:15')
135606
+ SQL (0.5ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:15', 'post.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Post', '2013-03-29 15:16:15')
135607
+  (275.9ms) COMMIT
135608
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-03-29 17:16:15 +0200
135609
+  (0.4ms) BEGIN
135610
+ SQL (0.6ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:15', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:15')
135611
+  (55.2ms) COMMIT
135612
+  (0.2ms) BEGIN
135613
+  (0.6ms) UPDATE `users` SET `last_sign_in_at` = '2013-03-29 15:16:15', `current_sign_in_at` = '2013-03-29 15:16:15', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-03-29 15:16:15' WHERE `users`.`id` = 1
135614
+ SQL (1.1ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:15', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:15')
135615
+  (140.4ms) COMMIT
135616
+ Processing by Sunrise::ManagerController#index as HTML
135617
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
135618
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
135619
+ Post Load (0.7ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
135620
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_controls.html.erb (0.1ms)
135621
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (25.3ms)
135622
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
135623
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (6.4ms)
135624
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
135625
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
135626
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (7.4ms)
135627
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (21.7ms)
135628
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.9ms)
135629
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (1.0ms)
135630
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.9ms)
135631
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (1.2ms)
135632
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (6.6ms)
135633
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (29.0ms)
135634
+ Completed 200 OK in 99ms (Views: 83.7ms | ActiveRecord: 1.7ms)
135635
+ Started DELETE "/manage/posts/1/delete?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-03-29 17:16:15 +0200
135636
+ Processing by Sunrise::ManagerController#destroy as HTML
135637
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
135638
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
135639
+ Post Load (0.4ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
135640
+  (0.1ms) BEGIN
135641
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:15', 'post.destroy', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Post', '2013-03-29 15:16:15')
135642
+ SQL (0.4ms) DELETE FROM `posts` WHERE `posts`.`id` = 1
135643
+  (151.8ms) COMMIT
135644
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
135645
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
135646
+ Completed 302 Found in 192ms (ActiveRecord: 0.0ms)
135647
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-03-29 17:16:16 +0200
135648
+ Processing by Sunrise::ManagerController#index as HTML
135649
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
135650
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
135651
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
135652
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
135653
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (0.0ms)
135654
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
135655
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (5.4ms)
135656
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
135657
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
135658
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (6.1ms)
135659
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (13.4ms)
135660
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.8ms)
135661
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.8ms)
135662
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.8ms)
135663
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (1.5ms)
135664
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (6.3ms)
135665
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (20.4ms)
135666
+ Completed 200 OK in 47ms (Views: 36.6ms | ActiveRecord: 1.4ms)
135667
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
135668
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-03-29 17:16:16 +0200
135669
+ Processing by Sunrise::ManagerController#index as HTML
135670
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
135671
+ Completed 401 Unauthorized in 1ms
135672
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-03-29 17:16:16 +0200
135673
+ Processing by Devise::SessionsController#new as HTML
135674
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.3/app/views/devise/shared/_links.erb (1.1ms)
135675
+ Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 0.0ms)
135676
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
135677
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
135678
+  (380.2ms) TRUNCATE TABLE `activities`;
135679
+  (253.8ms) TRUNCATE TABLE `assets`;
135680
+  (330.0ms) TRUNCATE TABLE `audits`;
135681
+  (274.5ms) TRUNCATE TABLE `meta_tags`;
135682
+  (292.2ms) TRUNCATE TABLE `page_parts`;
135683
+  (167.3ms) TRUNCATE TABLE `posts`;
135684
+  (240.2ms) TRUNCATE TABLE `settings`;
135685
+  (386.5ms) TRUNCATE TABLE `structures`;
135686
+  (409.3ms) TRUNCATE TABLE `users`;
135687
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
135688
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
135689
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
135690
+  (228.3ms) TRUNCATE TABLE `activities`;
135691
+  (294.4ms) TRUNCATE TABLE `assets`;
135692
+  (285.6ms) TRUNCATE TABLE `audits`;
135693
+  (264.5ms) TRUNCATE TABLE `meta_tags`;
135694
+  (148.7ms) TRUNCATE TABLE `page_parts`;
135695
+  (249.0ms) TRUNCATE TABLE `posts`;
135696
+  (116.9ms) TRUNCATE TABLE `settings`;
135697
+  (384.9ms) TRUNCATE TABLE `structures`;
135698
+  (387.8ms) TRUNCATE TABLE `users`;
135699
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
135700
+  (0.1ms) BEGIN
135701
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing41@example.com' LIMIT 1
135702
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:16:21', '2013-03-29 15:16:21', NULL, NULL, 'testing41@example.com', '6a80579f4ab76270f9873f68244b34c1b065d61f3e857277a25d1e7f5bc618b9bc93459ca73ef8548aecfe08a408105dee56d6cadff99ba5df9a0ad945f0ed80', 0, NULL, NULL, NULL, 'Admin', 'sic2CycigjDUDsyY4Sy2', NULL, NULL, NULL, 4, 0, NULL, '2013-03-29 15:16:21')
135703
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:21', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:21')
135704
+  (31.9ms) COMMIT
135705
+  (0.1ms) BEGIN
135706
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
135707
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:16:21', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-03-29 15:16:21')
135708
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:21', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-03-29 15:16:21')
135709
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
135710
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
135711
+  (31.1ms) COMMIT
135712
+  (0.1ms) BEGIN
135713
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
135714
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:16:21', 0, 1, 3, 1, 2, NULL, 4, 'slug14', 1, 'Structure', '2013-03-29 15:16:21')
135715
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:21', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-03-29 15:16:21')
135716
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
135717
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
135718
+ SQL (0.4ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
135719
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
135720
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
135721
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
135722
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
135723
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
135724
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
135725
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
135726
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
135727
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
135728
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
135729
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
135730
+  (25.5ms) COMMIT
135731
+  (0.1ms) BEGIN
135732
+ SQL (0.3ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-03-29 15:16:21', 1, 2, 'Default title', '2013-03-29 15:16:21')
135733
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:21', 'post.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Post', '2013-03-29 15:16:21')
135734
+  (36.1ms) COMMIT
135735
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-03-29 17:16:21 +0200
135736
+  (0.1ms) BEGIN
135737
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:21', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:21')
135738
+  (34.0ms) COMMIT
135739
+  (0.1ms) BEGIN
135740
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2013-03-29 15:16:21', `current_sign_in_at` = '2013-03-29 15:16:21', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-03-29 15:16:21' WHERE `users`.`id` = 1
135741
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:21', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:21')
135742
+  (37.3ms) COMMIT
135743
+ Processing by Sunrise::ManagerController#edit as HTML
135744
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
135745
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
135746
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
135747
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (7.6ms)
135748
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (11.5ms)
135749
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.8ms)
135750
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.7ms)
135751
+ Completed 200 OK in 30ms (Views: 22.2ms | ActiveRecord: 0.5ms)
135752
+ Started PUT "/manage/posts/1/edit" for 127.0.0.1 at 2013-03-29 17:16:21 +0200
135753
+ Processing by Sunrise::ManagerController#update as HTML
135754
+ Parameters: {"utf8"=>"✓", "parent_id"=>"2", "parent_type"=>"Structure", "post"=>{"title"=>"Title updated", "content"=>"Tra la la", "is_visible"=>"0"}, "commit"=>"Update Post", "model_name"=>"posts", "id"=>"1"}
135755
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
135756
+ Post Load (0.2ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
135757
+  (0.1ms) BEGIN
135758
+  (0.5ms) UPDATE `posts` SET `title` = 'Title updated', `content` = 'Tra la la', `is_visible` = 0, `updated_at` = '2013-03-29 15:16:21' WHERE `posts`.`id` = 1
135759
+ SQL (0.5ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:21', 'post.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Post', '2013-03-29 15:16:21')
135760
+  (15.3ms) COMMIT
135761
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
135762
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
135763
+ Completed 302 Found in 35ms (ActiveRecord: 0.0ms)
135764
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-03-29 17:16:21 +0200
135765
+ Processing by Sunrise::ManagerController#index as HTML
135766
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
135767
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
135768
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
135769
+ Post Load (0.7ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
135770
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_controls.html.erb (0.1ms)
135771
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (7.5ms)
135772
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
135773
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.1ms)
135774
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
135775
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
135776
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (7.7ms)
135777
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (13.0ms)
135778
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.7ms)
135779
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.7ms)
135780
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.9ms)
135781
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (113.3ms)
135782
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (119.3ms)
135783
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (134.1ms)
135784
+ Completed 200 OK in 166ms (Views: 156.5ms | ActiveRecord: 1.6ms)
135785
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
135786
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
135787
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-03-29 17:16:21 +0200
135788
+  (0.1ms) BEGIN
135789
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:21', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:21')
135790
+  (15.6ms) COMMIT
135791
+  (0.1ms) BEGIN
135792
+  (0.5ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-03-29 15:16:21' WHERE `users`.`id` = 1
135793
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:21', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:21')
135794
+  (25.6ms) COMMIT
135795
+ Processing by Sunrise::ManagerController#edit as HTML
135796
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
135797
+ Post Load (0.2ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
135798
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
135799
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.7ms)
135800
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (10.0ms)
135801
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
135802
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
135803
+ Completed 200 OK in 22ms (Views: 18.4ms | ActiveRecord: 0.2ms)
135804
+ Started PUT "/manage/posts/1/edit" for 127.0.0.1 at 2013-03-29 17:16:21 +0200
135805
+ Processing by Sunrise::ManagerController#update as HTML
135806
+ Parameters: {"utf8"=>"✓", "parent_id"=>"2", "parent_type"=>"Structure", "post"=>{"title"=>"Title updated", "content"=>"Tra la la", "is_visible"=>"0"}, "commit"=>"Update Post", "model_name"=>"posts", "id"=>"1"}
135807
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
135808
+ Post Load (0.1ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
135809
+  (0.1ms) BEGIN
135810
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:21', 'post.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Post', '2013-03-29 15:16:21')
135811
+  (28.2ms) COMMIT
135812
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
135813
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
135814
+ Completed 302 Found in 43ms (ActiveRecord: 0.0ms)
135815
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-03-29 17:16:22 +0200
135816
+ Processing by Sunrise::ManagerController#index as HTML
135817
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
135818
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
135819
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
135820
+ Post Load (0.2ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
135821
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_controls.html.erb (0.1ms)
135822
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (6.4ms)
135823
+  (0.2ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
135824
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.3ms)
135825
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
135826
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
135827
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (6.9ms)
135828
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (13.1ms)
135829
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.7ms)
135830
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.7ms)
135831
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.8ms)
135832
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (1.3ms)
135833
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (5.6ms)
135834
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (19.4ms)
135835
+ Completed 200 OK in 46ms (Views: 39.3ms | ActiveRecord: 0.7ms)
135836
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-03-29 17:16:22 +0200
135837
+ Processing by Sunrise::ManagerController#edit as HTML
135838
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
135839
+ Completed 401 Unauthorized in 1ms
135840
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-03-29 17:16:22 +0200
135841
+ Processing by Devise::SessionsController#new as HTML
135842
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.3/app/views/devise/shared/_links.erb (1.6ms)
135843
+ Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 0.0ms)
135844
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
135845
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
135846
+  (186.3ms) TRUNCATE TABLE `activities`;
135847
+  (288.1ms) TRUNCATE TABLE `assets`;
135848
+  (431.0ms) TRUNCATE TABLE `audits`;
135849
+  (420.9ms) TRUNCATE TABLE `meta_tags`;
135850
+  (387.3ms) TRUNCATE TABLE `page_parts`;
135851
+  (383.5ms) TRUNCATE TABLE `posts`;
135852
+  (116.9ms) TRUNCATE TABLE `settings`;
135853
+  (297.7ms) TRUNCATE TABLE `structures`;
135854
+  (419.4ms) TRUNCATE TABLE `users`;
135855
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
135856
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
135857
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
135858
+  (305.1ms) TRUNCATE TABLE `activities`;
135859
+  (207.5ms) TRUNCATE TABLE `assets`;
135860
+  (285.0ms) TRUNCATE TABLE `audits`;
135861
+  (527.0ms) TRUNCATE TABLE `meta_tags`;
135862
+  (983.3ms) TRUNCATE TABLE `page_parts`;
135863
+  (447.0ms) TRUNCATE TABLE `posts`;
135864
+  (116.8ms) TRUNCATE TABLE `settings`;
135865
+  (319.5ms) TRUNCATE TABLE `structures`;
135866
+  (2121.4ms) TRUNCATE TABLE `users`;
135867
+  (1.3ms) SET FOREIGN_KEY_CHECKS = 1
135868
+  (0.1ms) BEGIN
135869
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing42@example.com' LIMIT 1
135870
+ SQL (8.6ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:16:30', '2013-03-29 15:16:30', NULL, NULL, 'testing42@example.com', '3da14fd6c6d01bc2419916663653519fbf653aec916e795bda63efacd6f3a9b682f7b53402f56cfa51c9230c2dce205c36e8c5352969076d542a6cb12f000c5b', 0, NULL, NULL, NULL, 'Admin', 'ZeCxbJpohj3rLKDzbEA2', NULL, NULL, NULL, 4, 0, NULL, '2013-03-29 15:16:30')
135871
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:30', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:30')
135872
+  (347.0ms) COMMIT
135873
+  (0.1ms) BEGIN
135874
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
135875
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:16:30', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-03-29 15:16:30')
135876
+ SQL (3.6ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:30', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-03-29 15:16:30')
135877
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
135878
+ SQL (3.2ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
135879
+  (142.5ms) COMMIT
135880
+  (0.1ms) BEGIN
135881
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
135882
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:16:30', 0, 1, 3, 1, 2, NULL, 4, 'slug15', 1, 'Structure', '2013-03-29 15:16:30')
135883
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:30', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-03-29 15:16:30')
135884
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
135885
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
135886
+ SQL (0.5ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
135887
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
135888
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
135889
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
135890
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
135891
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
135892
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
135893
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
135894
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
135895
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
135896
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
135897
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
135898
+  (52.3ms) COMMIT
135899
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-03-29 17:16:30 +0200
135900
+  (0.2ms) BEGIN
135901
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:30', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:30')
135902
+  (220.9ms) COMMIT
135903
+  (0.1ms) BEGIN
135904
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-03-29 15:16:31', `current_sign_in_at` = '2013-03-29 15:16:31', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-03-29 15:16:31' WHERE `users`.`id` = 1
135905
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:31', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:31')
135906
+  (33.4ms) COMMIT
135907
+ Processing by Sunrise::ManagerController#new as HTML
135908
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
135909
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
135910
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
135911
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (7.3ms)
135912
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (10.9ms)
135913
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
135914
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.5ms)
135915
+ Completed 200 OK in 27ms (Views: 19.6ms | ActiveRecord: 0.5ms)
135916
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-03-29 17:16:31 +0200
135917
+  (0.1ms) BEGIN
135918
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:31', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:31')
135919
+  (32.4ms) COMMIT
135920
+  (0.1ms) BEGIN
135921
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-03-29 15:16:31' WHERE `users`.`id` = 1
135922
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:31', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:31')
135923
+  (37.1ms) COMMIT
135924
+ Processing by Sunrise::ManagerController#new as HTML
135925
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
135926
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
135927
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
135928
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.7ms)
135929
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.8ms)
135930
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.2ms)
135931
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.5ms)
135932
+ Completed 200 OK in 23ms (Views: 18.3ms | ActiveRecord: 0.2ms)
135933
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-03-29 17:16:31 +0200
135934
+  (0.1ms) BEGIN
135935
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:31', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:31')
135936
+  (36.8ms) COMMIT
135937
+  (0.2ms) BEGIN
135938
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 3, `updated_at` = '2013-03-29 15:16:31' WHERE `users`.`id` = 1
135939
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:31', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:31')
135940
+  (35.6ms) COMMIT
135941
+ Processing by Sunrise::ManagerController#new as HTML
135942
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
135943
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
135944
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
135945
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.9ms)
135946
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (10.3ms)
135947
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.5ms)
135948
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.6ms)
135949
+ Completed 200 OK in 24ms (Views: 19.6ms | ActiveRecord: 0.2ms)
135950
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
135951
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
135952
+  (214.7ms) TRUNCATE TABLE `activities`;
135953
+  (296.2ms) TRUNCATE TABLE `assets`;
135954
+  (298.1ms) TRUNCATE TABLE `audits`;
135955
+  (331.6ms) TRUNCATE TABLE `meta_tags`;
135956
+  (351.9ms) TRUNCATE TABLE `page_parts`;
135957
+  (162.1ms) TRUNCATE TABLE `posts`;
135958
+  (250.0ms) TRUNCATE TABLE `settings`;
135959
+  (286.6ms) TRUNCATE TABLE `structures`;
135960
+  (411.0ms) TRUNCATE TABLE `users`;
135961
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
135962
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
135963
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
135964
+  (638.9ms) TRUNCATE TABLE `activities`;
135965
+  (316.9ms) TRUNCATE TABLE `assets`;
135966
+  (306.7ms) TRUNCATE TABLE `audits`;
135967
+  (195.7ms) TRUNCATE TABLE `meta_tags`;
135968
+  (294.1ms) TRUNCATE TABLE `page_parts`;
135969
+  (295.3ms) TRUNCATE TABLE `posts`;
135970
+  (306.7ms) TRUNCATE TABLE `settings`;
135971
+  (386.9ms) TRUNCATE TABLE `structures`;
135972
+  (355.1ms) TRUNCATE TABLE `users`;
135973
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
135974
+  (0.2ms) BEGIN
135975
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing43@example.com' LIMIT 1
135976
+ SQL (0.6ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:16:37', '2013-03-29 15:16:37', NULL, NULL, 'testing43@example.com', '0beac3d27307ba84c5d3a286e05615c184e044d2a6b5926415d519015243fda13e28de01c5e30517517e24911297edbbd55a6bd3405aaaaff07f6dc32e8f8727', 0, NULL, NULL, NULL, 'Admin', 'od3YLzcsxPcUqbqxyiFh', NULL, NULL, NULL, 4, 0, NULL, '2013-03-29 15:16:37')
135977
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:37', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:37')
135978
+  (154.4ms) COMMIT
135979
+  (0.1ms) BEGIN
135980
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
135981
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:16:37', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-03-29 15:16:37')
135982
+ SQL (0.5ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:37', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-03-29 15:16:37')
135983
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
135984
+ SQL (0.5ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
135985
+  (30.1ms) COMMIT
135986
+  (0.2ms) BEGIN
135987
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
135988
+ SQL (0.5ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:16:37', 0, 1, 3, 1, 2, NULL, 4, 'slug16', 1, 'Structure', '2013-03-29 15:16:37')
135989
+ SQL (3.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:37', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-03-29 15:16:37')
135990
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
135991
+ Structure Load (0.5ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
135992
+ SQL (0.6ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
135993
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
135994
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
135995
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
135996
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
135997
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
135998
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
135999
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
136000
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
136001
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
136002
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
136003
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
136004
+  (55.7ms) COMMIT
136005
+  (0.1ms) BEGIN
136006
+ SQL (38.7ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-03-29 15:16:37', 1, 2, 'Default title', '2013-03-29 15:16:37')
136007
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:37', 'post.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Post', '2013-03-29 15:16:37')
136008
+  (40.8ms) COMMIT
136009
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-03-29 17:16:37 +0200
136010
+  (0.1ms) BEGIN
136011
+ SQL (0.5ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:37', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:37')
136012
+  (33.7ms) COMMIT
136013
+  (0.2ms) BEGIN
136014
+  (0.8ms) UPDATE `users` SET `last_sign_in_at` = '2013-03-29 15:16:37', `current_sign_in_at` = '2013-03-29 15:16:37', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-03-29 15:16:37' WHERE `users`.`id` = 1
136015
+ SQL (5.0ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:37', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:37')
136016
+  (56.0ms) COMMIT
136017
+ Processing by Sunrise::ManagerController#index as HTML
136018
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
136019
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
136020
+ Post Load (0.7ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
136021
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_controls.html.erb (0.1ms)
136022
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (6.6ms)
136023
+  (1.3ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
136024
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.3ms)
136025
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
136026
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
136027
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (6.8ms)
136028
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (12.1ms)
136029
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.8ms)
136030
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.7ms)
136031
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.7ms)
136032
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (1.4ms)
136033
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (6.7ms)
136034
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (19.6ms)
136035
+ Completed 200 OK in 48ms (Views: 40.0ms | ActiveRecord: 2.5ms)
136036
+  (0.1ms) BEGIN
136037
+ SQL (0.3ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-03-29 15:16:37', 1, 2, 'Good day', '2013-03-29 15:16:37')
136038
+ SQL (0.5ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:37', 'post.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Post', '2013-03-29 15:16:37')
136039
+  (18.4ms) COMMIT
136040
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-03-29 17:16:37 +0200
136041
+  (0.1ms) BEGIN
136042
+ SQL (0.5ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:37', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:37')
136043
+  (34.3ms) COMMIT
136044
+  (0.1ms) BEGIN
136045
+  (0.5ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-03-29 15:16:37' WHERE `users`.`id` = 1
136046
+ SQL (0.6ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:37', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:37')
136047
+  (36.2ms) COMMIT
136048
+ Processing by Sunrise::ManagerController#index as HTML
136049
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
136050
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
136051
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
136052
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_controls.html.erb (0.1ms)
136053
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_controls.html.erb (0.1ms)
136054
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (11.8ms)
136055
+  (0.6ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
136056
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.5ms)
136057
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
136058
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
136059
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.9ms)
136060
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (11.8ms)
136061
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.8ms)
136062
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.9ms)
136063
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.8ms)
136064
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (1.3ms)
136065
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (6.0ms)
136066
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (18.5ms)
136067
+ Completed 200 OK in 52ms (Views: 45.0ms | ActiveRecord: 1.3ms)
136068
+ Started GET "/manage/posts?utf8=%E2%9C%93&parent_id=2&parent_type=Structure&search[title]=Good+day&search[structure_id]=&commit=Search" for 127.0.0.1 at 2013-03-29 17:16:38 +0200
136069
+ Processing by Sunrise::ManagerController#index as HTML
136070
+ Parameters: {"utf8"=>"✓", "parent_id"=>"2", "parent_type"=>"Structure", "search"=>{"title"=>"Good day", "structure_id"=>""}, "commit"=>"Search", "model_name"=>"posts"}
136071
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
136072
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
136073
+ Post Load (0.6ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`title` = 'Good day' AND `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
136074
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_controls.html.erb (0.1ms)
136075
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (6.0ms)
136076
+  (0.7ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`title` = 'Good day' AND `posts`.`structure_id` = 2
136077
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (5.0ms)
136078
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
136079
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
136080
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.7ms)
136081
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (11.4ms)
136082
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.7ms)
136083
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.7ms)
136084
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.8ms)
136085
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (1.3ms)
136086
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (5.6ms)
136087
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (17.7ms)
136088
+ Completed 200 OK in 51ms (Views: 40.3ms | ActiveRecord: 2.1ms)
136089
+ Started GET "/manage/posts?parent_id=1&parent_type=Structure" for 127.0.0.1 at 2013-03-29 17:16:38 +0200
136090
+  (0.1ms) BEGIN
136091
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:38', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:38')
136092
+  (21.2ms) COMMIT
136093
+  (0.1ms) BEGIN
136094
+  (0.5ms) UPDATE `users` SET `current_sign_in_at` = '2013-03-29 15:16:38', `sign_in_count` = 3, `updated_at` = '2013-03-29 15:16:38' WHERE `users`.`id` = 1
136095
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:38', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:38')
136096
+  (36.6ms) COMMIT
136097
+ Processing by Sunrise::ManagerController#index as HTML
136098
+ Parameters: {"parent_id"=>"1", "parent_type"=>"Structure", "model_name"=>"posts"}
136099
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
136100
+ Post Load (0.7ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 1 LIMIT 25 OFFSET 0
136101
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (0.0ms)
136102
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 1
136103
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.8ms)
136104
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
136105
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
136106
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (6.0ms)
136107
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (11.5ms)
136108
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.8ms)
136109
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.7ms)
136110
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.8ms)
136111
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (1.1ms)
136112
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (5.5ms)
136113
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (17.6ms)
136114
+ Completed 200 OK in 40ms (Views: 32.3ms | ActiveRecord: 1.7ms)
136115
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
136116
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
136117
+  (214.6ms) TRUNCATE TABLE `activities`;
136118
+  (262.6ms) TRUNCATE TABLE `assets`;
136119
+  (307.9ms) TRUNCATE TABLE `audits`;
136120
+  (252.2ms) TRUNCATE TABLE `meta_tags`;
136121
+  (207.9ms) TRUNCATE TABLE `page_parts`;
136122
+  (204.6ms) TRUNCATE TABLE `posts`;
136123
+  (298.8ms) TRUNCATE TABLE `settings`;
136124
+  (204.7ms) TRUNCATE TABLE `structures`;
136125
+  (538.3ms) TRUNCATE TABLE `users`;
136126
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
136127
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
136128
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
136129
+  (179.5ms) TRUNCATE TABLE `activities`;
136130
+  (285.7ms) TRUNCATE TABLE `assets`;
136131
+  (1055.8ms) TRUNCATE TABLE `audits`;
136132
+  (759.3ms) TRUNCATE TABLE `meta_tags`;
136133
+  (293.4ms) TRUNCATE TABLE `page_parts`;
136134
+  (249.7ms) TRUNCATE TABLE `posts`;
136135
+  (138.9ms) TRUNCATE TABLE `settings`;
136136
+  (580.4ms) TRUNCATE TABLE `structures`;
136137
+  (547.3ms) TRUNCATE TABLE `users`;
136138
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
136139
+  (0.1ms) BEGIN
136140
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing44@example.com' LIMIT 1
136141
+ SQL (12.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:16:44', '2013-03-29 15:16:44', NULL, NULL, 'testing44@example.com', '16e0999a249bd6549c234e459f97cb116c4a25453d0166e24b3367b0f51c2b70a9c196303474e63e1251f67dd839739090675307e3d57ad1a72225a07dd5d6ac', 0, NULL, NULL, NULL, 'Admin', 'Bzd6k6q7ZFsG28ZG2Hqz', NULL, NULL, NULL, 4, 0, NULL, '2013-03-29 15:16:44')
136142
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:44', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:44')
136143
+  (167.1ms) COMMIT
136144
+  (0.1ms) BEGIN
136145
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
136146
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:16:44', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-03-29 15:16:44')
136147
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:44', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-03-29 15:16:44')
136148
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
136149
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
136150
+  (55.9ms) COMMIT
136151
+  (0.1ms) BEGIN
136152
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
136153
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:16:45', 0, 1, 3, 1, 2, NULL, 4, 'slug17', 1, 'Structure', '2013-03-29 15:16:45')
136154
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:45', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-03-29 15:16:45')
136155
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
136156
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
136157
+ SQL (0.5ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
136158
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
136159
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
136160
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
136161
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
136162
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
136163
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
136164
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
136165
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
136166
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
136167
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
136168
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
136169
+  (54.3ms) COMMIT
136170
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-03-29 17:16:45 +0200
136171
+  (0.1ms) BEGIN
136172
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:45', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:45')
136173
+  (177.9ms) COMMIT
136174
+  (0.1ms) BEGIN
136175
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-03-29 15:16:45', `current_sign_in_at` = '2013-03-29 15:16:45', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-03-29 15:16:45' WHERE `users`.`id` = 1
136176
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:45', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:45')
136177
+  (36.9ms) COMMIT
136178
+ Processing by Sunrise::ManagerController#new as HTML
136179
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
136180
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
136181
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
136182
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.6ms)
136183
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.7ms)
136184
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
136185
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.5ms)
136186
+ Completed 200 OK in 23ms (Views: 18.1ms | ActiveRecord: 0.5ms)
136187
+ Started POST "/manage/posts/new" for 127.0.0.1 at 2013-03-29 17:16:45 +0200
136188
+ Processing by Sunrise::ManagerController#create as HTML
136189
+ Parameters: {"utf8"=>"✓", "parent_id"=>"2", "parent_type"=>"Structure", "post"=>{"title"=>"Good title", "content"=>"Some long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long text", "is_visible"=>"1"}, "commit"=>"Create Post", "model_name"=>"posts"}
136190
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
136191
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
136192
+  (0.1ms) BEGIN
136193
+ SQL (0.4ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long text', '2013-03-29 15:16:45', 1, 2, 'Good title', '2013-03-29 15:16:45')
136194
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:45', 'post.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Post', '2013-03-29 15:16:45')
136195
+  (15.7ms) COMMIT
136196
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
136197
+ Completed 302 Found in 33ms (ActiveRecord: 0.0ms)
136198
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-03-29 17:16:45 +0200
136199
+ Processing by Sunrise::ManagerController#index as HTML
136200
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
136201
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
136202
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
136203
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
136204
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_controls.html.erb (0.1ms)
136205
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (5.7ms)
136206
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
136207
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.2ms)
136208
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
136209
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
136210
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.7ms)
136211
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.7ms)
136212
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.7ms)
136213
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.7ms)
136214
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.7ms)
136215
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (1.1ms)
136216
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (5.0ms)
136217
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (16.4ms)
136218
+ Completed 200 OK in 43ms (Views: 35.2ms | ActiveRecord: 1.4ms)
136219
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` ORDER BY `posts`.`id` DESC LIMIT 1
136220
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
136221
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-03-29 17:16:45 +0200
136222
+  (0.1ms) BEGIN
136223
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:45', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:45')
136224
+  (21.0ms) COMMIT
136225
+  (0.1ms) BEGIN
136226
+  (0.5ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-03-29 15:16:45' WHERE `users`.`id` = 1
136227
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:45', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:45')
136228
+  (37.1ms) COMMIT
136229
+ Processing by Sunrise::ManagerController#new as HTML
136230
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
136231
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
136232
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
136233
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.5ms)
136234
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.7ms)
136235
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.6ms)
136236
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.5ms)
136237
+ Completed 200 OK in 24ms (Views: 19.8ms | ActiveRecord: 0.2ms)
136238
+ Started POST "/manage/posts/new" for 127.0.0.1 at 2013-03-29 17:16:45 +0200
136239
+ Processing by Sunrise::ManagerController#create as HTML
136240
+ Parameters: {"utf8"=>"✓", "parent_id"=>"2", "parent_type"=>"Structure", "post"=>{"title"=>"Good title", "content"=>"Some long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long text", "is_visible"=>"1"}, "commit"=>"Create Post", "model_name"=>"posts"}
136241
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
136242
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
136243
+  (0.1ms) BEGIN
136244
+ SQL (0.5ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long text', '2013-03-29 15:16:45', 1, 2, 'Good title', '2013-03-29 15:16:45')
136245
+ SQL (0.5ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:45', 'post.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Post', '2013-03-29 15:16:45')
136246
+  (21.2ms) COMMIT
136247
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
136248
+ Completed 302 Found in 42ms (ActiveRecord: 0.0ms)
136249
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-03-29 17:16:45 +0200
136250
+ Processing by Sunrise::ManagerController#index as HTML
136251
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
136252
+ User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
136253
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
136254
+ Post Load (0.6ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
136255
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_controls.html.erb (0.1ms)
136256
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_controls.html.erb (0.1ms)
136257
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (13.2ms)
136258
+  (0.6ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
136259
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (5.1ms)
136260
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
136261
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
136262
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.9ms)
136263
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (11.2ms)
136264
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.7ms)
136265
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.7ms)
136266
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.8ms)
136267
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (1.3ms)
136268
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (5.4ms)
136269
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (17.3ms)
136270
+ Completed 200 OK in 56ms (Views: 46.6ms | ActiveRecord: 1.6ms)
136271
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` ORDER BY `posts`.`id` DESC LIMIT 1
136272
+ Started GET "/manage/posts/new" for 127.0.0.1 at 2013-03-29 17:16:45 +0200
136273
+ Processing by Sunrise::ManagerController#new as HTML
136274
+ Parameters: {"model_name"=>"posts"}
136275
+ Completed 401 Unauthorized in 1ms
136276
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-03-29 17:16:45 +0200
136277
+ Processing by Devise::SessionsController#new as HTML
136278
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.3/app/views/devise/shared/_links.erb (1.1ms)
136279
+ Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.0ms)
136280
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
136281
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
136282
+  (166.7ms) TRUNCATE TABLE `activities`;
136283
+  (285.9ms) TRUNCATE TABLE `assets`;
136284
+  (318.7ms) TRUNCATE TABLE `audits`;
136285
+  (236.8ms) TRUNCATE TABLE `meta_tags`;
136286
+  (154.3ms) TRUNCATE TABLE `page_parts`;
136287
+  (260.5ms) TRUNCATE TABLE `posts`;
136288
+  (139.0ms) TRUNCATE TABLE `settings`;
136289
+  (286.7ms) TRUNCATE TABLE `structures`;
136290
+  (431.1ms) TRUNCATE TABLE `users`;
136291
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
136292
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
136293
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
136294
+  (316.2ms) TRUNCATE TABLE `activities`;
136295
+  (196.3ms) TRUNCATE TABLE `assets`;
136296
+  (273.9ms) TRUNCATE TABLE `audits`;
136297
+  (388.4ms) TRUNCATE TABLE `meta_tags`;
136298
+  (525.1ms) TRUNCATE TABLE `page_parts`;
136299
+  (117.0ms) TRUNCATE TABLE `posts`;
136300
+  (271.8ms) TRUNCATE TABLE `settings`;
136301
+  (341.6ms) TRUNCATE TABLE `structures`;
136302
+  (276.3ms) TRUNCATE TABLE `users`;
136303
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
136304
+  (0.1ms) BEGIN
136305
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing45@example.com' LIMIT 1
136306
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:16:50', '2013-03-29 15:16:50', NULL, NULL, 'testing45@example.com', '4bb939b0515250ebab09e339a847b6dd4683bfb694ef0952af40f3fd6f6e34900e6952687cb9762790c869cc6fd85405cdb4a11b08b515e8c50291342a150f1a', 0, NULL, NULL, NULL, 'Admin', 'G8ge5621wzVytUpQs8xx', NULL, NULL, NULL, 4, 0, NULL, '2013-03-29 15:16:50')
136307
+ SQL (0.6ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:50', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:50')
136308
+  (38.9ms) COMMIT
136309
+  (0.1ms) BEGIN
136310
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
136311
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:16:50', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-03-29 15:16:50')
136312
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:50', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-03-29 15:16:50')
136313
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
136314
+ SQL (37.9ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
136315
+  (59.0ms) COMMIT
136316
+  (0.1ms) BEGIN
136317
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
136318
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:16:51', 0, 1, 3, 1, 2, NULL, 4, 'slug18', 1, 'Structure', '2013-03-29 15:16:51')
136319
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:51', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-03-29 15:16:51')
136320
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
136321
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
136322
+ SQL (0.4ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
136323
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
136324
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
136325
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
136326
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
136327
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
136328
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
136329
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
136330
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
136331
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
136332
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
136333
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
136334
+  (62.3ms) COMMIT
136335
+  (0.1ms) BEGIN
136336
+ SQL (39.1ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-03-29 15:16:51', 1, 2, 'Default title', '2013-03-29 15:16:51')
136337
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:51', 'post.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Post', '2013-03-29 15:16:51')
136338
+  (54.9ms) COMMIT
136339
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-03-29 17:16:51 +0200
136340
+  (0.2ms) BEGIN
136341
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:51', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:51')
136342
+  (33.6ms) COMMIT
136343
+  (0.5ms) BEGIN
136344
+  (0.6ms) UPDATE `users` SET `last_sign_in_at` = '2013-03-29 15:16:51', `current_sign_in_at` = '2013-03-29 15:16:51', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-03-29 15:16:51' WHERE `users`.`id` = 1
136345
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:51', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:51')
136346
+  (35.1ms) COMMIT
136347
+ Processing by Sunrise::ManagerController#edit as HTML
136348
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
136349
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
136350
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
136351
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (8.4ms)
136352
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (11.8ms)
136353
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.6ms)
136354
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
136355
+ Completed 200 OK in 25ms (Views: 21.1ms | ActiveRecord: 0.5ms)
136356
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-03-29 17:16:51 +0200
136357
+  (0.1ms) BEGIN
136358
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:51', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:51')
136359
+  (53.0ms) COMMIT
136360
+  (0.1ms) BEGIN
136361
+  (0.5ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-03-29 15:16:51' WHERE `users`.`id` = 1
136362
+ SQL (0.5ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:51', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:51')
136363
+  (35.7ms) COMMIT
136364
+ Processing by Sunrise::ManagerController#edit as HTML
136365
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
136366
+ Post Load (0.2ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
136367
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
136368
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (8.4ms)
136369
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (12.6ms)
136370
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.9ms)
136371
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.6ms)
136372
+ Completed 200 OK in 27ms (Views: 22.8ms | ActiveRecord: 0.2ms)
136373
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-03-29 17:16:51 +0200
136374
+ Processing by Sunrise::ManagerController#edit as HTML
136375
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
136376
+ Completed 401 Unauthorized in 1ms
136377
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-03-29 17:16:51 +0200
136378
+ Processing by Devise::SessionsController#new as HTML
136379
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.3/app/views/devise/shared/_links.erb (1.1ms)
136380
+ Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.0ms)
136381
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
136382
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
136383
+  (266.7ms) TRUNCATE TABLE `activities`;
136384
+  (192.9ms) TRUNCATE TABLE `assets`;
136385
+  (299.1ms) TRUNCATE TABLE `audits`;
136386
+  (286.3ms) TRUNCATE TABLE `meta_tags`;
136387
+  (383.1ms) TRUNCATE TABLE `page_parts`;
136388
+  (139.1ms) TRUNCATE TABLE `posts`;
136389
+  (262.8ms) TRUNCATE TABLE `settings`;
136390
+  (363.5ms) TRUNCATE TABLE `structures`;
136391
+  (387.8ms) TRUNCATE TABLE `users`;
136392
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
136393
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
136394
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
136395
+  (363.8ms) TRUNCATE TABLE `activities`;
136396
+  (375.6ms) TRUNCATE TABLE `assets`;
136397
+  (1029.1ms) TRUNCATE TABLE `audits`;
136398
+  (887.7ms) TRUNCATE TABLE `meta_tags`;
136399
+  (555.2ms) TRUNCATE TABLE `page_parts`;
136400
+  (223.3ms) TRUNCATE TABLE `posts`;
136401
+  (608.2ms) TRUNCATE TABLE `settings`;
136402
+  (435.7ms) TRUNCATE TABLE `structures`;
136403
+  (378.7ms) TRUNCATE TABLE `users`;
136404
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
136405
+  (0.1ms) BEGIN
136406
+ User Exists (0.6ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing46@example.com' LIMIT 1
136407
+ SQL (20.0ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:16:58', '2013-03-29 15:16:58', NULL, NULL, 'testing46@example.com', '5c211aeae4ecaa73f8b5448d6db77428f9ba257422065fbcfa06f2e4b7c2fe901e07d08c68319b539b614d5b4e9db5ca971aaf54fdb562a6c3ae83903f387fa4', 0, NULL, NULL, NULL, 'Admin', '8gzxDhRr2Ljhpzhpf6p6', NULL, NULL, NULL, 4, 0, NULL, '2013-03-29 15:16:58')
136408
+ SQL (51.0ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:58', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:58')
136409
+  (144.5ms) COMMIT
136410
+  (0.1ms) BEGIN
136411
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
136412
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:16:59', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-03-29 15:16:59')
136413
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:59', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-03-29 15:16:59')
136414
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
136415
+ SQL (0.6ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
136416
+  (39.6ms) COMMIT
136417
+  (0.2ms) BEGIN
136418
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
136419
+ SQL (6.6ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:16:59', 0, 1, 3, 1, 2, NULL, 4, 'slug19', 1, 'Structure', '2013-03-29 15:16:59')
136420
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:59', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-03-29 15:16:59')
136421
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
136422
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
136423
+ SQL (0.6ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
136424
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
136425
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
136426
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
136427
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
136428
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
136429
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
136430
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
136431
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
136432
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
136433
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
136434
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
136435
+  (39.3ms) COMMIT
136436
+ Started GET "/manage/services.json" for 127.0.0.1 at 2013-03-29 17:16:59 +0200
136437
+  (0.1ms) BEGIN
136438
+ SQL (0.5ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:59', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:59')
136439
+  (57.0ms) COMMIT
136440
+  (0.1ms) BEGIN
136441
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-03-29 15:16:59', `current_sign_in_at` = '2013-03-29 15:16:59', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-03-29 15:16:59' WHERE `users`.`id` = 1
136442
+ SQL (0.6ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:16:59', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:16:59')
136443
+  (46.4ms) COMMIT
136444
+ Processing by Sunrise::SharedController#services as JSON
136445
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft` LIMIT 1
136446
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
136447
+ Completed 200 OK in 105ms (Views: 92.2ms | ActiveRecord: 1.2ms)
136448
+ Started GET "/manage/services.json" for 127.0.0.1 at 2013-03-29 17:16:59 +0200
136449
+ Processing by Sunrise::SharedController#services as JSON
136450
+ Completed 401 Unauthorized in 1ms
136451
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
136452
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
136453
+  (346.4ms) TRUNCATE TABLE `activities`;
136454
+  (218.0ms) TRUNCATE TABLE `assets`;
136455
+  (296.0ms) TRUNCATE TABLE `audits`;
136456
+  (273.5ms) TRUNCATE TABLE `meta_tags`;
136457
+  (257.4ms) TRUNCATE TABLE `page_parts`;
136458
+  (154.5ms) TRUNCATE TABLE `posts`;
136459
+  (249.9ms) TRUNCATE TABLE `settings`;
136460
+  (331.5ms) TRUNCATE TABLE `structures`;
136461
+  (871.2ms) TRUNCATE TABLE `users`;
136462
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
136463
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
136464
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
136465
+  (841.1ms) TRUNCATE TABLE `activities`;
136466
+  (351.3ms) TRUNCATE TABLE `assets`;
136467
+  (330.6ms) TRUNCATE TABLE `audits`;
136468
+  (151.2ms) TRUNCATE TABLE `meta_tags`;
136469
+  (273.0ms) TRUNCATE TABLE `page_parts`;
136470
+  (1179.2ms) TRUNCATE TABLE `posts`;
136471
+  (372.9ms) TRUNCATE TABLE `settings`;
136472
+  (331.3ms) TRUNCATE TABLE `structures`;
136473
+  (531.1ms) TRUNCATE TABLE `users`;
136474
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
136475
+  (2.2ms) SELECT @@FOREIGN_KEY_CHECKS
136476
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
136477
+  (919.1ms) TRUNCATE TABLE `activities`;
136478
+  (321.7ms) TRUNCATE TABLE `assets`;
136479
+  (1985.9ms) TRUNCATE TABLE `audits`;
136480
+  (9321.9ms) TRUNCATE TABLE `meta_tags`;
136481
+  (1119.2ms) TRUNCATE TABLE `page_parts`;
136482
+  (422.4ms) TRUNCATE TABLE `posts`;
136483
+  (926.9ms) TRUNCATE TABLE `settings`;
136484
+  (353.1ms) TRUNCATE TABLE `structures`;
136485
+  (364.9ms) TRUNCATE TABLE `users`;
136486
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
136487
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
136488
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
136489
+  (217.8ms) TRUNCATE TABLE `activities`;
136490
+  (421.0ms) TRUNCATE TABLE `assets`;
136491
+  (394.4ms) TRUNCATE TABLE `audits`;
136492
+  (295.9ms) TRUNCATE TABLE `meta_tags`;
136493
+  (174.2ms) TRUNCATE TABLE `page_parts`;
136494
+  (272.5ms) TRUNCATE TABLE `posts`;
136495
+  (464.5ms) TRUNCATE TABLE `settings`;
136496
+  (271.1ms) TRUNCATE TABLE `structures`;
136497
+  (340.9ms) TRUNCATE TABLE `users`;
136498
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
136499
+  (0.1ms) BEGIN
136500
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
136501
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:17:26', 0, 1, 1, NULL, 2, NULL, 2, 'slug20', 1, 'Structure', '2013-03-29 15:17:26')
136502
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:17:26', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-03-29 15:17:26')
136503
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
136504
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
136505
+  (29.5ms) COMMIT
136506
+  (0.1ms) BEGIN
136507
+ SQL (41.5ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-03-29 15:17:26', 1, 1, 'Default title', '2013-03-29 15:17:26')
136508
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:17:26', 'post.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Post', '2013-03-29 15:17:26')
136509
+  (52.7ms) COMMIT
136510
+  (0.1ms) BEGIN
136511
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing47@example.com' LIMIT 1
136512
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:17:26', '2013-03-29 15:17:26', NULL, NULL, 'testing47@example.com', 'b01cb00e511ca0cf2e2fa0c1387543964f4899ed5c1ea3979fb4ec6d6b5b8532a7ad48ecca74823a44beb61293b3932c0149df143c892b0a9282e7a295583480', 0, NULL, NULL, NULL, 'Redactor', 'jGYZgGCzmSDgvJeYcuu2', NULL, NULL, NULL, 2, 0, NULL, '2013-03-29 15:17:26')
136513
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:17:26', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:17:26')
136514
+  (66.7ms) COMMIT
136515
+  (0.1ms) BEGIN
136516
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:17:26', 'post.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Post', '2013-03-29 15:17:26')
136517
+  (152.0ms) COMMIT
136518
+  (0.1ms) BEGIN
136519
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing48@example.com' LIMIT 1
136520
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:17:26', '2013-03-29 15:17:26', NULL, NULL, 'testing48@example.com', '89fcffabc4d7d0269654ba8997ec0264decf326551c0d2f6a6b586c6f3351b2def7ad0349e282b58face80dd7e35c92385f2b215299d6534bc3babc6f9b238ba', 0, NULL, NULL, NULL, 'Admin', 'ue3VWmcHisiy2EqH7yRC', NULL, NULL, NULL, 4, 0, NULL, '2013-03-29 15:17:26')
136521
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:17:26', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'User', '2013-03-29 15:17:26')
136522
+  (33.8ms) COMMIT
136523
+ Processing by Sunrise::DashboardController#index as HTML
136524
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1
136525
+ PublicActivity::ORM::ActiveRecord::Activity Load (0.6ms) SELECT `activities`.* FROM `activities` ORDER BY created_at DESC LIMIT 50 OFFSET 0
136526
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
136527
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
136528
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
136529
+ Post Load (0.4ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
136530
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
136531
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
136532
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
136533
+ Post Load (0.1ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
136534
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
136535
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1
136536
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_activity.html.erb (29.0ms)
136537
+  (0.5ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `activities` LIMIT 50 OFFSET 0) subquery_for_count 
136538
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
136539
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (1.4ms)
136540
+ Completed 200 OK in 57ms (Views: 41.0ms | ActiveRecord: 4.1ms)
136541
+ Processing by Sunrise::DashboardController#index as HTML
136542
+ Completed 401 Unauthorized in 1ms
136543
+ Processing by Sunrise::DashboardController#index as HTML
136544
+ Completed 401 Unauthorized in 1ms
136545
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
136546
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
136547
+  (173.3ms) TRUNCATE TABLE `activities`;
136548
+  (262.8ms) TRUNCATE TABLE `assets`;
136549
+  (319.2ms) TRUNCATE TABLE `audits`;
136550
+  (284.7ms) TRUNCATE TABLE `meta_tags`;
136551
+  (140.1ms) TRUNCATE TABLE `page_parts`;
136552
+  (239.7ms) TRUNCATE TABLE `posts`;
136553
+  (150.4ms) TRUNCATE TABLE `settings`;
136554
+  (306.7ms) TRUNCATE TABLE `structures`;
136555
+  (397.6ms) TRUNCATE TABLE `users`;
136556
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
136557
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
136558
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
136559
+  (328.4ms) TRUNCATE TABLE `activities`;
136560
+  (299.6ms) TRUNCATE TABLE `assets`;
136561
+  (330.9ms) TRUNCATE TABLE `audits`;
136562
+  (140.2ms) TRUNCATE TABLE `meta_tags`;
136563
+  (250.4ms) TRUNCATE TABLE `page_parts`;
136564
+  (238.2ms) TRUNCATE TABLE `posts`;
136565
+  (128.9ms) TRUNCATE TABLE `settings`;
136566
+  (341.5ms) TRUNCATE TABLE `structures`;
136567
+  (353.7ms) TRUNCATE TABLE `users`;
136568
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
136569
+  (0.1ms) BEGIN
136570
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
136571
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:17:31', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-03-29 15:17:31')
136572
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:17:31', 'structure.create', 2, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-03-29 15:17:31')
136573
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
136574
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
136575
+  (30.5ms) COMMIT
136576
+  (0.1ms) BEGIN
136577
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
136578
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:17:31', 0, 1, 3, 1, 2, NULL, 4, 'slug21', 1, 'Structure', '2013-03-29 15:17:31')
136579
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:17:31', 'structure.create', 2, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-03-29 15:17:31')
136580
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
136581
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
136582
+ SQL (0.4ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
136583
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
136584
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
136585
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
136586
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
136587
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
136588
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
136589
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
136590
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
136591
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
136592
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
136593
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
136594
+  (36.5ms) COMMIT
136595
+  (0.1ms) BEGIN
136596
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing49@example.com' LIMIT 1
136597
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:17:31', '2013-03-29 15:17:31', NULL, NULL, 'testing49@example.com', '0f085435679037708e0e5a04073790cd910794a0b3ce4eed66b6c6342a3a44c7abfd25f42f9239d9c32cde81f5f4b927bc14e4b56f6d78c5a701d73e459bdf33', 0, NULL, NULL, NULL, 'Admin', 'QNoKJDRKSw2ybzfytazv', NULL, NULL, NULL, 4, 0, NULL, '2013-03-29 15:17:31')
136598
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:17:31', 'user.create', 2, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:17:31')
136599
+  (33.2ms) COMMIT
136600
+ Processing by Sunrise::SharedController#services as JSON
136601
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
136602
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft` LIMIT 1
136603
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
136604
+ Completed 200 OK in 19ms (Views: 3.9ms | ActiveRecord: 1.8ms)
136605
+ Processing by Sunrise::SharedController#services as JSON
136606
+ Completed 401 Unauthorized in 1ms
136607
+ Processing by Sunrise::SharedController#services as HTML
136608
+ Completed 401 Unauthorized in 1ms
136609
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
136610
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
136611
+  (197.8ms) TRUNCATE TABLE `activities`;
136612
+  (296.3ms) TRUNCATE TABLE `assets`;
136613
+  (264.6ms) TRUNCATE TABLE `audits`;
136614
+  (283.9ms) TRUNCATE TABLE `meta_tags`;
136615
+  (140.3ms) TRUNCATE TABLE `page_parts`;
136616
+  (206.0ms) TRUNCATE TABLE `posts`;
136617
+  (150.2ms) TRUNCATE TABLE `settings`;
136618
+  (317.9ms) TRUNCATE TABLE `structures`;
136619
+  (387.2ms) TRUNCATE TABLE `users`;
136620
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
136621
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
136622
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
136623
+  (283.4ms) TRUNCATE TABLE `activities`;
136624
+  (296.1ms) TRUNCATE TABLE `assets`;
136625
+  (209.1ms) TRUNCATE TABLE `audits`;
136626
+  (239.1ms) TRUNCATE TABLE `meta_tags`;
136627
+  (272.6ms) TRUNCATE TABLE `page_parts`;
136628
+  (139.0ms) TRUNCATE TABLE `posts`;
136629
+  (249.5ms) TRUNCATE TABLE `settings`;
136630
+  (876.9ms) TRUNCATE TABLE `structures`;
136631
+  (2096.0ms) TRUNCATE TABLE `users`;
136632
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
136633
+  (0.1ms) BEGIN
136634
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing50@example.com' LIMIT 1
136635
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:17:38', '2013-03-29 15:17:38', NULL, NULL, 'testing50@example.com', '20741bf6e6a8a58a2223e00bdfb6c911c30b18070817ca67bcdd2675ee08ee662e001e9b823ec09c725d7c732bd25b9185c94eb792d694da82466eaa792b5c89', 0, NULL, NULL, NULL, 'Admin', 'msZAKds39YKi9bbjW2Ks', NULL, NULL, NULL, 4, 0, NULL, '2013-03-29 15:17:38')
136636
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:17:38', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:17:38')
136637
+  (358.1ms) COMMIT
136638
+ Processing by Sunrise::SettingsController#edit as HTML
136639
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
136640
+ Settings Load (0.3ms) SELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL
136641
+ Settings Load (0.5ms) SELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL AND `settings`.`var` = 'some_setting' LIMIT 1
136642
+ Settings Load (0.4ms) SELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL AND `settings`.`var` = 'some_setting2' LIMIT 1
136643
+ Settings Load (0.4ms) SELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL AND `settings`.`var` = 'persisted?' LIMIT 1
136644
+ Rendered /var/www/gems/sunrise/app/views/sunrise/settings/_form.html.erb (14.2ms)
136645
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.1ms)
136646
+ Rendered /var/www/gems/sunrise/app/views/sunrise/settings/_header_edit.html.erb (1.4ms)
136647
+ Completed 200 OK in 134ms (Views: 115.1ms | ActiveRecord: 3.9ms)
136648
+ Processing by Sunrise::SettingsController#update as HTML
136649
+ Parameters: {"settings"=>{"some_setting"=>"blablabla"}}
136650
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
136651
+ Settings Load (0.2ms) SELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL AND `settings`.`var` = 'some_setting' LIMIT 1
136652
+  (0.1ms) BEGIN
136653
+ SQL (0.4ms) INSERT INTO `settings` (`created_at`, `target_id`, `target_type`, `updated_at`, `value`, `var`) VALUES ('2013-03-29 15:17:38', NULL, NULL, '2013-03-29 15:17:38', '--- blablabla\n...\n', 'some_setting')
136654
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:17:38', 'settings.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Settings', '2013-03-29 15:17:38')
136655
+  (54.5ms) COMMIT
136656
+ Redirected to http://test.host/manage/
136657
+ Completed 302 Found in 162ms (ActiveRecord: 55.8ms)
136658
+ Processing by Sunrise::SettingsController#update as HTML
136659
+ Completed 401 Unauthorized in 1ms
136660
+ Processing by Sunrise::SettingsController#edit as HTML
136661
+ Completed 401 Unauthorized in 1ms
136662
+ Processing by Sunrise::SettingsController#edit as HTML
136663
+ Completed 401 Unauthorized in 1ms
136664
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
136665
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
136666
+  (987.5ms) TRUNCATE TABLE `activities`;
136667
+  (351.9ms) TRUNCATE TABLE `assets`;
136668
+  (497.1ms) TRUNCATE TABLE `audits`;
136669
+  (318.7ms) TRUNCATE TABLE `meta_tags`;
136670
+  (140.0ms) TRUNCATE TABLE `page_parts`;
136671
+  (227.5ms) TRUNCATE TABLE `posts`;
136672
+  (138.9ms) TRUNCATE TABLE `settings`;
136673
+  (398.6ms) TRUNCATE TABLE `structures`;
136674
+  (1208.7ms) TRUNCATE TABLE `users`;
136675
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
136676
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
136677
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
136678
+  (595.4ms) TRUNCATE TABLE `activities`;
136679
+  (308.1ms) TRUNCATE TABLE `assets`;
136680
+  (330.2ms) TRUNCATE TABLE `audits`;
136681
+  (263.2ms) TRUNCATE TABLE `meta_tags`;
136682
+  (219.3ms) TRUNCATE TABLE `page_parts`;
136683
+  (237.6ms) TRUNCATE TABLE `posts`;
136684
+  (138.9ms) TRUNCATE TABLE `settings`;
136685
+  (329.3ms) TRUNCATE TABLE `structures`;
136686
+  (433.1ms) TRUNCATE TABLE `users`;
136687
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
136688
+  (0.1ms) BEGIN
136689
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing51@example.com' LIMIT 1
136690
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-03-29 15:17:46', '2013-03-29 15:17:46', NULL, NULL, 'testing51@example.com', '5cdfd085ebf653016ab6650c84b98580e6b90eaa92d3cc061ffd36d77812cda2514936840c739e4fef5544c335ec3710393cf0bffbd2a2f0dfc9c2d52a21a5c0', 0, NULL, NULL, NULL, 'Admin', 'ZeRnQrLBnpLn3obpFsDn', NULL, NULL, NULL, 4, 0, NULL, '2013-03-29 15:17:46')
136691
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:17:46', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-03-29 15:17:46')
136692
+  (56.6ms) COMMIT
136693
+  (0.1ms) BEGIN
136694
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
136695
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:17:46', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-03-29 15:17:46')
136696
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:17:46', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-03-29 15:17:46')
136697
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
136698
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
136699
+  (40.8ms) COMMIT
136700
+  (0.1ms) BEGIN
136701
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
136702
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:17:46', 0, 1, 3, 1, 2, NULL, 4, 'slug22', 1, 'Structure', '2013-03-29 15:17:46')
136703
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:17:46', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-03-29 15:17:46')
136704
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
136705
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
136706
+ SQL (0.5ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
136707
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
136708
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
136709
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
136710
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
136711
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
136712
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
136713
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
136714
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
136715
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
136716
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
136717
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
136718
+  (54.0ms) COMMIT
136719
+ Processing by Sunrise::ManagerController#index as HTML
136720
+ Parameters: {"model_name"=>"structures"}
136721
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
136722
+ Completed 200 OK in 7ms (Views: 1.9ms | ActiveRecord: 0.5ms)
136723
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
136724
+ Processing by Sunrise::ManagerController#index as HTML
136725
+ Parameters: {"model_name"=>"wrong"}
136726
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
136727
+ Error while loading 'SunriseWrong': uninitialized constant SunriseWrong
136728
+ Completed 404 Not Found in 8ms
136729
+ Processing by Sunrise::ManagerController#destroy as HTML
136730
+ Parameters: {"model_name"=>"structures", "id"=>"1"}
136731
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
136732
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
136733
+ Access denied on destroy #<Structure id: 1, title: "Main page", slug: "main-page", structure_type_id: 3, position_type_id: 1, is_visible: true, redirect_url: nil, parent_id: nil, lft: 1, rgt: 4, depth: 0, created_at: "2013-03-29 15:17:46", updated_at: "2013-03-29 15:17:46">, context: sunrise, user: 1
136734
+ Redirected to http://test.host/
136735
+ Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
136736
+  (0.1ms) BEGIN
136737
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
136738
+ SQL (0.5ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `lft`, `parent_id`, `position_type_id`, `redirect_url`, `rgt`, `slug`, `structure_type_id`, `title`, `updated_at`) VALUES ('2013-03-29 15:17:46', 0, 1, 5, NULL, 2, NULL, 6, 'slug23', 1, 'Structure', '2013-03-29 15:17:46')
136739
+ SQL (0.4ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:17:46', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 3, 'Structure', '2013-03-29 15:17:46')
136740
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1
136741
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 3 ORDER BY `structures`.`lft`
136742
+  (19.1ms) COMMIT
136743
+  (0.1ms) BEGIN
136744
+ SQL (0.3ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-03-29 15:17:46', 1, 3, 'Default title', '2013-03-29 15:17:46')
136745
+ SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-03-29 15:17:46', 'post.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Post', '2013-03-29 15:17:46')
136746
+  (38.1ms) COMMIT
136747
+ Processing by Sunrise::ManagerController#index as HTML
136748
+ Parameters: {"model_name"=>"posts"}
136749
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
136750
+ Completed 200 OK in 12ms (Views: 1.7ms | ActiveRecord: 0.2ms)
136751
+ Post Load (0.4ms) SELECT `posts`.* FROM `posts` LIMIT 50 OFFSET 0
136752
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
136753
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
136754
+  (197.0ms) TRUNCATE TABLE `activities`;
136755
+  (332.1ms) TRUNCATE TABLE `assets`;
136756
+  (330.7ms) TRUNCATE TABLE `audits`;
136757
+  (294.9ms) TRUNCATE TABLE `meta_tags`;
136758
+  (245.4ms) TRUNCATE TABLE `page_parts`;
136759
+  (147.0ms) TRUNCATE TABLE `posts`;
136760
+  (272.3ms) TRUNCATE TABLE `settings`;
136761
+  (319.1ms) TRUNCATE TABLE `structures`;
136762
+  (333.6ms) TRUNCATE TABLE `users`;
136763
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1