sunrise-cms 0.6.4 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. data/CHANGELOG.rdoc +3 -0
  2. data/app/assets/javascripts/sunrise/jquery.ddmenu.js.coffee +0 -2
  3. data/app/assets/stylesheets/sunrise/customize.css +6 -1
  4. data/app/assets/stylesheets/sunrise/main.css +1 -0
  5. data/app/views/sunrise/manager/table/_record.html.erb +3 -2
  6. data/lib/sunrise/carrierwave/base_uploader.rb +2 -2
  7. data/lib/sunrise/version.rb +1 -1
  8. data/spec/dummy/log/test.log +3027 -0
  9. data/spec/dummy/public/uploads/avatar/content_rails.png +0 -0
  10. data/spec/dummy/public/uploads/avatar/rails.png +0 -0
  11. data/spec/dummy/public/uploads/avatar/thumb_rails.png +0 -0
  12. data/spec/dummy/public/uploads/tmp/20130412-1107-5493-2458/rails.png +0 -0
  13. data/spec/dummy/public/uploads/tmp/20130412-1107-5493-2458/small_rails.png +0 -0
  14. data/spec/dummy/public/uploads/tmp/20130412-1107-5493-2458/thumb_rails.png +0 -0
  15. data/spec/dummy/public/uploads/tmp/20130412-1107-5493-3725/rails.png +0 -0
  16. data/spec/dummy/public/uploads/tmp/20130412-1107-5493-3725/small_rails.png +0 -0
  17. data/spec/dummy/public/uploads/tmp/20130412-1107-5493-3725/thumb_rails.png +0 -0
  18. data/spec/dummy/public/uploads/tmp/20130412-1107-5493-5457/rails.png +0 -0
  19. data/spec/dummy/public/uploads/tmp/20130412-1107-5493-5457/small_rails.png +0 -0
  20. data/spec/dummy/public/uploads/tmp/20130412-1107-5493-5457/thumb_rails.png +0 -0
  21. data/spec/dummy/public/uploads/tmp/20130412-1107-5493-5876/silicon_valley.jpg +0 -0
  22. data/spec/dummy/public/uploads/tmp/20130412-1107-5493-5876/small_silicon_valley.jpg +0 -0
  23. data/spec/dummy/public/uploads/tmp/20130412-1107-5493-5876/thumb_silicon_valley.jpg +0 -0
  24. data/spec/dummy/public/uploads/tmp/20130412-1107-5493-8101/rails.png +0 -0
  25. data/spec/dummy/public/uploads/tmp/20130412-1107-5493-9135/rails.png +0 -0
  26. data/spec/dummy/public/uploads/tmp/20130412-1108-5493-1347/rails.png +0 -0
  27. data/spec/dummy/public/uploads/tmp/20130412-1108-5493-3971/rails.png +0 -0
  28. data/spec/dummy/public/uploads/tmp/20130412-1108-5493-6916/rails.png +0 -0
  29. metadata +36 -2
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.6.5
2
+ * Fix bugs
3
+
1
4
  == 0.6.4
2
5
  * Pagination style via twitter bootstrap
3
6
  * Use chosen for all selects
@@ -3,8 +3,6 @@ $ = jQuery
3
3
 
4
4
  $.fn.extend({
5
5
  ddmenu: (options) ->
6
- # Do no harm and return as soon as possible for unsupported browsers, namely IE6 and IE7
7
- return this if $.browser.msie and $.browser.version is "6.0"
8
6
  $(this).each((input_field) ->
9
7
  new DropdownMenu(this, options) unless ($ this).hasClass "ddm-done"
10
8
  )
@@ -279,4 +279,9 @@ div.input.boolean input {
279
279
 
280
280
  .post-edit-holder .chzn-container .chzn-drop {
281
281
  position:fixed;
282
- }
282
+ }
283
+
284
+ /*Uploader button*/
285
+ .uploader-button span {
286
+ line-height: 30px;
287
+ }
@@ -894,6 +894,7 @@ a.close-but:hover {
894
894
  }
895
895
  .main-item-list .main-item:hover .but-block {
896
896
  display: block !important;
897
+ margin:0 0 -5px 0;
897
898
  }
898
899
  .main-item-list .main-item .but-block .act-but {
899
900
  width: 50px;
@@ -17,9 +17,10 @@
17
17
  :id => dom_id(record, :delete) if can?(:delete, record, :context => :sunrise)%>
18
18
  </div>
19
19
  <div class="act-but">
20
- <%= link_to image_tag('sunrise/empty.gif'), edit_path(abstract_model.parent_hash.merge(:id => record.id)),
20
+ <%= link_to image_tag('sunrise/empty.gif'),
21
+ edit_path(abstract_model.parent_hash.merge(:id => record.id)),
21
22
  :class=>"but-container edit",
22
- :id => dom_id(record, :edit) if can?(:edit, record, , :context => :sunrise) %>
23
+ :id => dom_id(record, :edit) if can?(:edit, record, :context => :sunrise) %>
23
24
  </div>
24
25
  </div>
25
26
  </div>
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  require 'mime/types'
3
2
  require 'mini_magick'
4
3
  require 'carrierwave/processing/mini_magick'
@@ -92,7 +91,8 @@ module Sunrise
92
91
  end
93
92
 
94
93
  def image?(new_file = nil)
95
- (file || new_file).content_type.include? 'image'
94
+ ctype = (file || new_file).content_type
95
+ ctype.include?('image') && !['photoshop', 'psd'].any? {|t| ctype.include?(t) }
96
96
  end
97
97
 
98
98
  def dimensions
@@ -1,3 +1,3 @@
1
1
  module Sunrise
2
- VERSION = "0.6.4".freeze
2
+ VERSION = "0.6.5".freeze
3
3
  end
@@ -136761,3 +136761,3030 @@ Completed 200 OK in 12ms (Views: 1.7ms | ActiveRecord: 0.2ms)
136761
136761
   (319.1ms) TRUNCATE TABLE `structures`;
136762
136762
   (333.6ms) TRUNCATE TABLE `users`;
136763
136763
   (0.1ms) SET FOREIGN_KEY_CHECKS = 1
136764
+ Connecting to database specified by database.yml
136765
+  (99.8ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
136766
+ Migrating to InstallActsAsAudited (20111227111941)
136767
+ Migrating to CreatePageParts (20111227143901)
136768
+ Migrating to CreatePosts (20111228152051)
136769
+ Migrating to CreateMetaTags (20120105114018)
136770
+ Migrating to CreateActivities (20130214090723)
136771
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
136772
+ Migrating to CreateAssets (20111216144515)
136773
+ Migrating to CreateStructures (20111216144915)
136774
+ Migrating to CreateUsers (20111216145015)
136775
+ Migrating to CreateSettings (20120611095315)
136776
+ Connecting to database specified by database.yml
136777
+  (5.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
136778
+ Migrating to InstallActsAsAudited (20111227111941)
136779
+ Migrating to CreatePageParts (20111227143901)
136780
+ Migrating to CreatePosts (20111228152051)
136781
+ Migrating to CreateMetaTags (20120105114018)
136782
+ Migrating to CreateActivities (20130214090723)
136783
+  (0.1ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
136784
+ Migrating to CreateAssets (20111216144515)
136785
+ Migrating to CreateStructures (20111216144915)
136786
+ Migrating to CreateUsers (20111216145015)
136787
+ Migrating to CreateSettings (20120611095315)
136788
+  (60.9ms) SELECT @@FOREIGN_KEY_CHECKS
136789
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
136790
+  (86.7ms) SELECT DATABASE() as db
136791
+  (25.1ms) select table_name from information_schema.views where table_schema = 'sunrise_dummy_test'
136792
+  (2683.4ms) TRUNCATE TABLE `activities`;
136793
+  (562.7ms) TRUNCATE TABLE `assets`;
136794
+  (470.8ms) TRUNCATE TABLE `audits`;
136795
+  (366.4ms) TRUNCATE TABLE `meta_tags`;
136796
+  (427.9ms) TRUNCATE TABLE `page_parts`;
136797
+  (369.8ms) TRUNCATE TABLE `posts`;
136798
+  (318.5ms) TRUNCATE TABLE `settings`;
136799
+  (516.1ms) TRUNCATE TABLE `structures`;
136800
+  (500.8ms) TRUNCATE TABLE `users`;
136801
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
136802
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
136803
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
136804
+  (406.8ms) TRUNCATE TABLE `activities`;
136805
+  (263.2ms) TRUNCATE TABLE `assets`;
136806
+  (351.1ms) TRUNCATE TABLE `audits`;
136807
+  (350.3ms) TRUNCATE TABLE `meta_tags`;
136808
+  (240.5ms) TRUNCATE TABLE `page_parts`;
136809
+  (307.8ms) TRUNCATE TABLE `posts`;
136810
+  (316.9ms) TRUNCATE TABLE `settings`;
136811
+  (390.9ms) TRUNCATE TABLE `structures`;
136812
+  (394.7ms) TRUNCATE TABLE `users`;
136813
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
136814
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
136815
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
136816
+  (393.3ms) TRUNCATE TABLE `activities`;
136817
+  (341.3ms) TRUNCATE TABLE `assets`;
136818
+  (364.6ms) TRUNCATE TABLE `audits`;
136819
+  (206.7ms) TRUNCATE TABLE `meta_tags`;
136820
+  (284.7ms) TRUNCATE TABLE `page_parts`;
136821
+  (297.2ms) TRUNCATE TABLE `posts`;
136822
+  (191.7ms) TRUNCATE TABLE `settings`;
136823
+  (363.8ms) TRUNCATE TABLE `structures`;
136824
+  (476.7ms) TRUNCATE TABLE `users`;
136825
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
136826
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
136827
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
136828
+  (339.2ms) TRUNCATE TABLE `activities`;
136829
+  (252.2ms) TRUNCATE TABLE `assets`;
136830
+  (1615.5ms) TRUNCATE TABLE `audits`;
136831
+  (596.8ms) TRUNCATE TABLE `meta_tags`;
136832
+  (384.0ms) TRUNCATE TABLE `page_parts`;
136833
+  (205.7ms) TRUNCATE TABLE `posts`;
136834
+  (261.5ms) TRUNCATE TABLE `settings`;
136835
+  (374.9ms) TRUNCATE TABLE `structures`;
136836
+  (386.8ms) TRUNCATE TABLE `users`;
136837
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
136838
+  (0.1ms) BEGIN
136839
+ User Exists (84.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing1@example.com' LIMIT 1
136840
+ SQL (23.8ms) 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-04-12 08:07:26', '2013-04-12 08:07:26', NULL, NULL, 'testing1@example.com', 'dbcddadb06876fad535872b0440144ae52c2f562009f9d102acba768862475a41f53acdf4426375a5d861aa8b8cfeb8fb5d1f376391208789f9d897d6b92c2ee', 0, NULL, NULL, NULL, 'Test', 'cBPefyd4vzznhUvATnGS', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:07:26')
136841
+ 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-04-12 08:07:27', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:07:27')
136842
+  (46.3ms) COMMIT
136843
+ User Exists (20.6ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'wrong' AND `users`.`id` != 1) LIMIT 1
136844
+ User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'wrong' AND `users`.`id` != 1) LIMIT 1
136845
+  (0.1ms) BEGIN
136846
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing2@example.com' LIMIT 1
136847
+ SQL (14.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-04-12 08:07:27', '2013-04-12 08:07:27', NULL, NULL, 'testing2@example.com', '7d7648243608bd9499562d9336d218c600bc11c601f62800c3fbd33e9cdd4b212232820176fda84d5362b7cf016d8f3f03eb4fcdc27815107bad6140bd35a3e0', 0, NULL, NULL, NULL, 'Test', 'mvg5rfhpWtJQVyyfgBLA', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:07:27')
136848
+ 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-04-12 08:07:27', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 2, 'User', '2013-04-12 08:07:27')
136849
+  (39.3ms) COMMIT
136850
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'testing2@example.com' LIMIT 1
136851
+  (0.1ms) BEGIN
136852
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing3@example.com' LIMIT 1
136853
+ SQL (1.1ms) 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-04-12 08:07:27', '2013-04-12 08:07:27', NULL, NULL, 'testing3@example.com', 'bf26dd450a5ee99b637593ecec193d34f11600f37accd3a387df5ae68f2a2e5005876bda97ea53655f4136aed5a8ce4d6e3fcad2d0a40d8f5c54737544775370', 0, NULL, NULL, NULL, 'Test', '8eH2bdcudxjuqeMmzBAu', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:07:27')
136854
+ 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-04-12 08:07:27', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 3, 'User', '2013-04-12 08:07:27')
136855
+  (23.5ms) COMMIT
136856
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`role_type_id` = 1
136857
+  (0.1ms) BEGIN
136858
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing4@example.com' LIMIT 1
136859
+ SQL (27.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-04-12 08:07:27', '2013-04-12 08:07:27', NULL, NULL, 'testing4@example.com', '8ff5f82e4c8693cbc6057e1edbd020721885c29dac4930ce369ea402516972ccd20b8c9b6c235b831625e87e63a7516601caea406da9d5921f51742872f3377f', 0, NULL, NULL, NULL, 'Test', 'zPSs9xErNeCeTSjysejZ', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:07:27')
136860
+ 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-04-12 08:07:27', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 4, 'User', '2013-04-12 08:07:27')
136861
+  (41.7ms) COMMIT
136862
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
136863
+ User Load (0.5ms) SELECT id, email, name, current_sign_in_ip FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000
136864
+  (0.1ms) BEGIN
136865
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing5@example.com' LIMIT 1
136866
+ SQL (1.2ms) 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-04-12 08:07:27', '2013-04-12 08:07:27', NULL, NULL, 'testing5@example.com', '4564ef45c845a056f20d2e663cf94d70fccca02b8481501fd38aafc1b137e7730114dfd40ad614e379143db536925f5c53b76ab164ea20f8646d712c781ee394', 0, NULL, NULL, NULL, 'Test', 'eP7sUfsyjwoVDKkUbZRU', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:07:27')
136867
+ 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-04-12 08:07:27', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 5, 'User', '2013-04-12 08:07:27')
136868
+  (38.1ms) COMMIT
136869
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
136870
+ User Load (0.5ms) SELECT id, email, confirmed_at, created_at FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000
136871
+  (0.2ms) BEGIN
136872
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing6@example.com' LIMIT 1
136873
+ SQL (38.1ms) 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-04-12 08:07:27', '2013-04-12 08:07:27', NULL, NULL, 'testing6@example.com', 'f01652c726e9a428099bcd4f033701e932f69645b0418d4b4eb2ce3ea3f9cfc2f13b0a83e761dd9df65960c81aac40b8fa5ee639e2fca0c1197b47d20f681cf6', 0, NULL, NULL, NULL, 'Test', 'Bw8XmgUzzMaS46kwd2mu', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:07:27')
136874
+ 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-04-12 08:07:27', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 6, 'User', '2013-04-12 08:07:27')
136875
+  (44.7ms) COMMIT
136876
+  (0.1ms) BEGIN
136877
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing7@example.com' LIMIT 1
136878
+ SQL (1.1ms) 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-04-12 08:07:28', '2013-04-12 08:07:28', NULL, NULL, 'testing7@example.com', '59366850777cea3585f12358ce4a1760b6e7fb31693adf94f73c65500e3ca38a0fca0537ba6b17bcd60be0043e77c0202df4797513a5e1cec88a154394611faa', 0, NULL, NULL, NULL, 'Test', '9RRyweXbzvAy2sp3X2sr', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:07:28')
136879
+ 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-04-12 08:07:28', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 7, 'User', '2013-04-12 08:07:28')
136880
+  (30.7ms) COMMIT
136881
+  (0.1ms) BEGIN
136882
+  (0.9ms) UPDATE `users` SET `confirmed_at` = NULL, `locked_at` = '2013-04-12 08:07:28', `unlock_token` = 'yLyiGruRN7cHtVqpmYG4', `updated_at` = '2013-04-12 08:07:28' WHERE `users`.`id` = 7
136883
+ 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-04-12 08:07:28', 'user.update', NULL, NULL, '--- {}\n', NULL, NULL, 7, 'User', '2013-04-12 08:07:28')
136884
+  (36.2ms) COMMIT
136885
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.3/app/views/devise/mailer/unlock_instructions.html.erb (71.7ms)
136886
+
136887
+ Sent mail to testing7@example.com (181ms)
136888
+ Date: Fri, 12 Apr 2013 11:07:29 +0300
136889
+ From: please-change-me-at-config-initializers-devise@example.com
136890
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
136891
+ To: testing7@example.com
136892
+ Message-ID: <5167c0c0f334d_157546870147894@mario.mail>
136893
+ Subject: Unlock Instructions
136894
+ Mime-Version: 1.0
136895
+ Content-Type: text/html;
136896
+ charset=UTF-8
136897
+ Content-Transfer-Encoding: 7bit
136898
+
136899
+ <p>Hello testing7@example.com!</p>
136900
+
136901
+ <p>Your account has been locked due to an excessive number of unsuccessful sign in attempts.</p>
136902
+
136903
+ <p>Click the link below to unlock your account:</p>
136904
+
136905
+ <p><a href="http://test.com/users/unlock?unlock_token=yLyiGruRN7cHtVqpmYG4">Unlock my account</a></p>
136906
+
136907
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
136908
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
136909
+  (242.0ms) TRUNCATE TABLE `activities`;
136910
+  (340.2ms) TRUNCATE TABLE `assets`;
136911
+  (353.2ms) TRUNCATE TABLE `audits`;
136912
+  (294.9ms) TRUNCATE TABLE `meta_tags`;
136913
+  (273.6ms) TRUNCATE TABLE `page_parts`;
136914
+  (261.1ms) TRUNCATE TABLE `posts`;
136915
+  (183.5ms) TRUNCATE TABLE `settings`;
136916
+  (362.3ms) TRUNCATE TABLE `structures`;
136917
+  (442.3ms) TRUNCATE TABLE `users`;
136918
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
136919
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
136920
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
136921
+  (365.3ms) TRUNCATE TABLE `activities`;
136922
+  (385.5ms) TRUNCATE TABLE `assets`;
136923
+  (375.3ms) TRUNCATE TABLE `audits`;
136924
+  (349.6ms) TRUNCATE TABLE `meta_tags`;
136925
+  (276.3ms) TRUNCATE TABLE `page_parts`;
136926
+  (272.3ms) TRUNCATE TABLE `posts`;
136927
+  (195.0ms) TRUNCATE TABLE `settings`;
136928
+  (551.3ms) TRUNCATE TABLE `structures`;
136929
+  (399.3ms) TRUNCATE TABLE `users`;
136930
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
136931
+  (0.1ms) BEGIN
136932
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing8@example.com' LIMIT 1
136933
+ SQL (23.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-04-12 08:07:36', '2013-04-12 08:07:36', NULL, NULL, 'testing8@example.com', 'ccf250f3c7de2cde99eea12f464874514a56bcd1ea18119ad7c7ac7035fffd1b0b538a35e889940b70b82a838f29aa24b3d5bbf3b5afd6d45a42b01b9d4f2da4', 0, NULL, NULL, NULL, 'Test', 'NuAP5Cpsiqix2JfXuz7F', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:07:36')
136934
+ 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-04-12 08:07:36', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:07:36')
136935
+  (41.1ms) COMMIT
136936
+  (0.1ms) BEGIN
136937
+ SQL (1.0ms) 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-04-12 08:07:36', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-04-12 08:07:36', NULL, 50)
136938
+  (35.9ms) COMMIT
136939
+  (0.1ms) BEGIN
136940
+ SQL (48.5ms) DELETE FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`id` = 1
136941
+  (48.5ms) COMMIT
136942
+  (0.1ms) BEGIN
136943
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing9@example.com' LIMIT 1
136944
+ SQL (4.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-04-12 08:07:36', '2013-04-12 08:07:36', NULL, NULL, 'testing9@example.com', 'cce490abd97fd995009057d12ca46979325ea998c9f256fcffe298a173a9c46fdb8744623a0ec5972604f8c6e6c5307198f4c7d628801366885421e37f38f1f8', 0, NULL, NULL, NULL, 'Test', 'kYNpSnnsP86rypptmK9W', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:07:36')
136945
+ SQL (15.0ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-04-12 08:07:36', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 2, 'User', '2013-04-12 08:07:36')
136946
+  (36.2ms) COMMIT
136947
+  (0.1ms) BEGIN
136948
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing10@example.com' LIMIT 1
136949
+ SQL (370.1ms) 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-04-12 08:07:37', '2013-04-12 08:07:37', NULL, NULL, 'testing10@example.com', 'a0e9e60e1d756b83bad9cdf5ff15f89ab402dad3c66c9c398840b7bc95e9e4f0028214f5eac1c35b87e87a7d69ee56cf52f3c1153ca38111c47ec5e4546fdab5', 0, NULL, NULL, NULL, 'Test', 'zBf1EMGZextLg8nGLbso', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:07:37')
136950
+ 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-04-12 08:07:37', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 3, 'User', '2013-04-12 08:07:37')
136951
+  (81.2ms) COMMIT
136952
+  (0.2ms) BEGIN
136953
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing11@example.com' LIMIT 1
136954
+ SQL (122.9ms) 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-04-12 08:07:37', '2013-04-12 08:07:37', NULL, NULL, 'testing11@example.com', 'ebbd51df71e486afde3574cdcabd41398128154c56f9979bf03a58fcf45b10a9ed16d6e389c5a904bfc93bd397d4e7d8a195226465a2ea4d097d0cc870e386d7', 0, NULL, NULL, NULL, 'Test', '9xShhuJ4QihkFxa6ENq6', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:07:37')
136955
+ SQL (170.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-04-12 08:07:38', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 4, 'User', '2013-04-12 08:07:38')
136956
+  (59.5ms) COMMIT
136957
+  (0.1ms) BEGIN
136958
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing12@example.com' LIMIT 1
136959
+ 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-04-12 08:07:41', '2013-04-12 08:07:41', NULL, NULL, 'testing12@example.com', 'c76ebce056a3a5a97328faae93a86fcae18b73c91123983c02222dce1d22d5b279a67eafc252318a59d4fc109bb8c353a011fd0412468a644c2880f673a16ea8', 0, NULL, NULL, NULL, 'Test', 'KquysTgKPA7tnJAqy6LC', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:07:41')
136960
+ 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-04-12 08:07:41', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 5, 'User', '2013-04-12 08:07:41')
136961
+  (23.8ms) COMMIT
136962
+  (0.2ms) BEGIN
136963
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing13@example.com' LIMIT 1
136964
+ 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-04-12 08:07:41', '2013-04-12 08:07:41', NULL, NULL, 'testing13@example.com', 'e5d96b172d04b1764f6e7da505a1c1fd45c05937344e013a4f64c32cb14995a0fcc00e0a61b1fea4b1cdd7bf628962257d8a7c982b7a61e82dfee7ae4b12470c', 0, NULL, NULL, NULL, 'Test', 'fqcex1BtFnx4zkfjYsx1', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:07:41')
136965
+ 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-04-12 08:07:41', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 6, 'User', '2013-04-12 08:07:41')
136966
+  (42.2ms) COMMIT
136967
+  (0.1ms) BEGIN
136968
+ 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-04-12 08:07:41', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-04-12 08:07:41', NULL, 50)
136969
+  (67.7ms) COMMIT
136970
+  (0.1ms) BEGIN
136971
+ SQL (29.5ms) DELETE FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`id` = 2
136972
+  (46.8ms) COMMIT
136973
+  (0.1ms) BEGIN
136974
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing14@example.com' LIMIT 1
136975
+ 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-04-12 08:07:42', '2013-04-12 08:07:42', NULL, NULL, 'testing14@example.com', '8df4197c22d92ed9171643b87278d919f479520be03a511433e64c25c587cecf4fa354d3ac048799feb7c9e58b4a0bd9b3df36747d4f4211e71e18b3e13255fd', 0, NULL, NULL, NULL, 'Test', 'WZn9XzHqfRzgkWEyW9ps', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:07:42')
136976
+ 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-04-12 08:07:42', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 7, 'User', '2013-04-12 08:07:42')
136977
+  (29.2ms) COMMIT
136978
+  (0.1ms) BEGIN
136979
+ 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-04-12 08:07:42', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-04-12 08:07:42', NULL, 50)
136980
+  (37.0ms) COMMIT
136981
+  (0.1ms) BEGIN
136982
+ SQL (0.4ms) DELETE FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`id` = 3
136983
+  (20.6ms) COMMIT
136984
+  (0.1ms) BEGIN
136985
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing15@example.com' LIMIT 1
136986
+ 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-04-12 08:07:42', '2013-04-12 08:07:42', NULL, NULL, 'testing15@example.com', 'edf334f8544aee189f32060a4d846b7100e2300831f850c310908f8423a04a64df5f99fcb3c4e72ae79cb2e1893e4f41781a10402ba5d93ebfd0de84c46fbd69', 0, NULL, NULL, NULL, 'Test', 'XCSw7JVx2rq5bqJS5qv3', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:07:42')
136987
+ 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-04-12 08:07:42', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 8, 'User', '2013-04-12 08:07:42')
136988
+  (29.2ms) COMMIT
136989
+  (0.1ms) BEGIN
136990
+ 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-04-12 08:07:42', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-04-12 08:07:42', NULL, 50)
136991
+  (43.9ms) COMMIT
136992
+  (0.1ms) BEGIN
136993
+ SQL (0.4ms) DELETE FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`id` = 4
136994
+  (20.6ms) COMMIT
136995
+  (0.2ms) BEGIN
136996
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing16@example.com' LIMIT 1
136997
+ 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-04-12 08:07:43', '2013-04-12 08:07:43', NULL, NULL, 'testing16@example.com', '4fa5e00f1a140beb8501048df6d31c74affb102a62ddf59e8700ea372ca35f3d64eae100f77226303a4d1dcbfcc0e26f32080e73cda7002330985f9b09aaa1ac', 0, NULL, NULL, NULL, 'Test', 'of8ySVz6ppK3jsxKrg9j', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:07:43')
136998
+ 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-04-12 08:07:43', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 9, 'User', '2013-04-12 08:07:43')
136999
+  (29.3ms) COMMIT
137000
+  (0.1ms) BEGIN
137001
+ SQL (35.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-04-12 08:07:43', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-04-12 08:07:43', NULL, 50)
137002
+  (220.4ms) COMMIT
137003
+  (0.1ms) BEGIN
137004
+ SQL (0.4ms) DELETE FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`id` = 5
137005
+  (31.5ms) COMMIT
137006
+  (0.1ms) BEGIN
137007
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing17@example.com' LIMIT 1
137008
+ 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-04-12 08:07:44', '2013-04-12 08:07:44', NULL, NULL, 'testing17@example.com', '08f198c7e1eaa9870448f482d4ab44cf6236422ec8fbb47cf4419cb40c6594c042c744a13844dc428a931880e1f920199937706aebd5dbc0170bb116fd7d173d', 0, NULL, NULL, NULL, 'Test', 'cpxXkMvuygkRxYV2Qepz', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:07:44')
137009
+ 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-04-12 08:07:44', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 10, 'User', '2013-04-12 08:07:44')
137010
+  (39.0ms) COMMIT
137011
+  (0.1ms) BEGIN
137012
+ 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-04-12 08:07:44', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-04-12 08:07:44', NULL, 50)
137013
+  (35.7ms) COMMIT
137014
+  (0.1ms) BEGIN
137015
+ SQL (1.0ms) DELETE FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`id` = 6
137016
+  (19.9ms) COMMIT
137017
+  (0.1ms) BEGIN
137018
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing18@example.com' LIMIT 1
137019
+ 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-04-12 08:07:44', '2013-04-12 08:07:44', NULL, NULL, 'testing18@example.com', '1f736b23e3971ba1ac78b1e41e4965d02f709ae23dc855f73aea93a77d84c2cd26e16f19c4ae435e80419d0f9487d078cff76b5dd8c5a95d765969d4add9896d', 0, NULL, NULL, NULL, 'Test', 'Gw8wqA346aZr8gwsorkK', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:07:44')
137020
+ 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-04-12 08:07:44', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 11, 'User', '2013-04-12 08:07:44')
137021
+  (29.0ms) COMMIT
137022
+  (0.1ms) BEGIN
137023
+ SQL (1.3ms) 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-04-12 08:07:44', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-04-12 08:07:44', NULL, 50)
137024
+  (43.8ms) COMMIT
137025
+  (0.1ms) BEGIN
137026
+ SQL (0.4ms) DELETE FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`id` = 7
137027
+  (20.4ms) COMMIT
137028
+  (0.1ms) BEGIN
137029
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing19@example.com' LIMIT 1
137030
+ SQL (28.8ms) 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-04-12 08:07:44', '2013-04-12 08:07:44', NULL, NULL, 'testing19@example.com', '2a8e69fc997abfde4831c616a56d4893caf8b3f50e0b3e239beaf5b00937ef979e2ff77867a4f05b0d51eba0b5f0040c41f71e2ad8487c5da1cb4d6f8464ab03', 0, NULL, NULL, NULL, 'Test', 'znV3SdNeTJfx6RCxWu1u', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:07:44')
137031
+ 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-04-12 08:07:44', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 12, 'User', '2013-04-12 08:07:44')
137032
+  (45.3ms) COMMIT
137033
+  (0.1ms) BEGIN
137034
+ 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-04-12 08:07:44', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-04-12 08:07:44', NULL, 50)
137035
+  (19.3ms) COMMIT
137036
+  (0.1ms) BEGIN
137037
+ SQL (0.4ms) DELETE FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`id` = 8
137038
+  (41.3ms) COMMIT
137039
+  (0.1ms) BEGIN
137040
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing20@example.com' LIMIT 1
137041
+ 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-04-12 08:07:45', '2013-04-12 08:07:45', NULL, NULL, 'testing20@example.com', 'b42442671acf0f208fd697aaf76469f1baa4476d695cef42c11eeabbfdbaf9a0552a8f6821dd75fac59c889228b8792e3c665a58594f219da86b2896c1685053', 0, NULL, NULL, NULL, 'Test', 'EhvhwkUpd1kmwYsdjwMs', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:07:45')
137042
+ 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-04-12 08:07:45', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 13, 'User', '2013-04-12 08:07:45')
137043
+  (26.1ms) COMMIT
137044
+  (0.1ms) BEGIN
137045
+ 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-04-12 08:07:45', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-04-12 08:07:45', NULL, 50)
137046
+  (36.9ms) COMMIT
137047
+  (0.1ms) BEGIN
137048
+ SQL (0.4ms) DELETE FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`id` = 9
137049
+  (20.4ms) COMMIT
137050
+  (0.1ms) BEGIN
137051
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing21@example.com' LIMIT 1
137052
+ 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-04-12 08:07:45', '2013-04-12 08:07:45', NULL, NULL, 'testing21@example.com', 'fe470b79fec4b698ff50857b70d67bc3ea13d9a0b7381664661faf69c6b799b43b87a5fa4b5dca9adc26ca030265fb54526243c79afe6b789e57c13f21fed7f3', 0, NULL, NULL, NULL, 'Test', 'LMZpBAKZyQuEr8CJnEE9', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:07:45')
137053
+ 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-04-12 08:07:45', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 14, 'User', '2013-04-12 08:07:45')
137054
+  (25.8ms) COMMIT
137055
+  (0.1ms) BEGIN
137056
+ 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 (14, 'User', '2013-04-12 08:07:45', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-04-12 08:07:45', NULL, 50)
137057
+  (37.4ms) COMMIT
137058
+  (0.1ms) BEGIN
137059
+ SQL (30.9ms) DELETE FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`id` = 10
137060
+  (41.6ms) COMMIT
137061
+  (0.1ms) BEGIN
137062
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing22@example.com' LIMIT 1
137063
+ 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-04-12 08:07:46', '2013-04-12 08:07:46', NULL, NULL, 'testing22@example.com', '4173e384c7eb079aaec9b6e3e6d937aa14969f3768f0e3de84fd2536f27fd05b5c29fdadb0dbb606dd84c0f9c406ce6fbd3bd59e7a09bc32e6acfc6cbddf7929', 0, NULL, NULL, NULL, 'Test', 'p2DW7psadsmTVTJXzf6o', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:07:46')
137064
+ 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-04-12 08:07:46', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 15, 'User', '2013-04-12 08:07:46')
137065
+  (26.2ms) COMMIT
137066
+  (0.1ms) BEGIN
137067
+ SQL (30.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 (15, 'User', '2013-04-12 08:07:46', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-04-12 08:07:46', NULL, 50)
137068
+  (61.8ms) COMMIT
137069
+  (0.1ms) BEGIN
137070
+  (0.1ms) ROLLBACK
137071
+  (0.1ms) BEGIN
137072
+ SQL (0.4ms) DELETE FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`id` = 11
137073
+  (38.1ms) COMMIT
137074
+  (0.2ms) BEGIN
137075
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing23@example.com' LIMIT 1
137076
+ SQL (22.2ms) 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-04-12 08:07:47', '2013-04-12 08:07:47', NULL, NULL, 'testing23@example.com', '746a3b6b915ecbf5160cf43ce9838a41c9f22b1affed29ed304706e322cc3cd03df31d0180e44e452d93a4766ff5b6a265adf347c956c6e4d1c179ccb8e6c392', 0, NULL, NULL, NULL, 'Test', 'L5wwtofDfjEw2K61Rpi3', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:07:47')
137077
+ 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-04-12 08:07:47', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 16, 'User', '2013-04-12 08:07:47')
137078
+  (56.5ms) COMMIT
137079
+  (0.1ms) BEGIN
137080
+ 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-04-12 08:07:47', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-04-12 08:07:47', NULL, 50)
137081
+  (48.2ms) COMMIT
137082
+  (0.1ms) BEGIN
137083
+ SQL (0.9ms) DELETE FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`id` = 12
137084
+  (42.2ms) COMMIT
137085
+  (0.1ms) BEGIN
137086
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing24@example.com' LIMIT 1
137087
+ 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-04-12 08:07:47', '2013-04-12 08:07:47', NULL, NULL, 'testing24@example.com', '16b78a83aa3fd995074cd65408ca7944e4517968160114e3b59c540a3a2ed092f2f90e60cc9742f6300d1d59a1b4e7c5e7536ce1c778af97b5157dac26e4c8ac', 0, NULL, NULL, NULL, 'Test', 'ANdMpNmdCt5NMxaLJvBi', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:07:47')
137088
+ 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-04-12 08:07:47', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 17, 'User', '2013-04-12 08:07:47')
137089
+  (28.9ms) COMMIT
137090
+  (0.1ms) BEGIN
137091
+ SQL (1.0ms) 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-04-12 08:07:47', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-04-12 08:07:47', NULL, 50)
137092
+  (36.4ms) COMMIT
137093
+  (0.1ms) BEGIN
137094
+ SQL (0.4ms) DELETE FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`id` = 13
137095
+  (54.0ms) COMMIT
137096
+  (0.1ms) BEGIN
137097
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing25@example.com' LIMIT 1
137098
+ 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-04-12 08:07:48', '2013-04-12 08:07:48', NULL, NULL, 'testing25@example.com', 'f72ceb7f3d991f1c3df0d512744615d7cd1f2b76ad1186b09ac70784c70370553934ce895edc84e76108dd9798af7b05551670587a2a6800ca418cec59013da0', 0, NULL, NULL, NULL, 'Test', '3zaRqwysqp7ZhqseyGpT', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:07:48')
137099
+ 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-04-12 08:07:48', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 18, 'User', '2013-04-12 08:07:48')
137100
+  (28.1ms) COMMIT
137101
+  (0.1ms) BEGIN
137102
+ 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 (18, 'User', '2013-04-12 08:07:48', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-04-12 08:07:48', NULL, 50)
137103
+  (19.9ms) COMMIT
137104
+  (0.1ms) BEGIN
137105
+  (0.1ms) ROLLBACK
137106
+  (0.1ms) BEGIN
137107
+ SQL (0.4ms) DELETE FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`id` = 14
137108
+  (29.5ms) COMMIT
137109
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
137110
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
137111
+  (262.0ms) TRUNCATE TABLE `activities`;
137112
+  (264.0ms) TRUNCATE TABLE `assets`;
137113
+  (319.2ms) TRUNCATE TABLE `audits`;
137114
+  (255.9ms) TRUNCATE TABLE `meta_tags`;
137115
+  (146.4ms) TRUNCATE TABLE `page_parts`;
137116
+  (250.3ms) TRUNCATE TABLE `posts`;
137117
+  (183.6ms) TRUNCATE TABLE `settings`;
137118
+  (307.9ms) TRUNCATE TABLE `structures`;
137119
+  (442.0ms) TRUNCATE TABLE `users`;
137120
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
137121
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
137122
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
137123
+  (337.9ms) TRUNCATE TABLE `activities`;
137124
+  (799.3ms) TRUNCATE TABLE `assets`;
137125
+  (806.9ms) TRUNCATE TABLE `audits`;
137126
+  (140.1ms) TRUNCATE TABLE `meta_tags`;
137127
+  (264.9ms) TRUNCATE TABLE `page_parts`;
137128
+  (395.6ms) TRUNCATE TABLE `posts`;
137129
+  (150.4ms) TRUNCATE TABLE `settings`;
137130
+  (384.3ms) TRUNCATE TABLE `structures`;
137131
+  (376.6ms) TRUNCATE TABLE `users`;
137132
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
137133
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
137134
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
137135
+  (615.5ms) TRUNCATE TABLE `activities`;
137136
+  (254.9ms) TRUNCATE TABLE `assets`;
137137
+  (341.0ms) TRUNCATE TABLE `audits`;
137138
+  (339.3ms) TRUNCATE TABLE `meta_tags`;
137139
+  (404.6ms) TRUNCATE TABLE `page_parts`;
137140
+  (186.2ms) TRUNCATE TABLE `posts`;
137141
+  (294.3ms) TRUNCATE TABLE `settings`;
137142
+  (387.0ms) TRUNCATE TABLE `structures`;
137143
+  (372.5ms) TRUNCATE TABLE `users`;
137144
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
137145
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
137146
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
137147
+  (365.0ms) TRUNCATE TABLE `activities`;
137148
+  (378.3ms) TRUNCATE TABLE `assets`;
137149
+  (440.0ms) TRUNCATE TABLE `audits`;
137150
+  (383.9ms) TRUNCATE TABLE `meta_tags`;
137151
+  (184.6ms) TRUNCATE TABLE `page_parts`;
137152
+  (237.1ms) TRUNCATE TABLE `posts`;
137153
+  (216.9ms) TRUNCATE TABLE `settings`;
137154
+  (362.2ms) TRUNCATE TABLE `structures`;
137155
+  (441.8ms) TRUNCATE TABLE `users`;
137156
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
137157
+  (0.1ms) BEGIN
137158
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing26@example.com' LIMIT 1
137159
+ SQL (34.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-04-12 08:08:00', '2013-04-12 08:08:00', NULL, NULL, 'testing26@example.com', 'd78e0197d7b7c3ad5c01dba6ed99e5c111c325c90f5dc7a00174c99476708a75173381008cf2bba263dd6034de2631c0dcb3b244257ffece86212eeb286c74e7', 0, NULL, NULL, NULL, 'Test', 'Pmg7MaEJdWxjyTFGrafD', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:08:00')
137160
+ 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-04-12 08:08:00', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:08:00')
137161
+  (60.8ms) COMMIT
137162
+  (0.1ms) BEGIN
137163
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing27@example.com' LIMIT 1
137164
+ 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-04-12 08:08:01', '2013-04-12 08:08:01', NULL, NULL, 'testing27@example.com', '6faea2e80e9a03ede8583c4ae0538a58c3ef924be6644a1609107c9e2bef918896e14c7617d3ba0df98682eaf7ef87044810580333afdee9f27950ac106f4fff', 0, NULL, NULL, NULL, 'Test', '5t8sTAbn2LY8ZEm1247Z', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:08:01')
137165
+ 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-04-12 08:08:01', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 2, 'User', '2013-04-12 08:08:01')
137166
+  (39.6ms) COMMIT
137167
+  (0.1ms) BEGIN
137168
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing28@example.com' LIMIT 1
137169
+ SQL (24.8ms) 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-04-12 08:08:02', '2013-04-12 08:08:02', NULL, NULL, 'testing28@example.com', '9e0819c6d85a4ba3b6bade55f99017f01dfeb67bd02d137bf1c3aad2530d638ccfd7694bd24141ad13455e8d621e0dc42b08121c4af12cf8987710bb6d691ce5', 0, NULL, NULL, NULL, 'Test', '6wBPBo9pMXfUmvCBUUQq', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:08:02')
137170
+ 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-04-12 08:08:02', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 3, 'User', '2013-04-12 08:08:02')
137171
+  (42.9ms) COMMIT
137172
+  (0.1ms) BEGIN
137173
+ User Exists (75.8ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing29@example.com' LIMIT 1
137174
+ 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-04-12 08:08:02', '2013-04-12 08:08:02', NULL, NULL, 'testing29@example.com', '4c8800fca35d95ca60a21b1637188e1aa069c5ed744904c31b5834367d0b19873e875138d2831d937f29eae994232c97e6aa4b3b972f4354d20519878281c36d', 0, NULL, NULL, NULL, 'Test', '8SpT2GstNZgWgNYrqYax', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:08:02')
137175
+ 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-04-12 08:08:02', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 4, 'User', '2013-04-12 08:08:02')
137176
+  (24.4ms) COMMIT
137177
+  (0.2ms) BEGIN
137178
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing30@example.com' LIMIT 1
137179
+ 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-04-12 08:08:03', '2013-04-12 08:08:03', NULL, NULL, 'testing30@example.com', 'f2609c0949ad889a45f0851369cf0cdc18f2e0998744e6dd4d808bacdc8ae366c72892fb0051c36faf71736ef44b0e6c52ececef53f52f7644ef6b462f6988d5', 0, NULL, NULL, NULL, 'Test', 'sqxyqjryW2fs9n4syZvX', NULL, NULL, NULL, 1, 0, NULL, '2013-04-12 08:08:03')
137180
+ 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-04-12 08:08:03', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 5, 'User', '2013-04-12 08:08:03')
137181
+  (38.6ms) COMMIT
137182
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
137183
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
137184
+  (911.9ms) TRUNCATE TABLE `activities`;
137185
+  (1865.0ms) TRUNCATE TABLE `assets`;
137186
+  (1263.1ms) TRUNCATE TABLE `audits`;
137187
+  (698.4ms) TRUNCATE TABLE `meta_tags`;
137188
+  (184.8ms) TRUNCATE TABLE `page_parts`;
137189
+  (474.4ms) TRUNCATE TABLE `posts`;
137190
+  (333.1ms) TRUNCATE TABLE `settings`;
137191
+  (382.3ms) TRUNCATE TABLE `structures`;
137192
+  (398.7ms) TRUNCATE TABLE `users`;
137193
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
137194
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
137195
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
137196
+  (206.3ms) TRUNCATE TABLE `activities`;
137197
+  (317.2ms) TRUNCATE TABLE `assets`;
137198
+  (309.0ms) TRUNCATE TABLE `audits`;
137199
+  (351.3ms) TRUNCATE TABLE `meta_tags`;
137200
+  (151.4ms) TRUNCATE TABLE `page_parts`;
137201
+  (249.6ms) TRUNCATE TABLE `posts`;
137202
+  (150.3ms) TRUNCATE TABLE `settings`;
137203
+  (317.6ms) TRUNCATE TABLE `structures`;
137204
+  (387.3ms) TRUNCATE TABLE `users`;
137205
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
137206
+  (0.1ms) BEGIN
137207
+ Structure Load (27.2ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
137208
+ 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-04-12 08:08:13', 0, 1, 1, NULL, 2, NULL, 2, 'slug1', 1, 'Structure', '2013-04-12 08:08:13')
137209
+ 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-04-12 08:08:13', 'structure.create', NULL, NULL, '--- {}\n', NULL, NULL, 1, 'Structure', '2013-04-12 08:08:13')
137210
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
137211
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
137212
+  (39.1ms) COMMIT
137213
+  (44.3ms) SELECT COUNT(*) FROM `structures`
137214
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` IN (1)
137215
+  (0.1ms) BEGIN
137216
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
137217
+ SQL (0.3ms) DELETE FROM `structures` WHERE (`lft` > 1 AND `rgt` < 2)
137218
+ SQL (0.2ms) UPDATE `structures` SET `lft` = (`lft` - 2) WHERE (`structures`.`lft` > 2) ORDER BY `structures`.`lft`
137219
+ SQL (0.2ms) UPDATE `structures` SET `rgt` = (`rgt` - 2) WHERE (`structures`.`rgt` > 2) ORDER BY `structures`.`lft`
137220
+ PagePart Load (0.4ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 1 AND `page_parts`.`partable_type` = 'Structure'
137221
+ MetaTag Load (0.4ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 1 AND `meta_tags`.`taggable_type` = 'Structure'
137222
+ 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-04-12 08:08:13', 'structure.destroy', NULL, NULL, '--- {}\n', NULL, NULL, 1, 'Structure', '2013-04-12 08:08:13')
137223
+ Post Load (0.3ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 1
137224
+ SQL (0.3ms) DELETE FROM `structures` WHERE `structures`.`id` = 1
137225
+  (41.5ms) COMMIT
137226
+  (0.4ms) SELECT COUNT(*) FROM `structures` 
137227
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
137228
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
137229
+  (196.4ms) TRUNCATE TABLE `activities`;
137230
+  (366.3ms) TRUNCATE TABLE `assets`;
137231
+  (439.5ms) TRUNCATE TABLE `audits`;
137232
+  (372.3ms) TRUNCATE TABLE `meta_tags`;
137233
+  (162.3ms) TRUNCATE TABLE `page_parts`;
137234
+  (237.4ms) TRUNCATE TABLE `posts`;
137235
+  (150.2ms) TRUNCATE TABLE `settings`;
137236
+  (624.1ms) TRUNCATE TABLE `structures`;
137237
+  (545.1ms) TRUNCATE TABLE `users`;
137238
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
137239
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
137240
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
137241
+  (332.5ms) TRUNCATE TABLE `activities`;
137242
+  (318.1ms) TRUNCATE TABLE `assets`;
137243
+  (364.6ms) TRUNCATE TABLE `audits`;
137244
+  (241.2ms) TRUNCATE TABLE `meta_tags`;
137245
+  (567.3ms) TRUNCATE TABLE `page_parts`;
137246
+  (505.5ms) TRUNCATE TABLE `posts`;
137247
+  (205.6ms) TRUNCATE TABLE `settings`;
137248
+  (284.3ms) TRUNCATE TABLE `structures`;
137249
+  (1445.5ms) TRUNCATE TABLE `users`;
137250
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
137251
+  (0.1ms) BEGIN
137252
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
137253
+ 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-04-12 08:08:21', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-04-12 08:08:21')
137254
+ 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-04-12 08:08:21', 'structure.create', NULL, NULL, '--- {}\n', NULL, NULL, 1, 'Structure', '2013-04-12 08:08:21')
137255
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
137256
+ SQL (0.5ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
137257
+  (34.5ms) COMMIT
137258
+  (0.2ms) BEGIN
137259
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
137260
+ 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-04-12 08:08:21', 0, 1, 3, 1, 2, NULL, 4, 'slug2', 1, 'Structure', '2013-04-12 08:08:21')
137261
+ SQL (184.7ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-04-12 08:08:21', 'structure.create', NULL, NULL, '--- {}\n', NULL, NULL, 2, 'Structure', '2013-04-12 08:08:21')
137262
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
137263
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
137264
+ 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`
137265
+ Structure Load (0.5ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
137266
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137267
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137268
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
137269
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137270
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
137271
+ Structure Load (0.5ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
137272
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137273
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137274
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
137275
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137276
+  (192.7ms) COMMIT
137277
+  (0.1ms) BEGIN
137278
+  (2.1ms) ROLLBACK
137279
+ Structure Load (0.8ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137280
+ Structure Load (0.8ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
137281
+  (0.8ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137282
+  (0.1ms) BEGIN
137283
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
137284
+ 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-04-12 08:08:21', 'structure.update', NULL, NULL, '--- {}\n', NULL, NULL, 2, 'Structure', '2013-04-12 08:08:21')
137285
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137286
+  (0.7ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137287
+ SQL (0.6ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
137288
+  (0.7ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137289
+  (26.8ms) COMMIT
137290
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137291
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
137292
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
137293
+  (0.1ms) BEGIN
137294
+ SQL (160.1ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-04-12 08:08:21', 'structure.update', NULL, NULL, '--- {}\n', NULL, NULL, 2, 'Structure', '2013-04-12 08:08:21')
137295
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137296
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137297
+ SQL (0.5ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
137298
+  (0.7ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137299
+  (45.9ms) COMMIT
137300
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137301
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
137302
+  (0.1ms) BEGIN
137303
+ 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-04-12 08:08:22', 'structure.update', NULL, NULL, '--- {}\n', NULL, NULL, 2, 'Structure', '2013-04-12 08:08:22')
137304
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137305
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137306
+ SQL (0.5ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
137307
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137308
+  (235.8ms) COMMIT
137309
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137310
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
137311
+  (0.2ms) BEGIN
137312
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
137313
+ 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-04-12 08:08:22', 0, 1, 5, 2, 2, NULL, 6, 'slug3', 1, 'Structure', '2013-04-12 08:08:22')
137314
+ SQL (3.8ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-04-12 08:08:22', 'structure.create', NULL, NULL, '--- {}\n', NULL, NULL, 3, 'Structure', '2013-04-12 08:08:22')
137315
+ Structure Load (0.7ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft` LIMIT 1
137316
+ Structure Load (0.6ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1 FOR UPDATE
137317
+ SQL (0.6ms) 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`
137318
+ Structure Load (0.5ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
137319
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1
137320
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
137321
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 2 WHERE `structures`.`id` = 3 ORDER BY `structures`.`lft`
137322
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
137323
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 3 AND `structures`.`lft` < 4) AND (`structures`.id != 3) ORDER BY `structures`.`lft`
137324
+ Structure Load (0.5ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1 FOR UPDATE
137325
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1
137326
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
137327
+ SQL (0.5ms) UPDATE `structures` SET `depth` = 2 WHERE `structures`.`id` = 3 ORDER BY `structures`.`lft`
137328
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
137329
+  (36.1ms) COMMIT
137330
+  (0.1ms) BEGIN
137331
+ 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-04-12 08:08:22', 'structure.update', NULL, NULL, '--- {}\n', NULL, NULL, 2, 'Structure', '2013-04-12 08:08:22')
137332
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137333
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
137334
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
137335
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
137336
+  (49.2ms) COMMIT
137337
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137338
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
137339
+ Structure Load (35.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
137340
+ Structure Load (0.9ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 6) ORDER BY `structures`.`lft`
137341
+  (0.1ms) BEGIN
137342
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
137343
+ SQL (19.8ms) 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-04-12 08:08:22', 0, 1, 7, 1, 2, NULL, 8, 'slug4', 1, 'Some super title', '2013-04-12 08:08:22')
137344
+ 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-04-12 08:08:22', 'structure.create', NULL, NULL, '--- {}\n', NULL, NULL, 4, 'Structure', '2013-04-12 08:08:22')
137345
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
137346
+ Structure Load (0.5ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1 FOR UPDATE
137347
+ SQL (0.6ms) 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`
137348
+ Structure Load (0.5ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
137349
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1
137350
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
137351
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 4 ORDER BY `structures`.`lft`
137352
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
137353
+ Structure Load (0.7ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 6 AND `structures`.`lft` < 7) AND (`structures`.id != 4) ORDER BY `structures`.`lft`
137354
+ Structure Load (0.6ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1 FOR UPDATE
137355
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1
137356
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
137357
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 4 ORDER BY `structures`.`lft`
137358
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
137359
+  (40.9ms) COMMIT
137360
+  (0.1ms) BEGIN
137361
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
137362
+  (0.6ms) UPDATE `structures` SET `title` = 'Other big title', `updated_at` = '2013-04-12 08:08:22' WHERE `structures`.`id` = 4
137363
+ 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-04-12 08:08:22', 'structure.update', NULL, NULL, '--- {}\n', NULL, NULL, 4, 'Structure', '2013-04-12 08:08:22')
137364
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1
137365
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
137366
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 4 ORDER BY `structures`.`lft`
137367
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
137368
+  (43.4ms) COMMIT
137369
+  (0.1ms) BEGIN
137370
+ Structure Load (0.7ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
137371
+ 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-04-12 08:08:22', 0, 1, 9, 1, 2, NULL, 10, 'original-slug', 1, 'Tra ta ta', '2013-04-12 08:08:22')
137372
+ 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-04-12 08:08:22', 'structure.create', NULL, NULL, '--- {}\n', NULL, NULL, 5, 'Structure', '2013-04-12 08:08:22')
137373
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
137374
+ Structure Load (0.5ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 5 LIMIT 1 FOR UPDATE
137375
+ 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`
137376
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
137377
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 5 LIMIT 1
137378
+  (1.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 8 AND `structures`.`rgt` >= 9) AND (`structures`.id != 5)
137379
+ SQL (0.7ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 5 ORDER BY `structures`.`lft`
137380
+  (1.1ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 8 AND `structures`.`rgt` >= 9) AND (`structures`.id != 5)
137381
+ Structure Load (1.1ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 8 AND `structures`.`lft` < 9) AND (`structures`.id != 5) ORDER BY `structures`.`lft`
137382
+ Structure Load (0.8ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 5 LIMIT 1 FOR UPDATE
137383
+ Structure Load (0.7ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 5 LIMIT 1
137384
+  (0.8ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 8 AND `structures`.`rgt` >= 9) AND (`structures`.id != 5)
137385
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 5 ORDER BY `structures`.`lft`
137386
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 8 AND `structures`.`rgt` >= 9) AND (`structures`.id != 5)
137387
+  (16.0ms) COMMIT
137388
+ Structure Load (0.8ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 5 LIMIT 1
137389
+  (0.1ms) BEGIN
137390
+ 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-04-12 08:08:22', 'structure.update', NULL, NULL, '--- {}\n', NULL, NULL, 2, 'Structure', '2013-04-12 08:08:22')
137391
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137392
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
137393
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
137394
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
137395
+  (44.9ms) COMMIT
137396
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137397
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = 'slug2' LIMIT 1
137398
+  (0.1ms) BEGIN
137399
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
137400
+ 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-04-12 08:08:22', 'structure.update', NULL, NULL, '--- {}\n', NULL, NULL, 2, 'Structure', '2013-04-12 08:08:22')
137401
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137402
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
137403
+ SQL (0.6ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
137404
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
137405
+  (45.0ms) COMMIT
137406
+ Structure Load (29.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1365754102 LIMIT 1
137407
+  (0.1ms) BEGIN
137408
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
137409
+ 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-04-12 08:08:22', 'structure.update', NULL, NULL, '--- {}\n', NULL, NULL, 2, 'Structure', '2013-04-12 08:08:22')
137410
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137411
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
137412
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
137413
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
137414
+  (41.1ms) COMMIT
137415
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = 'wrong' LIMIT 1
137416
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = 'slug2' LIMIT 1
137417
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
137418
+  (0.3ms) SET FOREIGN_KEY_CHECKS = 0
137419
+  (202.6ms) TRUNCATE TABLE `activities`;
137420
+  (251.1ms) TRUNCATE TABLE `assets`;
137421
+  (320.3ms) TRUNCATE TABLE `audits`;
137422
+  (250.4ms) TRUNCATE TABLE `meta_tags`;
137423
+  (162.7ms) TRUNCATE TABLE `page_parts`;
137424
+  (699.9ms) TRUNCATE TABLE `posts`;
137425
+  (348.5ms) TRUNCATE TABLE `settings`;
137426
+  (363.5ms) TRUNCATE TABLE `structures`;
137427
+  (331.4ms) TRUNCATE TABLE `users`;
137428
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
137429
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
137430
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
137431
+  (322.1ms) TRUNCATE TABLE `activities`;
137432
+  (290.8ms) TRUNCATE TABLE `assets`;
137433
+  (203.2ms) TRUNCATE TABLE `audits`;
137434
+  (283.3ms) TRUNCATE TABLE `meta_tags`;
137435
+  (350.8ms) TRUNCATE TABLE `page_parts`;
137436
+  (139.1ms) TRUNCATE TABLE `posts`;
137437
+  (259.0ms) TRUNCATE TABLE `settings`;
137438
+  (241.5ms) TRUNCATE TABLE `structures`;
137439
+  (331.5ms) TRUNCATE TABLE `users`;
137440
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
137441
+  (0.2ms) BEGIN
137442
+ User Exists (0.7ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY '1365754108@gmail.com' LIMIT 1
137443
+ 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-04-12 08:08:28', '2013-04-12 08:08:28', NULL, NULL, '1365754108@gmail.com', 'c11e649fb4955aa6f829c123da0a46063f28024dfeea9359809cae78cbfeb004ce2ad44f523a3691cabf8d3b14299e17f6c2db7eb9f00cd8b99c5576352287e8', 0, NULL, NULL, NULL, 'Admin', 'fr2FBmKKJ7QfEvokJepx', NULL, NULL, NULL, 4, 0, NULL, '2013-04-12 08:08:28')
137444
+ 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-04-12 08:08:28', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:08:28')
137445
+  (38.1ms) COMMIT
137446
+  (0.2ms) BEGIN
137447
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
137448
+ 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-04-12 08:08:28', 0, 1, 1, NULL, 2, NULL, 2, 'slug6', 1, 'Structure', '2013-04-12 08:08:28')
137449
+ 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-04-12 08:08:28', 'structure.create', NULL, NULL, '--- {}\n', NULL, NULL, 1, 'Structure', '2013-04-12 08:08:28')
137450
+ Structure Load (0.7ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
137451
+ SQL (0.6ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
137452
+  (34.2ms) COMMIT
137453
+  (0.1ms) BEGIN
137454
+ SQL (0.4ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-04-12 08:08:28', 1, 1, 'Default title', '2013-04-12 08:08:28')
137455
+ 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-04-12 08:08:28', 'post.create', NULL, NULL, '--- {}\n', NULL, NULL, 1, 'Post', '2013-04-12 08:08:28')
137456
+  (40.3ms) COMMIT
137457
+  (0.2ms) BEGIN
137458
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing31@example.com' LIMIT 1
137459
+ 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-04-12 08:08:28', '2013-04-12 08:08:28', NULL, NULL, 'testing31@example.com', '75099f064cb6988f67fb85fbbdc877b0407e442b80491b0354125c0dd12e97b29f05dea6150afdfed19837736f238a7a51d9aaf8890ffbc50898bb351a38807a', 0, NULL, NULL, NULL, 'Redactor', '4fZFyL53SmxqTBBKhgYy', NULL, NULL, NULL, 2, 0, NULL, '2013-04-12 08:08:28')
137460
+ 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-04-12 08:08:28', 'user.create', NULL, NULL, '--- {}\n', NULL, NULL, 2, 'User', '2013-04-12 08:08:28')
137461
+  (39.6ms) COMMIT
137462
+  (0.1ms) BEGIN
137463
+ 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-04-12 08:08:28', 'post.create', 2, 'User', '--- {}\n', NULL, NULL, 1, 'Post', '2013-04-12 08:08:28')
137464
+  (40.2ms) COMMIT
137465
+ Started GET "/manage/" for 127.0.0.1 at 2013-04-12 11:08:28 +0300
137466
+  (0.1ms) BEGIN
137467
+ 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-04-12 08:08:28', 'user.update', NULL, NULL, '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:08:28')
137468
+  (30.1ms) COMMIT
137469
+  (0.1ms) BEGIN
137470
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-04-12 08:08:28', `current_sign_in_at` = '2013-04-12 08:08:28', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-04-12 08:08:28' WHERE `users`.`id` = 1
137471
+ 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-04-12 08:08:28', 'user.update', NULL, NULL, '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:08:28')
137472
+  (36.9ms) COMMIT
137473
+ Processing by Sunrise::DashboardController#index as HTML
137474
+ PublicActivity::ORM::ActiveRecord::Activity Load (0.7ms) SELECT `activities`.* FROM `activities` ORDER BY created_at DESC LIMIT 50 OFFSET 0
137475
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
137476
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
137477
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
137478
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1
137479
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1
137480
+ CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
137481
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
137482
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
137483
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_activity.html.erb (35.1ms)
137484
+  (27.2ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `activities` LIMIT 50 OFFSET 0) subquery_for_count
137485
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/index.html.erb within layouts/sunrise/application (111.9ms)
137486
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (128.4ms)
137487
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (2.6ms)
137488
+ Completed 200 OK in 331ms (Views: 265.0ms | ActiveRecord: 29.9ms)
137489
+ Started GET "/manage/" for 127.0.0.1 at 2013-04-12 11:08:29 +0300
137490
+  (0.1ms) BEGIN
137491
+ 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-04-12 08:08:29', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:08:29')
137492
+  (36.6ms) COMMIT
137493
+  (0.1ms) BEGIN
137494
+  (0.4ms) UPDATE `users` SET `current_sign_in_at` = '2013-04-12 08:08:29', `sign_in_count` = 2, `updated_at` = '2013-04-12 08:08:29' WHERE `users`.`id` = 1
137495
+ 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-04-12 08:08:29', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:08:29')
137496
+  (37.3ms) COMMIT
137497
+ Processing by Sunrise::DashboardController#index as HTML
137498
+ PublicActivity::ORM::ActiveRecord::Activity Load (0.6ms) SELECT `activities`.* FROM `activities` ORDER BY created_at DESC LIMIT 50 OFFSET 0
137499
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
137500
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
137501
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
137502
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
137503
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
137504
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
137505
+ Post Load (0.1ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
137506
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1
137507
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1
137508
+ CACHE (0.0ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
137509
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
137510
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
137511
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_activity.html.erb (35.2ms)
137512
+  (0.6ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `activities` LIMIT 50 OFFSET 0) subquery_for_count 
137513
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.5ms)
137514
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (1.4ms)
137515
+ Completed 200 OK in 64ms (Views: 50.3ms | ActiveRecord: 2.7ms)
137516
+ Started GET "/manage/" for 127.0.0.1 at 2013-04-12 11:08:29 +0300
137517
+ Processing by Sunrise::DashboardController#index as HTML
137518
+ Completed 401 Unauthorized in 1ms
137519
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-04-12 11:08:29 +0300
137520
+ Processing by Devise::SessionsController#new as HTML
137521
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.3/app/views/devise/shared/_links.erb (4.8ms)
137522
+ Completed 200 OK in 67ms (Views: 64.7ms | ActiveRecord: 0.0ms)
137523
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
137524
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
137525
+  (165.4ms) TRUNCATE TABLE `activities`;
137526
+  (296.6ms) TRUNCATE TABLE `assets`;
137527
+  (319.7ms) TRUNCATE TABLE `audits`;
137528
+  (261.7ms) TRUNCATE TABLE `meta_tags`;
137529
+  (140.2ms) TRUNCATE TABLE `page_parts`;
137530
+  (281.3ms) TRUNCATE TABLE `posts`;
137531
+  (138.9ms) TRUNCATE TABLE `settings`;
137532
+  (308.7ms) TRUNCATE TABLE `structures`;
137533
+  (621.7ms) TRUNCATE TABLE `users`;
137534
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
137535
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
137536
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
137537
+  (1635.9ms) TRUNCATE TABLE `activities`;
137538
+  (786.9ms) TRUNCATE TABLE `assets`;
137539
+  (308.3ms) TRUNCATE TABLE `audits`;
137540
+  (183.2ms) TRUNCATE TABLE `meta_tags`;
137541
+  (262.9ms) TRUNCATE TABLE `page_parts`;
137542
+  (221.3ms) TRUNCATE TABLE `posts`;
137543
+  (145.9ms) TRUNCATE TABLE `settings`;
137544
+  (330.4ms) TRUNCATE TABLE `structures`;
137545
+  (353.7ms) TRUNCATE TABLE `users`;
137546
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
137547
+  (0.1ms) BEGIN
137548
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing32@example.com' LIMIT 1
137549
+ 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-04-12 08:08:36', '2013-04-12 08:08:36', NULL, NULL, 'testing32@example.com', '7bc9916d9893fc4bf32af8d0594b8908f6a0f00140365d0d4a41863fda2489e3cd586f92c7be6fa376a4a2a60bbe73387efff3fd32a6b653ab80532a42cb5935', 0, NULL, NULL, NULL, 'Admin', 'bfRqg3Xqd88HkjTP2zat', NULL, NULL, NULL, 4, 0, NULL, '2013-04-12 08:08:36')
137550
+ 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-04-12 08:08:36', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:08:36')
137551
+  (32.2ms) COMMIT
137552
+  (0.1ms) BEGIN
137553
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
137554
+ 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-04-12 08:08:36', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-04-12 08:08:36')
137555
+ 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-04-12 08:08:36', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-04-12 08:08:36')
137556
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
137557
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
137558
+  (34.8ms) COMMIT
137559
+  (0.3ms) BEGIN
137560
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
137561
+ 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-04-12 08:08:36', 0, 1, 3, 1, 2, NULL, 4, 'slug7', 1, 'Structure', '2013-04-12 08:08:36')
137562
+ SQL (90.0ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-04-12 08:08:36', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-04-12 08:08:36')
137563
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
137564
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
137565
+ 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`
137566
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
137567
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137568
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137569
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
137570
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137571
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
137572
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
137573
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137574
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137575
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
137576
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137577
+  (39.2ms) COMMIT
137578
+ Started GET "/manage/structures/2" for 127.0.0.1 at 2013-04-12 11:08:36 +0300
137579
+  (0.1ms) BEGIN
137580
+ 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-04-12 08:08:36', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:08:36')
137581
+  (50.1ms) COMMIT
137582
+  (0.2ms) BEGIN
137583
+  (0.6ms) UPDATE `users` SET `last_sign_in_at` = '2013-04-12 08:08:37', `current_sign_in_at` = '2013-04-12 08:08:37', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-04-12 08:08:37' WHERE `users`.`id` = 1
137584
+ 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-04-12 08:08:37', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:08:37')
137585
+  (56.6ms) COMMIT
137586
+ Processing by Sunrise::ManagerController#show as HTML
137587
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
137588
+ Structure Load (1.0ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137589
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (5.2ms)
137590
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (1.4ms)
137591
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_controls.html.erb (0.7ms)
137592
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_show.html.erb (33.4ms)
137593
+ Completed 200 OK in 182ms (Views: 61.2ms | ActiveRecord: 1.0ms)
137594
+ Started GET "/manage/structures/2" for 127.0.0.1 at 2013-04-12 11:08:37 +0300
137595
+  (0.2ms) BEGIN
137596
+ 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-04-12 08:08:37', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:08:37')
137597
+  (15.3ms) COMMIT
137598
+  (0.2ms) BEGIN
137599
+  (0.5ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-04-12 08:08:37' WHERE `users`.`id` = 1
137600
+ 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-04-12 08:08:37', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:08:37')
137601
+  (46.3ms) COMMIT
137602
+ Processing by Sunrise::ManagerController#show as HTML
137603
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
137604
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137605
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.5ms)
137606
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
137607
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_controls.html.erb (0.1ms)
137608
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_show.html.erb (5.6ms)
137609
+ Completed 200 OK in 19ms (Views: 14.9ms | ActiveRecord: 0.2ms)
137610
+ Started GET "/manage/structures/2" for 127.0.0.1 at 2013-04-12 11:08:37 +0300
137611
+ Processing by Sunrise::ManagerController#show as HTML
137612
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
137613
+ Completed 401 Unauthorized in 1ms
137614
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-04-12 11:08:37 +0300
137615
+ Processing by Devise::SessionsController#new as HTML
137616
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.3/app/views/devise/shared/_links.erb (1.2ms)
137617
+ Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.0ms)
137618
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
137619
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
137620
+  (190.6ms) TRUNCATE TABLE `activities`;
137621
+  (252.0ms) TRUNCATE TABLE `assets`;
137622
+  (356.0ms) TRUNCATE TABLE `audits`;
137623
+  (385.2ms) TRUNCATE TABLE `meta_tags`;
137624
+  (272.8ms) TRUNCATE TABLE `page_parts`;
137625
+  (116.8ms) TRUNCATE TABLE `posts`;
137626
+  (261.0ms) TRUNCATE TABLE `settings`;
137627
+  (320.0ms) TRUNCATE TABLE `structures`;
137628
+  (340.5ms) TRUNCATE TABLE `users`;
137629
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
137630
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
137631
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
137632
+  (175.6ms) TRUNCATE TABLE `activities`;
137633
+  (285.5ms) TRUNCATE TABLE `assets`;
137634
+  (352.4ms) TRUNCATE TABLE `audits`;
137635
+  (255.1ms) TRUNCATE TABLE `meta_tags`;
137636
+  (169.9ms) TRUNCATE TABLE `page_parts`;
137637
+  (284.1ms) TRUNCATE TABLE `posts`;
137638
+  (198.8ms) TRUNCATE TABLE `settings`;
137639
+  (330.4ms) TRUNCATE TABLE `structures`;
137640
+  (343.5ms) TRUNCATE TABLE `users`;
137641
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
137642
+  (0.7ms) BEGIN
137643
+ User Exists (0.6ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing33@example.com' LIMIT 1
137644
+ 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-04-12 08:08:42', '2013-04-12 08:08:42', NULL, NULL, 'testing33@example.com', '26d29f3fd3b4ad157599e6d398325ae409c838e121a7b89e8ab007c239a739ccb5ea35678dd16e90d3ff7e2ff81da17d04d6066bde6aa5d3d9678c4b4d753ec2', 0, NULL, NULL, NULL, 'Admin', 'hKnXH2rTbQqHkQ6xAsEh', NULL, NULL, NULL, 4, 0, NULL, '2013-04-12 08:08:42')
137645
+ 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-04-12 08:08:42', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:08:42')
137646
+  (39.8ms) COMMIT
137647
+  (0.1ms) BEGIN
137648
+ Structure Load (0.7ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
137649
+ 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-04-12 08:08:42', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-04-12 08:08:42')
137650
+ 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-04-12 08:08:42', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-04-12 08:08:42')
137651
+ Structure Load (0.7ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
137652
+ SQL (0.6ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
137653
+  (71.1ms) COMMIT
137654
+  (0.2ms) BEGIN
137655
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
137656
+ 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-04-12 08:08:42', 0, 1, 3, 1, 2, NULL, 4, 'slug8', 1, 'Structure', '2013-04-12 08:08:42')
137657
+ 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-04-12 08:08:42', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-04-12 08:08:42')
137658
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
137659
+ Structure Load (0.5ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
137660
+ 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`
137661
+ Structure Load (0.5ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
137662
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137663
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137664
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
137665
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137666
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
137667
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
137668
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137669
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137670
+ SQL (0.5ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
137671
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137672
+  (37.6ms) COMMIT
137673
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-04-12 11:08:42 +0300
137674
+  (0.1ms) BEGIN
137675
+ 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-04-12 08:08:42', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:08:42')
137676
+  (33.4ms) COMMIT
137677
+  (0.1ms) BEGIN
137678
+  (0.6ms) UPDATE `users` SET `last_sign_in_at` = '2013-04-12 08:08:42', `current_sign_in_at` = '2013-04-12 08:08:42', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-04-12 08:08:42' WHERE `users`.`id` = 1
137679
+ 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-04-12 08:08:42', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:08:42')
137680
+  (35.9ms) COMMIT
137681
+ Processing by Sunrise::ManagerController#index as HTML
137682
+ Parameters: {"model_name"=>"structures"}
137683
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
137684
+ Structure Load (0.7ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
137685
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (3.3ms)
137686
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (22.2ms)
137687
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.9ms)
137688
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.7ms)
137689
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (9.5ms)
137690
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (13.8ms)
137691
+ Completed 200 OK in 108ms (Views: 76.3ms | ActiveRecord: 1.3ms)
137692
+ Started DELETE "/manage/structures/2/delete" for 127.0.0.1 at 2013-04-12 11:08:42 +0300
137693
+ Processing by Sunrise::ManagerController#destroy as HTML
137694
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
137695
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
137696
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137697
+  (0.1ms) BEGIN
137698
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
137699
+ SQL (0.3ms) DELETE FROM `structures` WHERE (`lft` > 2 AND `rgt` < 3)
137700
+ SQL (0.2ms) UPDATE `structures` SET `lft` = (`lft` - 2) WHERE (`structures`.`lft` > 3) ORDER BY `structures`.`lft`
137701
+ SQL (0.3ms) UPDATE `structures` SET `rgt` = (`rgt` - 2) WHERE (`structures`.`rgt` > 3) ORDER BY `structures`.`lft`
137702
+ PagePart Load (0.4ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
137703
+ MetaTag Load (0.3ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
137704
+ 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-04-12 08:08:42', 'structure.destroy', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-04-12 08:08:42')
137705
+ Post Load (0.4ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2
137706
+ SQL (0.3ms) DELETE FROM `structures` WHERE `structures`.`id` = 2
137707
+  (31.4ms) COMMIT
137708
+ Redirected to http://www.example.com/manage/structures
137709
+ Completed 302 Found in 96ms (ActiveRecord: 0.0ms)
137710
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-04-12 11:08:42 +0300
137711
+ Processing by Sunrise::ManagerController#index as HTML
137712
+ Parameters: {"model_name"=>"structures"}
137713
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
137714
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
137715
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (1.5ms)
137716
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
137717
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
137718
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (3.1ms)
137719
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.6ms)
137720
+ Completed 200 OK in 20ms (Views: 14.8ms | ActiveRecord: 0.8ms)
137721
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137722
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-04-12 11:08:43 +0300
137723
+ Processing by Sunrise::ManagerController#index as HTML
137724
+ Parameters: {"model_name"=>"structures"}
137725
+ Completed 401 Unauthorized in 1ms
137726
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-04-12 11:08:43 +0300
137727
+ Processing by Devise::SessionsController#new as HTML
137728
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.3/app/views/devise/shared/_links.erb (1.0ms)
137729
+ Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms)
137730
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
137731
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
137732
+  (318.2ms) TRUNCATE TABLE `activities`;
137733
+  (192.8ms) TRUNCATE TABLE `assets`;
137734
+  (319.5ms) TRUNCATE TABLE `audits`;
137735
+  (339.5ms) TRUNCATE TABLE `meta_tags`;
137736
+  (173.6ms) TRUNCATE TABLE `page_parts`;
137737
+  (236.7ms) TRUNCATE TABLE `posts`;
137738
+  (150.4ms) TRUNCATE TABLE `settings`;
137739
+  (306.7ms) TRUNCATE TABLE `structures`;
137740
+  (442.2ms) TRUNCATE TABLE `users`;
137741
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
137742
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
137743
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
137744
+  (327.4ms) TRUNCATE TABLE `activities`;
137745
+  (218.3ms) TRUNCATE TABLE `assets`;
137746
+  (329.8ms) TRUNCATE TABLE `audits`;
137747
+  (295.8ms) TRUNCATE TABLE `meta_tags`;
137748
+  (262.4ms) TRUNCATE TABLE `page_parts`;
137749
+  (329.8ms) TRUNCATE TABLE `posts`;
137750
+  (756.3ms) TRUNCATE TABLE `settings`;
137751
+  (702.4ms) TRUNCATE TABLE `structures`;
137752
+  (373.7ms) TRUNCATE TABLE `users`;
137753
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
137754
+  (0.1ms) BEGIN
137755
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing34@example.com' LIMIT 1
137756
+ 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-04-12 08:08:49', '2013-04-12 08:08:49', NULL, NULL, 'testing34@example.com', '0ae3bf5341bbf6f1bab412ee2d46c50ed21a8144a86cb444b5e49dec2524d2e627c9e5d569c93f820277ee3ae1dcbed33b7f0b18b1c233b4d0da7dfcefa27d7c', 0, NULL, NULL, NULL, 'Admin', 'j1qxgN5ELdzPvoUGDKZC', NULL, NULL, NULL, 4, 0, NULL, '2013-04-12 08:08:49')
137757
+ 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-04-12 08:08:49', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:08:49')
137758
+  (32.6ms) COMMIT
137759
+  (0.1ms) BEGIN
137760
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
137761
+ 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-04-12 08:08:49', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-04-12 08:08:49')
137762
+ 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-04-12 08:08:49', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-04-12 08:08:49')
137763
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
137764
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
137765
+  (141.6ms) COMMIT
137766
+  (0.1ms) BEGIN
137767
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
137768
+ 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-04-12 08:08:49', 0, 1, 3, 1, 2, NULL, 4, 'slug9', 1, 'Structure', '2013-04-12 08:08:49')
137769
+ 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-04-12 08:08:49', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-04-12 08:08:49')
137770
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
137771
+ Structure Load (0.5ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
137772
+ 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`
137773
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
137774
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137775
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137776
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
137777
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137778
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
137779
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
137780
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137781
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137782
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
137783
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137784
+  (39.2ms) COMMIT
137785
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-04-12 11:08:49 +0300
137786
+  (0.1ms) BEGIN
137787
+ 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-04-12 08:08:49', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:08:49')
137788
+  (164.0ms) COMMIT
137789
+  (0.1ms) BEGIN
137790
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-04-12 08:08:49', `current_sign_in_at` = '2013-04-12 08:08:49', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-04-12 08:08:49' WHERE `users`.`id` = 1
137791
+ 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-04-12 08:08:49', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:08:49')
137792
+  (29.5ms) COMMIT
137793
+ Processing by Sunrise::ManagerController#edit as HTML
137794
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
137795
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137796
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
137797
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
137798
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 4) ORDER BY `structures`.`lft`
137799
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (70.0ms)
137800
+ MetaTag Load (0.5ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
137801
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (9.5ms)
137802
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (536.5ms)
137803
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
137804
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (1.4ms)
137805
+ Completed 200 OK in 610ms (Views: 552.8ms | ActiveRecord: 2.0ms)
137806
+ Started PUT "/manage/structures/2/edit" for 127.0.0.1 at 2013-04-12 11:08:50 +0300
137807
+ Processing by Sunrise::ManagerController#update as HTML
137808
+ 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"}
137809
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
137810
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137811
+  (0.1ms) BEGIN
137812
+ MetaTag Load (0.6ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
137813
+  (0.7ms) UPDATE `structures` SET `title` = 'Title updated', `redirect_url` = '', `structure_type_id` = 2, `position_type_id` = 1, `is_visible` = 0, `updated_at` = '2013-04-12 08:08:50' WHERE `structures`.`id` = 2
137814
+ 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-04-12 08:08:50', 'structure.update', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-04-12 08:08:50')
137815
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137816
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137817
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
137818
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137819
+  (26.0ms) COMMIT
137820
+ Redirected to http://www.example.com/manage/structures
137821
+ Completed 302 Found in 66ms (ActiveRecord: 0.0ms)
137822
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-04-12 11:08:50 +0300
137823
+ Processing by Sunrise::ManagerController#index as HTML
137824
+ Parameters: {"model_name"=>"structures"}
137825
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
137826
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
137827
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
137828
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (2.2ms)
137829
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (6.0ms)
137830
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.7ms)
137831
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
137832
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.8ms)
137833
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.3ms)
137834
+ Completed 200 OK in 23ms (Views: 17.8ms | ActiveRecord: 1.3ms)
137835
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137836
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-04-12 11:08:50 +0300
137837
+  (0.1ms) BEGIN
137838
+ 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-04-12 08:08:50', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:08:50')
137839
+  (32.4ms) COMMIT
137840
+  (0.1ms) BEGIN
137841
+  (0.5ms) UPDATE `users` SET `current_sign_in_at` = '2013-04-12 08:08:50', `sign_in_count` = 2, `updated_at` = '2013-04-12 08:08:50' WHERE `users`.`id` = 1
137842
+ 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-04-12 08:08:50', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:08:50')
137843
+  (25.1ms) COMMIT
137844
+ Processing by Sunrise::ManagerController#edit as HTML
137845
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
137846
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137847
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
137848
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
137849
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 4) ORDER BY `structures`.`lft`
137850
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (19.8ms)
137851
+ MetaTag Load (0.2ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
137852
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (8.6ms)
137853
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (33.6ms)
137854
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
137855
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
137856
+ Completed 200 OK in 46ms (Views: 41.4ms | ActiveRecord: 1.1ms)
137857
+ Started PUT "/manage/structures/2/edit" for 127.0.0.1 at 2013-04-12 11:08:50 +0300
137858
+ Processing by Sunrise::ManagerController#update as HTML
137859
+ 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"}
137860
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
137861
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137862
+  (0.1ms) BEGIN
137863
+ MetaTag Load (0.2ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
137864
+ 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-04-12 08:08:50', 'structure.update', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-04-12 08:08:50')
137865
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137866
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137867
+ SQL (0.5ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
137868
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137869
+  (19.4ms) COMMIT
137870
+ Redirected to http://www.example.com/manage/structures
137871
+ Completed 302 Found in 46ms (ActiveRecord: 0.0ms)
137872
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-04-12 11:08:50 +0300
137873
+ Processing by Sunrise::ManagerController#index as HTML
137874
+ Parameters: {"model_name"=>"structures"}
137875
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
137876
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
137877
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
137878
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (2.2ms)
137879
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (5.4ms)
137880
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.7ms)
137881
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
137882
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (3.3ms)
137883
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.8ms)
137884
+ Completed 200 OK in 23ms (Views: 18.0ms | ActiveRecord: 0.8ms)
137885
+  (0.1ms) BEGIN
137886
+ PagePart Load (0.6ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
137887
+ PagePart Exists (0.5ms) 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
137888
+ PagePart Exists (0.6ms) 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
137889
+ SQL (0.4ms) INSERT INTO `page_parts` (`content`, `created_at`, `key`, `partable_id`, `partable_type`, `updated_at`) VALUES ('Main', '2013-04-12 08:08:50', 'main', 2, 'Structure', '2013-04-12 08:08:50')
137890
+ SQL (0.3ms) INSERT INTO `page_parts` (`content`, `created_at`, `key`, `partable_id`, `partable_type`, `updated_at`) VALUES ('Sidebar', '2013-04-12 08:08:50', 'sidebar', 2, 'Structure', '2013-04-12 08:08:50')
137891
+ 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-04-12 08:08:50', 'structure.update', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-04-12 08:08:50')
137892
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137893
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137894
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
137895
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137896
+  (23.9ms) COMMIT
137897
+ Started GET "/manage/pages/2/edit" for 127.0.0.1 at 2013-04-12 11:08:50 +0300
137898
+  (0.2ms) BEGIN
137899
+ 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-04-12 08:08:50', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:08:50')
137900
+  (54.1ms) COMMIT
137901
+  (0.1ms) BEGIN
137902
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2013-04-12 08:08:50', `sign_in_count` = 3, `updated_at` = '2013-04-12 08:08:50' WHERE `users`.`id` = 1
137903
+ 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-04-12 08:08:50', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:08:50')
137904
+  (26.4ms) COMMIT
137905
+ Processing by Sunrise::ManagerController#edit as HTML
137906
+ Parameters: {"model_name"=>"pages", "id"=>"2"}
137907
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137908
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
137909
+ PagePart Load (0.9ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
137910
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (24.5ms)
137911
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (29.1ms)
137912
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (6.4ms)
137913
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.6ms)
137914
+ Completed 200 OK in 45ms (Views: 39.7ms | ActiveRecord: 1.1ms)
137915
+ Started PUT "/manage/pages/2/edit" for 127.0.0.1 at 2013-04-12 11:08:50 +0300
137916
+ Processing by Sunrise::ManagerController#update as HTML
137917
+ Parameters: {"utf8"=>"✓", "parent_id"=>"", "parent_type"=>"", "structure"=>{"main"=>"Main updated", "sidebar"=>"Sidebar updated"}, "commit"=>"Update Structure", "model_name"=>"pages", "id"=>"2"}
137918
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
137919
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137920
+  (0.1ms) BEGIN
137921
+ PagePart Load (0.6ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
137922
+ PagePart Exists (0.6ms) 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
137923
+ PagePart Exists (0.7ms) 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
137924
+  (0.5ms) UPDATE `page_parts` SET `content` = 'Main updated', `updated_at` = '2013-04-12 08:08:50' WHERE `page_parts`.`id` = 1
137925
+  (0.4ms) UPDATE `page_parts` SET `content` = 'Sidebar updated', `updated_at` = '2013-04-12 08:08:50' WHERE `page_parts`.`id` = 2
137926
+ 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-04-12 08:08:50', 'structure.update', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-04-12 08:08:50')
137927
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137928
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137929
+ SQL (0.5ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
137930
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
137931
+  (41.7ms) COMMIT
137932
+ Redirected to http://www.example.com/manage/structures
137933
+ Completed 302 Found in 87ms (ActiveRecord: 0.0ms)
137934
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-04-12 11:08:50 +0300
137935
+ Processing by Sunrise::ManagerController#index as HTML
137936
+ Parameters: {"model_name"=>"structures"}
137937
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
137938
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
137939
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
137940
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (2.7ms)
137941
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (8.1ms)
137942
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.3ms)
137943
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
137944
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (3.5ms)
137945
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (4.1ms)
137946
+ Completed 200 OK in 28ms (Views: 22.8ms | ActiveRecord: 0.6ms)
137947
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
137948
+ PagePart Load (0.6ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
137949
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-04-12 11:08:51 +0300
137950
+ Processing by Sunrise::ManagerController#edit as HTML
137951
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
137952
+ Completed 401 Unauthorized in 1ms
137953
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-04-12 11:08:51 +0300
137954
+ Processing by Devise::SessionsController#new as HTML
137955
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.3/app/views/devise/shared/_links.erb (1.3ms)
137956
+ Completed 200 OK in 12ms (Views: 10.3ms | ActiveRecord: 0.0ms)
137957
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
137958
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
137959
+  (172.3ms) TRUNCATE TABLE `activities`;
137960
+  (285.9ms) TRUNCATE TABLE `assets`;
137961
+  (396.2ms) TRUNCATE TABLE `audits`;
137962
+  (260.4ms) TRUNCATE TABLE `meta_tags`;
137963
+  (152.9ms) TRUNCATE TABLE `page_parts`;
137964
+  (250.8ms) TRUNCATE TABLE `posts`;
137965
+  (128.0ms) TRUNCATE TABLE `settings`;
137966
+  (327.2ms) TRUNCATE TABLE `structures`;
137967
+  (337.1ms) TRUNCATE TABLE `users`;
137968
+  (0.3ms) SET FOREIGN_KEY_CHECKS = 1
137969
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
137970
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
137971
+  (743.6ms) TRUNCATE TABLE `activities`;
137972
+  (196.4ms) TRUNCATE TABLE `assets`;
137973
+  (329.3ms) TRUNCATE TABLE `audits`;
137974
+  (350.2ms) TRUNCATE TABLE `meta_tags`;
137975
+  (162.1ms) TRUNCATE TABLE `page_parts`;
137976
+  (226.4ms) TRUNCATE TABLE `posts`;
137977
+  (183.6ms) TRUNCATE TABLE `settings`;
137978
+  (273.7ms) TRUNCATE TABLE `structures`;
137979
+  (397.7ms) TRUNCATE TABLE `users`;
137980
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
137981
+  (0.1ms) BEGIN
137982
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing35@example.com' LIMIT 1
137983
+ 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-04-12 08:08:56', '2013-04-12 08:08:56', NULL, NULL, 'testing35@example.com', 'bd07afd33ff06cd61ff791a76a2ba6d8828db6176092cc0c9a3be63693eb5b3a063a2f8991ccda2e9ff16da838a9cc0808074a69dafe90cf8f47e078273579b0', 0, NULL, NULL, NULL, 'Admin', 'z8s2bySH1pTjDZ7Zi6sc', NULL, NULL, NULL, 4, 0, NULL, '2013-04-12 08:08:56')
137984
+ 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-04-12 08:08:56', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:08:56')
137985
+  (50.5ms) COMMIT
137986
+ Started GET "/manage/whatever/new" for 127.0.0.1 at 2013-04-12 11:08:56 +0300
137987
+  (0.2ms) BEGIN
137988
+ 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-04-12 08:08:56', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:08:56')
137989
+  (42.7ms) COMMIT
137990
+  (0.1ms) BEGIN
137991
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-04-12 08:08:56', `current_sign_in_at` = '2013-04-12 08:08:56', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-04-12 08:08:56' WHERE `users`.`id` = 1
137992
+ 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-04-12 08:08:56', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:08:56')
137993
+  (25.3ms) COMMIT
137994
+ Processing by Sunrise::ManagerController#new as HTML
137995
+ Parameters: {"model_name"=>"whatever"}
137996
+ Error while loading 'SunriseWhatever': uninitialized constant SunriseWhatever
137997
+ Completed 404 Not Found in 10ms
137998
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2013-04-12 11:08:56 +0300
137999
+  (0.1ms) BEGIN
138000
+ 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-04-12 08:08:56', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:08:56')
138001
+  (69.8ms) COMMIT
138002
+  (0.1ms) BEGIN
138003
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-04-12 08:08:56' WHERE `users`.`id` = 1
138004
+ 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-04-12 08:08:56', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:08:56')
138005
+  (25.8ms) COMMIT
138006
+ Processing by Sunrise::ManagerController#new as HTML
138007
+ Parameters: {"model_name"=>"structures"}
138008
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
138009
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
138010
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (20.7ms)
138011
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (8.2ms)
138012
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (36.0ms)
138013
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.6ms)
138014
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (1.7ms)
138015
+ Completed 200 OK in 63ms (Views: 53.7ms | ActiveRecord: 0.6ms)
138016
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2013-04-12 11:08:56 +0300
138017
+  (0.2ms) BEGIN
138018
+ 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-04-12 08:08:56', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:08:56')
138019
+  (23.8ms) COMMIT
138020
+  (0.2ms) BEGIN
138021
+  (0.7ms) UPDATE `users` SET `sign_in_count` = 3, `updated_at` = '2013-04-12 08:08:56' WHERE `users`.`id` = 1
138022
+ 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-04-12 08:08:56', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:08:56')
138023
+  (23.9ms) COMMIT
138024
+ Processing by Sunrise::ManagerController#new as HTML
138025
+ Parameters: {"model_name"=>"structures"}
138026
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
138027
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
138028
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (19.1ms)
138029
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (114.9ms)
138030
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (139.4ms)
138031
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.9ms)
138032
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.9ms)
138033
+ Completed 200 OK in 153ms (Views: 150.0ms | ActiveRecord: 0.2ms)
138034
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2013-04-12 11:08:56 +0300
138035
+ Processing by Sunrise::ManagerController#new as HTML
138036
+ Parameters: {"model_name"=>"structures"}
138037
+ Completed 401 Unauthorized in 1ms
138038
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-04-12 11:08:56 +0300
138039
+ Processing by Devise::SessionsController#new as HTML
138040
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.3/app/views/devise/shared/_links.erb (1.4ms)
138041
+ Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.0ms)
138042
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
138043
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
138044
+  (158.1ms) TRUNCATE TABLE `activities`;
138045
+  (274.6ms) TRUNCATE TABLE `assets`;
138046
+  (377.1ms) TRUNCATE TABLE `audits`;
138047
+  (306.3ms) TRUNCATE TABLE `meta_tags`;
138048
+  (162.1ms) TRUNCATE TABLE `page_parts`;
138049
+  (259.9ms) TRUNCATE TABLE `posts`;
138050
+  (229.2ms) TRUNCATE TABLE `settings`;
138051
+  (219.8ms) TRUNCATE TABLE `structures`;
138052
+  (308.2ms) TRUNCATE TABLE `users`;
138053
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
138054
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
138055
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
138056
+  (339.1ms) TRUNCATE TABLE `activities`;
138057
+  (951.5ms) TRUNCATE TABLE `assets`;
138058
+  (583.2ms) TRUNCATE TABLE `audits`;
138059
+  (272.1ms) TRUNCATE TABLE `meta_tags`;
138060
+  (261.5ms) TRUNCATE TABLE `page_parts`;
138061
+  (117.0ms) TRUNCATE TABLE `posts`;
138062
+  (271.4ms) TRUNCATE TABLE `settings`;
138063
+  (315.0ms) TRUNCATE TABLE `structures`;
138064
+  (363.3ms) TRUNCATE TABLE `users`;
138065
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
138066
+  (0.1ms) BEGIN
138067
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing36@example.com' LIMIT 1
138068
+ 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-04-12 08:09:02', '2013-04-12 08:09:02', NULL, NULL, 'testing36@example.com', 'bb6539d47f5ff2c0d73746afcafdec36936c8ce43e82e74db0190298b67c57b9d16a263138939b298513bead36d353ebf024a1c9bb82b9af702d9d4af45ca871', 0, NULL, NULL, NULL, 'Admin', 'bD4VB8a1BCzrRqPkcBwr', NULL, NULL, NULL, 4, 0, NULL, '2013-04-12 08:09:02')
138069
+ SQL (131.7ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-04-12 08:09:02', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:02')
138070
+  (55.5ms) COMMIT
138071
+  (0.2ms) BEGIN
138072
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
138073
+ 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-04-12 08:09:02', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-04-12 08:09:02')
138074
+ 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-04-12 08:09:02', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-04-12 08:09:02')
138075
+ Structure Load (1.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
138076
+ SQL (0.7ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
138077
+  (182.7ms) COMMIT
138078
+  (0.1ms) BEGIN
138079
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
138080
+ 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-04-12 08:09:03', 0, 1, 3, 1, 2, NULL, 4, 'slug10', 1, 'Structure', '2013-04-12 08:09:03')
138081
+ 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-04-12 08:09:03', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-04-12 08:09:03')
138082
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
138083
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
138084
+ 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`
138085
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
138086
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
138087
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
138088
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
138089
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
138090
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
138091
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
138092
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
138093
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
138094
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
138095
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
138096
+  (30.6ms) COMMIT
138097
+ Started GET "/manage/users/export.xlsx" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
138098
+  (0.0ms) BEGIN
138099
+ 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')
138100
+  (0.0ms) COMMIT
138101
+  (0.0ms) BEGIN
138102
+  (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
138103
+ 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')
138104
+  (0.0ms) COMMIT
138105
+ Processing by Sunrise::ManagerController#export as XLSX
138106
+ Parameters: {"model_name"=>"users"}
138107
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
138108
+ User Load (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000 OFFSET 0
138109
+ Sent data users_2012-01-01_16h00m00.xls (0.0ms)
138110
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
138111
+ Started GET "/manage/users/export.csv" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
138112
+  (0.0ms) BEGIN
138113
+ 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')
138114
+  (0.0ms) COMMIT
138115
+  (0.0ms) BEGIN
138116
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 2 WHERE `users`.`id` = 1
138117
+ 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')
138118
+  (0.0ms) COMMIT
138119
+ Processing by Sunrise::ManagerController#export as CSV
138120
+ Parameters: {"model_name"=>"users"}
138121
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
138122
+ User Load (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000 OFFSET 0
138123
+ Sent data users_2012-01-01_16h00m00.csv (0.0ms)
138124
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
138125
+ Started GET "/manage/users/export.json" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
138126
+  (0.0ms) BEGIN
138127
+ 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')
138128
+  (0.0ms) COMMIT
138129
+  (0.0ms) BEGIN
138130
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 3 WHERE `users`.`id` = 1
138131
+ 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')
138132
+  (0.0ms) COMMIT
138133
+ Processing by Sunrise::ManagerController#export as JSON
138134
+ Parameters: {"model_name"=>"users"}
138135
+ User Load (0.0ms) SELECT `users`.* FROM `users` LIMIT 25 OFFSET 0
138136
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
138137
+  (0.0ms) BEGIN
138138
+ 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')
138139
+ 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')
138140
+  (0.0ms) COMMIT
138141
+ Started GET "/manage/posts/export.csv" for 127.0.0.1 at 2012-01-01 16:00:00 UTC
138142
+  (0.0ms) BEGIN
138143
+ 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')
138144
+  (0.0ms) COMMIT
138145
+  (0.0ms) BEGIN
138146
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 4 WHERE `users`.`id` = 1
138147
+ 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')
138148
+  (0.0ms) COMMIT
138149
+ Processing by Sunrise::ManagerController#export as CSV
138150
+ Parameters: {"model_name"=>"posts"}
138151
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
138152
+ Post Load (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.`id` >= 0) ORDER BY `posts`.`id` ASC LIMIT 1000 OFFSET 0
138153
+ Structure Load (0.0ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` IN (2)
138154
+ Sent data posts_2012-01-01_16h00m00.csv (0.0ms)
138155
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
138156
+ Started GET "/manage/structures/export.xlsx" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
138157
+  (0.0ms) BEGIN
138158
+ 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')
138159
+  (0.0ms) COMMIT
138160
+  (0.0ms) BEGIN
138161
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 5 WHERE `users`.`id` = 1
138162
+ 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')
138163
+  (0.0ms) COMMIT
138164
+ Processing by Sunrise::ManagerController#export as XLSX
138165
+ Parameters: {"model_name"=>"structures"}
138166
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
138167
+ Structure Load (0.0ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`id` >= 0) ORDER BY `structures`.`id` ASC LIMIT 1000 OFFSET 0
138168
+ Sent data structures_2012-01-01_16h00m00.xls (0.0ms)
138169
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
138170
+ Started GET "/manage/structures/export.xml" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
138171
+  (0.0ms) BEGIN
138172
+ 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')
138173
+  (0.0ms) COMMIT
138174
+  (0.0ms) BEGIN
138175
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 6 WHERE `users`.`id` = 1
138176
+ 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')
138177
+  (0.0ms) COMMIT
138178
+ Processing by Sunrise::ManagerController#export as XML
138179
+ Parameters: {"model_name"=>"structures"}
138180
+ Structure Load (0.0ms) SELECT `structures`.* FROM `structures` LIMIT 25 OFFSET 0
138181
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
138182
+ Started GET "/manage/users/export.xlsx" for 127.0.0.1 at 2013-04-12 11:09:05 +0300
138183
+ Processing by Sunrise::ManagerController#export as XLSX
138184
+ Parameters: {"model_name"=>"users"}
138185
+ Completed 401 Unauthorized in 1ms
138186
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
138187
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
138188
+  (200.9ms) TRUNCATE TABLE `activities`;
138189
+  (263.1ms) TRUNCATE TABLE `assets`;
138190
+  (332.9ms) TRUNCATE TABLE `audits`;
138191
+  (262.1ms) TRUNCATE TABLE `meta_tags`;
138192
+  (284.2ms) TRUNCATE TABLE `page_parts`;
138193
+  (248.6ms) TRUNCATE TABLE `posts`;
138194
+  (183.7ms) TRUNCATE TABLE `settings`;
138195
+  (273.4ms) TRUNCATE TABLE `structures`;
138196
+  (364.7ms) TRUNCATE TABLE `users`;
138197
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
138198
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
138199
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
138200
+  (272.2ms) TRUNCATE TABLE `activities`;
138201
+  (679.5ms) TRUNCATE TABLE `assets`;
138202
+  (1453.8ms) TRUNCATE TABLE `audits`;
138203
+  (442.6ms) TRUNCATE TABLE `meta_tags`;
138204
+  (627.9ms) TRUNCATE TABLE `page_parts`;
138205
+  (394.9ms) TRUNCATE TABLE `posts`;
138206
+  (270.6ms) TRUNCATE TABLE `settings`;
138207
+  (319.3ms) TRUNCATE TABLE `structures`;
138208
+  (353.3ms) TRUNCATE TABLE `users`;
138209
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
138210
+  (0.2ms) BEGIN
138211
+ User Exists (1.8ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing37@example.com' LIMIT 1
138212
+ SQL (1.2ms) 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-04-12 08:09:12', '2013-04-12 08:09:12', NULL, NULL, 'testing37@example.com', 'a301a4a8f8f7190f48b4d5d1f1d0002dd9043864da7435a626b79f7d5bc1817706bca47c9594c1f331aefa6cb14d36144808f3c9633441b83254300c8cd5f30f', 0, NULL, NULL, NULL, 'Admin', 'XzgKNgxy1pqhM63BvbMw', NULL, NULL, NULL, 4, 0, NULL, '2013-04-12 08:09:12')
138213
+ 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-04-12 08:09:12', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:12')
138214
+  (38.4ms) COMMIT
138215
+  (0.1ms) BEGIN
138216
+ Structure Load (0.9ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
138217
+ 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-04-12 08:09:12', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-04-12 08:09:12')
138218
+ 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-04-12 08:09:12', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-04-12 08:09:12')
138219
+ Structure Load (0.8ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
138220
+ SQL (0.6ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
138221
+  (35.7ms) COMMIT
138222
+  (0.2ms) BEGIN
138223
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
138224
+ SQL (1.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-04-12 08:09:12', 0, 1, 3, 1, 2, NULL, 4, 'slug11', 1, 'Structure', '2013-04-12 08:09:12')
138225
+ 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-04-12 08:09:12', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-04-12 08:09:12')
138226
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
138227
+ Structure Load (0.5ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
138228
+ 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`
138229
+ Structure Load (0.7ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
138230
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
138231
+  (0.7ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
138232
+ SQL (0.6ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
138233
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
138234
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
138235
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
138236
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
138237
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
138238
+ SQL (0.5ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
138239
+  (0.7ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
138240
+  (29.1ms) COMMIT
138241
+ Started GET "/manage/" for 127.0.0.1 at 2013-04-12 11:09:12 +0300
138242
+  (0.1ms) BEGIN
138243
+ 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-04-12 08:09:12', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:12')
138244
+  (38.5ms) COMMIT
138245
+  (0.2ms) BEGIN
138246
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-04-12 08:09:12', `current_sign_in_at` = '2013-04-12 08:09:12', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-04-12 08:09:12' WHERE `users`.`id` = 1
138247
+ 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-04-12 08:09:12', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:12')
138248
+  (45.1ms) COMMIT
138249
+ Processing by Sunrise::DashboardController#index as HTML
138250
+ PublicActivity::ORM::ActiveRecord::Activity Load (0.6ms) SELECT `activities`.* FROM `activities` ORDER BY created_at DESC LIMIT 50 OFFSET 0
138251
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
138252
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
138253
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
138254
+ Structure Load (1.9ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
138255
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
138256
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
138257
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
138258
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
138259
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
138260
+ CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
138261
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_activity.html.erb (35.5ms)
138262
+  (0.6ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `activities` LIMIT 50 OFFSET 0) subquery_for_count 
138263
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (5.2ms)
138264
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (1.5ms)
138265
+ Completed 200 OK in 73ms (Views: 50.5ms | ActiveRecord: 4.2ms)
138266
+ Started GET "/manage/whatever" for 127.0.0.1 at 2013-04-12 11:09:12 +0300
138267
+  (0.2ms) BEGIN
138268
+ SQL (2.7ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-04-12 08:09:12', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:12')
138269
+  (20.0ms) COMMIT
138270
+  (0.1ms) BEGIN
138271
+  (141.7ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-04-12 08:09:12' WHERE `users`.`id` = 1
138272
+ 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-04-12 08:09:13', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:13')
138273
+  (493.9ms) COMMIT
138274
+ Processing by Sunrise::ManagerController#index as HTML
138275
+ Parameters: {"model_name"=>"whatever"}
138276
+ Error while loading 'SunriseWhatever': uninitialized constant SunriseWhatever
138277
+ Completed 404 Not Found in 91ms
138278
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-04-12 11:09:13 +0300
138279
+  (0.1ms) BEGIN
138280
+ 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-04-12 08:09:13', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:13')
138281
+  (40.1ms) COMMIT
138282
+  (0.1ms) BEGIN
138283
+  (0.4ms) UPDATE `users` SET `current_sign_in_at` = '2013-04-12 08:09:13', `sign_in_count` = 3, `updated_at` = '2013-04-12 08:09:13' WHERE `users`.`id` = 1
138284
+ 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-04-12 08:09:13', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:13')
138285
+  (107.4ms) COMMIT
138286
+ Processing by Sunrise::ManagerController#index as HTML
138287
+ Parameters: {"model_name"=>"structures"}
138288
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
138289
+ Structure Load (0.7ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
138290
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (2.6ms)
138291
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (7.2ms)
138292
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
138293
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
138294
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.9ms)
138295
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.4ms)
138296
+ Completed 200 OK in 25ms (Views: 20.2ms | ActiveRecord: 1.4ms)
138297
+ Started GET "/manage/users" for 127.0.0.1 at 2013-04-12 11:09:13 +0300
138298
+  (0.1ms) BEGIN
138299
+ 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-04-12 08:09:13', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:13')
138300
+  (111.7ms) COMMIT
138301
+  (0.2ms) BEGIN
138302
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-04-12 08:09:13', `current_sign_in_at` = '2013-04-12 08:09:14', `sign_in_count` = 4, `updated_at` = '2013-04-12 08:09:14' WHERE `users`.`id` = 1
138303
+ 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-04-12 08:09:14', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:14')
138304
+  (148.2ms) COMMIT
138305
+ Processing by Sunrise::ManagerController#index as HTML
138306
+ Parameters: {"model_name"=>"users"}
138307
+ User Load (0.5ms) SELECT `users`.* FROM `users` LIMIT 25 OFFSET 0
138308
+ 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
138309
+ Rendered sunrise/manager/users/thumbs/_record.html.erb (5.6ms)
138310
+  (0.4ms) SELECT COUNT(*) FROM `users` 
138311
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.1ms)
138312
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
138313
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
138314
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (32.2ms)
138315
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (77.7ms)
138316
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (1.8ms)
138317
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (1.5ms)
138318
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (1.4ms)
138319
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (2.3ms)
138320
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_export.html.erb (1.6ms)
138321
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (26.6ms)
138322
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (107.4ms)
138323
+ Completed 200 OK in 367ms (Views: 328.4ms | ActiveRecord: 1.5ms)
138324
+ Started GET "/manage/pages" for 127.0.0.1 at 2013-04-12 11:09:14 +0300
138325
+  (0.2ms) BEGIN
138326
+ 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-04-12 08:09:14', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:14')
138327
+  (42.1ms) COMMIT
138328
+  (0.2ms) BEGIN
138329
+  (0.6ms) UPDATE `users` SET `last_sign_in_at` = '2013-04-12 08:09:14', `sign_in_count` = 5, `updated_at` = '2013-04-12 08:09:14' WHERE `users`.`id` = 1
138330
+ 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-04-12 08:09:14', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:14')
138331
+  (43.8ms) COMMIT
138332
+ Processing by Sunrise::ManagerController#index as HTML
138333
+ Parameters: {"model_name"=>"pages"}
138334
+ Completed 404 Not Found in 3ms
138335
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-04-12 11:09:14 +0300
138336
+ Processing by Sunrise::ManagerController#index as HTML
138337
+ Parameters: {"model_name"=>"structures"}
138338
+ Completed 401 Unauthorized in 1ms
138339
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-04-12 11:09:14 +0300
138340
+ Processing by Devise::SessionsController#new as HTML
138341
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.3/app/views/devise/shared/_links.erb (1.5ms)
138342
+ Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms)
138343
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
138344
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
138345
+  (333.3ms) TRUNCATE TABLE `activities`;
138346
+  (284.2ms) TRUNCATE TABLE `assets`;
138347
+  (209.8ms) TRUNCATE TABLE `audits`;
138348
+  (250.5ms) TRUNCATE TABLE `meta_tags`;
138349
+  (273.4ms) TRUNCATE TABLE `page_parts`;
138350
+  (116.9ms) TRUNCATE TABLE `posts`;
138351
+  (206.1ms) TRUNCATE TABLE `settings`;
138352
+  (353.1ms) TRUNCATE TABLE `structures`;
138353
+  (410.3ms) TRUNCATE TABLE `users`;
138354
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
138355
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
138356
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
138357
+  (318.4ms) TRUNCATE TABLE `activities`;
138358
+  (251.9ms) TRUNCATE TABLE `assets`;
138359
+  (274.6ms) TRUNCATE TABLE `audits`;
138360
+  (275.2ms) TRUNCATE TABLE `meta_tags`;
138361
+  (273.6ms) TRUNCATE TABLE `page_parts`;
138362
+  (160.8ms) TRUNCATE TABLE `posts`;
138363
+  (229.7ms) TRUNCATE TABLE `settings`;
138364
+  (375.8ms) TRUNCATE TABLE `structures`;
138365
+  (365.7ms) TRUNCATE TABLE `users`;
138366
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
138367
+  (0.1ms) BEGIN
138368
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing38@example.com' LIMIT 1
138369
+ 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-04-12 08:09:19', '2013-04-12 08:09:19', NULL, NULL, 'testing38@example.com', 'a15365e00150f095ce6e9c952e1b5cfcf5dea2493a67bed6c1eeee2b9e205b8e2d43397fc82166c4bd6835b50ccbce760cc500aaf208cdbb0bc0bd5a95309b5c', 0, NULL, NULL, NULL, 'Admin', 'oXGQh1JrtLwWLsrpmsXu', NULL, NULL, NULL, 4, 0, NULL, '2013-04-12 08:09:19')
138370
+ 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-04-12 08:09:19', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:19')
138371
+  (30.9ms) COMMIT
138372
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2013-04-12 11:09:19 +0300
138373
+  (0.1ms) BEGIN
138374
+ 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-04-12 08:09:19', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:19')
138375
+  (33.1ms) COMMIT
138376
+  (0.1ms) BEGIN
138377
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-04-12 08:09:19', `current_sign_in_at` = '2013-04-12 08:09:19', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-04-12 08:09:19' WHERE `users`.`id` = 1
138378
+ 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-04-12 08:09:19', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:19')
138379
+  (36.2ms) COMMIT
138380
+ Processing by Sunrise::ManagerController#new as HTML
138381
+ Parameters: {"model_name"=>"structures"}
138382
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
138383
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
138384
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (18.1ms)
138385
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (7.9ms)
138386
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (30.4ms)
138387
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.4ms)
138388
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.6ms)
138389
+ Completed 200 OK in 42ms (Views: 39.1ms | ActiveRecord: 0.6ms)
138390
+ Started POST "/manage/structures/new" for 127.0.0.1 at 2013-04-12 11:09:19 +0300
138391
+ Processing by Sunrise::ManagerController#create as HTML
138392
+ 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"}
138393
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
138394
+  (0.1ms) BEGIN
138395
+ Structure Load (2.0ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
138396
+ 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-04-12 08:09:20', 0, 1, 1, NULL, 2, '', 2, 'good-day', 1, 'Good day', '2013-04-12 08:09:20')
138397
+ 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-04-12 08:09:20', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-04-12 08:09:20')
138398
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
138399
+ SQL (0.6ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
138400
+  (27.9ms) COMMIT
138401
+ Redirected to http://www.example.com/manage/structures
138402
+ Completed 302 Found in 424ms (ActiveRecord: 0.0ms)
138403
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-04-12 11:09:20 +0300
138404
+ Processing by Sunrise::ManagerController#index as HTML
138405
+ Parameters: {"model_name"=>"structures"}
138406
+ User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
138407
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
138408
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (1.9ms)
138409
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.1ms)
138410
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
138411
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (3.4ms)
138412
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.9ms)
138413
+ Completed 200 OK in 24ms (Views: 16.5ms | ActiveRecord: 0.9ms)
138414
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`id` DESC LIMIT 1
138415
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2013-04-12 11:09:20 +0300
138416
+ Processing by Sunrise::ManagerController#new as HTML
138417
+ Parameters: {"model_name"=>"structures"}
138418
+ Completed 401 Unauthorized in 1ms
138419
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-04-12 11:09:20 +0300
138420
+ Processing by Devise::SessionsController#new as HTML
138421
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.3/app/views/devise/shared/_links.erb (1.2ms)
138422
+ Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms)
138423
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
138424
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
138425
+  (365.1ms) TRUNCATE TABLE `activities`;
138426
+  (241.0ms) TRUNCATE TABLE `assets`;
138427
+  (342.3ms) TRUNCATE TABLE `audits`;
138428
+  (284.5ms) TRUNCATE TABLE `meta_tags`;
138429
+  (139.8ms) TRUNCATE TABLE `page_parts`;
138430
+  (216.7ms) TRUNCATE TABLE `posts`;
138431
+  (194.5ms) TRUNCATE TABLE `settings`;
138432
+  (285.0ms) TRUNCATE TABLE `structures`;
138433
+  (430.9ms) TRUNCATE TABLE `users`;
138434
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
138435
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
138436
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
138437
+  (317.3ms) TRUNCATE TABLE `activities`;
138438
+  (265.9ms) TRUNCATE TABLE `assets`;
138439
+  (430.0ms) TRUNCATE TABLE `audits`;
138440
+  (162.4ms) TRUNCATE TABLE `meta_tags`;
138441
+  (265.9ms) TRUNCATE TABLE `page_parts`;
138442
+  (327.6ms) TRUNCATE TABLE `posts`;
138443
+  (751.1ms) TRUNCATE TABLE `settings`;
138444
+  (959.5ms) TRUNCATE TABLE `structures`;
138445
+  (581.0ms) TRUNCATE TABLE `users`;
138446
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
138447
+  (0.1ms) BEGIN
138448
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing39@example.com' LIMIT 1
138449
+ 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-04-12 08:09:27', '2013-04-12 08:09:27', NULL, NULL, 'testing39@example.com', 'b08bd105d1f83096a4c04504f6bc12d8555437656004e9c61f602f8c6dcec6561b360df1d2a40bafc589d61409be72d2f33756fa397ecdbd4ee4523aa75dcf81', 0, NULL, NULL, NULL, 'Admin', 'H4pLsnhSVUx27t9ax4MD', NULL, NULL, NULL, 4, 0, NULL, '2013-04-12 08:09:27')
138450
+ 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-04-12 08:09:27', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:27')
138451
+  (37.9ms) COMMIT
138452
+  (0.1ms) BEGIN
138453
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
138454
+ 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-04-12 08:09:27', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-04-12 08:09:27')
138455
+ 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-04-12 08:09:27', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-04-12 08:09:27')
138456
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
138457
+ SQL (0.5ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
138458
+  (31.0ms) COMMIT
138459
+  (0.1ms) BEGIN
138460
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
138461
+ SQL (85.1ms) 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-04-12 08:09:27', 0, 1, 3, 1, 2, NULL, 4, 'slug12', 1, 'Structure', '2013-04-12 08:09:27')
138462
+ SQL (5.2ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-04-12 08:09:27', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-04-12 08:09:27')
138463
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
138464
+ Structure Load (0.5ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
138465
+ 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`
138466
+ Structure Load (0.5ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
138467
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
138468
+  (0.8ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
138469
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
138470
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
138471
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
138472
+ Structure Load (0.5ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
138473
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
138474
+  (0.9ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
138475
+ SQL (0.5ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
138476
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
138477
+  (36.3ms) COMMIT
138478
+ Started GET "/manage/whatever/2/edit" for 127.0.0.1 at 2013-04-12 11:09:27 +0300
138479
+  (0.2ms) BEGIN
138480
+ 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-04-12 08:09:27', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:27')
138481
+  (45.1ms) COMMIT
138482
+  (0.2ms) BEGIN
138483
+  (0.6ms) UPDATE `users` SET `last_sign_in_at` = '2013-04-12 08:09:27', `current_sign_in_at` = '2013-04-12 08:09:27', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-04-12 08:09:27' WHERE `users`.`id` = 1
138484
+ 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-04-12 08:09:27', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:27')
138485
+  (35.5ms) COMMIT
138486
+ Processing by Sunrise::ManagerController#edit as HTML
138487
+ Parameters: {"model_name"=>"whatever", "id"=>"2"}
138488
+ Error while loading 'SunriseWhatever': uninitialized constant SunriseWhatever
138489
+ Completed 404 Not Found in 9ms
138490
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-04-12 11:09:27 +0300
138491
+  (0.1ms) BEGIN
138492
+ 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-04-12 08:09:27', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:27')
138493
+  (40.6ms) COMMIT
138494
+  (0.1ms) BEGIN
138495
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-04-12 08:09:27' WHERE `users`.`id` = 1
138496
+ 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-04-12 08:09:27', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:27')
138497
+  (47.3ms) COMMIT
138498
+ Processing by Sunrise::ManagerController#edit as HTML
138499
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
138500
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
138501
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
138502
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
138503
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 4) ORDER BY `structures`.`lft`
138504
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (19.5ms)
138505
+ MetaTag Load (0.5ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
138506
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (9.8ms)
138507
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (33.4ms)
138508
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.3ms)
138509
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.6ms)
138510
+ Completed 200 OK in 47ms (Views: 40.9ms | ActiveRecord: 2.1ms)
138511
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-04-12 11:09:27 +0300
138512
+  (0.2ms) BEGIN
138513
+ 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-04-12 08:09:27', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:27')
138514
+  (26.6ms) COMMIT
138515
+  (0.4ms) BEGIN
138516
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 3, `updated_at` = '2013-04-12 08:09:27' WHERE `users`.`id` = 1
138517
+ 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-04-12 08:09:27', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:27')
138518
+  (34.6ms) COMMIT
138519
+ Processing by Sunrise::ManagerController#edit as HTML
138520
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
138521
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
138522
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
138523
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
138524
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 4) ORDER BY `structures`.`lft`
138525
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (20.3ms)
138526
+ MetaTag Load (0.3ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
138527
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (13.0ms)
138528
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (38.2ms)
138529
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (5.7ms)
138530
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.6ms)
138531
+ Completed 200 OK in 53ms (Views: 48.6ms | ActiveRecord: 1.0ms)
138532
+ Started GET "/manage/pages/2/edit" for 127.0.0.1 at 2013-04-12 11:09:27 +0300
138533
+  (0.1ms) BEGIN
138534
+ 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-04-12 08:09:27', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:27')
138535
+  (20.3ms) COMMIT
138536
+  (0.1ms) BEGIN
138537
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 4, `updated_at` = '2013-04-12 08:09:27' WHERE `users`.`id` = 1
138538
+ 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-04-12 08:09:27', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:27')
138539
+  (25.9ms) COMMIT
138540
+ Processing by Sunrise::ManagerController#edit as HTML
138541
+ Parameters: {"model_name"=>"pages", "id"=>"2"}
138542
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
138543
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
138544
+ PagePart Load (0.6ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
138545
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (8.3ms)
138546
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (11.8ms)
138547
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.2ms)
138548
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
138549
+ Completed 200 OK in 24ms (Views: 19.9ms | ActiveRecord: 0.7ms)
138550
+ Started GET "/manage/pages/2/edit" for 127.0.0.1 at 2013-04-12 11:09:27 +0300
138551
+  (0.1ms) BEGIN
138552
+ 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-04-12 08:09:27', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:27')
138553
+  (25.4ms) COMMIT
138554
+  (0.1ms) BEGIN
138555
+  (0.5ms) UPDATE `users` SET `sign_in_count` = 5, `updated_at` = '2013-04-12 08:09:27' WHERE `users`.`id` = 1
138556
+ 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-04-12 08:09:27', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:27')
138557
+  (25.2ms) COMMIT
138558
+ Processing by Sunrise::ManagerController#edit as HTML
138559
+ Parameters: {"model_name"=>"pages", "id"=>"2"}
138560
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
138561
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
138562
+ PagePart Load (0.2ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
138563
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (7.5ms)
138564
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (10.7ms)
138565
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
138566
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
138567
+ Completed 200 OK in 23ms (Views: 18.6ms | ActiveRecord: 0.4ms)
138568
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-04-12 11:09:27 +0300
138569
+ Processing by Sunrise::ManagerController#edit as HTML
138570
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
138571
+ Completed 401 Unauthorized in 1ms
138572
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-04-12 11:09:27 +0300
138573
+ Processing by Devise::SessionsController#new as HTML
138574
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.3/app/views/devise/shared/_links.erb (1.0ms)
138575
+ Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.0ms)
138576
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
138577
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
138578
+  (189.3ms) TRUNCATE TABLE `activities`;
138579
+  (827.0ms) TRUNCATE TABLE `assets`;
138580
+  (375.1ms) TRUNCATE TABLE `audits`;
138581
+  (261.8ms) TRUNCATE TABLE `meta_tags`;
138582
+  (162.4ms) TRUNCATE TABLE `page_parts`;
138583
+  (217.3ms) TRUNCATE TABLE `posts`;
138584
+  (150.2ms) TRUNCATE TABLE `settings`;
138585
+  (329.7ms) TRUNCATE TABLE `structures`;
138586
+  (376.5ms) TRUNCATE TABLE `users`;
138587
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
138588
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
138589
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
138590
+  (316.7ms) TRUNCATE TABLE `activities`;
138591
+  (307.5ms) TRUNCATE TABLE `assets`;
138592
+  (242.3ms) TRUNCATE TABLE `audits`;
138593
+  (248.9ms) TRUNCATE TABLE `meta_tags`;
138594
+  (288.0ms) TRUNCATE TABLE `page_parts`;
138595
+  (283.9ms) TRUNCATE TABLE `posts`;
138596
+  (117.1ms) TRUNCATE TABLE `settings`;
138597
+  (363.0ms) TRUNCATE TABLE `structures`;
138598
+  (364.8ms) TRUNCATE TABLE `users`;
138599
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
138600
+  (0.1ms) BEGIN
138601
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing40@example.com' LIMIT 1
138602
+ 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-04-12 08:09:33', '2013-04-12 08:09:33', NULL, NULL, 'testing40@example.com', 'bcb57fe95892b7f683bdba8ae55f6583fbdcef51fe516bff47e1fc544790284f39afac0b7fadc6ab6155932980b591296e2bbbd8089a1b9ca35fc887543e2096', 0, NULL, NULL, NULL, 'Admin', 'uzyeuK7LevtL7Ck9d5hu', NULL, NULL, NULL, 4, 0, NULL, '2013-04-12 08:09:33')
138603
+ 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-04-12 08:09:33', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:33')
138604
+  (41.7ms) COMMIT
138605
+  (0.1ms) BEGIN
138606
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
138607
+ 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-04-12 08:09:33', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-04-12 08:09:33')
138608
+ 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-04-12 08:09:33', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-04-12 08:09:33')
138609
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
138610
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
138611
+  (32.2ms) COMMIT
138612
+  (0.1ms) BEGIN
138613
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
138614
+ 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-04-12 08:09:33', 0, 1, 3, 1, 2, NULL, 4, 'slug13', 1, 'Structure', '2013-04-12 08:09:33')
138615
+ 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-04-12 08:09:33', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-04-12 08:09:33')
138616
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
138617
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
138618
+ 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`
138619
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
138620
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
138621
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
138622
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
138623
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
138624
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
138625
+ Structure Load (0.2ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
138626
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
138627
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
138628
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
138629
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
138630
+  (45.4ms) COMMIT
138631
+  (0.1ms) BEGIN
138632
+ SQL (0.3ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-04-12 08:09:33', 1, 2, 'Default title', '2013-04-12 08:09:33')
138633
+ 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-04-12 08:09:33', 'post.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Post', '2013-04-12 08:09:33')
138634
+  (36.1ms) COMMIT
138635
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-04-12 11:09:33 +0300
138636
+  (0.1ms) BEGIN
138637
+ 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-04-12 08:09:33', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:33')
138638
+  (45.3ms) COMMIT
138639
+  (0.1ms) BEGIN
138640
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2013-04-12 08:09:33', `current_sign_in_at` = '2013-04-12 08:09:33', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-04-12 08:09:33' WHERE `users`.`id` = 1
138641
+ 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-04-12 08:09:33', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:33')
138642
+  (37.4ms) COMMIT
138643
+ Processing by Sunrise::ManagerController#index as HTML
138644
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
138645
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
138646
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
138647
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_controls.html.erb (0.1ms)
138648
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (16.2ms)
138649
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
138650
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.2ms)
138651
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
138652
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
138653
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.9ms)
138654
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (18.1ms)
138655
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.7ms)
138656
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.7ms)
138657
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.7ms)
138658
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (1.1ms)
138659
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.8ms)
138660
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (23.7ms)
138661
+ Completed 200 OK in 116ms (Views: 106.5ms | ActiveRecord: 1.4ms)
138662
+ Started DELETE "/manage/posts/1/delete?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-04-12 11:09:33 +0300
138663
+ Processing by Sunrise::ManagerController#destroy as HTML
138664
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
138665
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
138666
+ Post Load (0.4ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
138667
+  (0.1ms) BEGIN
138668
+ 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-04-12 08:09:33', 'post.destroy', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Post', '2013-04-12 08:09:33')
138669
+ SQL (0.3ms) DELETE FROM `posts` WHERE `posts`.`id` = 1
138670
+  (23.8ms) COMMIT
138671
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
138672
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
138673
+ Completed 302 Found in 41ms (ActiveRecord: 0.0ms)
138674
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-04-12 11:09:33 +0300
138675
+ Processing by Sunrise::ManagerController#index as HTML
138676
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
138677
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
138678
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
138679
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
138680
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (0.0ms)
138681
+  (0.4ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
138682
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.2ms)
138683
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
138684
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
138685
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.5ms)
138686
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.5ms)
138687
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.7ms)
138688
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.7ms)
138689
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.7ms)
138690
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (1.1ms)
138691
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.7ms)
138692
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (15.9ms)
138693
+ Completed 200 OK in 36ms (Views: 28.3ms | ActiveRecord: 1.2ms)
138694
+ Post Load (0.4ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
138695
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-04-12 11:09:33 +0300
138696
+ Processing by Sunrise::ManagerController#index as HTML
138697
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
138698
+ Completed 401 Unauthorized in 1ms
138699
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-04-12 11:09:33 +0300
138700
+ Processing by Devise::SessionsController#new as HTML
138701
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.3/app/views/devise/shared/_links.erb (1.1ms)
138702
+ Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.0ms)
138703
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
138704
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
138705
+  (157.5ms) TRUNCATE TABLE `activities`;
138706
+  (285.4ms) TRUNCATE TABLE `assets`;
138707
+  (286.8ms) TRUNCATE TABLE `audits`;
138708
+  (272.9ms) TRUNCATE TABLE `meta_tags`;
138709
+  (140.2ms) TRUNCATE TABLE `page_parts`;
138710
+  (239.5ms) TRUNCATE TABLE `posts`;
138711
+  (340.1ms) TRUNCATE TABLE `settings`;
138712
+  (220.0ms) TRUNCATE TABLE `structures`;
138713
+  (308.0ms) TRUNCATE TABLE `users`;
138714
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
138715
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
138716
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
138717
+  (418.0ms) TRUNCATE TABLE `activities`;
138718
+  (330.3ms) TRUNCATE TABLE `assets`;
138719
+  (308.6ms) TRUNCATE TABLE `audits`;
138720
+  (300.4ms) TRUNCATE TABLE `meta_tags`;
138721
+  (1014.2ms) TRUNCATE TABLE `page_parts`;
138722
+  (423.5ms) TRUNCATE TABLE `posts`;
138723
+  (116.9ms) TRUNCATE TABLE `settings`;
138724
+  (309.0ms) TRUNCATE TABLE `structures`;
138725
+  (309.8ms) TRUNCATE TABLE `users`;
138726
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
138727
+  (0.1ms) BEGIN
138728
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing41@example.com' LIMIT 1
138729
+ 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-04-12 08:09:39', '2013-04-12 08:09:39', NULL, NULL, 'testing41@example.com', 'bce89f09e6a156df20ffc3dbd36f1cbe8bdc6145fae01cdb063b60c024e04549959fdaf72b88c6edc79535b3eb369d80e9f03aec533ad11951896d798dde0d6b', 0, NULL, NULL, NULL, 'Admin', 'pppnizCF18C2MSzyAVYY', NULL, NULL, NULL, 4, 0, NULL, '2013-04-12 08:09:39')
138730
+ 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-04-12 08:09:39', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:39')
138731
+  (32.5ms) COMMIT
138732
+  (0.1ms) BEGIN
138733
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
138734
+ 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-04-12 08:09:39', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-04-12 08:09:39')
138735
+ 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-04-12 08:09:39', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-04-12 08:09:39')
138736
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
138737
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
138738
+  (113.6ms) COMMIT
138739
+  (0.1ms) BEGIN
138740
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
138741
+ 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-04-12 08:09:39', 0, 1, 3, 1, 2, NULL, 4, 'slug14', 1, 'Structure', '2013-04-12 08:09:39')
138742
+ 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-04-12 08:09:39', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-04-12 08:09:39')
138743
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
138744
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
138745
+ 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`
138746
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
138747
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
138748
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
138749
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
138750
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
138751
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
138752
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
138753
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
138754
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
138755
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
138756
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
138757
+  (36.8ms) COMMIT
138758
+  (0.1ms) BEGIN
138759
+ SQL (0.3ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-04-12 08:09:39', 1, 2, 'Default title', '2013-04-12 08:09:39')
138760
+ 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-04-12 08:09:39', 'post.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Post', '2013-04-12 08:09:39')
138761
+  (31.3ms) COMMIT
138762
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-04-12 11:09:40 +0300
138763
+  (0.1ms) BEGIN
138764
+ 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-04-12 08:09:40', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:40')
138765
+  (46.8ms) COMMIT
138766
+  (0.1ms) BEGIN
138767
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2013-04-12 08:09:40', `current_sign_in_at` = '2013-04-12 08:09:40', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-04-12 08:09:40' WHERE `users`.`id` = 1
138768
+ 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-04-12 08:09:40', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:40')
138769
+  (58.7ms) COMMIT
138770
+ Processing by Sunrise::ManagerController#edit as HTML
138771
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
138772
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
138773
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
138774
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.5ms)
138775
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.7ms)
138776
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
138777
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
138778
+ Completed 200 OK in 25ms (Views: 18.0ms | ActiveRecord: 0.5ms)
138779
+ Started PUT "/manage/posts/1/edit" for 127.0.0.1 at 2013-04-12 11:09:40 +0300
138780
+ Processing by Sunrise::ManagerController#update as HTML
138781
+ 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"}
138782
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
138783
+ Post Load (0.2ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
138784
+  (0.1ms) BEGIN
138785
+  (0.4ms) UPDATE `posts` SET `title` = 'Title updated', `content` = 'Tra la la', `is_visible` = 0, `updated_at` = '2013-04-12 08:09:40' WHERE `posts`.`id` = 1
138786
+ 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-04-12 08:09:40', 'post.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Post', '2013-04-12 08:09:40')
138787
+  (22.1ms) COMMIT
138788
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
138789
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
138790
+ Completed 302 Found in 43ms (ActiveRecord: 0.0ms)
138791
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-04-12 11:09:40 +0300
138792
+ Processing by Sunrise::ManagerController#index as HTML
138793
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
138794
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
138795
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
138796
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
138797
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_controls.html.erb (0.1ms)
138798
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (5.7ms)
138799
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
138800
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.2ms)
138801
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
138802
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
138803
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.7ms)
138804
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.9ms)
138805
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.7ms)
138806
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.7ms)
138807
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.7ms)
138808
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (1.2ms)
138809
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.9ms)
138810
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (16.5ms)
138811
+ Completed 200 OK in 44ms (Views: 35.2ms | ActiveRecord: 1.4ms)
138812
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
138813
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
138814
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-04-12 11:09:40 +0300
138815
+  (0.1ms) BEGIN
138816
+ 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-04-12 08:09:40', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:40')
138817
+  (17.7ms) COMMIT
138818
+  (0.2ms) BEGIN
138819
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-04-12 08:09:40' WHERE `users`.`id` = 1
138820
+ 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-04-12 08:09:40', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:40')
138821
+  (47.9ms) COMMIT
138822
+ Processing by Sunrise::ManagerController#edit as HTML
138823
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
138824
+ Post Load (0.2ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
138825
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
138826
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.3ms)
138827
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.5ms)
138828
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.9ms)
138829
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
138830
+ Completed 200 OK in 21ms (Views: 17.7ms | ActiveRecord: 0.2ms)
138831
+ Started PUT "/manage/posts/1/edit" for 127.0.0.1 at 2013-04-12 11:09:40 +0300
138832
+ Processing by Sunrise::ManagerController#update as HTML
138833
+ 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"}
138834
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
138835
+ Post Load (0.1ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
138836
+  (0.1ms) BEGIN
138837
+ 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-04-12 08:09:40', 'post.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Post', '2013-04-12 08:09:40')
138838
+  (29.6ms) COMMIT
138839
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
138840
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
138841
+ Completed 302 Found in 44ms (ActiveRecord: 0.0ms)
138842
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-04-12 11:09:40 +0300
138843
+ Processing by Sunrise::ManagerController#index as HTML
138844
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
138845
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
138846
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
138847
+ Post Load (0.2ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
138848
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_controls.html.erb (0.1ms)
138849
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (5.7ms)
138850
+  (0.2ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
138851
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.1ms)
138852
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
138853
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
138854
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.6ms)
138855
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.7ms)
138856
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.7ms)
138857
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.7ms)
138858
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.7ms)
138859
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (1.1ms)
138860
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.9ms)
138861
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (16.3ms)
138862
+ Completed 200 OK in 42ms (Views: 34.5ms | ActiveRecord: 0.7ms)
138863
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-04-12 11:09:40 +0300
138864
+ Processing by Sunrise::ManagerController#edit as HTML
138865
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
138866
+ Completed 401 Unauthorized in 1ms
138867
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-04-12 11:09:40 +0300
138868
+ Processing by Devise::SessionsController#new as HTML
138869
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.3/app/views/devise/shared/_links.erb (1.0ms)
138870
+ Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.0ms)
138871
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
138872
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
138873
+  (165.8ms) TRUNCATE TABLE `activities`;
138874
+  (252.0ms) TRUNCATE TABLE `assets`;
138875
+  (298.4ms) TRUNCATE TABLE `audits`;
138876
+  (262.2ms) TRUNCATE TABLE `meta_tags`;
138877
+  (140.2ms) TRUNCATE TABLE `page_parts`;
138878
+  (194.0ms) TRUNCATE TABLE `posts`;
138879
+  (139.2ms) TRUNCATE TABLE `settings`;
138880
+  (307.5ms) TRUNCATE TABLE `structures`;
138881
+  (353.0ms) TRUNCATE TABLE `users`;
138882
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
138883
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
138884
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
138885
+  (305.8ms) TRUNCATE TABLE `activities`;
138886
+  (263.9ms) TRUNCATE TABLE `assets`;
138887
+  (208.8ms) TRUNCATE TABLE `audits`;
138888
+  (216.1ms) TRUNCATE TABLE `meta_tags`;
138889
+  (261.5ms) TRUNCATE TABLE `page_parts`;
138890
+  (117.0ms) TRUNCATE TABLE `posts`;
138891
+  (272.8ms) TRUNCATE TABLE `settings`;
138892
+  (309.1ms) TRUNCATE TABLE `structures`;
138893
+  (353.5ms) TRUNCATE TABLE `users`;
138894
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
138895
+  (0.1ms) BEGIN
138896
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing42@example.com' LIMIT 1
138897
+ 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-04-12 08:09:45', '2013-04-12 08:09:45', NULL, NULL, 'testing42@example.com', '38094101702a6807890134e25eaf07a507dc7a548c2572d53413a2c37eb1661430892d61413d8f7144fd5850d5a2538c0ca63ab0e593c97dba273d1240903fae', 0, NULL, NULL, NULL, 'Admin', 'CphdPkU8ZcXvz47sWoZs', NULL, NULL, NULL, 4, 0, NULL, '2013-04-12 08:09:45')
138898
+ 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-04-12 08:09:45', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:45')
138899
+  (31.7ms) COMMIT
138900
+  (0.1ms) BEGIN
138901
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
138902
+ 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-04-12 08:09:45', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-04-12 08:09:45')
138903
+ 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-04-12 08:09:45', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-04-12 08:09:45')
138904
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
138905
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
138906
+  (32.3ms) COMMIT
138907
+  (0.1ms) BEGIN
138908
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
138909
+ 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-04-12 08:09:45', 0, 1, 3, 1, 2, NULL, 4, 'slug15', 1, 'Structure', '2013-04-12 08:09:45')
138910
+ 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-04-12 08:09:45', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-04-12 08:09:45')
138911
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
138912
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
138913
+ 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`
138914
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
138915
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
138916
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
138917
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
138918
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
138919
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
138920
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
138921
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
138922
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
138923
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
138924
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
138925
+  (46.8ms) COMMIT
138926
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-04-12 11:09:45 +0300
138927
+  (0.2ms) BEGIN
138928
+ 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-04-12 08:09:45', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:45')
138929
+  (33.3ms) COMMIT
138930
+  (0.1ms) BEGIN
138931
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2013-04-12 08:09:45', `current_sign_in_at` = '2013-04-12 08:09:45', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-04-12 08:09:45' WHERE `users`.`id` = 1
138932
+ 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-04-12 08:09:45', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:45')
138933
+  (37.5ms) COMMIT
138934
+ Processing by Sunrise::ManagerController#new as HTML
138935
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
138936
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
138937
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
138938
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.1ms)
138939
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.3ms)
138940
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
138941
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.5ms)
138942
+ Completed 200 OK in 25ms (Views: 17.7ms | ActiveRecord: 0.5ms)
138943
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-04-12 11:09:45 +0300
138944
+  (0.1ms) BEGIN
138945
+ 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-04-12 08:09:45', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:45')
138946
+  (23.5ms) COMMIT
138947
+  (0.1ms) BEGIN
138948
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-04-12 08:09:45' WHERE `users`.`id` = 1
138949
+ 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-04-12 08:09:45', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:45')
138950
+  (37.4ms) COMMIT
138951
+ Processing by Sunrise::ManagerController#new as HTML
138952
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
138953
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
138954
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
138955
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.0ms)
138956
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.0ms)
138957
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
138958
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.5ms)
138959
+ Completed 200 OK in 21ms (Views: 17.0ms | ActiveRecord: 0.2ms)
138960
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-04-12 11:09:45 +0300
138961
+  (0.1ms) BEGIN
138962
+ 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-04-12 08:09:45', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:45')
138963
+  (39.1ms) COMMIT
138964
+  (0.1ms) BEGIN
138965
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 3, `updated_at` = '2013-04-12 08:09:45' WHERE `users`.`id` = 1
138966
+ 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-04-12 08:09:45', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:45')
138967
+  (37.5ms) COMMIT
138968
+ Processing by Sunrise::ManagerController#new as HTML
138969
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
138970
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
138971
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
138972
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.0ms)
138973
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.0ms)
138974
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
138975
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.5ms)
138976
+ Completed 200 OK in 21ms (Views: 17.0ms | ActiveRecord: 0.2ms)
138977
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
138978
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
138979
+  (211.7ms) TRUNCATE TABLE `activities`;
138980
+  (285.4ms) TRUNCATE TABLE `assets`;
138981
+  (342.6ms) TRUNCATE TABLE `audits`;
138982
+  (251.3ms) TRUNCATE TABLE `meta_tags`;
138983
+  (162.4ms) TRUNCATE TABLE `page_parts`;
138984
+  (216.2ms) TRUNCATE TABLE `posts`;
138985
+  (218.8ms) TRUNCATE TABLE `settings`;
138986
+  (390.4ms) TRUNCATE TABLE `structures`;
138987
+  (375.8ms) TRUNCATE TABLE `users`;
138988
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
138989
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
138990
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
138991
+  (385.8ms) TRUNCATE TABLE `activities`;
138992
+  (196.6ms) TRUNCATE TABLE `assets`;
138993
+  (295.7ms) TRUNCATE TABLE `audits`;
138994
+  (306.1ms) TRUNCATE TABLE `meta_tags`;
138995
+  (162.2ms) TRUNCATE TABLE `page_parts`;
138996
+  (237.3ms) TRUNCATE TABLE `posts`;
138997
+  (150.3ms) TRUNCATE TABLE `settings`;
138998
+  (317.9ms) TRUNCATE TABLE `structures`;
138999
+  (946.3ms) TRUNCATE TABLE `users`;
139000
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
139001
+  (0.1ms) BEGIN
139002
+ User Exists (0.7ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing43@example.com' LIMIT 1
139003
+ 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-04-12 08:09:51', '2013-04-12 08:09:51', NULL, NULL, 'testing43@example.com', 'ba8b8c71aff9481b5ea77cb45806fe2334cc60a391b9c479ba1ac1ac9a6ec175ba9608cb7184af422e1767dea6e3530813dee42f7f872d4a4c3599560b5b4df0', 0, NULL, NULL, NULL, 'Admin', '8cvDas5qy8nJLUawKFdy', NULL, NULL, NULL, 4, 0, NULL, '2013-04-12 08:09:51')
139004
+ SQL (79.2ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-04-12 08:09:51', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:51')
139005
+  (58.2ms) COMMIT
139006
+  (0.1ms) BEGIN
139007
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
139008
+ 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-04-12 08:09:51', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-04-12 08:09:51')
139009
+ 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-04-12 08:09:51', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-04-12 08:09:51')
139010
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
139011
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
139012
+  (138.1ms) COMMIT
139013
+  (0.1ms) BEGIN
139014
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
139015
+ 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-04-12 08:09:51', 0, 1, 3, 1, 2, NULL, 4, 'slug16', 1, 'Structure', '2013-04-12 08:09:51')
139016
+ 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-04-12 08:09:51', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-04-12 08:09:51')
139017
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
139018
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
139019
+ 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`
139020
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
139021
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
139022
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
139023
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
139024
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
139025
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
139026
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
139027
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
139028
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
139029
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
139030
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
139031
+  (142.6ms) COMMIT
139032
+  (0.1ms) BEGIN
139033
+ SQL (39.4ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-04-12 08:09:51', 1, 2, 'Default title', '2013-04-12 08:09:51')
139034
+ 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-04-12 08:09:51', 'post.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Post', '2013-04-12 08:09:51')
139035
+  (131.9ms) COMMIT
139036
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-04-12 11:09:51 +0300
139037
+  (0.2ms) BEGIN
139038
+ 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-04-12 08:09:51', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:51')
139039
+  (26.2ms) COMMIT
139040
+  (0.1ms) BEGIN
139041
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2013-04-12 08:09:51', `current_sign_in_at` = '2013-04-12 08:09:51', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-04-12 08:09:51' WHERE `users`.`id` = 1
139042
+ 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-04-12 08:09:51', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:51')
139043
+  (42.7ms) COMMIT
139044
+ Processing by Sunrise::ManagerController#index as HTML
139045
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
139046
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
139047
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
139048
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_controls.html.erb (0.1ms)
139049
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (5.6ms)
139050
+  (0.4ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
139051
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.1ms)
139052
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
139053
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
139054
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (6.1ms)
139055
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (11.0ms)
139056
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.8ms)
139057
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.8ms)
139058
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.7ms)
139059
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (1.1ms)
139060
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (5.5ms)
139061
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (17.2ms)
139062
+ Completed 200 OK in 42ms (Views: 35.3ms | ActiveRecord: 1.4ms)
139063
+  (0.1ms) BEGIN
139064
+ SQL (0.3ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-04-12 08:09:51', 1, 2, 'Good day', '2013-04-12 08:09:51')
139065
+ 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-04-12 08:09:51', 'post.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Post', '2013-04-12 08:09:51')
139066
+  (28.1ms) COMMIT
139067
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-04-12 11:09:51 +0300
139068
+  (0.1ms) BEGIN
139069
+ 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-04-12 08:09:51', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:51')
139070
+  (34.7ms) COMMIT
139071
+  (0.1ms) BEGIN
139072
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-04-12 08:09:51' WHERE `users`.`id` = 1
139073
+ 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-04-12 08:09:51', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:51')
139074
+  (37.7ms) COMMIT
139075
+ Processing by Sunrise::ManagerController#index as HTML
139076
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
139077
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
139078
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
139079
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_controls.html.erb (0.1ms)
139080
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_controls.html.erb (0.1ms)
139081
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (10.1ms)
139082
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
139083
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
139084
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
139085
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
139086
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.5ms)
139087
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.4ms)
139088
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.7ms)
139089
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.7ms)
139090
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.6ms)
139091
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (1.1ms)
139092
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.7ms)
139093
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (15.8ms)
139094
+ Completed 200 OK in 45ms (Views: 38.7ms | ActiveRecord: 1.2ms)
139095
+ 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-04-12 11:09:52 +0300
139096
+ Processing by Sunrise::ManagerController#index as HTML
139097
+ Parameters: {"utf8"=>"✓", "parent_id"=>"2", "parent_type"=>"Structure", "search"=>{"title"=>"Good day", "structure_id"=>""}, "commit"=>"Search", "model_name"=>"posts"}
139098
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
139099
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
139100
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`title` = 'Good day' AND `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
139101
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_controls.html.erb (0.1ms)
139102
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (5.6ms)
139103
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`title` = 'Good day' AND `posts`.`structure_id` = 2
139104
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.1ms)
139105
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
139106
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
139107
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.6ms)
139108
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (11.1ms)
139109
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.7ms)
139110
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.7ms)
139111
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.7ms)
139112
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (1.1ms)
139113
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.8ms)
139114
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (16.5ms)
139115
+ Completed 200 OK in 44ms (Views: 35.1ms | ActiveRecord: 1.7ms)
139116
+ Started GET "/manage/posts?parent_id=1&parent_type=Structure" for 127.0.0.1 at 2013-04-12 11:09:52 +0300
139117
+  (0.1ms) BEGIN
139118
+ 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-04-12 08:09:52', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:52')
139119
+  (19.5ms) COMMIT
139120
+  (0.1ms) BEGIN
139121
+  (0.4ms) UPDATE `users` SET `current_sign_in_at` = '2013-04-12 08:09:52', `sign_in_count` = 3, `updated_at` = '2013-04-12 08:09:52' WHERE `users`.`id` = 1
139122
+ 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-04-12 08:09:52', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:52')
139123
+  (37.2ms) COMMIT
139124
+ Processing by Sunrise::ManagerController#index as HTML
139125
+ Parameters: {"parent_id"=>"1", "parent_type"=>"Structure", "model_name"=>"posts"}
139126
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
139127
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 1 LIMIT 25 OFFSET 0
139128
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (0.0ms)
139129
+  (0.3ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 1
139130
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.2ms)
139131
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
139132
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
139133
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.6ms)
139134
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.8ms)
139135
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.7ms)
139136
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.7ms)
139137
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.7ms)
139138
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (1.1ms)
139139
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.9ms)
139140
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (16.4ms)
139141
+ Completed 200 OK in 35ms (Views: 28.8ms | ActiveRecord: 1.3ms)
139142
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
139143
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
139144
+  (175.3ms) TRUNCATE TABLE `activities`;
139145
+  (296.0ms) TRUNCATE TABLE `assets`;
139146
+  (342.1ms) TRUNCATE TABLE `audits`;
139147
+  (273.4ms) TRUNCATE TABLE `meta_tags`;
139148
+  (140.3ms) TRUNCATE TABLE `page_parts`;
139149
+  (119.8ms) TRUNCATE TABLE `posts`;
139150
+  (271.6ms) TRUNCATE TABLE `settings`;
139151
+  (320.1ms) TRUNCATE TABLE `structures`;
139152
+  (325.7ms) TRUNCATE TABLE `users`;
139153
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
139154
+  (16.2ms) SELECT @@FOREIGN_KEY_CHECKS
139155
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
139156
+  (196.2ms) TRUNCATE TABLE `activities`;
139157
+  (274.6ms) TRUNCATE TABLE `assets`;
139158
+  (308.6ms) TRUNCATE TABLE `audits`;
139159
+  (317.1ms) TRUNCATE TABLE `meta_tags`;
139160
+  (151.4ms) TRUNCATE TABLE `page_parts`;
139161
+  (261.4ms) TRUNCATE TABLE `posts`;
139162
+  (139.2ms) TRUNCATE TABLE `settings`;
139163
+  (328.8ms) TRUNCATE TABLE `structures`;
139164
+  (399.9ms) TRUNCATE TABLE `users`;
139165
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
139166
+  (0.1ms) BEGIN
139167
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing44@example.com' LIMIT 1
139168
+ 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-04-12 08:09:56', '2013-04-12 08:09:56', NULL, NULL, 'testing44@example.com', '125e22ad5548aa7bbb9a7f827f9d67192c9de0e773cc3205e3f0cae5f7443a3ffcb908428c97fbd24fcf2f67ff2868cbb05a7dc5281a09b310872ba22f1b5632', 0, NULL, NULL, NULL, 'Admin', 'sGbDFmLMg8baANUvz92p', NULL, NULL, NULL, 4, 0, NULL, '2013-04-12 08:09:56')
139169
+ 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-04-12 08:09:56', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:56')
139170
+  (30.8ms) COMMIT
139171
+  (0.1ms) BEGIN
139172
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
139173
+ 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-04-12 08:09:56', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-04-12 08:09:56')
139174
+ 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-04-12 08:09:56', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-04-12 08:09:56')
139175
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
139176
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
139177
+  (31.6ms) COMMIT
139178
+  (0.1ms) BEGIN
139179
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
139180
+ 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-04-12 08:09:57', 0, 1, 3, 1, 2, NULL, 4, 'slug17', 1, 'Structure', '2013-04-12 08:09:57')
139181
+ 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-04-12 08:09:57', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-04-12 08:09:57')
139182
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
139183
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
139184
+ 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`
139185
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
139186
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
139187
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
139188
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
139189
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
139190
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
139191
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
139192
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
139193
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
139194
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
139195
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
139196
+  (34.0ms) COMMIT
139197
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-04-12 11:09:57 +0300
139198
+  (0.2ms) BEGIN
139199
+ 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-04-12 08:09:57', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:57')
139200
+  (33.5ms) COMMIT
139201
+  (0.1ms) BEGIN
139202
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2013-04-12 08:09:57', `current_sign_in_at` = '2013-04-12 08:09:57', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-04-12 08:09:57' WHERE `users`.`id` = 1
139203
+ 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-04-12 08:09:57', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:57')
139204
+  (37.2ms) COMMIT
139205
+ Processing by Sunrise::ManagerController#new as HTML
139206
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
139207
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
139208
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
139209
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (9.9ms)
139210
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (13.7ms)
139211
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (5.2ms)
139212
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.6ms)
139213
+ Completed 200 OK in 29ms (Views: 24.2ms | ActiveRecord: 0.5ms)
139214
+ Started POST "/manage/posts/new" for 127.0.0.1 at 2013-04-12 11:09:57 +0300
139215
+ Processing by Sunrise::ManagerController#create as HTML
139216
+ 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"}
139217
+ User Load (0.7ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
139218
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
139219
+  (0.2ms) BEGIN
139220
+ 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-04-12 08:09:57', 1, 2, 'Good title', '2013-04-12 08:09:57')
139221
+ 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-04-12 08:09:57', 'post.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Post', '2013-04-12 08:09:57')
139222
+  (31.0ms) COMMIT
139223
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
139224
+ Completed 302 Found in 50ms (ActiveRecord: 0.0ms)
139225
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-04-12 11:09:57 +0300
139226
+ Processing by Sunrise::ManagerController#index as HTML
139227
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
139228
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
139229
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
139230
+ Post Load (0.6ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
139231
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_controls.html.erb (0.1ms)
139232
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (6.7ms)
139233
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
139234
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.3ms)
139235
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
139236
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
139237
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (6.7ms)
139238
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (12.1ms)
139239
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.9ms)
139240
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.8ms)
139241
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.8ms)
139242
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (1.5ms)
139243
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (6.2ms)
139244
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (19.0ms)
139245
+ Completed 200 OK in 47ms (Views: 39.4ms | ActiveRecord: 1.4ms)
139246
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` ORDER BY `posts`.`id` DESC LIMIT 1
139247
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
139248
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-04-12 11:09:57 +0300
139249
+  (0.1ms) BEGIN
139250
+ 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-04-12 08:09:57', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:57')
139251
+  (21.8ms) COMMIT
139252
+  (0.1ms) BEGIN
139253
+  (0.5ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-04-12 08:09:57' WHERE `users`.`id` = 1
139254
+ 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-04-12 08:09:57', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:09:57')
139255
+  (24.6ms) COMMIT
139256
+ Processing by Sunrise::ManagerController#new as HTML
139257
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
139258
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
139259
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
139260
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (7.4ms)
139261
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (11.0ms)
139262
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
139263
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.5ms)
139264
+ Completed 200 OK in 25ms (Views: 19.7ms | ActiveRecord: 0.2ms)
139265
+ Started POST "/manage/posts/new" for 127.0.0.1 at 2013-04-12 11:09:57 +0300
139266
+ Processing by Sunrise::ManagerController#create as HTML
139267
+ 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"}
139268
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
139269
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
139270
+  (0.1ms) BEGIN
139271
+ 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-04-12 08:09:57', 1, 2, 'Good title', '2013-04-12 08:09:57')
139272
+ 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-04-12 08:09:57', 'post.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Post', '2013-04-12 08:09:57')
139273
+  (20.2ms) COMMIT
139274
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
139275
+ Completed 302 Found in 37ms (ActiveRecord: 0.0ms)
139276
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-04-12 11:09:57 +0300
139277
+ Processing by Sunrise::ManagerController#index as HTML
139278
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
139279
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
139280
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
139281
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
139282
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_controls.html.erb (0.1ms)
139283
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_controls.html.erb (0.1ms)
139284
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (12.1ms)
139285
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
139286
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.5ms)
139287
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
139288
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
139289
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.7ms)
139290
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (11.4ms)
139291
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.7ms)
139292
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.7ms)
139293
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.8ms)
139294
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (1.3ms)
139295
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (5.5ms)
139296
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (17.6ms)
139297
+ Completed 200 OK in 52ms (Views: 44.1ms | ActiveRecord: 1.4ms)
139298
+ Post Load (0.6ms) SELECT `posts`.* FROM `posts` ORDER BY `posts`.`id` DESC LIMIT 1
139299
+ Started GET "/manage/posts/new" for 127.0.0.1 at 2013-04-12 11:09:57 +0300
139300
+ Processing by Sunrise::ManagerController#new as HTML
139301
+ Parameters: {"model_name"=>"posts"}
139302
+ Completed 401 Unauthorized in 1ms
139303
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-04-12 11:09:57 +0300
139304
+ Processing by Devise::SessionsController#new as HTML
139305
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.3/app/views/devise/shared/_links.erb (1.1ms)
139306
+ Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.0ms)
139307
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
139308
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
139309
+  (184.5ms) TRUNCATE TABLE `activities`;
139310
+  (307.7ms) TRUNCATE TABLE `assets`;
139311
+  (386.1ms) TRUNCATE TABLE `audits`;
139312
+  (250.9ms) TRUNCATE TABLE `meta_tags`;
139313
+  (286.7ms) TRUNCATE TABLE `page_parts`;
139314
+  (315.5ms) TRUNCATE TABLE `posts`;
139315
+  (288.6ms) TRUNCATE TABLE `settings`;
139316
+  (225.7ms) TRUNCATE TABLE `structures`;
139317
+  (478.6ms) TRUNCATE TABLE `users`;
139318
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
139319
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
139320
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
139321
+  (184.0ms) TRUNCATE TABLE `activities`;
139322
+  (307.1ms) TRUNCATE TABLE `assets`;
139323
+  (399.4ms) TRUNCATE TABLE `audits`;
139324
+  (293.3ms) TRUNCATE TABLE `meta_tags`;
139325
+  (162.5ms) TRUNCATE TABLE `page_parts`;
139326
+  (286.4ms) TRUNCATE TABLE `posts`;
139327
+  (863.2ms) TRUNCATE TABLE `settings`;
139328
+  (603.2ms) TRUNCATE TABLE `structures`;
139329
+  (585.5ms) TRUNCATE TABLE `users`;
139330
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
139331
+  (0.1ms) BEGIN
139332
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing45@example.com' LIMIT 1
139333
+ 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-04-12 08:10:03', '2013-04-12 08:10:03', NULL, NULL, 'testing45@example.com', '8b218da4251f070c6c02bcb2f687e7ebc85420a93eb3bec3eb4a604b23ca569fbbe7abd69e4742834fa3f4b11cbd3e0190c31ed62e2cfd5fb7cd6b62d4333b30', 0, NULL, NULL, NULL, 'Admin', 'fptzYWPLFsJGm5x1ychE', NULL, NULL, NULL, 4, 0, NULL, '2013-04-12 08:10:03')
139334
+ 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-04-12 08:10:04', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:10:04')
139335
+  (145.3ms) COMMIT
139336
+  (0.1ms) BEGIN
139337
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
139338
+ 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-04-12 08:10:04', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-04-12 08:10:04')
139339
+ 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-04-12 08:10:04', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-04-12 08:10:04')
139340
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
139341
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
139342
+  (55.3ms) COMMIT
139343
+  (0.1ms) BEGIN
139344
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
139345
+ 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-04-12 08:10:04', 0, 1, 3, 1, 2, NULL, 4, 'slug18', 1, 'Structure', '2013-04-12 08:10:04')
139346
+ 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-04-12 08:10:04', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-04-12 08:10:04')
139347
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
139348
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
139349
+ 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`
139350
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
139351
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
139352
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
139353
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
139354
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
139355
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
139356
+ Structure Load (0.2ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
139357
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
139358
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
139359
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
139360
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
139361
+  (29.7ms) COMMIT
139362
+  (0.1ms) BEGIN
139363
+ SQL (0.3ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-04-12 08:10:04', 1, 2, 'Default title', '2013-04-12 08:10:04')
139364
+ 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-04-12 08:10:04', 'post.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Post', '2013-04-12 08:10:04')
139365
+  (161.0ms) COMMIT
139366
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-04-12 11:10:04 +0300
139367
+  (0.1ms) BEGIN
139368
+ 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-04-12 08:10:04', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:10:04')
139369
+  (33.7ms) COMMIT
139370
+  (0.1ms) BEGIN
139371
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2013-04-12 08:10:04', `current_sign_in_at` = '2013-04-12 08:10:04', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-04-12 08:10:04' WHERE `users`.`id` = 1
139372
+ 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-04-12 08:10:04', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:10:04')
139373
+  (37.5ms) COMMIT
139374
+ Processing by Sunrise::ManagerController#edit as HTML
139375
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
139376
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
139377
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
139378
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.3ms)
139379
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.5ms)
139380
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.9ms)
139381
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
139382
+ Completed 200 OK in 22ms (Views: 17.7ms | ActiveRecord: 0.5ms)
139383
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-04-12 11:10:04 +0300
139384
+  (0.1ms) BEGIN
139385
+ 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-04-12 08:10:04', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:10:04')
139386
+  (38.8ms) COMMIT
139387
+  (0.1ms) BEGIN
139388
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-04-12 08:10:04' WHERE `users`.`id` = 1
139389
+ 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-04-12 08:10:04', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:10:04')
139390
+  (37.6ms) COMMIT
139391
+ Processing by Sunrise::ManagerController#edit as HTML
139392
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
139393
+ Post Load (0.2ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
139394
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
139395
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.1ms)
139396
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.3ms)
139397
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
139398
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
139399
+ Completed 200 OK in 21ms (Views: 17.3ms | ActiveRecord: 0.2ms)
139400
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-04-12 11:10:04 +0300
139401
+ Processing by Sunrise::ManagerController#edit as HTML
139402
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
139403
+ Completed 401 Unauthorized in 1ms
139404
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-04-12 11:10:04 +0300
139405
+ Processing by Devise::SessionsController#new as HTML
139406
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.3/app/views/devise/shared/_links.erb (1.4ms)
139407
+ Completed 200 OK in 11ms (Views: 10.0ms | ActiveRecord: 0.0ms)
139408
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
139409
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
139410
+  (184.2ms) TRUNCATE TABLE `activities`;
139411
+  (296.6ms) TRUNCATE TABLE `assets`;
139412
+  (339.2ms) TRUNCATE TABLE `audits`;
139413
+  (162.6ms) TRUNCATE TABLE `meta_tags`;
139414
+  (291.9ms) TRUNCATE TABLE `page_parts`;
139415
+  (139.2ms) TRUNCATE TABLE `posts`;
139416
+  (205.1ms) TRUNCATE TABLE `settings`;
139417
+  (308.1ms) TRUNCATE TABLE `structures`;
139418
+  (353.8ms) TRUNCATE TABLE `users`;
139419
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
139420
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
139421
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
139422
+  (184.7ms) TRUNCATE TABLE `activities`;
139423
+  (284.6ms) TRUNCATE TABLE `assets`;
139424
+  (352.2ms) TRUNCATE TABLE `audits`;
139425
+  (251.6ms) TRUNCATE TABLE `meta_tags`;
139426
+  (197.5ms) TRUNCATE TABLE `page_parts`;
139427
+  (204.1ms) TRUNCATE TABLE `posts`;
139428
+  (139.2ms) TRUNCATE TABLE `settings`;
139429
+  (318.0ms) TRUNCATE TABLE `structures`;
139430
+  (353.5ms) TRUNCATE TABLE `users`;
139431
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
139432
+  (0.1ms) BEGIN
139433
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing46@example.com' LIMIT 1
139434
+ 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-04-12 08:10:09', '2013-04-12 08:10:09', NULL, NULL, 'testing46@example.com', '7c2753ffa7a9b855d7fcbe023352b62aa806307b786a3059693ee9d2c26f8e3fb72a0b2bc9e8db5e723245b163760206d70461238bf5474a2d64fb40defe3f08', 0, NULL, NULL, NULL, 'Admin', '4k9rtLty3fyARge7vCqc', NULL, NULL, NULL, 4, 0, NULL, '2013-04-12 08:10:09')
139435
+ 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-04-12 08:10:09', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:10:09')
139436
+  (32.0ms) COMMIT
139437
+  (0.1ms) BEGIN
139438
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
139439
+ 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-04-12 08:10:09', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-04-12 08:10:09')
139440
+ 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-04-12 08:10:09', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-04-12 08:10:09')
139441
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
139442
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
139443
+  (31.8ms) COMMIT
139444
+  (0.1ms) BEGIN
139445
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
139446
+ 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-04-12 08:10:09', 0, 1, 3, 1, 2, NULL, 4, 'slug19', 1, 'Structure', '2013-04-12 08:10:09')
139447
+ 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-04-12 08:10:09', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-04-12 08:10:09')
139448
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
139449
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
139450
+ 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`
139451
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
139452
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
139453
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
139454
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
139455
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
139456
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
139457
+ Structure Load (0.2ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
139458
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
139459
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
139460
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
139461
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
139462
+  (36.6ms) COMMIT
139463
+ Started GET "/manage/services.json" for 127.0.0.1 at 2013-04-12 11:10:09 +0300
139464
+  (0.1ms) BEGIN
139465
+ 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-04-12 08:10:09', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:10:09')
139466
+  (34.5ms) COMMIT
139467
+  (0.1ms) BEGIN
139468
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-04-12 08:10:09', `current_sign_in_at` = '2013-04-12 08:10:09', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-04-12 08:10:09' WHERE `users`.`id` = 1
139469
+ 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-04-12 08:10:09', 'user.update', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:10:09')
139470
+  (48.5ms) COMMIT
139471
+ Processing by Sunrise::SharedController#services as JSON
139472
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft` LIMIT 1
139473
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
139474
+ Completed 200 OK in 109ms (Views: 96.3ms | ActiveRecord: 1.1ms)
139475
+ Started GET "/manage/services.json" for 127.0.0.1 at 2013-04-12 11:10:09 +0300
139476
+ Processing by Sunrise::SharedController#services as JSON
139477
+ Completed 401 Unauthorized in 1ms
139478
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
139479
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
139480
+  (301.8ms) TRUNCATE TABLE `activities`;
139481
+  (305.7ms) TRUNCATE TABLE `assets`;
139482
+  (210.8ms) TRUNCATE TABLE `audits`;
139483
+  (307.9ms) TRUNCATE TABLE `meta_tags`;
139484
+  (284.6ms) TRUNCATE TABLE `page_parts`;
139485
+  (150.3ms) TRUNCATE TABLE `posts`;
139486
+  (203.6ms) TRUNCATE TABLE `settings`;
139487
+  (410.2ms) TRUNCATE TABLE `structures`;
139488
+  (353.8ms) TRUNCATE TABLE `users`;
139489
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
139490
+  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS
139491
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
139492
+  (226.6ms) TRUNCATE TABLE `activities`;
139493
+  (319.2ms) TRUNCATE TABLE `assets`;
139494
+  (330.4ms) TRUNCATE TABLE `audits`;
139495
+  (328.1ms) TRUNCATE TABLE `meta_tags`;
139496
+  (262.0ms) TRUNCATE TABLE `page_parts`;
139497
+  (129.4ms) TRUNCATE TABLE `posts`;
139498
+  (260.9ms) TRUNCATE TABLE `settings`;
139499
+  (297.4ms) TRUNCATE TABLE `structures`;
139500
+  (377.8ms) TRUNCATE TABLE `users`;
139501
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
139502
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
139503
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
139504
+  (819.5ms) TRUNCATE TABLE `activities`;
139505
+  (377.8ms) TRUNCATE TABLE `assets`;
139506
+  (319.6ms) TRUNCATE TABLE `audits`;
139507
+  (250.7ms) TRUNCATE TABLE `meta_tags`;
139508
+  (140.3ms) TRUNCATE TABLE `page_parts`;
139509
+  (205.9ms) TRUNCATE TABLE `posts`;
139510
+  (262.4ms) TRUNCATE TABLE `settings`;
139511
+  (336.0ms) TRUNCATE TABLE `structures`;
139512
+  (322.7ms) TRUNCATE TABLE `users`;
139513
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
139514
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
139515
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
139516
+  (179.1ms) TRUNCATE TABLE `activities`;
139517
+  (307.5ms) TRUNCATE TABLE `assets`;
139518
+  (309.3ms) TRUNCATE TABLE `audits`;
139519
+  (272.5ms) TRUNCATE TABLE `meta_tags`;
139520
+  (378.3ms) TRUNCATE TABLE `page_parts`;
139521
+  (116.9ms) TRUNCATE TABLE `posts`;
139522
+  (239.1ms) TRUNCATE TABLE `settings`;
139523
+  (297.9ms) TRUNCATE TABLE `structures`;
139524
+  (387.3ms) TRUNCATE TABLE `users`;
139525
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
139526
+  (0.1ms) BEGIN
139527
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
139528
+ 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-04-12 08:10:20', 0, 1, 1, NULL, 2, NULL, 2, 'slug20', 1, 'Structure', '2013-04-12 08:10:20')
139529
+ 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-04-12 08:10:20', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-04-12 08:10:20')
139530
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
139531
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
139532
+  (29.2ms) COMMIT
139533
+  (0.1ms) BEGIN
139534
+ SQL (0.3ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-04-12 08:10:20', 1, 1, 'Default title', '2013-04-12 08:10:20')
139535
+ 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-04-12 08:10:20', 'post.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Post', '2013-04-12 08:10:20')
139536
+  (37.4ms) COMMIT
139537
+  (0.1ms) BEGIN
139538
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing47@example.com' LIMIT 1
139539
+ 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-04-12 08:10:20', '2013-04-12 08:10:20', NULL, NULL, 'testing47@example.com', 'eeecff6f2e1ea6f30d210f60521c66554b0192c8c75be3425144a589beb616c36e647aa4284a2e14c8da8a6ae0505dd8c92eabb9227d611e91070019ac0216a7', 0, NULL, NULL, NULL, 'Redactor', 'AMarFtJy9DPeikQ4Kuye', NULL, NULL, NULL, 2, 0, NULL, '2013-04-12 08:10:20')
139540
+ 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-04-12 08:10:20', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:10:20')
139541
+  (33.5ms) COMMIT
139542
+  (0.1ms) BEGIN
139543
+ 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-04-12 08:10:20', 'post.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Post', '2013-04-12 08:10:20')
139544
+  (40.5ms) COMMIT
139545
+  (0.1ms) BEGIN
139546
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing48@example.com' LIMIT 1
139547
+ 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-04-12 08:10:20', '2013-04-12 08:10:20', NULL, NULL, 'testing48@example.com', 'b3d09bde39a00bfb7815f0a93a3a361b189e5baff3d457d1d0bd7affd91c582d90105fead8f97e23c48d5fec809afbf8212e707401037f7a89af73e1a9185e0f', 0, NULL, NULL, NULL, 'Admin', 'zgA8TPZrTXCT5n7EPQEp', NULL, NULL, NULL, 4, 0, NULL, '2013-04-12 08:10:20')
139548
+ 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-04-12 08:10:20', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'User', '2013-04-12 08:10:20')
139549
+  (34.1ms) COMMIT
139550
+ Processing by Sunrise::DashboardController#index as HTML
139551
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1
139552
+ PublicActivity::ORM::ActiveRecord::Activity Load (0.6ms) SELECT `activities`.* FROM `activities` ORDER BY created_at DESC LIMIT 50 OFFSET 0
139553
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
139554
+ Structure Load (4.7ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
139555
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
139556
+ Post Load (0.6ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
139557
+ User Load (3.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
139558
+ User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
139559
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
139560
+ Post Load (0.2ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
139561
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
139562
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1
139563
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_activity.html.erb (44.7ms)
139564
+  (0.5ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `activities` LIMIT 50 OFFSET 0) subquery_for_count 
139565
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
139566
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (1.4ms)
139567
+ Completed 200 OK in 73ms (Views: 48.5ms | ActiveRecord: 12.2ms)
139568
+ Processing by Sunrise::DashboardController#index as HTML
139569
+ Completed 401 Unauthorized in 1ms
139570
+ Processing by Sunrise::DashboardController#index as HTML
139571
+ Completed 401 Unauthorized in 1ms
139572
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
139573
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
139574
+  (157.6ms) TRUNCATE TABLE `activities`;
139575
+  (285.4ms) TRUNCATE TABLE `assets`;
139576
+  (330.2ms) TRUNCATE TABLE `audits`;
139577
+  (273.4ms) TRUNCATE TABLE `meta_tags`;
139578
+  (140.2ms) TRUNCATE TABLE `page_parts`;
139579
+  (228.4ms) TRUNCATE TABLE `posts`;
139580
+  (150.2ms) TRUNCATE TABLE `settings`;
139581
+  (295.8ms) TRUNCATE TABLE `structures`;
139582
+  (397.8ms) TRUNCATE TABLE `users`;
139583
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
139584
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
139585
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
139586
+  (318.9ms) TRUNCATE TABLE `activities`;
139587
+  (363.2ms) TRUNCATE TABLE `assets`;
139588
+  (313.8ms) TRUNCATE TABLE `audits`;
139589
+  (178.8ms) TRUNCATE TABLE `meta_tags`;
139590
+  (263.4ms) TRUNCATE TABLE `page_parts`;
139591
+  (239.1ms) TRUNCATE TABLE `posts`;
139592
+  (117.1ms) TRUNCATE TABLE `settings`;
139593
+  (352.1ms) TRUNCATE TABLE `structures`;
139594
+  (434.1ms) TRUNCATE TABLE `users`;
139595
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
139596
+  (0.1ms) BEGIN
139597
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
139598
+ 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-04-12 08:10:25', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-04-12 08:10:25')
139599
+ 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-04-12 08:10:25', 'structure.create', 2, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-04-12 08:10:25')
139600
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
139601
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
139602
+  (30.2ms) COMMIT
139603
+  (0.1ms) BEGIN
139604
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
139605
+ 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-04-12 08:10:25', 0, 1, 3, 1, 2, NULL, 4, 'slug21', 1, 'Structure', '2013-04-12 08:10:25')
139606
+ 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-04-12 08:10:25', 'structure.create', 2, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-04-12 08:10:25')
139607
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
139608
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
139609
+ 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`
139610
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
139611
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
139612
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
139613
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
139614
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
139615
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
139616
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
139617
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
139618
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
139619
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
139620
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
139621
+  (34.8ms) COMMIT
139622
+  (0.2ms) BEGIN
139623
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing49@example.com' LIMIT 1
139624
+ 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-04-12 08:10:25', '2013-04-12 08:10:25', NULL, NULL, 'testing49@example.com', '9ba786ba60d2de372eb0a2b4ef3405574bb17476cd6c8cedf2b97bc6e52c866ccd7909fe5abc313e8641d6d9bd4b48973d06dd13d3964c2f06e471163f83ebd7', 0, NULL, NULL, NULL, 'Admin', 'JdvsQvzRP31fkbpARGzk', NULL, NULL, NULL, 4, 0, NULL, '2013-04-12 08:10:25')
139625
+ 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-04-12 08:10:25', 'user.create', 2, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:10:25')
139626
+  (40.5ms) COMMIT
139627
+ Processing by Sunrise::SharedController#services as JSON
139628
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
139629
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft` LIMIT 1
139630
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
139631
+ Completed 200 OK in 18ms (Views: 3.8ms | ActiveRecord: 1.7ms)
139632
+ Processing by Sunrise::SharedController#services as JSON
139633
+ Completed 401 Unauthorized in 1ms
139634
+ Processing by Sunrise::SharedController#services as HTML
139635
+ Completed 401 Unauthorized in 1ms
139636
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
139637
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
139638
+  (254.0ms) TRUNCATE TABLE `activities`;
139639
+  (364.0ms) TRUNCATE TABLE `assets`;
139640
+  (365.6ms) TRUNCATE TABLE `audits`;
139641
+  (294.7ms) TRUNCATE TABLE `meta_tags`;
139642
+  (173.6ms) TRUNCATE TABLE `page_parts`;
139643
+  (250.9ms) TRUNCATE TABLE `posts`;
139644
+  (272.1ms) TRUNCATE TABLE `settings`;
139645
+  (510.1ms) TRUNCATE TABLE `structures`;
139646
+  (388.5ms) TRUNCATE TABLE `users`;
139647
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
139648
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
139649
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
139650
+  (303.9ms) TRUNCATE TABLE `activities`;
139651
+  (177.1ms) TRUNCATE TABLE `assets`;
139652
+  (952.5ms) TRUNCATE TABLE `audits`;
139653
+  (629.0ms) TRUNCATE TABLE `meta_tags`;
139654
+  (317.8ms) TRUNCATE TABLE `page_parts`;
139655
+  (117.0ms) TRUNCATE TABLE `posts`;
139656
+  (239.4ms) TRUNCATE TABLE `settings`;
139657
+  (298.2ms) TRUNCATE TABLE `structures`;
139658
+  (386.6ms) TRUNCATE TABLE `users`;
139659
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
139660
+  (0.1ms) BEGIN
139661
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing50@example.com' LIMIT 1
139662
+ 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-04-12 08:10:32', '2013-04-12 08:10:32', NULL, NULL, 'testing50@example.com', '2cd9961aa59944d310d62df7996b7897045884bceb1dcc442e970e94937a103890f7e814e318bc3e6bbc4df5a7e859ffa0ddc7bfc6e478aada95903f3e2c100c', 0, NULL, NULL, NULL, 'Admin', 'UzUtoXuGr3kTT1CxzqvW', NULL, NULL, NULL, 4, 0, NULL, '2013-04-12 08:10:32')
139663
+ 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-04-12 08:10:32', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:10:32')
139664
+  (36.0ms) COMMIT
139665
+ Processing by Sunrise::SettingsController#edit as HTML
139666
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
139667
+ Settings Load (0.3ms) SELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL
139668
+ Settings Load (0.7ms) SELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL AND `settings`.`var` = 'some_setting' LIMIT 1
139669
+ Settings Load (0.6ms) SELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL AND `settings`.`var` = 'some_setting2' LIMIT 1
139670
+ Settings Load (0.5ms) SELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL AND `settings`.`var` = 'persisted?' LIMIT 1
139671
+ Rendered /var/www/gems/sunrise/app/views/sunrise/settings/_form.html.erb (16.7ms)
139672
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.8ms)
139673
+ Rendered /var/www/gems/sunrise/app/views/sunrise/settings/_header_edit.html.erb (1.4ms)
139674
+ Completed 200 OK in 202ms (Views: 183.1ms | ActiveRecord: 4.3ms)
139675
+ Processing by Sunrise::SettingsController#update as HTML
139676
+ Parameters: {"settings"=>{"some_setting"=>"blablabla"}}
139677
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
139678
+ 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
139679
+  (0.2ms) BEGIN
139680
+ SQL (0.4ms) INSERT INTO `settings` (`created_at`, `target_id`, `target_type`, `updated_at`, `value`, `var`) VALUES ('2013-04-12 08:10:32', NULL, NULL, '2013-04-12 08:10:32', '--- blablabla\n...\n', 'some_setting')
139681
+ 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-04-12 08:10:32', 'settings.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Settings', '2013-04-12 08:10:32')
139682
+  (148.8ms) COMMIT
139683
+ Redirected to http://test.host/manage/
139684
+ Completed 302 Found in 224ms (ActiveRecord: 150.3ms)
139685
+ Processing by Sunrise::SettingsController#update as HTML
139686
+ Completed 401 Unauthorized in 1ms
139687
+ Processing by Sunrise::SettingsController#edit as HTML
139688
+ Completed 401 Unauthorized in 1ms
139689
+ Processing by Sunrise::SettingsController#edit as HTML
139690
+ Completed 401 Unauthorized in 1ms
139691
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
139692
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
139693
+  (167.7ms) TRUNCATE TABLE `activities`;
139694
+  (251.7ms) TRUNCATE TABLE `assets`;
139695
+  (275.7ms) TRUNCATE TABLE `audits`;
139696
+  (306.5ms) TRUNCATE TABLE `meta_tags`;
139697
+  (140.2ms) TRUNCATE TABLE `page_parts`;
139698
+  (216.7ms) TRUNCATE TABLE `posts`;
139699
+  (150.3ms) TRUNCATE TABLE `settings`;
139700
+  (284.7ms) TRUNCATE TABLE `structures`;
139701
+  (364.6ms) TRUNCATE TABLE `users`;
139702
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
139703
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
139704
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
139705
+  (306.0ms) TRUNCATE TABLE `activities`;
139706
+  (276.9ms) TRUNCATE TABLE `assets`;
139707
+  (217.5ms) TRUNCATE TABLE `audits`;
139708
+  (260.9ms) TRUNCATE TABLE `meta_tags`;
139709
+  (261.6ms) TRUNCATE TABLE `page_parts`;
139710
+  (128.2ms) TRUNCATE TABLE `posts`;
139711
+  (304.7ms) TRUNCATE TABLE `settings`;
139712
+  (303.6ms) TRUNCATE TABLE `structures`;
139713
+  (270.2ms) TRUNCATE TABLE `users`;
139714
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
139715
+  (0.1ms) BEGIN
139716
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing51@example.com' LIMIT 1
139717
+ 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-04-12 08:10:37', '2013-04-12 08:10:37', NULL, NULL, 'testing51@example.com', 'c680f2f5bb7dcfbf957906dfbeec0db1ab807c9f7a33bfb3f397b2440670f7bff762d2e19f6836d00adea1fde8a3a015bae76f2da7799ecf74f2fc7b1b8562e8', 0, NULL, NULL, NULL, 'Admin', 'gY7azGBr9guCWZQw84TC', NULL, NULL, NULL, 4, 0, NULL, '2013-04-12 08:10:37')
139718
+ 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-04-12 08:10:37', 'user.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'User', '2013-04-12 08:10:37')
139719
+  (34.3ms) COMMIT
139720
+  (0.1ms) BEGIN
139721
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
139722
+ 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-04-12 08:10:37', 0, 1, 1, NULL, 1, NULL, 2, 'main-page', 3, 'Main page', '2013-04-12 08:10:37')
139723
+ 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-04-12 08:10:37', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Structure', '2013-04-12 08:10:37')
139724
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
139725
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
139726
+  (43.1ms) COMMIT
139727
+  (0.1ms) BEGIN
139728
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
139729
+ 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-04-12 08:10:37', 0, 1, 3, 1, 2, NULL, 4, 'slug22', 1, 'Structure', '2013-04-12 08:10:37')
139730
+ 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-04-12 08:10:37', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 2, 'Structure', '2013-04-12 08:10:37')
139731
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
139732
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
139733
+ 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`
139734
+ Structure Load (0.5ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
139735
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
139736
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
139737
+ SQL (0.5ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
139738
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
139739
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
139740
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
139741
+ Structure Load (0.8ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
139742
+  (0.8ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
139743
+ SQL (0.6ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
139744
+  (0.7ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
139745
+  (43.6ms) COMMIT
139746
+ Processing by Sunrise::ManagerController#index as HTML
139747
+ Parameters: {"model_name"=>"structures"}
139748
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
139749
+ Completed 200 OK in 7ms (Views: 1.8ms | ActiveRecord: 0.6ms)
139750
+ Structure Load (0.7ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
139751
+ Processing by Sunrise::ManagerController#index as HTML
139752
+ Parameters: {"model_name"=>"wrong"}
139753
+ User Load (1.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
139754
+ Error while loading 'SunriseWrong': uninitialized constant SunriseWrong
139755
+ Completed 404 Not Found in 10ms
139756
+ Processing by Sunrise::ManagerController#destroy as HTML
139757
+ Parameters: {"model_name"=>"structures", "id"=>"1"}
139758
+ User Load (2.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
139759
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
139760
+ 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-04-12 08:10:37", updated_at: "2013-04-12 08:10:37">, context: sunrise, user: 1
139761
+ Redirected to http://test.host/
139762
+ Completed 302 Found in 13ms (ActiveRecord: 3.2ms)
139763
+  (0.1ms) BEGIN
139764
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
139765
+ 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-04-12 08:10:37', 0, 1, 5, NULL, 2, NULL, 6, 'slug23', 1, 'Structure', '2013-04-12 08:10:37')
139766
+ 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-04-12 08:10:37', 'structure.create', 1, 'User', '--- {}\n', NULL, NULL, 3, 'Structure', '2013-04-12 08:10:37')
139767
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1
139768
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 3 ORDER BY `structures`.`lft`
139769
+  (19.7ms) COMMIT
139770
+  (0.1ms) BEGIN
139771
+ SQL (0.3ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-04-12 08:10:37', 1, 3, 'Default title', '2013-04-12 08:10:37')
139772
+ 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-04-12 08:10:37', 'post.create', 1, 'User', '--- {}\n', NULL, NULL, 1, 'Post', '2013-04-12 08:10:37')
139773
+  (37.8ms) COMMIT
139774
+ Processing by Sunrise::ManagerController#index as HTML
139775
+ Parameters: {"model_name"=>"posts"}
139776
+ User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
139777
+ Completed 200 OK in 19ms (Views: 1.8ms | ActiveRecord: 0.3ms)
139778
+ Post Load (0.4ms) SELECT `posts`.* FROM `posts` LIMIT 50 OFFSET 0
139779
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
139780
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
139781
+  (202.6ms) TRUNCATE TABLE `activities`;
139782
+  (295.0ms) TRUNCATE TABLE `assets`;
139783
+  (301.1ms) TRUNCATE TABLE `audits`;
139784
+  (616.7ms) TRUNCATE TABLE `meta_tags`;
139785
+  (339.7ms) TRUNCATE TABLE `page_parts`;
139786
+  (236.4ms) TRUNCATE TABLE `posts`;
139787
+  (199.7ms) TRUNCATE TABLE `settings`;
139788
+  (307.9ms) TRUNCATE TABLE `structures`;
139789
+  (397.9ms) TRUNCATE TABLE `users`;
139790
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1