sunrise-cms 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. data/app/controllers/sunrise/manager_controller.rb +4 -4
  2. data/app/helpers/sunrise/structure_helper.rb +1 -1
  3. data/lib/sunrise/abstract_model.rb +2 -3
  4. data/lib/sunrise/config/association.rb +4 -0
  5. data/lib/sunrise/config/model.rb +0 -1
  6. data/lib/sunrise/version.rb +1 -1
  7. data/spec/dummy/log/test.log +2629 -0
  8. data/spec/models/sunrise/abstract_model_spec.rb +1 -1
  9. data/spec/tmp/app/models/defaults/ability.rb +18 -0
  10. data/spec/tmp/app/models/defaults/asset.rb +7 -0
  11. data/spec/tmp/app/models/defaults/attachment_file.rb +5 -0
  12. data/spec/tmp/app/models/defaults/avatar.rb +7 -0
  13. data/spec/tmp/app/models/defaults/picture.rb +7 -0
  14. data/spec/tmp/app/models/defaults/position_type.rb +7 -0
  15. data/spec/tmp/app/models/defaults/role_type.rb +8 -0
  16. data/spec/tmp/app/models/defaults/settings.rb +3 -0
  17. data/spec/tmp/app/models/defaults/structure.rb +9 -0
  18. data/spec/tmp/app/models/defaults/structure_type.rb +9 -0
  19. data/spec/tmp/app/models/defaults/user.rb +13 -0
  20. data/spec/tmp/app/models/sunrise/sunrise_navigation.rb +14 -0
  21. data/spec/tmp/app/models/sunrise/sunrise_page.rb +10 -0
  22. data/spec/tmp/app/models/sunrise/sunrise_structure.rb +35 -0
  23. data/spec/tmp/app/models/sunrise/sunrise_user.rb +50 -0
  24. data/spec/tmp/app/uploaders/attachment_file_uploader.rb +5 -0
  25. data/spec/tmp/app/uploaders/avatar_uploader.rb +15 -0
  26. data/spec/tmp/app/uploaders/picture_uploader.rb +15 -0
  27. data/spec/tmp/app/views/layouts/application.html.erb +22 -0
  28. data/spec/tmp/app/views/pages/show.html.erb +2 -0
  29. data/spec/tmp/app/views/shared/_notice.html.erb +17 -0
  30. data/spec/tmp/config/application.rb +63 -0
  31. data/spec/tmp/config/database.yml.sample +34 -0
  32. data/spec/tmp/config/initializers/sunrise.rb +18 -0
  33. data/spec/tmp/config/logrotate-config.sample +9 -0
  34. data/spec/tmp/config/nginx-config.sample +99 -0
  35. data/spec/tmp/config/routes.rb +9 -0
  36. data/spec/tmp/db/seeds.rb +31 -0
  37. data/spec/tmp/spec/controllers/pages_controller_spec.rb +22 -0
  38. data/spec/tmp/spec/controllers/welcome_controller_spec.rb +18 -0
  39. data/spec/tmp/spec/factories/structure_factory.rb +22 -0
  40. data/spec/tmp/spec/factories/user_factory.rb +61 -0
  41. data/spec/tmp/spec/spec_helper.rb +37 -0
  42. data/spec/tmp/spec/support/helpers/controller_macros.rb +52 -0
  43. metadata +69 -1
@@ -79148,3 +79148,2632 @@ Completed 401 Unauthorized in 0ms
79148
79148
   (309.3ms) TRUNCATE TABLE `structures`;
79149
79149
   (386.5ms) TRUNCATE TABLE `users`;
79150
79150
   (0.1ms) SET FOREIGN_KEY_CHECKS = 1
79151
+ Connecting to database specified by database.yml
79152
+  (26.5ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
79153
+ Migrating to InstallActsAsAudited (20111227111941)
79154
+ Migrating to CreatePageParts (20111227143901)
79155
+ Migrating to CreatePosts (20111228152051)
79156
+ Migrating to CreateMetaTags (20120105114018)
79157
+  (0.1ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
79158
+ Migrating to CreateAssets (20111216144515)
79159
+ Migrating to CreateStructures (20111216144915)
79160
+ Migrating to CreateUsers (20111216145015)
79161
+ Migrating to CreateSettings (20120611095315)
79162
+  (32.7ms) SELECT @@FOREIGN_KEY_CHECKS
79163
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
79164
+  (2.0ms) SELECT DATABASE() as db
79165
+  (37.3ms) select table_name from information_schema.views where table_schema = 'sunrise_dummy_test'
79166
+  (406.4ms) TRUNCATE TABLE `assets`;
79167
+  (362.6ms) TRUNCATE TABLE `audits`;
79168
+  (372.3ms) TRUNCATE TABLE `meta_tags`;
79169
+  (252.2ms) TRUNCATE TABLE `page_parts`;
79170
+  (324.7ms) TRUNCATE TABLE `posts`;
79171
+  (239.0ms) TRUNCATE TABLE `settings`;
79172
+  (339.4ms) TRUNCATE TABLE `structures`;
79173
+  (432.0ms) TRUNCATE TABLE `users`;
79174
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
79175
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
79176
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
79177
+  (406.5ms) TRUNCATE TABLE `assets`;
79178
+  (408.0ms) TRUNCATE TABLE `audits`;
79179
+  (162.5ms) TRUNCATE TABLE `meta_tags`;
79180
+  (339.0ms) TRUNCATE TABLE `page_parts`;
79181
+  (317.0ms) TRUNCATE TABLE `posts`;
79182
+  (194.6ms) TRUNCATE TABLE `settings`;
79183
+  (395.5ms) TRUNCATE TABLE `structures`;
79184
+  (444.1ms) TRUNCATE TABLE `users`;
79185
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
79186
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
79187
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
79188
+  (340.0ms) TRUNCATE TABLE `assets`;
79189
+  (331.2ms) TRUNCATE TABLE `audits`;
79190
+  (284.9ms) TRUNCATE TABLE `meta_tags`;
79191
+  (183.1ms) TRUNCATE TABLE `page_parts`;
79192
+  (262.2ms) TRUNCATE TABLE `posts`;
79193
+  (295.3ms) TRUNCATE TABLE `settings`;
79194
+  (163.5ms) TRUNCATE TABLE `structures`;
79195
+  (383.1ms) TRUNCATE TABLE `users`;
79196
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
79197
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
79198
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
79199
+  (322.6ms) TRUNCATE TABLE `assets`;
79200
+  (355.0ms) TRUNCATE TABLE `audits`;
79201
+  (271.7ms) TRUNCATE TABLE `meta_tags`;
79202
+  (140.1ms) TRUNCATE TABLE `page_parts`;
79203
+  (227.8ms) TRUNCATE TABLE `posts`;
79204
+  (161.3ms) TRUNCATE TABLE `settings`;
79205
+  (294.5ms) TRUNCATE TABLE `structures`;
79206
+  (332.1ms) TRUNCATE TABLE `users`;
79207
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
79208
+  (0.1ms) BEGIN
79209
+ User Exists (143.3ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing1@example.com' LIMIT 1
79210
+ 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-02-04 16:59:05', '2013-02-04 16:59:06', NULL, NULL, 'testing1@example.com', '2d1250227f6948958da48fd4d9798781bf9d77c761841e21cb1b67ab7e6a5d9f58dfc9d5dc49a709515c76a261aeb87568edb6ad9b0f1e278f295fd633797bd1', 0, NULL, NULL, NULL, 'Test', 'ToLWHNc6Mxz675yNUyp1', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 16:59:06')
79211
+  (46.0ms) COMMIT
79212
+ User Exists (0.6ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'wrong' AND `users`.`id` != 1) LIMIT 1
79213
+ User Exists (0.2ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = BINARY 'wrong' AND `users`.`id` != 1) LIMIT 1
79214
+  (0.1ms) BEGIN
79215
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing2@example.com' LIMIT 1
79216
+ 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-02-04 16:59:06', '2013-02-04 16:59:06', NULL, NULL, 'testing2@example.com', '6acc536aff2e47aedc3ae0c08ba8ee59177f798d988c70e936f428221662e5437bad7677fd988db507115b785982f983f14cd45101a8f36a9a179be43967df9d', 0, NULL, NULL, NULL, 'Test', 'aKzayU95FmbeytqKpzC4', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 16:59:06')
79217
+  (27.7ms) COMMIT
79218
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'testing2@example.com' LIMIT 1
79219
+  (0.1ms) BEGIN
79220
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing3@example.com' LIMIT 1
79221
+ 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-02-04 16:59:07', '2013-02-04 16:59:07', NULL, NULL, 'testing3@example.com', '9e0b0b41026c5a3c0d987c0e120c8e1708b3ca42e30541682bad678a3bfadeb80e107f4002c6edcbe958c1c4ad35dff201ffeae2dcde207e828722060421092a', 0, NULL, NULL, NULL, 'Test', 'kMU9kEAqSgZ4qUnHjBUH', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 16:59:07')
79222
+  (63.7ms) COMMIT
79223
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`role_type_id` = 1
79224
+  (0.1ms) BEGIN
79225
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing4@example.com' LIMIT 1
79226
+ 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-02-04 16:59:07', '2013-02-04 16:59:07', NULL, NULL, 'testing4@example.com', '983afc04caad984243a414900ef3d88186290d70f128833119d748a6cf2e965b44dc467c35fdfaa470a6e4cf7c140afb9a85b8ac07c8aad4f9c2480523abe6bc', 0, NULL, NULL, NULL, 'Test', '7jZz1PtzqKAzZt2X4zka', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 16:59:07')
79227
+  (30.3ms) COMMIT
79228
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
79229
+ User Load (0.6ms) SELECT id, email, name, current_sign_in_ip FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000
79230
+  (0.1ms) BEGIN
79231
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing5@example.com' LIMIT 1
79232
+ 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-02-04 16:59:07', '2013-02-04 16:59:07', NULL, NULL, 'testing5@example.com', '1ef86d94cdf70fb83a50d442fe25567c7e048b416748fb71888a612135d5afcf4fa66bdae3cdfa1fc8f1b277ae1e941115aee7845340dabaf5d21d39504e1170', 0, NULL, NULL, NULL, 'Test', 'PR7tVthAcqfMn8yis7gj', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 16:59:07')
79233
+  (75.8ms) COMMIT
79234
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
79235
+ User Load (0.5ms) SELECT id, email, confirmed_at, created_at FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000
79236
+  (0.1ms) BEGIN
79237
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing6@example.com' LIMIT 1
79238
+ 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-02-04 16:59:07', '2013-02-04 16:59:07', NULL, NULL, 'testing6@example.com', '0850490266159e478bf9552eb8eb8e6f582f591c9ea80abfc1d884ae2cb9b1a5b3e5defc278f70a23f61ef65cb7fbc070782ebe2cbcca5a68bd715f84dd5d438', 0, NULL, NULL, NULL, 'Test', 'aJ7cVmYtwAu9XK434BmH', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 16:59:07')
79239
+  (39.0ms) COMMIT
79240
+  (0.1ms) BEGIN
79241
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing7@example.com' LIMIT 1
79242
+ 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-02-04 16:59:07', '2013-02-04 16:59:07', NULL, NULL, 'testing7@example.com', '0c5f45046d1613f7288e8be2e4e2ab65ba4f4c0c10ba5fe17a7b29b0d0eec7c63698154bcac05ac6f3d481b2530f73a8301800925b64ac8cde0257d27eb4fbaa', 0, NULL, NULL, NULL, 'Test', 'pZHUqkH2551aFS1uYy3D', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 16:59:07')
79243
+  (46.3ms) COMMIT
79244
+  (0.1ms) BEGIN
79245
+  (53.6ms) UPDATE `users` SET `confirmed_at` = NULL, `locked_at` = '2013-02-04 16:59:07', `unlock_token` = 'RSESFxUMgbtsvssXFiAz', `updated_at` = '2013-02-04 16:59:07' WHERE `users`.`id` = 7
79246
+  (41.5ms) COMMIT
79247
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/mailer/unlock_instructions.html.erb (9.5ms)
79248
+
79249
+ Sent mail to testing7@example.com (177ms)
79250
+ Date: Mon, 04 Feb 2013 18:59:08 +0200
79251
+ From: please-change-me-at-config-initializers-devise@example.com
79252
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
79253
+ To: testing7@example.com
79254
+ Message-ID: <510fe8dc63e14_351343210149921@mario.mail>
79255
+ Subject: Unlock Instructions
79256
+ Mime-Version: 1.0
79257
+ Content-Type: text/html;
79258
+ charset=UTF-8
79259
+ Content-Transfer-Encoding: 7bit
79260
+
79261
+ <p>Hello testing7@example.com!</p>
79262
+
79263
+ <p>Your account has been locked due to an excessive number of unsuccessful sign in attempts.</p>
79264
+
79265
+ <p>Click the link below to unlock your account:</p>
79266
+
79267
+ <p><a href="http://test.com/users/unlock?unlock_token=RSESFxUMgbtsvssXFiAz">Unlock my account</a></p>
79268
+
79269
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
79270
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
79271
+  (229.0ms) TRUNCATE TABLE `assets`;
79272
+  (286.0ms) TRUNCATE TABLE `audits`;
79273
+  (317.1ms) TRUNCATE TABLE `meta_tags`;
79274
+  (192.4ms) TRUNCATE TABLE `page_parts`;
79275
+  (251.7ms) TRUNCATE TABLE `posts`;
79276
+  (183.5ms) TRUNCATE TABLE `settings`;
79277
+  (274.8ms) TRUNCATE TABLE `structures`;
79278
+  (354.3ms) TRUNCATE TABLE `users`;
79279
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
79280
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
79281
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
79282
+  (306.6ms) TRUNCATE TABLE `assets`;
79283
+  (341.6ms) TRUNCATE TABLE `audits`;
79284
+  (258.2ms) TRUNCATE TABLE `meta_tags`;
79285
+  (177.4ms) TRUNCATE TABLE `page_parts`;
79286
+  (261.6ms) TRUNCATE TABLE `posts`;
79287
+  (139.2ms) TRUNCATE TABLE `settings`;
79288
+  (295.1ms) TRUNCATE TABLE `structures`;
79289
+  (354.5ms) TRUNCATE TABLE `users`;
79290
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
79291
+  (0.2ms) BEGIN
79292
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing8@example.com' LIMIT 1
79293
+ SQL (18.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-02-04 16:59:13', '2013-02-04 16:59:13', NULL, NULL, 'testing8@example.com', 'f3268b2d2fa30f8257b3b74b9fc1f00a7179c8271b17c1b27a1786f9e4d55a95def0c21079bdce354a583e239c014fe09b9f70511dd6f71f12bc12fbd6c45d4f', 0, NULL, NULL, NULL, 'Test', 'kDyKqNYGjQYiGEnXyqwm', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 16:59:13')
79294
+  (40.2ms) COMMIT
79295
+  (0.2ms) BEGIN
79296
+ SQL (0.4ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (1, 'User', '2013-02-04 16:59:14', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-02-04 16:59:14', NULL, 50)
79297
+  (43.7ms) COMMIT
79298
+  (0.2ms) BEGIN
79299
+ User Exists (0.6ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing9@example.com' LIMIT 1
79300
+ 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-02-04 16:59:16', '2013-02-04 16:59:16', NULL, NULL, 'testing9@example.com', '7b004f1e0818fdf41f7b66973640d0ebac23120fe8517271e09b1d09b21025c09cc68d17e6ca9dd10a252c3b6a362fdb6a90c45aaa99412584f2c49d0484ad04', 0, NULL, NULL, NULL, 'Test', 'Eof4dXqFaDwJKUmMxwh5', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 16:59:16')
79301
+  (37.4ms) COMMIT
79302
+  (0.1ms) BEGIN
79303
+ User Exists (0.6ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing10@example.com' LIMIT 1
79304
+ 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-02-04 16:59:16', '2013-02-04 16:59:16', NULL, NULL, 'testing10@example.com', 'b658f42fe69de1a6f251a590f4195449e49a690b10abfea47bac634c28ce1e0a8e8a577ea3f10a412a77245d57d448ba874fca2316f4b0451d43b714fac26473', 0, NULL, NULL, NULL, 'Test', 'yUyARX55Sg9MRgsizsRk', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 16:59:16')
79305
+  (127.5ms) COMMIT
79306
+  (0.1ms) BEGIN
79307
+ 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 (3, 'User', '2013-02-04 16:59:17', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-02-04 16:59:17', NULL, 50)
79308
+  (31.1ms) COMMIT
79309
+  (0.2ms) BEGIN
79310
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing11@example.com' LIMIT 1
79311
+ SQL (26.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-02-04 16:59:17', '2013-02-04 16:59:17', NULL, NULL, 'testing11@example.com', '71373235d9b20130db94e9082010024fb83aa30b462a0fb35a5b45b9188fec13685795871e7d7d4af4887f47f05d6802bc64847254ffbacf50f6493e6001ff42', 0, NULL, NULL, NULL, 'Test', 'WxTYpcADYRxcP2Zv1Gos', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 16:59:17')
79312
+  (145.7ms) COMMIT
79313
+  (0.1ms) BEGIN
79314
+ 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 (4, 'User', '2013-02-04 16:59:17', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-02-04 16:59:17', NULL, 50)
79315
+  (39.2ms) COMMIT
79316
+  (0.1ms) BEGIN
79317
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing12@example.com' LIMIT 1
79318
+ 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-02-04 16:59:18', '2013-02-04 16:59:18', NULL, NULL, 'testing12@example.com', '6349ef92ea7e05be9852341d71b3f0c5ae380f88f53b90381c75107427f0470256be8fb1d4bfe606a97975a3d9c049ffb400c8d287e2c031fb952fdb070119b3', 0, NULL, NULL, NULL, 'Test', 'ynqzix5pE8QQT3Mmyg7y', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 16:59:18')
79319
+  (42.8ms) COMMIT
79320
+  (0.1ms) BEGIN
79321
+ 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 (5, 'User', '2013-02-04 16:59:18', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-02-04 16:59:18', NULL, 50)
79322
+  (47.0ms) COMMIT
79323
+  (0.1ms) BEGIN
79324
+ User Exists (0.7ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing13@example.com' LIMIT 1
79325
+ 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-02-04 16:59:18', '2013-02-04 16:59:18', NULL, NULL, 'testing13@example.com', 'e6cf4b8c7e7a79daa5c7a28d5170f9fd042860de51d0cbdc72adac513bac4fff098b19acf32d6f7a83eca14f7af79b8e72b0c108cbd29302d21fb6b404c4ddca', 0, NULL, NULL, NULL, 'Test', 'tcwqqmfksdSMPzp94x7M', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 16:59:18')
79326
+  (24.0ms) COMMIT
79327
+  (0.1ms) BEGIN
79328
+ SQL (0.6ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (6, 'User', '2013-02-04 16:59:18', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-02-04 16:59:18', NULL, 50)
79329
+  (37.0ms) COMMIT
79330
+  (0.2ms) BEGIN
79331
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing14@example.com' LIMIT 1
79332
+ 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-02-04 16:59:19', '2013-02-04 16:59:19', NULL, NULL, 'testing14@example.com', '5d3746c1b830e9ddeb7397777c7f3be2f6a9e24a418490f486c0e10d3f570a8b5ab38525b78f120f27d62b30cbc3e1b50a983d3b2f0648f52fe1c1e5691345c0', 0, NULL, NULL, NULL, 'Test', 'fLtzBxLCMBTpPTaqpydJ', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 16:59:19')
79333
+  (39.1ms) COMMIT
79334
+  (0.1ms) BEGIN
79335
+ 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-02-04 16:59:19', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-02-04 16:59:19', NULL, 50)
79336
+  (19.2ms) COMMIT
79337
+  (0.1ms) BEGIN
79338
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing15@example.com' LIMIT 1
79339
+ 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-02-04 16:59:19', '2013-02-04 16:59:19', NULL, NULL, 'testing15@example.com', 'fcc207d43a273c892f1bfc5f82f3ce033897302c500e523189d208def5fd185db110c6ceed8828e4ababe64b173b4edc098c6bd925aa08359d647a6ed5a83d63', 0, NULL, NULL, NULL, 'Test', 'uztQNKpLcZZzQJX9uZyp', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 16:59:19')
79340
+  (37.3ms) COMMIT
79341
+  (0.1ms) BEGIN
79342
+ 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-02-04 16:59:19', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-02-04 16:59:19', NULL, 50)
79343
+  (37.1ms) COMMIT
79344
+  (0.1ms) BEGIN
79345
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing16@example.com' LIMIT 1
79346
+ 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-02-04 16:59:20', '2013-02-04 16:59:20', NULL, NULL, 'testing16@example.com', 'a9dae043de4d6f5b046d9a8e5108d0d73d32088a250e27c52386d97da23f6e36fa9740e6817f206b544476ee739601f0fc26eab6f035b659972726c288f8f604', 0, NULL, NULL, NULL, 'Test', 'y9GqzmSK52NYwx22tffC', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 16:59:20')
79347
+  (28.8ms) COMMIT
79348
+  (0.1ms) BEGIN
79349
+ SQL (0.4ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (9, 'User', '2013-02-04 16:59:20', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-02-04 16:59:20', NULL, 50)
79350
+  (37.1ms) COMMIT
79351
+  (0.1ms) BEGIN
79352
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing17@example.com' LIMIT 1
79353
+ 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-02-04 16:59:20', '2013-02-04 16:59:20', NULL, NULL, 'testing17@example.com', 'b4f338f4604f1efae03b8f117873b01d2e969751968523db7b21e4aaf9c16177d59baa18cff44583d84b60df73e12a0da327ab9c7f62c10c2600ce2076e61955', 0, NULL, NULL, NULL, 'Test', 'KFrLg3u3uwpBmbkZYE28', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 16:59:20')
79354
+  (32.8ms) COMMIT
79355
+  (0.1ms) BEGIN
79356
+ SQL (0.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 (10, 'User', '2013-02-04 16:59:20', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-02-04 16:59:20', NULL, 50)
79357
+  (35.1ms) COMMIT
79358
+  (0.1ms) BEGIN
79359
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing18@example.com' LIMIT 1
79360
+ 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-02-04 16:59:21', '2013-02-04 16:59:21', NULL, NULL, 'testing18@example.com', '7bdc18e8a1982e95dbc2dcdcda2c8c5ea469066942489a5244fdd07811702b23c42b8803a45468855105445de361acc416f5d92cacd6fe907fac3ff04cafc168', 0, NULL, NULL, NULL, 'Test', 'Vy6FkyHK2Tsz9z22Gpys', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 16:59:21')
79361
+  (30.0ms) COMMIT
79362
+  (0.1ms) BEGIN
79363
+ SQL (0.4ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (11, 'User', '2013-02-04 16:59:21', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-02-04 16:59:21', NULL, 50)
79364
+  (37.0ms) COMMIT
79365
+  (0.1ms) BEGIN
79366
+ User Exists (0.6ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing19@example.com' LIMIT 1
79367
+ 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-02-04 16:59:21', '2013-02-04 16:59:21', NULL, NULL, 'testing19@example.com', '42761816069d8744b0a022d9726c24a2bb1a2c776903348bf9a7ce3e99527cefdb2ef791617e2c81f4e14fd1feea597c32c454a80a126be077760044d7429271', 0, NULL, NULL, NULL, 'Test', 'mjXC2jk7FZASaMrUuUEx', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 16:59:21')
79368
+  (26.9ms) COMMIT
79369
+  (0.1ms) BEGIN
79370
+ SQL (1.1ms) 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-02-04 16:59:21', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-02-04 16:59:21', NULL, 50)
79371
+  (34.9ms) COMMIT
79372
+  (0.1ms) BEGIN
79373
+  (0.1ms) ROLLBACK
79374
+  (0.1ms) BEGIN
79375
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing20@example.com' LIMIT 1
79376
+ 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-02-04 16:59:22', '2013-02-04 16:59:22', NULL, NULL, 'testing20@example.com', 'f2a346886719d586036c55ab84a757128e0944817f0cc8233b2b8119261f3e9f6b93e7d2a91e66ba230dfe8c0bb98eb366dc50846a75b343760a0c04c30dbd1b', 0, NULL, NULL, NULL, 'Test', 'u3ykCHcyxJhx6KCj1fuq', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 16:59:22')
79377
+  (33.0ms) COMMIT
79378
+  (0.1ms) BEGIN
79379
+ 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-02-04 16:59:22', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-02-04 16:59:22', NULL, 50)
79380
+  (37.5ms) COMMIT
79381
+  (0.1ms) BEGIN
79382
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing21@example.com' LIMIT 1
79383
+ 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-02-04 16:59:22', '2013-02-04 16:59:22', NULL, NULL, 'testing21@example.com', '132f9f9e773a23a4a30f0d6bd47e854e1ca7f8b68e54f28d98b776a1bae90d1f60e272c61758d72037290000014590a66ee6f88b6cd6797fc07553a99d341967', 0, NULL, NULL, NULL, 'Test', '3wiEvkJsAAzsyJP6s59L', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 16:59:22')
79384
+  (27.1ms) COMMIT
79385
+  (0.1ms) BEGIN
79386
+ 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-02-04 16:59:22', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-02-04 16:59:22', NULL, 50)
79387
+  (44.1ms) COMMIT
79388
+  (0.2ms) BEGIN
79389
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing22@example.com' LIMIT 1
79390
+ 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-02-04 16:59:23', '2013-02-04 16:59:23', NULL, NULL, 'testing22@example.com', 'de2af21359c83ade12c7464ded9e6cce1edca0694973027392cbed8fdfc831409caaa855241654e3ffe32e5e62f42dbd79ab048ed91b1c566f9eca663ed9cf58', 0, NULL, NULL, NULL, 'Test', 'bs72VqDzmhq4WrpHsw9x', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 16:59:23')
79391
+  (25.5ms) COMMIT
79392
+  (0.1ms) BEGIN
79393
+ SQL (0.4ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (15, 'User', '2013-02-04 16:59:23', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2013-02-04 16:59:23', NULL, 50)
79394
+  (37.6ms) COMMIT
79395
+  (0.1ms) BEGIN
79396
+  (0.1ms) ROLLBACK
79397
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
79398
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
79399
+  (339.2ms) TRUNCATE TABLE `assets`;
79400
+  (209.0ms) TRUNCATE TABLE `audits`;
79401
+  (260.3ms) TRUNCATE TABLE `meta_tags`;
79402
+  (317.4ms) TRUNCATE TABLE `page_parts`;
79403
+  (117.1ms) TRUNCATE TABLE `posts`;
79404
+  (262.1ms) TRUNCATE TABLE `settings`;
79405
+  (463.1ms) TRUNCATE TABLE `structures`;
79406
+  (365.8ms) TRUNCATE TABLE `users`;
79407
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
79408
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
79409
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
79410
+  (206.5ms) TRUNCATE TABLE `assets`;
79411
+  (318.1ms) TRUNCATE TABLE `audits`;
79412
+  (328.5ms) TRUNCATE TABLE `meta_tags`;
79413
+  (184.7ms) TRUNCATE TABLE `page_parts`;
79414
+  (236.9ms) TRUNCATE TABLE `posts`;
79415
+  (138.9ms) TRUNCATE TABLE `settings`;
79416
+  (317.2ms) TRUNCATE TABLE `structures`;
79417
+  (332.3ms) TRUNCATE TABLE `users`;
79418
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
79419
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
79420
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
79421
+  (278.5ms) TRUNCATE TABLE `assets`;
79422
+  (330.4ms) TRUNCATE TABLE `audits`;
79423
+  (703.4ms) TRUNCATE TABLE `meta_tags`;
79424
+  (465.8ms) TRUNCATE TABLE `page_parts`;
79425
+  (496.0ms) TRUNCATE TABLE `posts`;
79426
+  (139.3ms) TRUNCATE TABLE `settings`;
79427
+  (349.8ms) TRUNCATE TABLE `structures`;
79428
+  (414.3ms) TRUNCATE TABLE `users`;
79429
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
79430
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
79431
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
79432
+  (305.1ms) TRUNCATE TABLE `assets`;
79433
+  (331.2ms) TRUNCATE TABLE `audits`;
79434
+  (306.5ms) TRUNCATE TABLE `meta_tags`;
79435
+  (458.5ms) TRUNCATE TABLE `page_parts`;
79436
+  (284.4ms) TRUNCATE TABLE `posts`;
79437
+  (128.1ms) TRUNCATE TABLE `settings`;
79438
+  (263.7ms) TRUNCATE TABLE `structures`;
79439
+  (376.7ms) TRUNCATE TABLE `users`;
79440
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
79441
+  (0.1ms) BEGIN
79442
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing23@example.com' LIMIT 1
79443
+ 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-02-04 16:59:33', '2013-02-04 16:59:33', NULL, NULL, 'testing23@example.com', '94f9848844d2ab6c90bdf93d31c84d5b04339ac7ea8e924208bbe22ee630b984e1e1c53238f42e15a16b6af33ae9cd3be26e36a4c21577428e7a91139b1d4e9b', 0, NULL, NULL, NULL, 'Test', '3scqkU8V4vjnpMmYTwcL', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 16:59:33')
79444
+  (33.1ms) COMMIT
79445
+  (0.1ms) BEGIN
79446
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing24@example.com' LIMIT 1
79447
+ 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-02-04 16:59:33', '2013-02-04 16:59:33', NULL, NULL, 'testing24@example.com', '3eb4f22a2021a6769c9d579ff49830f562ecf655ce2d6b1c2404c96d551121d3dd27fcc0b163b0d6464502ddb24934a1d1fd1d1fde7848f662c031e5d7f7f3e0', 0, NULL, NULL, NULL, 'Test', 'mdAKvXJuYg9SFkuX2CQ5', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 16:59:33')
79448
+  (46.8ms) COMMIT
79449
+  (0.1ms) BEGIN
79450
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing25@example.com' LIMIT 1
79451
+ 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-02-04 16:59:34', '2013-02-04 16:59:34', NULL, NULL, 'testing25@example.com', 'd599c2462b748c0c9303aa8684d0c89bdc66ea09c333abe84df7c2808203fa4b7879326fd754eddc412b5c294447db43c923241e372e4bfab7a21eabf01daa6b', 0, NULL, NULL, NULL, 'Test', 'xM97z3qywCi6wRpSF6nq', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 16:59:34')
79452
+  (33.8ms) COMMIT
79453
+  (0.3ms) BEGIN
79454
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing26@example.com' LIMIT 1
79455
+ 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-02-04 16:59:35', '2013-02-04 16:59:35', NULL, NULL, 'testing26@example.com', 'f9f7b138cb1c6e521b6e7e3598b60643bed7f28cf911f4f01b8a1e9df46e733bdf57ecfb30b36f6ab7410228cdbb57699800d0b5505687828101dd57d5aeab33', 0, NULL, NULL, NULL, 'Test', 'Dy2ixgSPdimm6qXXKZox', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 16:59:35')
79456
+  (35.0ms) COMMIT
79457
+  (0.1ms) BEGIN
79458
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing27@example.com' LIMIT 1
79459
+ 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-02-04 16:59:36', '2013-02-04 16:59:36', NULL, NULL, 'testing27@example.com', 'a6a3065418ddffde81f452c5c7c41a966c5c07a7e167b67d4a81260adf6fb667eb83991b43e7606cfd35416645c7a280305a583732191b8c9dc49051b440af7a', 0, NULL, NULL, NULL, 'Test', 'y6Uzt8vgaRoqqRszT58s', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 16:59:36')
79460
+  (33.5ms) COMMIT
79461
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
79462
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
79463
+  (319.3ms) TRUNCATE TABLE `assets`;
79464
+  (275.6ms) TRUNCATE TABLE `audits`;
79465
+  (227.3ms) TRUNCATE TABLE `meta_tags`;
79466
+  (295.5ms) TRUNCATE TABLE `page_parts`;
79467
+  (116.9ms) TRUNCATE TABLE `posts`;
79468
+  (250.6ms) TRUNCATE TABLE `settings`;
79469
+  (332.2ms) TRUNCATE TABLE `structures`;
79470
+  (489.7ms) TRUNCATE TABLE `users`;
79471
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
79472
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
79473
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
79474
+  (317.5ms) TRUNCATE TABLE `assets`;
79475
+  (330.9ms) TRUNCATE TABLE `audits`;
79476
+  (140.0ms) TRUNCATE TABLE `meta_tags`;
79477
+  (294.9ms) TRUNCATE TABLE `page_parts`;
79478
+  (261.4ms) TRUNCATE TABLE `posts`;
79479
+  (117.2ms) TRUNCATE TABLE `settings`;
79480
+  (340.1ms) TRUNCATE TABLE `structures`;
79481
+  (342.5ms) TRUNCATE TABLE `users`;
79482
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
79483
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
79484
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
79485
+  (203.4ms) TRUNCATE TABLE `assets`;
79486
+  (296.8ms) TRUNCATE TABLE `audits`;
79487
+  (339.2ms) TRUNCATE TABLE `meta_tags`;
79488
+  (162.3ms) TRUNCATE TABLE `page_parts`;
79489
+  (960.8ms) TRUNCATE TABLE `posts`;
79490
+  (884.3ms) TRUNCATE TABLE `settings`;
79491
+  (541.8ms) TRUNCATE TABLE `structures`;
79492
+  (342.6ms) TRUNCATE TABLE `users`;
79493
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
79494
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
79495
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
79496
+  (228.8ms) TRUNCATE TABLE `assets`;
79497
+  (328.9ms) TRUNCATE TABLE `audits`;
79498
+  (306.2ms) TRUNCATE TABLE `meta_tags`;
79499
+  (364.2ms) TRUNCATE TABLE `page_parts`;
79500
+  (117.0ms) TRUNCATE TABLE `posts`;
79501
+  (217.5ms) TRUNCATE TABLE `settings`;
79502
+  (297.1ms) TRUNCATE TABLE `structures`;
79503
+  (365.5ms) TRUNCATE TABLE `users`;
79504
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
79505
+  (0.1ms) BEGIN
79506
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
79507
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 16:59:47', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 16:59:47')
79508
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
79509
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
79510
+  (29.2ms) COMMIT
79511
+  (0.1ms) BEGIN
79512
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
79513
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 16:59:47', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug1', 'Structure', '2013-02-04 16:59:47')
79514
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
79515
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
79516
+ 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`
79517
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
79518
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79519
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79520
+ SQL (2.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
79521
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79522
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
79523
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
79524
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79525
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79526
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
79527
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79528
+  (110.2ms) COMMIT
79529
+  (0.1ms) BEGIN
79530
+  (0.1ms) ROLLBACK
79531
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79532
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
79533
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79534
+  (0.1ms) BEGIN
79535
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
79536
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79537
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79538
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
79539
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79540
+  (40.3ms) COMMIT
79541
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79542
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
79543
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
79544
+  (0.1ms) BEGIN
79545
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79546
+  (0.1ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79547
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
79548
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79549
+  (23.8ms) COMMIT
79550
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79551
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
79552
+  (0.1ms) BEGIN
79553
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79554
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79555
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
79556
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79557
+  (63.7ms) COMMIT
79558
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79559
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
79560
+  (0.1ms) BEGIN
79561
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
79562
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 16:59:47', 0, 1, 1, 5, 2, 2, NULL, 6, 'slug2', 'Structure', '2013-02-04 16:59:47')
79563
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft` LIMIT 1
79564
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1 FOR UPDATE
79565
+ SQL (0.5ms) 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`
79566
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
79567
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1
79568
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
79569
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 2 WHERE `structures`.`id` = 3 ORDER BY `structures`.`lft`
79570
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
79571
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 3 AND `structures`.`lft` < 4) AND (`structures`.id != 3) ORDER BY `structures`.`lft`
79572
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1 FOR UPDATE
79573
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1
79574
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
79575
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 2 WHERE `structures`.`id` = 3 ORDER BY `structures`.`lft`
79576
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
79577
+  (50.1ms) COMMIT
79578
+  (0.1ms) BEGIN
79579
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79580
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
79581
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
79582
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
79583
+  (46.0ms) COMMIT
79584
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79585
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
79586
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
79587
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 6) ORDER BY `structures`.`lft`
79588
+  (0.1ms) BEGIN
79589
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
79590
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 16:59:47', 0, 1, 1, 7, 1, 2, NULL, 8, 'slug3', 'Some super title', '2013-02-04 16:59:47')
79591
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
79592
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1 FOR UPDATE
79593
+ SQL (0.5ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 6 AND 6 THEN `lft` + 8 - 6 WHEN `lft` BETWEEN 7 AND 8 THEN `lft` + 6 - 7 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 6 AND 6 THEN `rgt` + 8 - 6 WHEN `rgt` BETWEEN 7 AND 8 THEN `rgt` + 6 - 7 ELSE `rgt` END, `parent_id` = CASE WHEN id = 4 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
79594
+ Structure Load (0.5ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
79595
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1
79596
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
79597
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 4 ORDER BY `structures`.`lft`
79598
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
79599
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 6 AND `structures`.`lft` < 7) AND (`structures`.id != 4) ORDER BY `structures`.`lft`
79600
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1 FOR UPDATE
79601
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1
79602
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
79603
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 4 ORDER BY `structures`.`lft`
79604
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
79605
+  (45.5ms) COMMIT
79606
+  (0.1ms) BEGIN
79607
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
79608
+  (0.4ms) UPDATE `structures` SET `title` = 'Other big title', `updated_at` = '2013-02-04 16:59:47' WHERE `structures`.`id` = 4
79609
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1
79610
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
79611
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 4 ORDER BY `structures`.`lft`
79612
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
79613
+  (75.7ms) COMMIT
79614
+  (0.2ms) BEGIN
79615
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
79616
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 16:59:47', 0, 1, 1, 9, 1, 2, NULL, 10, 'original-slug', 'Tra ta ta', '2013-02-04 16:59:47')
79617
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
79618
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 5 LIMIT 1 FOR UPDATE
79619
+ SQL (0.6ms) 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`
79620
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
79621
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 5 LIMIT 1
79622
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 8 AND `structures`.`rgt` >= 9) AND (`structures`.id != 5)
79623
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 5 ORDER BY `structures`.`lft`
79624
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 8 AND `structures`.`rgt` >= 9) AND (`structures`.id != 5)
79625
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 8 AND `structures`.`lft` < 9) AND (`structures`.id != 5) ORDER BY `structures`.`lft`
79626
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 5 LIMIT 1 FOR UPDATE
79627
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 5 LIMIT 1
79628
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 8 AND `structures`.`rgt` >= 9) AND (`structures`.id != 5)
79629
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 5 ORDER BY `structures`.`lft`
79630
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 8 AND `structures`.`rgt` >= 9) AND (`structures`.id != 5)
79631
+  (50.8ms) COMMIT
79632
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 5 LIMIT 1
79633
+  (0.1ms) BEGIN
79634
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79635
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
79636
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
79637
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
79638
+  (22.5ms) COMMIT
79639
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79640
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = 'slug1' LIMIT 1
79641
+  (0.1ms) BEGIN
79642
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
79643
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79644
+  (0.1ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
79645
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
79646
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
79647
+  (52.5ms) COMMIT
79648
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1359997188 LIMIT 1
79649
+  (0.1ms) BEGIN
79650
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
79651
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79652
+  (0.1ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
79653
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
79654
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
79655
+  (21.5ms) COMMIT
79656
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = 'wrong' LIMIT 1
79657
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = 'slug1' LIMIT 1
79658
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
79659
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
79660
+  (192.5ms) TRUNCATE TABLE `assets`;
79661
+  (296.7ms) TRUNCATE TABLE `audits`;
79662
+  (328.0ms) TRUNCATE TABLE `meta_tags`;
79663
+  (162.2ms) TRUNCATE TABLE `page_parts`;
79664
+  (248.6ms) TRUNCATE TABLE `posts`;
79665
+  (138.9ms) TRUNCATE TABLE `settings`;
79666
+  (317.3ms) TRUNCATE TABLE `structures`;
79667
+  (365.4ms) TRUNCATE TABLE `users`;
79668
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
79669
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
79670
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
79671
+  (294.9ms) TRUNCATE TABLE `assets`;
79672
+  (330.5ms) TRUNCATE TABLE `audits`;
79673
+  (140.2ms) TRUNCATE TABLE `meta_tags`;
79674
+  (262.4ms) TRUNCATE TABLE `page_parts`;
79675
+  (257.1ms) TRUNCATE TABLE `posts`;
79676
+  (132.1ms) TRUNCATE TABLE `settings`;
79677
+  (329.4ms) TRUNCATE TABLE `structures`;
79678
+  (550.4ms) TRUNCATE TABLE `users`;
79679
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
79680
+  (0.1ms) BEGIN
79681
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY '1359997192@gmail.com' LIMIT 1
79682
+ 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-02-04 16:59:52', '2013-02-04 16:59:52', NULL, NULL, '1359997192@gmail.com', '804ae874f6264f51ba7c9a8b17f49f7c6fb6caed4fa9cf0bff97fb0f1a1463c73588c99a0b5daff77ac1b4dbb2981315a213329cb510a73d2aecf220278f14f3', 0, NULL, NULL, NULL, 'Admin', 'TEeF26ksMTFfsayLQM9E', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 16:59:52')
79683
+  (35.8ms) COMMIT
79684
+  (0.1ms) BEGIN
79685
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing28@example.com' LIMIT 1
79686
+ 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-02-04 16:59:52', '2013-02-04 16:59:52', NULL, NULL, 'testing28@example.com', 'dbfff2e042c7386a218ee9d8e2b02a82909f26d2d7897c1e2660071c503e56692af6d4073dbb05d17012e3f9cdd6e01635fe1c64a69151b5200399fa7089792e', 0, NULL, NULL, NULL, 'Test', 'Wz6GgjTk4rEHsXspsx4r', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 16:59:52')
79687
+  (39.8ms) COMMIT
79688
+  (0.1ms) BEGIN
79689
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
79690
+ SQL (0.5ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 16:59:52', 0, 1, 1, 1, NULL, 2, NULL, 2, 'slug5', 'Structure', '2013-02-04 16:59:52')
79691
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
79692
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
79693
+  (50.8ms) COMMIT
79694
+  (0.1ms) BEGIN
79695
+ SQL (0.4ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-02-04 16:59:52', 1, 1, 'Default title', '2013-02-04 16:59:52')
79696
+  (35.1ms) COMMIT
79697
+  (0.1ms) BEGIN
79698
+  (0.6ms) SELECT MAX(`audits`.`version`) AS max_id FROM `audits` WHERE `audits`.`auditable_id` = 1 AND `audits`.`auditable_type` = 'Post'
79699
+ SQL (0.4ms) INSERT INTO `audits` (`action`, `associated_id`, `associated_type`, `auditable_id`, `auditable_type`, `audited_changes`, `comment`, `created_at`, `remote_address`, `user_id`, `user_type`, `username`, `version`) VALUES ('create', NULL, NULL, 1, 'Post', '---\n:title: Updated\n', NULL, '2013-02-04 16:59:52', NULL, 2, 'User', NULL, 1)
79700
+  (51.6ms) COMMIT
79701
+ Started GET "/manage/" for 127.0.0.1 at 2013-02-04 18:59:53 +0200
79702
+  (0.2ms) BEGIN
79703
+  (0.1ms) COMMIT
79704
+  (0.1ms) BEGIN
79705
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 16:59:53', `current_sign_in_at` = '2013-02-04 16:59:53', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 16:59:53' WHERE `users`.`id` = 1
79706
+  (21.8ms) COMMIT
79707
+ Processing by Sunrise::DashboardController#index as HTML
79708
+ Audited::Adapters::ActiveRecord::Audit Load (0.5ms) SELECT `audits`.* FROM `audits` ORDER BY version, audits.id desc LIMIT 50 OFFSET 0
79709
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` IN (2)
79710
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_event.html.erb (5.5ms)
79711
+  (0.5ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `audits` LIMIT 50 OFFSET 0) subquery_for_count 
79712
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/index.html.erb within layouts/sunrise/application (169.1ms)
79713
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (109.2ms)
79714
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (2.6ms)
79715
+ Completed 200 OK in 375ms (Views: 347.4ms | ActiveRecord: 1.6ms)
79716
+ Started GET "/manage/" for 127.0.0.1 at 2013-02-04 18:59:53 +0200
79717
+  (0.1ms) BEGIN
79718
+  (0.1ms) COMMIT
79719
+  (0.1ms) BEGIN
79720
+  (0.5ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-02-04 16:59:53' WHERE `users`.`id` = 1
79721
+  (32.1ms) COMMIT
79722
+ Processing by Sunrise::DashboardController#index as HTML
79723
+ Audited::Adapters::ActiveRecord::Audit Load (0.2ms) SELECT `audits`.* FROM `audits` ORDER BY version, audits.id desc LIMIT 50 OFFSET 0
79724
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` IN (2)
79725
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_event.html.erb (4.2ms)
79726
+  (0.2ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `audits` LIMIT 50 OFFSET 0) subquery_for_count 
79727
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
79728
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (1.2ms)
79729
+ Completed 200 OK in 31ms (Views: 20.4ms | ActiveRecord: 0.8ms)
79730
+ Started GET "/manage/" for 127.0.0.1 at 2013-02-04 18:59:53 +0200
79731
+ Processing by Sunrise::DashboardController#index as HTML
79732
+ Completed 401 Unauthorized in 0ms
79733
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 18:59:53 +0200
79734
+ Processing by Devise::SessionsController#new as HTML
79735
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (3.5ms)
79736
+ Completed 200 OK in 61ms (Views: 59.1ms | ActiveRecord: 0.0ms)
79737
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
79738
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
79739
+  (192.2ms) TRUNCATE TABLE `assets`;
79740
+  (297.4ms) TRUNCATE TABLE `audits`;
79741
+  (396.5ms) TRUNCATE TABLE `meta_tags`;
79742
+  (295.1ms) TRUNCATE TABLE `page_parts`;
79743
+  (139.2ms) TRUNCATE TABLE `posts`;
79744
+  (283.3ms) TRUNCATE TABLE `settings`;
79745
+  (341.9ms) TRUNCATE TABLE `structures`;
79746
+  (329.2ms) TRUNCATE TABLE `users`;
79747
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
79748
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
79749
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
79750
+  (175.9ms) TRUNCATE TABLE `assets`;
79751
+  (388.0ms) TRUNCATE TABLE `audits`;
79752
+  (295.1ms) TRUNCATE TABLE `meta_tags`;
79753
+  (263.2ms) TRUNCATE TABLE `page_parts`;
79754
+  (116.9ms) TRUNCATE TABLE `posts`;
79755
+  (470.8ms) TRUNCATE TABLE `settings`;
79756
+  (1265.7ms) TRUNCATE TABLE `structures`;
79757
+  (387.1ms) TRUNCATE TABLE `users`;
79758
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
79759
+  (0.2ms) BEGIN
79760
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing29@example.com' LIMIT 1
79761
+ SQL (27.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-02-04 16:59:59', '2013-02-04 16:59:59', NULL, NULL, 'testing29@example.com', '32537fc04b987d10f015f99f6859f06755e49452d2ad0b3c8f5e93a390c040017b5abb7c4c62e2b9b7fd87db56d58b578b614eda17d5943c8111108e2360d4e3', 0, NULL, NULL, NULL, 'Admin', 'hx4YMrsbpndiQ5WNp3x3', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 16:59:59')
79762
+  (171.4ms) COMMIT
79763
+  (0.1ms) BEGIN
79764
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
79765
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 16:59:59', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 16:59:59')
79766
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
79767
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
79768
+  (49.5ms) COMMIT
79769
+  (0.1ms) BEGIN
79770
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
79771
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 16:59:59', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug6', 'Structure', '2013-02-04 16:59:59')
79772
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
79773
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
79774
+ 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`
79775
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
79776
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79777
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79778
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
79779
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79780
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
79781
+ Structure Load (0.2ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
79782
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79783
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79784
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
79785
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79786
+  (167.5ms) COMMIT
79787
+ Started GET "/manage/structures/2" for 127.0.0.1 at 2013-02-04 19:00:00 +0200
79788
+  (0.1ms) BEGIN
79789
+  (0.1ms) COMMIT
79790
+  (0.1ms) BEGIN
79791
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 17:00:00', `current_sign_in_at` = '2013-02-04 17:00:00', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 17:00:00' WHERE `users`.`id` = 1
79792
+  (60.3ms) COMMIT
79793
+ Processing by Sunrise::ManagerController#show as HTML
79794
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
79795
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79796
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
79797
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (1.1ms)
79798
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (11.5ms)
79799
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (26.8ms)
79800
+ Completed 200 OK in 175ms (Views: 125.8ms | ActiveRecord: 0.5ms)
79801
+ Started GET "/manage/structures/2" for 127.0.0.1 at 2013-02-04 19:00:00 +0200
79802
+  (0.1ms) BEGIN
79803
+  (0.1ms) COMMIT
79804
+  (0.1ms) BEGIN
79805
+  (0.5ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-02-04 17:00:00' WHERE `users`.`id` = 1
79806
+  (21.0ms) COMMIT
79807
+ Processing by Sunrise::ManagerController#show as HTML
79808
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
79809
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79810
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.3ms)
79811
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
79812
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.9ms)
79813
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.4ms)
79814
+ Completed 200 OK in 16ms (Views: 12.2ms | ActiveRecord: 0.3ms)
79815
+ Started GET "/manage/structures/2" for 127.0.0.1 at 2013-02-04 19:00:00 +0200
79816
+ Processing by Sunrise::ManagerController#show as HTML
79817
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
79818
+ Completed 401 Unauthorized in 1ms
79819
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 19:00:00 +0200
79820
+ Processing by Devise::SessionsController#new as HTML
79821
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.0ms)
79822
+ Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms)
79823
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
79824
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
79825
+  (167.3ms) TRUNCATE TABLE `assets`;
79826
+  (286.1ms) TRUNCATE TABLE `audits`;
79827
+  (328.2ms) TRUNCATE TABLE `meta_tags`;
79828
+  (162.2ms) TRUNCATE TABLE `page_parts`;
79829
+  (248.6ms) TRUNCATE TABLE `posts`;
79830
+  (150.2ms) TRUNCATE TABLE `settings`;
79831
+  (294.7ms) TRUNCATE TABLE `structures`;
79832
+  (353.5ms) TRUNCATE TABLE `users`;
79833
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
79834
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
79835
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
79836
+  (305.9ms) TRUNCATE TABLE `assets`;
79837
+  (327.4ms) TRUNCATE TABLE `audits`;
79838
+  (199.5ms) TRUNCATE TABLE `meta_tags`;
79839
+  (263.0ms) TRUNCATE TABLE `page_parts`;
79840
+  (228.1ms) TRUNCATE TABLE `posts`;
79841
+  (139.3ms) TRUNCATE TABLE `settings`;
79842
+  (340.4ms) TRUNCATE TABLE `structures`;
79843
+  (354.3ms) TRUNCATE TABLE `users`;
79844
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
79845
+  (0.1ms) BEGIN
79846
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing30@example.com' LIMIT 1
79847
+ 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-02-04 17:00:04', '2013-02-04 17:00:04', NULL, NULL, 'testing30@example.com', 'be6d19062d01272186ad0084b0b1716a1a42147b9482735c2faefe107d32819b9816f544bc6a49f5a62a45587752dee5172ebee140dfd2ba4b16a058d737ea0f', 0, NULL, NULL, NULL, 'Admin', '4qBV4tRSTT1zcyMLQPZG', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 17:00:04')
79848
+  (36.4ms) COMMIT
79849
+  (0.1ms) BEGIN
79850
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
79851
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:00:04', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 17:00:04')
79852
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
79853
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
79854
+  (36.2ms) COMMIT
79855
+  (0.1ms) BEGIN
79856
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
79857
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:00:04', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug7', 'Structure', '2013-02-04 17:00:04')
79858
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
79859
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
79860
+ 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`
79861
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
79862
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79863
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79864
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
79865
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79866
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
79867
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
79868
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79869
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79870
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
79871
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79872
+  (37.5ms) COMMIT
79873
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-02-04 19:00:04 +0200
79874
+  (0.1ms) BEGIN
79875
+  (0.1ms) COMMIT
79876
+  (0.1ms) BEGIN
79877
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 17:00:04', `current_sign_in_at` = '2013-02-04 17:00:04', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 17:00:04' WHERE `users`.`id` = 1
79878
+  (35.6ms) COMMIT
79879
+ Processing by Sunrise::ManagerController#index as HTML
79880
+ Parameters: {"model_name"=>"structures"}
79881
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
79882
+ Structure Load (0.7ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
79883
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (2.7ms)
79884
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (58.4ms)
79885
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.1ms)
79886
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
79887
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (3.8ms)
79888
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (4.3ms)
79889
+ Completed 200 OK in 124ms (Views: 113.1ms | ActiveRecord: 1.3ms)
79890
+ Started DELETE "/manage/structures/2/delete" for 127.0.0.1 at 2013-02-04 19:00:05 +0200
79891
+ Processing by Sunrise::ManagerController#destroy as HTML
79892
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
79893
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
79894
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79895
+  (0.1ms) BEGIN
79896
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
79897
+ SQL (29.7ms) DELETE FROM `structures` WHERE (`lft` > 2 AND `rgt` < 3)
79898
+ SQL (0.3ms) UPDATE `structures` SET `lft` = (`lft` - 2) WHERE (`structures`.`lft` > 3) ORDER BY `structures`.`lft`
79899
+ SQL (0.3ms) UPDATE `structures` SET `rgt` = (`rgt` - 2) WHERE (`structures`.`rgt` > 3) ORDER BY `structures`.`lft`
79900
+ PagePart Load (0.4ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
79901
+ MetaTag Load (0.4ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
79902
+ Post Load (0.4ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2
79903
+ SQL (0.3ms) DELETE FROM `structures` WHERE `structures`.`id` = 2
79904
+  (44.3ms) COMMIT
79905
+ Redirected to http://www.example.com/manage/structures
79906
+ Completed 302 Found in 263ms (ActiveRecord: 0.0ms)
79907
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-02-04 19:00:05 +0200
79908
+ Processing by Sunrise::ManagerController#index as HTML
79909
+ Parameters: {"model_name"=>"structures"}
79910
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
79911
+ Structure Load (0.8ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
79912
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (1.8ms)
79913
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.1ms)
79914
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
79915
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (3.1ms)
79916
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.6ms)
79917
+ Completed 200 OK in 25ms (Views: 16.7ms | ActiveRecord: 1.0ms)
79918
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79919
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-02-04 19:00:05 +0200
79920
+ Processing by Sunrise::ManagerController#index as HTML
79921
+ Parameters: {"model_name"=>"structures"}
79922
+ Completed 401 Unauthorized in 0ms
79923
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 19:00:05 +0200
79924
+ Processing by Devise::SessionsController#new as HTML
79925
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.2ms)
79926
+ Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms)
79927
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
79928
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
79929
+  (189.1ms) TRUNCATE TABLE `assets`;
79930
+  (319.5ms) TRUNCATE TABLE `audits`;
79931
+  (361.7ms) TRUNCATE TABLE `meta_tags`;
79932
+  (173.6ms) TRUNCATE TABLE `page_parts`;
79933
+  (248.1ms) TRUNCATE TABLE `posts`;
79934
+  (138.9ms) TRUNCATE TABLE `settings`;
79935
+  (306.0ms) TRUNCATE TABLE `structures`;
79936
+  (355.1ms) TRUNCATE TABLE `users`;
79937
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
79938
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
79939
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
79940
+  (427.4ms) TRUNCATE TABLE `assets`;
79941
+  (353.0ms) TRUNCATE TABLE `audits`;
79942
+  (162.4ms) TRUNCATE TABLE `meta_tags`;
79943
+  (240.0ms) TRUNCATE TABLE `page_parts`;
79944
+  (247.5ms) TRUNCATE TABLE `posts`;
79945
+  (152.6ms) TRUNCATE TABLE `settings`;
79946
+  (296.8ms) TRUNCATE TABLE `structures`;
79947
+  (375.5ms) TRUNCATE TABLE `users`;
79948
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
79949
+  (0.1ms) BEGIN
79950
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing31@example.com' LIMIT 1
79951
+ 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-02-04 17:00:09', '2013-02-04 17:00:09', NULL, NULL, 'testing31@example.com', '778f3fc29bbcd125977e603f2af2aae60153aaab3a52e93f71c5e3cbdc6d948ff2617f20dc5a590634c3ce7afcd99ff40a0558b53c66cb719617ddec3455c103', 0, NULL, NULL, NULL, 'Admin', 'BYcRVacY6q5q2Zvtnpce', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 17:00:09')
79952
+  (36.3ms) COMMIT
79953
+  (0.1ms) BEGIN
79954
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
79955
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:00:09', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 17:00:09')
79956
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
79957
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
79958
+  (36.9ms) COMMIT
79959
+  (0.1ms) BEGIN
79960
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
79961
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:00:09', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug8', 'Structure', '2013-02-04 17:00:09')
79962
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
79963
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
79964
+ 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`
79965
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
79966
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79967
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79968
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
79969
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79970
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
79971
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
79972
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79973
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79974
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
79975
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
79976
+  (51.0ms) COMMIT
79977
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-02-04 19:00:09 +0200
79978
+  (0.1ms) BEGIN
79979
+  (0.1ms) COMMIT
79980
+  (0.1ms) BEGIN
79981
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 17:00:09', `current_sign_in_at` = '2013-02-04 17:00:09', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 17:00:09' WHERE `users`.`id` = 1
79982
+  (35.9ms) COMMIT
79983
+ Processing by Sunrise::ManagerController#edit as HTML
79984
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
79985
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
79986
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
79987
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
79988
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 4) ORDER BY `structures`.`lft`
79989
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (87.0ms)
79990
+ MetaTag Load (0.5ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
79991
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (8.3ms)
79992
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (1018.5ms)
79993
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.9ms)
79994
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (1.4ms)
79995
+ Completed 200 OK in 1121ms (Views: 1097.8ms | ActiveRecord: 2.0ms)
79996
+ Started PUT "/manage/structures/2/edit" for 127.0.0.1 at 2013-02-04 19:00:11 +0200
79997
+ Processing by Sunrise::ManagerController#update as HTML
79998
+ Parameters: {"utf8"=>"✓", "parent_id"=>"", "parent_type"=>"", "structure"=>{"title"=>"Title updated", "redirect_url"=>"", "slug"=>"slug8", "parent_id"=>"1", "kind"=>"2", "position"=>"1", "is_visible"=>"0", "tag_title"=>"", "tag_keywords"=>"", "tag_description"=>""}, "commit"=>"Update Structure", "model_name"=>"structures", "id"=>"2"}
79999
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
80000
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80001
+  (0.1ms) BEGIN
80002
+ MetaTag Load (0.5ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
80003
+  (0.5ms) UPDATE `structures` SET `title` = 'Title updated', `redirect_url` = '', `kind` = 2, `position` = 1, `is_visible` = 0, `updated_at` = '2013-02-04 17:00:11' WHERE `structures`.`id` = 2
80004
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80005
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80006
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
80007
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80008
+  (205.3ms) COMMIT
80009
+ Redirected to http://www.example.com/manage/structures
80010
+ Completed 302 Found in 236ms (ActiveRecord: 0.0ms)
80011
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-02-04 19:00:11 +0200
80012
+ Processing by Sunrise::ManagerController#index as HTML
80013
+ Parameters: {"model_name"=>"structures"}
80014
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
80015
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
80016
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
80017
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (2.3ms)
80018
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (6.0ms)
80019
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.7ms)
80020
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
80021
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (3.1ms)
80022
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.5ms)
80023
+ Completed 200 OK in 24ms (Views: 18.0ms | ActiveRecord: 1.4ms)
80024
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80025
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-02-04 19:00:11 +0200
80026
+  (0.1ms) BEGIN
80027
+  (0.2ms) COMMIT
80028
+  (0.1ms) BEGIN
80029
+  (65.1ms) UPDATE `users` SET `current_sign_in_at` = '2013-02-04 17:00:11', `sign_in_count` = 2, `updated_at` = '2013-02-04 17:00:11' WHERE `users`.`id` = 1
80030
+  (28.3ms) COMMIT
80031
+ Processing by Sunrise::ManagerController#edit as HTML
80032
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
80033
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80034
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
80035
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
80036
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 4) ORDER BY `structures`.`lft`
80037
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (17.2ms)
80038
+ MetaTag Load (0.7ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
80039
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (87.3ms)
80040
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (108.6ms)
80041
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
80042
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
80043
+ Completed 200 OK in 121ms (Views: 115.4ms | ActiveRecord: 1.6ms)
80044
+ Started PUT "/manage/structures/2/edit" for 127.0.0.1 at 2013-02-04 19:00:11 +0200
80045
+ Processing by Sunrise::ManagerController#update as HTML
80046
+ Parameters: {"utf8"=>"✓", "parent_id"=>"", "parent_type"=>"", "structure"=>{"title"=>"Title updated", "redirect_url"=>"", "slug"=>"slug8", "parent_id"=>"1", "kind"=>"2", "position"=>"1", "is_visible"=>"0", "tag_title"=>"", "tag_keywords"=>"", "tag_description"=>""}, "commit"=>"Update Structure", "model_name"=>"structures", "id"=>"2"}
80047
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
80048
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80049
+  (0.1ms) BEGIN
80050
+ MetaTag Load (0.1ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
80051
+ CACHE (0.0ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80052
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80053
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
80054
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80055
+  (46.0ms) COMMIT
80056
+ Redirected to http://www.example.com/manage/structures
80057
+ Completed 302 Found in 64ms (ActiveRecord: 0.0ms)
80058
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-02-04 19:00:11 +0200
80059
+ Processing by Sunrise::ManagerController#index as HTML
80060
+ Parameters: {"model_name"=>"structures"}
80061
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
80062
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
80063
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
80064
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (2.1ms)
80065
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (5.2ms)
80066
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.6ms)
80067
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
80068
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.7ms)
80069
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.1ms)
80070
+ Completed 200 OK in 21ms (Views: 16.6ms | ActiveRecord: 0.5ms)
80071
+  (0.1ms) BEGIN
80072
+ PagePart Load (0.5ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
80073
+ 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
80074
+ PagePart Exists (0.4ms) 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
80075
+ SQL (0.4ms) INSERT INTO `page_parts` (`content`, `created_at`, `key`, `partable_id`, `partable_type`, `updated_at`) VALUES ('Main', '2013-02-04 17:00:11', 'main', 2, 'Structure', '2013-02-04 17:00:11')
80076
+ SQL (0.3ms) INSERT INTO `page_parts` (`content`, `created_at`, `key`, `partable_id`, `partable_type`, `updated_at`) VALUES ('Sidebar', '2013-02-04 17:00:11', 'sidebar', 2, 'Structure', '2013-02-04 17:00:11')
80077
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80078
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80079
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
80080
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80081
+  (31.9ms) COMMIT
80082
+ Started GET "/manage/pages/2/edit" for 127.0.0.1 at 2013-02-04 19:00:11 +0200
80083
+  (0.1ms) BEGIN
80084
+  (0.1ms) COMMIT
80085
+  (0.1ms) BEGIN
80086
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 17:00:11', `sign_in_count` = 3, `updated_at` = '2013-02-04 17:00:11' WHERE `users`.`id` = 1
80087
+  (36.0ms) COMMIT
80088
+ Processing by Sunrise::ManagerController#edit as HTML
80089
+ Parameters: {"model_name"=>"pages", "id"=>"2"}
80090
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80091
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
80092
+ PagePart Load (0.6ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
80093
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (24.7ms)
80094
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (28.0ms)
80095
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.9ms)
80096
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
80097
+ Completed 200 OK in 40ms (Views: 35.5ms | ActiveRecord: 0.8ms)
80098
+ Started PUT "/manage/pages/2/edit" for 127.0.0.1 at 2013-02-04 19:00:11 +0200
80099
+ Processing by Sunrise::ManagerController#update as HTML
80100
+ Parameters: {"utf8"=>"✓", "parent_id"=>"", "parent_type"=>"", "structure"=>{"main"=>"Main updated", "sidebar"=>"Sidebar updated"}, "commit"=>"Update Structure", "model_name"=>"pages", "id"=>"2"}
80101
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
80102
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80103
+  (0.1ms) BEGIN
80104
+ PagePart Load (0.5ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
80105
+ PagePart Exists (0.5ms) 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
80106
+ PagePart Exists (0.4ms) 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
80107
+  (0.4ms) UPDATE `page_parts` SET `content` = 'Main updated', `updated_at` = '2013-02-04 17:00:11' WHERE `page_parts`.`id` = 1
80108
+  (0.3ms) UPDATE `page_parts` SET `content` = 'Sidebar updated', `updated_at` = '2013-02-04 17:00:11' WHERE `page_parts`.`id` = 2
80109
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80110
+  (0.1ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80111
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
80112
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80113
+  (19.8ms) COMMIT
80114
+ Redirected to http://www.example.com/manage/structures
80115
+ Completed 302 Found in 47ms (ActiveRecord: 0.0ms)
80116
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-02-04 19:00:11 +0200
80117
+ Processing by Sunrise::ManagerController#index as HTML
80118
+ Parameters: {"model_name"=>"structures"}
80119
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
80120
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
80121
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
80122
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (2.2ms)
80123
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (5.5ms)
80124
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.6ms)
80125
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
80126
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.7ms)
80127
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.2ms)
80128
+ Completed 200 OK in 22ms (Views: 17.3ms | ActiveRecord: 0.5ms)
80129
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80130
+ PagePart Load (0.5ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
80131
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-02-04 19:00:11 +0200
80132
+ Processing by Sunrise::ManagerController#edit as HTML
80133
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
80134
+ Completed 401 Unauthorized in 0ms
80135
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 19:00:11 +0200
80136
+ Processing by Devise::SessionsController#new as HTML
80137
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.0ms)
80138
+ Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.0ms)
80139
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
80140
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
80141
+  (173.4ms) TRUNCATE TABLE `assets`;
80142
+  (298.3ms) TRUNCATE TABLE `audits`;
80143
+  (305.8ms) TRUNCATE TABLE `meta_tags`;
80144
+  (173.3ms) TRUNCATE TABLE `page_parts`;
80145
+  (237.0ms) TRUNCATE TABLE `posts`;
80146
+  (139.0ms) TRUNCATE TABLE `settings`;
80147
+  (350.8ms) TRUNCATE TABLE `structures`;
80148
+  (354.2ms) TRUNCATE TABLE `users`;
80149
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
80150
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
80151
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
80152
+  (317.1ms) TRUNCATE TABLE `assets`;
80153
+  (330.8ms) TRUNCATE TABLE `audits`;
80154
+  (162.1ms) TRUNCATE TABLE `meta_tags`;
80155
+  (229.1ms) TRUNCATE TABLE `page_parts`;
80156
+  (235.6ms) TRUNCATE TABLE `posts`;
80157
+  (131.1ms) TRUNCATE TABLE `settings`;
80158
+  (285.9ms) TRUNCATE TABLE `structures`;
80159
+  (309.9ms) TRUNCATE TABLE `users`;
80160
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
80161
+  (0.1ms) BEGIN
80162
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing32@example.com' LIMIT 1
80163
+ 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-02-04 17:00:16', '2013-02-04 17:00:16', NULL, NULL, 'testing32@example.com', 'cec35054d806c9dd72bae80720f5cc95785ebf2d8f972a537484c14e2de6cce70ab92608c26ca77fdf9666164417d2584a975c55469cfcc36867aeb8b290c6b1', 0, NULL, NULL, NULL, 'Admin', 'UaPzrFsaTkqz8uQzidjZ', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 17:00:16')
80164
+  (36.4ms) COMMIT
80165
+ Started GET "/manage/whatever/new" for 127.0.0.1 at 2013-02-04 19:00:16 +0200
80166
+  (0.1ms) BEGIN
80167
+  (0.1ms) COMMIT
80168
+  (0.1ms) BEGIN
80169
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 17:00:16', `current_sign_in_at` = '2013-02-04 17:00:16', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 17:00:16' WHERE `users`.`id` = 1
80170
+  (36.0ms) COMMIT
80171
+ Processing by Sunrise::ManagerController#new as HTML
80172
+ Parameters: {"model_name"=>"whatever"}
80173
+ Completed 404 Not Found in 11ms
80174
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2013-02-04 19:00:16 +0200
80175
+  (0.1ms) BEGIN
80176
+  (0.1ms) COMMIT
80177
+  (0.1ms) BEGIN
80178
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-02-04 17:00:16' WHERE `users`.`id` = 1
80179
+  (52.3ms) COMMIT
80180
+ Processing by Sunrise::ManagerController#new as HTML
80181
+ Parameters: {"model_name"=>"structures"}
80182
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
80183
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
80184
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (16.0ms)
80185
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.4ms)
80186
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (26.4ms)
80187
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.7ms)
80188
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (1.4ms)
80189
+ Completed 200 OK in 66ms (Views: 57.5ms | ActiveRecord: 0.6ms)
80190
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2013-02-04 19:00:16 +0200
80191
+  (0.1ms) BEGIN
80192
+  (0.1ms) COMMIT
80193
+  (0.1ms) BEGIN
80194
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 3, `updated_at` = '2013-02-04 17:00:16' WHERE `users`.`id` = 1
80195
+  (16.0ms) COMMIT
80196
+ Processing by Sunrise::ManagerController#new as HTML
80197
+ Parameters: {"model_name"=>"structures"}
80198
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
80199
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
80200
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (15.6ms)
80201
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.2ms)
80202
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (25.5ms)
80203
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
80204
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.5ms)
80205
+ Completed 200 OK in 36ms (Views: 33.3ms | ActiveRecord: 0.2ms)
80206
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2013-02-04 19:00:16 +0200
80207
+ Processing by Sunrise::ManagerController#new as HTML
80208
+ Parameters: {"model_name"=>"structures"}
80209
+ Completed 401 Unauthorized in 0ms
80210
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 19:00:16 +0200
80211
+ Processing by Devise::SessionsController#new as HTML
80212
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.1ms)
80213
+ Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.0ms)
80214
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
80215
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
80216
+  (162.8ms) TRUNCATE TABLE `assets`;
80217
+  (297.9ms) TRUNCATE TABLE `audits`;
80218
+  (294.4ms) TRUNCATE TABLE `meta_tags`;
80219
+  (184.5ms) TRUNCATE TABLE `page_parts`;
80220
+  (478.4ms) TRUNCATE TABLE `posts`;
80221
+  (150.1ms) TRUNCATE TABLE `settings`;
80222
+  (294.6ms) TRUNCATE TABLE `structures`;
80223
+  (353.3ms) TRUNCATE TABLE `users`;
80224
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
80225
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
80226
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
80227
+  (295.1ms) TRUNCATE TABLE `assets`;
80228
+  (320.1ms) TRUNCATE TABLE `audits`;
80229
+  (172.8ms) TRUNCATE TABLE `meta_tags`;
80230
+  (305.7ms) TRUNCATE TABLE `page_parts`;
80231
+  (116.7ms) TRUNCATE TABLE `posts`;
80232
+  (304.9ms) TRUNCATE TABLE `settings`;
80233
+  (284.8ms) TRUNCATE TABLE `structures`;
80234
+  (332.9ms) TRUNCATE TABLE `users`;
80235
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
80236
+  (0.1ms) BEGIN
80237
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing33@example.com' LIMIT 1
80238
+ 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-02-04 17:00:20', '2013-02-04 17:00:20', NULL, NULL, 'testing33@example.com', 'ba389afd719b29fb4f1eeea6ec5ed67c2cf7453824032789e51192322f503403cfb70ae0fb40a4051b06414c8d7886c0d28ec02acb827f1ee521d212a492d8cd', 0, NULL, NULL, NULL, 'Admin', '5mwQ89PRLyXaAbRSzcfM', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 17:00:20')
80239
+  (49.1ms) COMMIT
80240
+  (0.1ms) BEGIN
80241
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
80242
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:00:20', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 17:00:20')
80243
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
80244
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
80245
+  (36.3ms) COMMIT
80246
+  (0.1ms) BEGIN
80247
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
80248
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:00:20', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug9', 'Structure', '2013-02-04 17:00:20')
80249
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
80250
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
80251
+ 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`
80252
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
80253
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80254
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80255
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
80256
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80257
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
80258
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
80259
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80260
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80261
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
80262
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80263
+  (30.5ms) COMMIT
80264
+ Started GET "/manage/users/export.xlsx" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
80265
+  (0.0ms) BEGIN
80266
+  (0.0ms) COMMIT
80267
+  (0.0ms) BEGIN
80268
+  (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
80269
+  (0.0ms) COMMIT
80270
+ Processing by Sunrise::ManagerController#export as XLSX
80271
+ Parameters: {"model_name"=>"users"}
80272
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
80273
+ User Load (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000 OFFSET 0
80274
+ Sent data users_2012-01-01_16h00m00.xls (0.0ms)
80275
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
80276
+ Started GET "/manage/users/export.csv" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
80277
+  (0.0ms) BEGIN
80278
+  (0.0ms) COMMIT
80279
+  (0.0ms) BEGIN
80280
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 2 WHERE `users`.`id` = 1
80281
+  (0.0ms) COMMIT
80282
+ Processing by Sunrise::ManagerController#export as CSV
80283
+ Parameters: {"model_name"=>"users"}
80284
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
80285
+ User Load (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000 OFFSET 0
80286
+ Sent data users_2012-01-01_16h00m00.csv (0.0ms)
80287
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
80288
+ Started GET "/manage/users/export.json" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
80289
+  (0.0ms) BEGIN
80290
+  (0.0ms) COMMIT
80291
+  (0.0ms) BEGIN
80292
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 3 WHERE `users`.`id` = 1
80293
+  (0.0ms) COMMIT
80294
+ Processing by Sunrise::ManagerController#export as JSON
80295
+ Parameters: {"model_name"=>"users"}
80296
+ User Load (0.0ms) SELECT `users`.* FROM `users` LIMIT 25 OFFSET 0
80297
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
80298
+  (0.0ms) BEGIN
80299
+ 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')
80300
+  (0.0ms) COMMIT
80301
+ Started GET "/manage/posts/export.csv" for 127.0.0.1 at 2012-01-01 16:00:00 UTC
80302
+  (0.0ms) BEGIN
80303
+  (0.0ms) COMMIT
80304
+  (0.0ms) BEGIN
80305
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 4 WHERE `users`.`id` = 1
80306
+  (0.0ms) COMMIT
80307
+ Processing by Sunrise::ManagerController#export as CSV
80308
+ Parameters: {"model_name"=>"posts"}
80309
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
80310
+ Post Load (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.`id` >= 0) ORDER BY `posts`.`id` ASC LIMIT 1000 OFFSET 0
80311
+ Structure Load (0.0ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` IN (2)
80312
+ Sent data posts_2012-01-01_16h00m00.csv (0.0ms)
80313
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
80314
+ Started GET "/manage/structures/export.xlsx" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
80315
+  (0.0ms) BEGIN
80316
+  (0.0ms) COMMIT
80317
+  (0.0ms) BEGIN
80318
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 5 WHERE `users`.`id` = 1
80319
+  (0.0ms) COMMIT
80320
+ Processing by Sunrise::ManagerController#export as XLSX
80321
+ Parameters: {"model_name"=>"structures"}
80322
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
80323
+ Structure Load (0.0ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`id` >= 0) ORDER BY `structures`.`id` ASC LIMIT 1000 OFFSET 0
80324
+ Sent data structures_2012-01-01_16h00m00.xls (0.0ms)
80325
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
80326
+ Started GET "/manage/structures/export.xml" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
80327
+  (0.0ms) BEGIN
80328
+  (0.0ms) COMMIT
80329
+  (0.0ms) BEGIN
80330
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 6 WHERE `users`.`id` = 1
80331
+  (0.0ms) COMMIT
80332
+ Processing by Sunrise::ManagerController#export as XML
80333
+ Parameters: {"model_name"=>"structures"}
80334
+ Structure Load (0.0ms) SELECT `structures`.* FROM `structures` LIMIT 25 OFFSET 0
80335
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
80336
+ Started GET "/manage/users/export.xlsx" for 127.0.0.1 at 2013-02-04 19:00:23 +0200
80337
+ Processing by Sunrise::ManagerController#export as XLSX
80338
+ Parameters: {"model_name"=>"users"}
80339
+ Completed 401 Unauthorized in 0ms
80340
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
80341
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
80342
+  (351.1ms) TRUNCATE TABLE `assets`;
80343
+  (363.7ms) TRUNCATE TABLE `audits`;
80344
+  (139.9ms) TRUNCATE TABLE `meta_tags`;
80345
+  (250.6ms) TRUNCATE TABLE `page_parts`;
80346
+  (239.7ms) TRUNCATE TABLE `posts`;
80347
+  (127.0ms) TRUNCATE TABLE `settings`;
80348
+  (296.6ms) TRUNCATE TABLE `structures`;
80349
+  (408.9ms) TRUNCATE TABLE `users`;
80350
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
80351
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
80352
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
80353
+  (217.1ms) TRUNCATE TABLE `assets`;
80354
+  (328.6ms) TRUNCATE TABLE `audits`;
80355
+  (295.2ms) TRUNCATE TABLE `meta_tags`;
80356
+  (173.2ms) TRUNCATE TABLE `page_parts`;
80357
+  (226.1ms) TRUNCATE TABLE `posts`;
80358
+  (150.0ms) TRUNCATE TABLE `settings`;
80359
+  (263.8ms) TRUNCATE TABLE `structures`;
80360
+  (355.0ms) TRUNCATE TABLE `users`;
80361
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
80362
+  (0.1ms) BEGIN
80363
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing34@example.com' LIMIT 1
80364
+ 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-02-04 17:00:27', '2013-02-04 17:00:27', NULL, NULL, 'testing34@example.com', '82f0128246b48d2d953c46fa0a14f2bbfecd12eafb20119f63f05224125f8334e62eae602a7f08d88ea99e711cffa2df3288f94ac6e669bf1d213270519aaf60', 0, NULL, NULL, NULL, 'Admin', 'MwsbfkxhzYWXKeHRQp3Y', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 17:00:27')
80365
+  (36.4ms) COMMIT
80366
+  (0.1ms) BEGIN
80367
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
80368
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:00:27', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 17:00:27')
80369
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
80370
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
80371
+  (36.8ms) COMMIT
80372
+  (0.1ms) BEGIN
80373
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
80374
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:00:27', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug10', 'Structure', '2013-02-04 17:00:27')
80375
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
80376
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
80377
+ 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`
80378
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
80379
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80380
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80381
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
80382
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80383
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
80384
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
80385
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80386
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80387
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
80388
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80389
+  (52.8ms) COMMIT
80390
+ Started GET "/manage/" for 127.0.0.1 at 2013-02-04 19:00:27 +0200
80391
+  (0.1ms) BEGIN
80392
+  (0.1ms) COMMIT
80393
+  (0.1ms) BEGIN
80394
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 17:00:27', `current_sign_in_at` = '2013-02-04 17:00:27', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 17:00:27' WHERE `users`.`id` = 1
80395
+  (36.4ms) COMMIT
80396
+ Processing by Sunrise::DashboardController#index as HTML
80397
+ Audited::Adapters::ActiveRecord::Audit Load (0.5ms) SELECT `audits`.* FROM `audits` ORDER BY version, audits.id desc LIMIT 50 OFFSET 0
80398
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_event.html.erb (0.0ms)
80399
+  (0.4ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `audits` LIMIT 50 OFFSET 0) subquery_for_count 
80400
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (82.0ms)
80401
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (1.4ms)
80402
+ Completed 200 OK in 104ms (Views: 91.7ms | ActiveRecord: 0.8ms)
80403
+ Started GET "/manage/whatever" for 127.0.0.1 at 2013-02-04 19:00:27 +0200
80404
+  (0.1ms) BEGIN
80405
+  (0.1ms) COMMIT
80406
+  (0.1ms) BEGIN
80407
+  (0.5ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-02-04 17:00:27' WHERE `users`.`id` = 1
80408
+  (19.4ms) COMMIT
80409
+ Processing by Sunrise::ManagerController#index as HTML
80410
+ Parameters: {"model_name"=>"whatever"}
80411
+ Completed 404 Not Found in 11ms
80412
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-02-04 19:00:28 +0200
80413
+  (0.1ms) BEGIN
80414
+  (0.1ms) COMMIT
80415
+  (0.1ms) BEGIN
80416
+  (0.4ms) UPDATE `users` SET `current_sign_in_at` = '2013-02-04 17:00:28', `sign_in_count` = 3, `updated_at` = '2013-02-04 17:00:28' WHERE `users`.`id` = 1
80417
+  (54.9ms) COMMIT
80418
+ Processing by Sunrise::ManagerController#index as HTML
80419
+ Parameters: {"model_name"=>"structures"}
80420
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
80421
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
80422
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (2.1ms)
80423
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (6.0ms)
80424
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.6ms)
80425
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
80426
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.7ms)
80427
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.2ms)
80428
+ Completed 200 OK in 22ms (Views: 18.1ms | ActiveRecord: 1.1ms)
80429
+ Started GET "/manage/users" for 127.0.0.1 at 2013-02-04 19:00:28 +0200
80430
+  (0.1ms) BEGIN
80431
+  (0.1ms) COMMIT
80432
+  (0.1ms) BEGIN
80433
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 17:00:28', `sign_in_count` = 4, `updated_at` = '2013-02-04 17:00:28' WHERE `users`.`id` = 1
80434
+  (40.9ms) COMMIT
80435
+ Processing by Sunrise::ManagerController#index as HTML
80436
+ Parameters: {"model_name"=>"users"}
80437
+ User Load (0.5ms) SELECT `users`.* FROM `users` LIMIT 25 OFFSET 0
80438
+ Avatar Load (0.7ms) 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
80439
+ Rendered sunrise/manager/users/thumbs/_record.html.erb (4.4ms)
80440
+  (0.4ms) SELECT COUNT(*) FROM `users` 
80441
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.9ms)
80442
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
80443
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
80444
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (39.9ms)
80445
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (55.9ms)
80446
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (1.7ms)
80447
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (1.6ms)
80448
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (1.4ms)
80449
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (2.0ms)
80450
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_export.html.erb (1.5ms)
80451
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (26.3ms)
80452
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (101.2ms)
80453
+ Completed 200 OK in 241ms (Views: 211.9ms | ActiveRecord: 1.6ms)
80454
+ Started GET "/manage/pages" for 127.0.0.1 at 2013-02-04 19:00:28 +0200
80455
+  (0.1ms) BEGIN
80456
+  (0.1ms) COMMIT
80457
+  (0.1ms) BEGIN
80458
+  (0.5ms) UPDATE `users` SET `sign_in_count` = 5, `updated_at` = '2013-02-04 17:00:28' WHERE `users`.`id` = 1
80459
+  (20.1ms) COMMIT
80460
+ Processing by Sunrise::ManagerController#index as HTML
80461
+ Parameters: {"model_name"=>"pages"}
80462
+ Completed 404 Not Found in 2ms
80463
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-02-04 19:00:28 +0200
80464
+ Processing by Sunrise::ManagerController#index as HTML
80465
+ Parameters: {"model_name"=>"structures"}
80466
+ Completed 401 Unauthorized in 0ms
80467
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 19:00:28 +0200
80468
+ Processing by Devise::SessionsController#new as HTML
80469
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.0ms)
80470
+ Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.0ms)
80471
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
80472
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
80473
+  (191.1ms) TRUNCATE TABLE `assets`;
80474
+  (308.6ms) TRUNCATE TABLE `audits`;
80475
+  (305.9ms) TRUNCATE TABLE `meta_tags`;
80476
+  (195.7ms) TRUNCATE TABLE `page_parts`;
80477
+  (204.0ms) TRUNCATE TABLE `posts`;
80478
+  (138.8ms) TRUNCATE TABLE `settings`;
80479
+  (284.0ms) TRUNCATE TABLE `structures`;
80480
+  (364.6ms) TRUNCATE TABLE `users`;
80481
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
80482
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
80483
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
80484
+  (294.8ms) TRUNCATE TABLE `assets`;
80485
+  (305.4ms) TRUNCATE TABLE `audits`;
80486
+  (176.6ms) TRUNCATE TABLE `meta_tags`;
80487
+  (305.4ms) TRUNCATE TABLE `page_parts`;
80488
+  (116.6ms) TRUNCATE TABLE `posts`;
80489
+  (238.8ms) TRUNCATE TABLE `settings`;
80490
+  (284.8ms) TRUNCATE TABLE `structures`;
80491
+  (353.0ms) TRUNCATE TABLE `users`;
80492
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
80493
+  (0.1ms) BEGIN
80494
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing35@example.com' LIMIT 1
80495
+ 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-02-04 17:00:32', '2013-02-04 17:00:32', NULL, NULL, 'testing35@example.com', 'aef6f482a22f95acf04033eb858e181a9eca5fa361e4c0b82dee2880971522621afdb2c5365acb9480f771f1e289a8bb1636676fb3af57d59d50e9a2782a6f6a', 0, NULL, NULL, NULL, 'Admin', 'cyrJ7bhdWff2wkscFS6M', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 17:00:32')
80496
+  (26.9ms) COMMIT
80497
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2013-02-04 19:00:32 +0200
80498
+  (0.2ms) BEGIN
80499
+  (0.1ms) COMMIT
80500
+  (0.1ms) BEGIN
80501
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 17:00:32', `current_sign_in_at` = '2013-02-04 17:00:32', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 17:00:32' WHERE `users`.`id` = 1
80502
+  (24.9ms) COMMIT
80503
+ Processing by Sunrise::ManagerController#new as HTML
80504
+ Parameters: {"model_name"=>"structures"}
80505
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
80506
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
80507
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (98.5ms)
80508
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.6ms)
80509
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (108.9ms)
80510
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.9ms)
80511
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.5ms)
80512
+ Completed 200 OK in 119ms (Views: 116.5ms | ActiveRecord: 0.6ms)
80513
+ Started POST "/manage/structures/new" for 127.0.0.1 at 2013-02-04 19:00:32 +0200
80514
+ Processing by Sunrise::ManagerController#create as HTML
80515
+ Parameters: {"utf8"=>"✓", "parent_id"=>"", "parent_type"=>"", "structure"=>{"title"=>"Good day", "redirect_url"=>"", "slug"=>"", "parent_id"=>"", "kind"=>"1", "position"=>"2", "is_visible"=>"1", "tag_title"=>"", "tag_keywords"=>"", "tag_description"=>""}, "commit"=>"Create Structure", "model_name"=>"structures"}
80516
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
80517
+  (0.1ms) BEGIN
80518
+ Structure Load (0.7ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
80519
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:00:33', 0, 1, 1, 1, NULL, 2, '', 2, 'good-day', 'Good day', '2013-02-04 17:00:33')
80520
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
80521
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
80522
+  (24.7ms) COMMIT
80523
+ Redirected to http://www.example.com/manage/structures
80524
+ Completed 302 Found in 326ms (ActiveRecord: 0.0ms)
80525
+ Started GET "/manage/structures" for 127.0.0.1 at 2013-02-04 19:00:33 +0200
80526
+ Processing by Sunrise::ManagerController#index as HTML
80527
+ Parameters: {"model_name"=>"structures"}
80528
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
80529
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
80530
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (1.5ms)
80531
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.7ms)
80532
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
80533
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.9ms)
80534
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.4ms)
80535
+ Completed 200 OK in 20ms (Views: 14.1ms | ActiveRecord: 0.8ms)
80536
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`id` DESC LIMIT 1
80537
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2013-02-04 19:00:33 +0200
80538
+ Processing by Sunrise::ManagerController#new as HTML
80539
+ Parameters: {"model_name"=>"structures"}
80540
+ Completed 401 Unauthorized in 0ms
80541
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 19:00:33 +0200
80542
+ Processing by Devise::SessionsController#new as HTML
80543
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.1ms)
80544
+ Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.0ms)
80545
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
80546
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
80547
+  (166.5ms) TRUNCATE TABLE `assets`;
80548
+  (1284.0ms) TRUNCATE TABLE `audits`;
80549
+  (598.3ms) TRUNCATE TABLE `meta_tags`;
80550
+  (284.5ms) TRUNCATE TABLE `page_parts`;
80551
+  (116.7ms) TRUNCATE TABLE `posts`;
80552
+  (227.4ms) TRUNCATE TABLE `settings`;
80553
+  (307.3ms) TRUNCATE TABLE `structures`;
80554
+  (343.3ms) TRUNCATE TABLE `users`;
80555
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
80556
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
80557
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
80558
+  (206.1ms) TRUNCATE TABLE `assets`;
80559
+  (342.9ms) TRUNCATE TABLE `audits`;
80560
+  (262.6ms) TRUNCATE TABLE `meta_tags`;
80561
+  (295.6ms) TRUNCATE TABLE `page_parts`;
80562
+  (139.2ms) TRUNCATE TABLE `posts`;
80563
+  (217.2ms) TRUNCATE TABLE `settings`;
80564
+  (307.1ms) TRUNCATE TABLE `structures`;
80565
+  (343.5ms) TRUNCATE TABLE `users`;
80566
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
80567
+  (0.1ms) BEGIN
80568
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing36@example.com' LIMIT 1
80569
+ 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-02-04 17:00:38', '2013-02-04 17:00:38', NULL, NULL, 'testing36@example.com', 'f0ab11a5f7f8ec9ae75bfccc775fb7940bdcfcab13ffb71b14da18e29acb7c8384783591890adc457760e67625d229a46f22a630133788ebd08dad8bcfd6cec9', 0, NULL, NULL, NULL, 'Admin', 'qp9zDMyHX12g2mXGeEQz', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 17:00:38')
80570
+  (90.9ms) COMMIT
80571
+  (0.1ms) BEGIN
80572
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
80573
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:00:38', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 17:00:38')
80574
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
80575
+ SQL (0.5ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
80576
+  (48.9ms) COMMIT
80577
+  (0.1ms) BEGIN
80578
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
80579
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:00:38', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug11', 'Structure', '2013-02-04 17:00:38')
80580
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
80581
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
80582
+ 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`
80583
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
80584
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80585
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80586
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
80587
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80588
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
80589
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
80590
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80591
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80592
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
80593
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80594
+  (192.4ms) COMMIT
80595
+ Started GET "/manage/whatever/2/edit" for 127.0.0.1 at 2013-02-04 19:00:38 +0200
80596
+  (0.1ms) BEGIN
80597
+  (0.1ms) COMMIT
80598
+  (0.1ms) BEGIN
80599
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 17:00:38', `current_sign_in_at` = '2013-02-04 17:00:38', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 17:00:38' WHERE `users`.`id` = 1
80600
+  (20.4ms) COMMIT
80601
+ Processing by Sunrise::ManagerController#edit as HTML
80602
+ Parameters: {"model_name"=>"whatever", "id"=>"2"}
80603
+ Completed 404 Not Found in 10ms
80604
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-02-04 19:00:38 +0200
80605
+  (0.1ms) BEGIN
80606
+  (0.1ms) COMMIT
80607
+  (0.1ms) BEGIN
80608
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-02-04 17:00:38' WHERE `users`.`id` = 1
80609
+  (66.2ms) COMMIT
80610
+ Processing by Sunrise::ManagerController#edit as HTML
80611
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
80612
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80613
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
80614
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
80615
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 4) ORDER BY `structures`.`lft`
80616
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (17.8ms)
80617
+ MetaTag Load (0.5ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
80618
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (8.2ms)
80619
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (30.0ms)
80620
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.9ms)
80621
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
80622
+ Completed 200 OK in 44ms (Views: 38.1ms | ActiveRecord: 2.0ms)
80623
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-02-04 19:00:39 +0200
80624
+  (0.1ms) BEGIN
80625
+  (0.1ms) COMMIT
80626
+  (0.2ms) BEGIN
80627
+  (0.5ms) UPDATE `users` SET `current_sign_in_at` = '2013-02-04 17:00:39', `sign_in_count` = 3, `updated_at` = '2013-02-04 17:00:39' WHERE `users`.`id` = 1
80628
+  (29.0ms) COMMIT
80629
+ Processing by Sunrise::ManagerController#edit as HTML
80630
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
80631
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80632
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
80633
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
80634
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 4) ORDER BY `structures`.`lft`
80635
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (16.9ms)
80636
+ MetaTag Load (0.2ms) SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
80637
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (7.6ms)
80638
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (28.3ms)
80639
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.7ms)
80640
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
80641
+ Completed 200 OK in 40ms (Views: 35.8ms | ActiveRecord: 0.7ms)
80642
+ Started GET "/manage/pages/2/edit" for 127.0.0.1 at 2013-02-04 19:00:39 +0200
80643
+  (0.1ms) BEGIN
80644
+  (0.1ms) COMMIT
80645
+  (0.1ms) BEGIN
80646
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 17:00:39', `sign_in_count` = 4, `updated_at` = '2013-02-04 17:00:39' WHERE `users`.`id` = 1
80647
+  (31.3ms) COMMIT
80648
+ Processing by Sunrise::ManagerController#edit as HTML
80649
+ Parameters: {"model_name"=>"pages", "id"=>"2"}
80650
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80651
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
80652
+ PagePart Load (0.5ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
80653
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (7.8ms)
80654
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (10.9ms)
80655
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
80656
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
80657
+ Completed 200 OK in 22ms (Views: 18.4ms | ActiveRecord: 0.7ms)
80658
+ Started GET "/manage/pages/2/edit" for 127.0.0.1 at 2013-02-04 19:00:39 +0200
80659
+  (0.1ms) BEGIN
80660
+  (0.1ms) COMMIT
80661
+  (0.1ms) BEGIN
80662
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 5, `updated_at` = '2013-02-04 17:00:39' WHERE `users`.`id` = 1
80663
+  (51.9ms) COMMIT
80664
+ Processing by Sunrise::ManagerController#edit as HTML
80665
+ Parameters: {"model_name"=>"pages", "id"=>"2"}
80666
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80667
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
80668
+ PagePart Load (0.2ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
80669
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (7.6ms)
80670
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (10.7ms)
80671
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.7ms)
80672
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
80673
+ Completed 200 OK in 22ms (Views: 18.4ms | ActiveRecord: 0.3ms)
80674
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-02-04 19:00:39 +0200
80675
+ Processing by Sunrise::ManagerController#edit as HTML
80676
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
80677
+ Completed 401 Unauthorized in 0ms
80678
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 19:00:39 +0200
80679
+ Processing by Devise::SessionsController#new as HTML
80680
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.1ms)
80681
+ Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms)
80682
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
80683
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
80684
+  (201.8ms) TRUNCATE TABLE `assets`;
80685
+  (264.2ms) TRUNCATE TABLE `audits`;
80686
+  (340.0ms) TRUNCATE TABLE `meta_tags`;
80687
+  (184.3ms) TRUNCATE TABLE `page_parts`;
80688
+  (236.9ms) TRUNCATE TABLE `posts`;
80689
+  (138.8ms) TRUNCATE TABLE `settings`;
80690
+  (284.0ms) TRUNCATE TABLE `structures`;
80691
+  (353.5ms) TRUNCATE TABLE `users`;
80692
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
80693
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
80694
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
80695
+  (272.8ms) TRUNCATE TABLE `assets`;
80696
+  (298.4ms) TRUNCATE TABLE `audits`;
80697
+  (208.1ms) TRUNCATE TABLE `meta_tags`;
80698
+  (271.9ms) TRUNCATE TABLE `page_parts`;
80699
+  (237.6ms) TRUNCATE TABLE `posts`;
80700
+  (129.2ms) TRUNCATE TABLE `settings`;
80701
+  (376.4ms) TRUNCATE TABLE `structures`;
80702
+  (375.7ms) TRUNCATE TABLE `users`;
80703
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
80704
+  (0.1ms) BEGIN
80705
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing37@example.com' LIMIT 1
80706
+ 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-02-04 17:00:43', '2013-02-04 17:00:43', NULL, NULL, 'testing37@example.com', 'a210bbcbcd8791463931be12e7cf74ef126c5f33334c2fb8be5cff399d196777552853c7ef0d1ecfabb8e980938ebe170180e2db234d7fb2f2fd2c4c89b95201', 0, NULL, NULL, NULL, 'Admin', 'sCDoztLGqbz3g3emm2ma', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 17:00:43')
80707
+  (36.4ms) COMMIT
80708
+  (0.1ms) BEGIN
80709
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
80710
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:00:43', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 17:00:43')
80711
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
80712
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
80713
+  (36.7ms) COMMIT
80714
+  (0.1ms) BEGIN
80715
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
80716
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:00:43', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug12', 'Structure', '2013-02-04 17:00:43')
80717
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
80718
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
80719
+ 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`
80720
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
80721
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80722
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80723
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
80724
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80725
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
80726
+ Structure Load (0.2ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
80727
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80728
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80729
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
80730
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80731
+  (49.5ms) COMMIT
80732
+  (0.1ms) BEGIN
80733
+ SQL (0.4ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-02-04 17:00:43', 1, 2, 'Default title', '2013-02-04 17:00:43')
80734
+  (29.7ms) COMMIT
80735
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 19:00:43 +0200
80736
+  (0.1ms) BEGIN
80737
+  (0.1ms) COMMIT
80738
+  (0.1ms) BEGIN
80739
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 17:00:43', `current_sign_in_at` = '2013-02-04 17:00:43', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 17:00:43' WHERE `users`.`id` = 1
80740
+  (35.9ms) COMMIT
80741
+ Processing by Sunrise::ManagerController#index as HTML
80742
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
80743
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80744
+ Post Load (0.7ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
80745
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (6.4ms)
80746
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
80747
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
80748
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
80749
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
80750
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.5ms)
80751
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (16.7ms)
80752
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.6ms)
80753
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.6ms)
80754
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.8ms)
80755
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (0.9ms)
80756
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.6ms)
80757
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (22.1ms)
80758
+ Completed 200 OK in 61ms (Views: 51.7ms | ActiveRecord: 1.6ms)
80759
+ Started DELETE "/manage/posts/1/delete?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 19:00:43 +0200
80760
+ Processing by Sunrise::ManagerController#destroy as HTML
80761
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
80762
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
80763
+ Post Load (0.4ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
80764
+  (0.1ms) BEGIN
80765
+ SQL (0.3ms) DELETE FROM `posts` WHERE `posts`.`id` = 1
80766
+  (15.6ms) COMMIT
80767
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80768
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
80769
+ Completed 302 Found in 28ms (ActiveRecord: 0.0ms)
80770
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 19:00:43 +0200
80771
+ Processing by Sunrise::ManagerController#index as HTML
80772
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
80773
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
80774
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80775
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
80776
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (0.0ms)
80777
+  (0.4ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
80778
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.1ms)
80779
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
80780
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
80781
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.5ms)
80782
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.4ms)
80783
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.6ms)
80784
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.6ms)
80785
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.6ms)
80786
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (0.9ms)
80787
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.5ms)
80788
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (15.5ms)
80789
+ Completed 200 OK in 35ms (Views: 27.6ms | ActiveRecord: 1.2ms)
80790
+ Post Load (0.4ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
80791
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 19:00:43 +0200
80792
+ Processing by Sunrise::ManagerController#index as HTML
80793
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
80794
+ Completed 401 Unauthorized in 0ms
80795
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 19:00:43 +0200
80796
+ Processing by Devise::SessionsController#new as HTML
80797
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.0ms)
80798
+ Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms)
80799
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
80800
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
80801
+  (204.5ms) TRUNCATE TABLE `assets`;
80802
+  (329.4ms) TRUNCATE TABLE `audits`;
80803
+  (316.8ms) TRUNCATE TABLE `meta_tags`;
80804
+  (299.6ms) TRUNCATE TABLE `page_parts`;
80805
+  (147.6ms) TRUNCATE TABLE `posts`;
80806
+  (326.8ms) TRUNCATE TABLE `settings`;
80807
+  (196.6ms) TRUNCATE TABLE `structures`;
80808
+  (410.9ms) TRUNCATE TABLE `users`;
80809
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
80810
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
80811
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
80812
+  (293.2ms) TRUNCATE TABLE `assets`;
80813
+  (309.2ms) TRUNCATE TABLE `audits`;
80814
+  (295.2ms) TRUNCATE TABLE `meta_tags`;
80815
+  (162.2ms) TRUNCATE TABLE `page_parts`;
80816
+  (239.0ms) TRUNCATE TABLE `posts`;
80817
+  (150.1ms) TRUNCATE TABLE `settings`;
80818
+  (250.7ms) TRUNCATE TABLE `structures`;
80819
+  (411.2ms) TRUNCATE TABLE `users`;
80820
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
80821
+  (0.1ms) BEGIN
80822
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing38@example.com' LIMIT 1
80823
+ 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-02-04 17:00:48', '2013-02-04 17:00:48', NULL, NULL, 'testing38@example.com', '87d15366f3f3d5571d89363369d33bd1669bb5df1211a1bea798121c888d640cc7b087e4c708f8e3c15136062103cb50f16e2eb80fba59305a6d3c60866fbef6', 0, NULL, NULL, NULL, 'Admin', 'RBBcsqevyAC2eAxfwGA1', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 17:00:48')
80824
+  (47.4ms) COMMIT
80825
+  (0.1ms) BEGIN
80826
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
80827
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:00:48', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 17:00:48')
80828
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
80829
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
80830
+  (36.4ms) COMMIT
80831
+  (0.1ms) BEGIN
80832
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
80833
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:00:48', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug13', 'Structure', '2013-02-04 17:00:48')
80834
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
80835
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
80836
+ 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`
80837
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
80838
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80839
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80840
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
80841
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80842
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
80843
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
80844
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80845
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80846
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
80847
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80848
+  (36.7ms) COMMIT
80849
+  (0.1ms) BEGIN
80850
+ SQL (0.4ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-02-04 17:00:48', 1, 2, 'Default title', '2013-02-04 17:00:48')
80851
+  (42.1ms) COMMIT
80852
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 19:00:48 +0200
80853
+  (0.1ms) BEGIN
80854
+  (0.1ms) COMMIT
80855
+  (0.1ms) BEGIN
80856
+  (0.6ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 17:00:48', `current_sign_in_at` = '2013-02-04 17:00:48', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 17:00:48' WHERE `users`.`id` = 1
80857
+  (46.3ms) COMMIT
80858
+ Processing by Sunrise::ManagerController#edit as HTML
80859
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
80860
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
80861
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
80862
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.2ms)
80863
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.3ms)
80864
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
80865
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
80866
+ Completed 200 OK in 24ms (Views: 17.3ms | ActiveRecord: 0.5ms)
80867
+ Started PUT "/manage/posts/1/edit" for 127.0.0.1 at 2013-02-04 19:00:48 +0200
80868
+ Processing by Sunrise::ManagerController#update as HTML
80869
+ 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"}
80870
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
80871
+ Post Load (0.2ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
80872
+  (0.1ms) BEGIN
80873
+  (0.4ms) UPDATE `posts` SET `title` = 'Title updated', `content` = 'Tra la la', `is_visible` = 0, `updated_at` = '2013-02-04 17:00:48' WHERE `posts`.`id` = 1
80874
+  (23.4ms) COMMIT
80875
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80876
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
80877
+ Completed 302 Found in 38ms (ActiveRecord: 0.0ms)
80878
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 19:00:48 +0200
80879
+ Processing by Sunrise::ManagerController#index as HTML
80880
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
80881
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
80882
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80883
+ Post Load (0.6ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
80884
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (4.7ms)
80885
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
80886
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.1ms)
80887
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
80888
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
80889
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.6ms)
80890
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.7ms)
80891
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.6ms)
80892
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.7ms)
80893
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.8ms)
80894
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (1.0ms)
80895
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.9ms)
80896
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (16.2ms)
80897
+ Completed 200 OK in 42ms (Views: 33.7ms | ActiveRecord: 1.4ms)
80898
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
80899
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80900
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 19:00:48 +0200
80901
+  (0.1ms) BEGIN
80902
+  (0.1ms) COMMIT
80903
+  (0.1ms) BEGIN
80904
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-02-04 17:00:48' WHERE `users`.`id` = 1
80905
+  (22.3ms) COMMIT
80906
+ Processing by Sunrise::ManagerController#edit as HTML
80907
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
80908
+ Post Load (0.2ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
80909
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
80910
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.5ms)
80911
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.6ms)
80912
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
80913
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
80914
+ Completed 200 OK in 21ms (Views: 17.7ms | ActiveRecord: 0.2ms)
80915
+ Started PUT "/manage/posts/1/edit" for 127.0.0.1 at 2013-02-04 19:00:48 +0200
80916
+ Processing by Sunrise::ManagerController#update as HTML
80917
+ 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"}
80918
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
80919
+ Post Load (0.2ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
80920
+  (0.1ms) BEGIN
80921
+  (0.1ms) COMMIT
80922
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80923
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
80924
+ Completed 302 Found in 10ms (ActiveRecord: 0.0ms)
80925
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 19:00:48 +0200
80926
+ Processing by Sunrise::ManagerController#index as HTML
80927
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
80928
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
80929
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80930
+ Post Load (0.2ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
80931
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (4.8ms)
80932
+  (0.2ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
80933
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.3ms)
80934
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
80935
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
80936
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.8ms)
80937
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.6ms)
80938
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.7ms)
80939
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.6ms)
80940
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.6ms)
80941
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (0.9ms)
80942
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.5ms)
80943
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (15.7ms)
80944
+ Completed 200 OK in 40ms (Views: 33.2ms | ActiveRecord: 0.7ms)
80945
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 19:00:48 +0200
80946
+ Processing by Sunrise::ManagerController#edit as HTML
80947
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
80948
+ Completed 401 Unauthorized in 0ms
80949
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 19:00:48 +0200
80950
+ Processing by Devise::SessionsController#new as HTML
80951
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.2ms)
80952
+ Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms)
80953
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
80954
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
80955
+  (938.9ms) TRUNCATE TABLE `assets`;
80956
+  (559.7ms) TRUNCATE TABLE `audits`;
80957
+  (251.2ms) TRUNCATE TABLE `meta_tags`;
80958
+  (294.8ms) TRUNCATE TABLE `page_parts`;
80959
+  (116.7ms) TRUNCATE TABLE `posts`;
80960
+  (282.8ms) TRUNCATE TABLE `settings`;
80961
+  (196.5ms) TRUNCATE TABLE `structures`;
80962
+  (352.6ms) TRUNCATE TABLE `users`;
80963
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
80964
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
80965
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
80966
+  (285.0ms) TRUNCATE TABLE `assets`;
80967
+  (411.2ms) TRUNCATE TABLE `audits`;
80968
+  (438.7ms) TRUNCATE TABLE `meta_tags`;
80969
+  (184.0ms) TRUNCATE TABLE `page_parts`;
80970
+  (249.0ms) TRUNCATE TABLE `posts`;
80971
+  (150.3ms) TRUNCATE TABLE `settings`;
80972
+  (305.6ms) TRUNCATE TABLE `structures`;
80973
+  (365.8ms) TRUNCATE TABLE `users`;
80974
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
80975
+  (0.1ms) BEGIN
80976
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing39@example.com' LIMIT 1
80977
+ 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-02-04 17:00:54', '2013-02-04 17:00:54', NULL, NULL, 'testing39@example.com', '19108ea7349a1e75399a12fbfd47c2eb6488d6f4f72c3b08e72371669d07b102a2604300485a893bd70fe7e4b5ec5d5feac5e0ee6e829d51c7f3339d0b059729', 0, NULL, NULL, NULL, 'Admin', '7RCBvjj8uZpS1eqLAxiJ', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 17:00:54')
80978
+  (37.8ms) COMMIT
80979
+  (0.1ms) BEGIN
80980
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
80981
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:00:54', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 17:00:54')
80982
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
80983
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
80984
+  (36.8ms) COMMIT
80985
+  (0.1ms) BEGIN
80986
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
80987
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:00:54', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug14', 'Structure', '2013-02-04 17:00:54')
80988
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
80989
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
80990
+ 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`
80991
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
80992
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80993
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80994
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
80995
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
80996
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
80997
+ Structure Load (0.2ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
80998
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
80999
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
81000
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
81001
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
81002
+  (135.4ms) COMMIT
81003
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 19:00:54 +0200
81004
+  (0.1ms) BEGIN
81005
+  (0.1ms) COMMIT
81006
+  (0.1ms) BEGIN
81007
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 17:00:54', `current_sign_in_at` = '2013-02-04 17:00:54', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 17:00:54' WHERE `users`.`id` = 1
81008
+  (54.1ms) COMMIT
81009
+ Processing by Sunrise::ManagerController#new as HTML
81010
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
81011
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
81012
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
81013
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (12.5ms)
81014
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (15.8ms)
81015
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.9ms)
81016
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.5ms)
81017
+ Completed 200 OK in 34ms (Views: 24.3ms | ActiveRecord: 0.5ms)
81018
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 19:00:54 +0200
81019
+  (0.1ms) BEGIN
81020
+  (0.1ms) COMMIT
81021
+  (0.1ms) BEGIN
81022
+  (0.5ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-02-04 17:00:54' WHERE `users`.`id` = 1
81023
+  (45.9ms) COMMIT
81024
+ Processing by Sunrise::ManagerController#new as HTML
81025
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
81026
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
81027
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
81028
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.1ms)
81029
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.2ms)
81030
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.7ms)
81031
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.5ms)
81032
+ Completed 200 OK in 21ms (Views: 17.0ms | ActiveRecord: 0.2ms)
81033
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 19:00:54 +0200
81034
+  (0.1ms) BEGIN
81035
+  (0.1ms) COMMIT
81036
+  (0.1ms) BEGIN
81037
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 3, `updated_at` = '2013-02-04 17:00:54' WHERE `users`.`id` = 1
81038
+  (28.6ms) COMMIT
81039
+ Processing by Sunrise::ManagerController#new as HTML
81040
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
81041
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
81042
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
81043
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.0ms)
81044
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (8.9ms)
81045
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.7ms)
81046
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.5ms)
81047
+ Completed 200 OK in 21ms (Views: 16.6ms | ActiveRecord: 0.2ms)
81048
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
81049
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
81050
+  (312.5ms) TRUNCATE TABLE `assets`;
81051
+  (303.1ms) TRUNCATE TABLE `audits`;
81052
+  (167.5ms) TRUNCATE TABLE `meta_tags`;
81053
+  (296.0ms) TRUNCATE TABLE `page_parts`;
81054
+  (161.0ms) TRUNCATE TABLE `posts`;
81055
+  (215.0ms) TRUNCATE TABLE `settings`;
81056
+  (307.1ms) TRUNCATE TABLE `structures`;
81057
+  (306.6ms) TRUNCATE TABLE `users`;
81058
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
81059
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
81060
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
81061
+  (187.4ms) TRUNCATE TABLE `assets`;
81062
+  (286.4ms) TRUNCATE TABLE `audits`;
81063
+  (340.5ms) TRUNCATE TABLE `meta_tags`;
81064
+  (296.7ms) TRUNCATE TABLE `page_parts`;
81065
+  (139.0ms) TRUNCATE TABLE `posts`;
81066
+  (228.6ms) TRUNCATE TABLE `settings`;
81067
+  (307.9ms) TRUNCATE TABLE `structures`;
81068
+  (410.3ms) TRUNCATE TABLE `users`;
81069
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
81070
+  (0.1ms) BEGIN
81071
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing40@example.com' LIMIT 1
81072
+ 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-02-04 17:00:59', '2013-02-04 17:00:59', NULL, NULL, 'testing40@example.com', 'c4806270b5a18a3718c424617bca70ed16c663f4b21b9c56ded0ba2917926f545faf80cccd8316a4eb95e6d147bcbcaf44d4366253be8e93f73c41296f02e890', 0, NULL, NULL, NULL, 'Admin', '11S6guU2XmnoqgRNz4os', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 17:00:59')
81073
+  (47.6ms) COMMIT
81074
+  (0.1ms) BEGIN
81075
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
81076
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:00:59', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 17:00:59')
81077
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
81078
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
81079
+  (36.5ms) COMMIT
81080
+  (0.1ms) BEGIN
81081
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
81082
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:00:59', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug15', 'Structure', '2013-02-04 17:00:59')
81083
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
81084
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
81085
+ 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`
81086
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
81087
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
81088
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
81089
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
81090
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
81091
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
81092
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
81093
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
81094
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
81095
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
81096
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
81097
+  (50.4ms) COMMIT
81098
+  (0.1ms) BEGIN
81099
+ SQL (0.3ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-02-04 17:00:59', 1, 2, 'Default title', '2013-02-04 17:00:59')
81100
+  (40.7ms) COMMIT
81101
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 19:00:59 +0200
81102
+  (0.1ms) BEGIN
81103
+  (0.1ms) COMMIT
81104
+  (0.1ms) BEGIN
81105
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 17:00:59', `current_sign_in_at` = '2013-02-04 17:00:59', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 17:00:59' WHERE `users`.`id` = 1
81106
+  (36.0ms) COMMIT
81107
+ Processing by Sunrise::ManagerController#index as HTML
81108
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
81109
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
81110
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
81111
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (4.7ms)
81112
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
81113
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
81114
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
81115
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
81116
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.4ms)
81117
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.1ms)
81118
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.6ms)
81119
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.6ms)
81120
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.6ms)
81121
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (0.9ms)
81122
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.5ms)
81123
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (15.3ms)
81124
+ Completed 200 OK in 39ms (Views: 32.4ms | ActiveRecord: 1.4ms)
81125
+  (0.1ms) BEGIN
81126
+ SQL (0.4ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-02-04 17:00:59', 1, 2, 'Good day', '2013-02-04 17:00:59')
81127
+  (26.1ms) COMMIT
81128
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 19:00:59 +0200
81129
+  (0.1ms) BEGIN
81130
+  (0.1ms) COMMIT
81131
+  (0.1ms) BEGIN
81132
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-02-04 17:00:59' WHERE `users`.`id` = 1
81133
+  (36.8ms) COMMIT
81134
+ Processing by Sunrise::ManagerController#index as HTML
81135
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
81136
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
81137
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
81138
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (8.3ms)
81139
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
81140
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
81141
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
81142
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
81143
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.5ms)
81144
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.2ms)
81145
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.6ms)
81146
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.6ms)
81147
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.6ms)
81148
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (0.9ms)
81149
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.4ms)
81150
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (15.2ms)
81151
+ Completed 200 OK in 42ms (Views: 36.2ms | ActiveRecord: 1.2ms)
81152
+ 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-02-04 19:00:59 +0200
81153
+ Processing by Sunrise::ManagerController#index as HTML
81154
+ Parameters: {"utf8"=>"✓", "parent_id"=>"2", "parent_type"=>"Structure", "search"=>{"title"=>"Good day", "structure_id"=>""}, "commit"=>"Search", "model_name"=>"posts"}
81155
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
81156
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
81157
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`title` = 'Good day' AND `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
81158
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (4.7ms)
81159
+  (0.7ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`title` = 'Good day' AND `posts`.`structure_id` = 2
81160
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
81161
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
81162
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
81163
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.5ms)
81164
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.9ms)
81165
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.6ms)
81166
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.7ms)
81167
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.6ms)
81168
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (0.9ms)
81169
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.5ms)
81170
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (16.1ms)
81171
+ Completed 200 OK in 43ms (Views: 33.5ms | ActiveRecord: 1.9ms)
81172
+ Started GET "/manage/posts?parent_id=1&parent_type=Structure" for 127.0.0.1 at 2013-02-04 19:00:59 +0200
81173
+  (0.1ms) BEGIN
81174
+  (0.1ms) COMMIT
81175
+  (0.1ms) BEGIN
81176
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 3, `updated_at` = '2013-02-04 17:00:59' WHERE `users`.`id` = 1
81177
+  (16.2ms) COMMIT
81178
+ Processing by Sunrise::ManagerController#index as HTML
81179
+ Parameters: {"parent_id"=>"1", "parent_type"=>"Structure", "model_name"=>"posts"}
81180
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
81181
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 1 LIMIT 25 OFFSET 0
81182
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (0.0ms)
81183
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 1
81184
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
81185
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
81186
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
81187
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.4ms)
81188
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.3ms)
81189
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.6ms)
81190
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.6ms)
81191
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.6ms)
81192
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (1.0ms)
81193
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.5ms)
81194
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (15.6ms)
81195
+ Completed 200 OK in 35ms (Views: 27.8ms | ActiveRecord: 1.5ms)
81196
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
81197
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
81198
+  (198.4ms) TRUNCATE TABLE `assets`;
81199
+  (286.3ms) TRUNCATE TABLE `audits`;
81200
+  (317.1ms) TRUNCATE TABLE `meta_tags`;
81201
+  (173.3ms) TRUNCATE TABLE `page_parts`;
81202
+  (273.4ms) TRUNCATE TABLE `posts`;
81203
+  (238.9ms) TRUNCATE TABLE `settings`;
81204
+  (196.5ms) TRUNCATE TABLE `structures`;
81205
+  (330.7ms) TRUNCATE TABLE `users`;
81206
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
81207
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
81208
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
81209
+  (351.5ms) TRUNCATE TABLE `assets`;
81210
+  (311.2ms) TRUNCATE TABLE `audits`;
81211
+  (339.6ms) TRUNCATE TABLE `meta_tags`;
81212
+  (352.6ms) TRUNCATE TABLE `page_parts`;
81213
+  (139.1ms) TRUNCATE TABLE `posts`;
81214
+  (228.3ms) TRUNCATE TABLE `settings`;
81215
+  (341.9ms) TRUNCATE TABLE `structures`;
81216
+  (410.7ms) TRUNCATE TABLE `users`;
81217
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
81218
+  (0.1ms) BEGIN
81219
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing41@example.com' LIMIT 1
81220
+ 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-02-04 17:01:04', '2013-02-04 17:01:04', NULL, NULL, 'testing41@example.com', '230f06de3520a21738796e15088ec73665096395c5dec5663bf54025a1e7e324cf9fdc49b092ec76d6acb147af703033e83f2a77f5c89a37786c73dbc9a2f477', 0, NULL, NULL, NULL, 'Admin', 'oUwZxDzqpxspAm5vxijL', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 17:01:04')
81221
+  (36.6ms) COMMIT
81222
+  (0.1ms) BEGIN
81223
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
81224
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:01:04', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 17:01:04')
81225
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
81226
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
81227
+  (36.4ms) COMMIT
81228
+  (0.1ms) BEGIN
81229
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
81230
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:01:04', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug16', 'Structure', '2013-02-04 17:01:04')
81231
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
81232
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
81233
+ 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`
81234
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
81235
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
81236
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
81237
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
81238
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
81239
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
81240
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
81241
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
81242
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
81243
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
81244
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
81245
+  (52.3ms) COMMIT
81246
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 19:01:04 +0200
81247
+  (0.1ms) BEGIN
81248
+  (0.1ms) COMMIT
81249
+  (0.1ms) BEGIN
81250
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 17:01:04', `current_sign_in_at` = '2013-02-04 17:01:04', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 17:01:04' WHERE `users`.`id` = 1
81251
+  (35.7ms) COMMIT
81252
+ Processing by Sunrise::ManagerController#new as HTML
81253
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
81254
+ Structure Load (15.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
81255
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
81256
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.5ms)
81257
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.7ms)
81258
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
81259
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.5ms)
81260
+ Completed 200 OK in 140ms (Views: 18.2ms | ActiveRecord: 15.6ms)
81261
+ Started POST "/manage/posts/new" for 127.0.0.1 at 2013-02-04 19:01:04 +0200
81262
+ Processing by Sunrise::ManagerController#create as HTML
81263
+ 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"}
81264
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
81265
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
81266
+  (0.1ms) BEGIN
81267
+ SQL (0.4ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long text', '2013-02-04 17:01:04', 1, 2, 'Good title', '2013-02-04 17:01:04')
81268
+  (30.2ms) COMMIT
81269
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
81270
+ Completed 302 Found in 42ms (ActiveRecord: 0.0ms)
81271
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 19:01:04 +0200
81272
+ Processing by Sunrise::ManagerController#index as HTML
81273
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
81274
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
81275
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
81276
+ Post Load (0.6ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
81277
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (4.7ms)
81278
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
81279
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
81280
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
81281
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
81282
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.7ms)
81283
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.6ms)
81284
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.7ms)
81285
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.6ms)
81286
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.6ms)
81287
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (1.0ms)
81288
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.6ms)
81289
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (16.0ms)
81290
+ Completed 200 OK in 41ms (Views: 33.4ms | ActiveRecord: 1.4ms)
81291
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` ORDER BY `posts`.`id` DESC LIMIT 1
81292
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
81293
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 19:01:04 +0200
81294
+  (0.1ms) BEGIN
81295
+  (0.1ms) COMMIT
81296
+  (0.1ms) BEGIN
81297
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-02-04 17:01:04' WHERE `users`.`id` = 1
81298
+  (15.2ms) COMMIT
81299
+ Processing by Sunrise::ManagerController#new as HTML
81300
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
81301
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
81302
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
81303
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.3ms)
81304
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.4ms)
81305
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
81306
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.5ms)
81307
+ Completed 200 OK in 22ms (Views: 17.7ms | ActiveRecord: 0.2ms)
81308
+ Started POST "/manage/posts/new" for 127.0.0.1 at 2013-02-04 19:01:04 +0200
81309
+ Processing by Sunrise::ManagerController#create as HTML
81310
+ 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"}
81311
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
81312
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
81313
+  (0.1ms) BEGIN
81314
+ SQL (0.4ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long text', '2013-02-04 17:01:04', 1, 2, 'Good title', '2013-02-04 17:01:04')
81315
+  (43.2ms) COMMIT
81316
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
81317
+ Completed 302 Found in 54ms (ActiveRecord: 0.0ms)
81318
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 19:01:04 +0200
81319
+ Processing by Sunrise::ManagerController#index as HTML
81320
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
81321
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
81322
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
81323
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
81324
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (8.2ms)
81325
+  (0.6ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
81326
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (5.4ms)
81327
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
81328
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
81329
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.5ms)
81330
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.5ms)
81331
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.6ms)
81332
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.6ms)
81333
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.6ms)
81334
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (0.9ms)
81335
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.4ms)
81336
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (15.6ms)
81337
+ Completed 200 OK in 46ms (Views: 39.1ms | ActiveRecord: 1.5ms)
81338
+ Post Load (0.4ms) SELECT `posts`.* FROM `posts` ORDER BY `posts`.`id` DESC LIMIT 1
81339
+ Started GET "/manage/posts/new" for 127.0.0.1 at 2013-02-04 19:01:04 +0200
81340
+ Processing by Sunrise::ManagerController#new as HTML
81341
+ Parameters: {"model_name"=>"posts"}
81342
+ Completed 401 Unauthorized in 0ms
81343
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 19:01:04 +0200
81344
+ Processing by Devise::SessionsController#new as HTML
81345
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.0ms)
81346
+ Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms)
81347
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
81348
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
81349
+  (1345.7ms) TRUNCATE TABLE `assets`;
81350
+  (381.9ms) TRUNCATE TABLE `audits`;
81351
+  (162.2ms) TRUNCATE TABLE `meta_tags`;
81352
+  (217.3ms) TRUNCATE TABLE `page_parts`;
81353
+  (230.1ms) TRUNCATE TABLE `posts`;
81354
+  (171.9ms) TRUNCATE TABLE `settings`;
81355
+  (341.2ms) TRUNCATE TABLE `structures`;
81356
+  (321.5ms) TRUNCATE TABLE `users`;
81357
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
81358
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
81359
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
81360
+  (317.6ms) TRUNCATE TABLE `assets`;
81361
+  (319.4ms) TRUNCATE TABLE `audits`;
81362
+  (151.0ms) TRUNCATE TABLE `meta_tags`;
81363
+  (239.2ms) TRUNCATE TABLE `page_parts`;
81364
+  (250.4ms) TRUNCATE TABLE `posts`;
81365
+  (275.6ms) TRUNCATE TABLE `settings`;
81366
+  (361.1ms) TRUNCATE TABLE `structures`;
81367
+  (364.6ms) TRUNCATE TABLE `users`;
81368
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
81369
+  (0.1ms) BEGIN
81370
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing42@example.com' LIMIT 1
81371
+ 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-02-04 17:01:10', '2013-02-04 17:01:10', NULL, NULL, 'testing42@example.com', '8c9a2a7b617673769c1cab76dc1012a94f7ef95ec7b90ec4502e9f9be0f296e7ee145e184e70fa485241626fd958cc959dc325b533674166f035a9cf92a71671', 0, NULL, NULL, NULL, 'Admin', 'ojuzzgsSKcR31DyzbYLo', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 17:01:10')
81372
+  (47.6ms) COMMIT
81373
+  (0.1ms) BEGIN
81374
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
81375
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:01:10', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 17:01:10')
81376
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
81377
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
81378
+  (47.8ms) COMMIT
81379
+  (0.1ms) BEGIN
81380
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
81381
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:01:10', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug17', 'Structure', '2013-02-04 17:01:10')
81382
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
81383
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
81384
+ 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`
81385
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
81386
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
81387
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
81388
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
81389
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
81390
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
81391
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
81392
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
81393
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
81394
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
81395
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
81396
+  (50.0ms) COMMIT
81397
+  (0.1ms) BEGIN
81398
+ SQL (0.4ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-02-04 17:01:10', 1, 2, 'Default title', '2013-02-04 17:01:10')
81399
+  (39.8ms) COMMIT
81400
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 19:01:10 +0200
81401
+  (0.2ms) BEGIN
81402
+  (1.3ms) COMMIT
81403
+  (0.1ms) BEGIN
81404
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 17:01:10', `current_sign_in_at` = '2013-02-04 17:01:10', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 17:01:10' WHERE `users`.`id` = 1
81405
+  (33.5ms) COMMIT
81406
+ Processing by Sunrise::ManagerController#edit as HTML
81407
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
81408
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
81409
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
81410
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (14.6ms)
81411
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (17.9ms)
81412
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
81413
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
81414
+ Completed 200 OK in 30ms (Views: 25.9ms | ActiveRecord: 0.5ms)
81415
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 19:01:10 +0200
81416
+  (0.1ms) BEGIN
81417
+  (0.1ms) COMMIT
81418
+  (0.1ms) BEGIN
81419
+  (0.4ms) UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-02-04 17:01:10' WHERE `users`.`id` = 1
81420
+  (50.8ms) COMMIT
81421
+ Processing by Sunrise::ManagerController#edit as HTML
81422
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
81423
+ Post Load (0.3ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
81424
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
81425
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.1ms)
81426
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.3ms)
81427
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.7ms)
81428
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
81429
+ Completed 200 OK in 22ms (Views: 18.1ms | ActiveRecord: 0.3ms)
81430
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 19:01:10 +0200
81431
+ Processing by Sunrise::ManagerController#edit as HTML
81432
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
81433
+ Completed 401 Unauthorized in 1ms
81434
+ Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 19:01:10 +0200
81435
+ Processing by Devise::SessionsController#new as HTML
81436
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.0ms)
81437
+ Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.0ms)
81438
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
81439
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
81440
+  (164.3ms) TRUNCATE TABLE `assets`;
81441
+  (308.7ms) TRUNCATE TABLE `audits`;
81442
+  (294.7ms) TRUNCATE TABLE `meta_tags`;
81443
+  (173.2ms) TRUNCATE TABLE `page_parts`;
81444
+  (226.9ms) TRUNCATE TABLE `posts`;
81445
+  (150.1ms) TRUNCATE TABLE `settings`;
81446
+  (305.6ms) TRUNCATE TABLE `structures`;
81447
+  (364.6ms) TRUNCATE TABLE `users`;
81448
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
81449
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
81450
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
81451
+  (328.2ms) TRUNCATE TABLE `assets`;
81452
+  (305.4ms) TRUNCATE TABLE `audits`;
81453
+  (154.2ms) TRUNCATE TABLE `meta_tags`;
81454
+  (328.0ms) TRUNCATE TABLE `page_parts`;
81455
+  (296.8ms) TRUNCATE TABLE `posts`;
81456
+  (116.7ms) TRUNCATE TABLE `settings`;
81457
+  (318.2ms) TRUNCATE TABLE `structures`;
81458
+  (455.5ms) TRUNCATE TABLE `users`;
81459
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
81460
+  (0.1ms) BEGIN
81461
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing43@example.com' LIMIT 1
81462
+ 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-02-04 17:01:15', '2013-02-04 17:01:15', NULL, NULL, 'testing43@example.com', 'abf192a82668b3788e1b8b96bdcc3efbf4dc3a0af34555f5d22d4977108d87d3d148ad2c247cd60bea44d27bae567fac1c28af72b1a41d180e12c9544bf38311', 0, NULL, NULL, NULL, 'Admin', 'oAbx1SWKaf47pTEbVZne', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 17:01:15')
81463
+  (36.4ms) COMMIT
81464
+  (0.1ms) BEGIN
81465
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
81466
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:01:15', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 17:01:15')
81467
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
81468
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
81469
+  (36.2ms) COMMIT
81470
+  (0.1ms) BEGIN
81471
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
81472
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:01:15', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug18', 'Structure', '2013-02-04 17:01:15')
81473
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
81474
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
81475
+ 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`
81476
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
81477
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
81478
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
81479
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
81480
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
81481
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
81482
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
81483
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
81484
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
81485
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
81486
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
81487
+  (49.0ms) COMMIT
81488
+ Started GET "/manage/services.json" for 127.0.0.1 at 2013-02-04 19:01:15 +0200
81489
+  (0.1ms) BEGIN
81490
+  (0.1ms) COMMIT
81491
+  (0.1ms) BEGIN
81492
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2013-02-04 17:01:15', `current_sign_in_at` = '2013-02-04 17:01:15', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 17:01:15' WHERE `users`.`id` = 1
81493
+  (36.1ms) COMMIT
81494
+ Processing by Sunrise::SharedController#services as JSON
81495
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft` LIMIT 1
81496
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
81497
+ Completed 200 OK in 67ms (Views: 53.2ms | ActiveRecord: 1.2ms)
81498
+ Started GET "/manage/services.json" for 127.0.0.1 at 2013-02-04 19:01:15 +0200
81499
+ Processing by Sunrise::SharedController#services as JSON
81500
+ Completed 401 Unauthorized in 0ms
81501
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
81502
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
81503
+  (189.8ms) TRUNCATE TABLE `assets`;
81504
+  (330.9ms) TRUNCATE TABLE `audits`;
81505
+  (285.2ms) TRUNCATE TABLE `meta_tags`;
81506
+  (272.7ms) TRUNCATE TABLE `page_parts`;
81507
+  (139.1ms) TRUNCATE TABLE `posts`;
81508
+  (294.2ms) TRUNCATE TABLE `settings`;
81509
+  (320.0ms) TRUNCATE TABLE `structures`;
81510
+  (398.9ms) TRUNCATE TABLE `users`;
81511
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
81512
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
81513
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
81514
+  (184.0ms) TRUNCATE TABLE `assets`;
81515
+  (355.5ms) TRUNCATE TABLE `audits`;
81516
+  (252.1ms) TRUNCATE TABLE `meta_tags`;
81517
+  (303.8ms) TRUNCATE TABLE `page_parts`;
81518
+  (117.1ms) TRUNCATE TABLE `posts`;
81519
+  (273.7ms) TRUNCATE TABLE `settings`;
81520
+  (307.1ms) TRUNCATE TABLE `structures`;
81521
+  (338.3ms) TRUNCATE TABLE `users`;
81522
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
81523
+  (2.2ms) SELECT @@FOREIGN_KEY_CHECKS
81524
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
81525
+  (1068.0ms) TRUNCATE TABLE `assets`;
81526
+  (335.0ms) TRUNCATE TABLE `audits`;
81527
+  (305.6ms) TRUNCATE TABLE `meta_tags`;
81528
+  (162.2ms) TRUNCATE TABLE `page_parts`;
81529
+  (226.3ms) TRUNCATE TABLE `posts`;
81530
+  (161.8ms) TRUNCATE TABLE `settings`;
81531
+  (283.3ms) TRUNCATE TABLE `structures`;
81532
+  (365.7ms) TRUNCATE TABLE `users`;
81533
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
81534
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
81535
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
81536
+  (328.7ms) TRUNCATE TABLE `assets`;
81537
+  (374.9ms) TRUNCATE TABLE `audits`;
81538
+  (390.9ms) TRUNCATE TABLE `meta_tags`;
81539
+  (294.7ms) TRUNCATE TABLE `page_parts`;
81540
+  (116.7ms) TRUNCATE TABLE `posts`;
81541
+  (294.0ms) TRUNCATE TABLE `settings`;
81542
+  (185.4ms) TRUNCATE TABLE `structures`;
81543
+  (341.7ms) TRUNCATE TABLE `users`;
81544
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
81545
+  (0.1ms) BEGIN
81546
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing44@example.com' LIMIT 1
81547
+ 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-02-04 17:01:25', '2013-02-04 17:01:25', NULL, NULL, 'testing44@example.com', '6acd7bc6201aeba231a652aec6758060ce47e38b2463f03254e30fa67407c5cf161c2a05feccb38c951fc744e9b2ce4c4cee61cd96522fd8203a5168dd8ad60a', 0, NULL, NULL, NULL, 'Test', 'P4W36581Jxu9DpqoFu92', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 17:01:25')
81548
+  (57.3ms) COMMIT
81549
+  (0.1ms) BEGIN
81550
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
81551
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:01:25', 0, 1, 1, 1, NULL, 2, NULL, 2, 'slug19', 'Structure', '2013-02-04 17:01:25')
81552
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
81553
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
81554
+  (46.4ms) COMMIT
81555
+  (0.1ms) BEGIN
81556
+ SQL (0.3ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-02-04 17:01:25', 1, 1, 'Default title', '2013-02-04 17:01:25')
81557
+  (53.2ms) COMMIT
81558
+  (0.1ms) BEGIN
81559
+  (0.5ms) SELECT MAX(`audits`.`version`) AS max_id FROM `audits` WHERE `audits`.`auditable_id` = 1 AND `audits`.`auditable_type` = 'Post'
81560
+ SQL (0.4ms) INSERT INTO `audits` (`action`, `associated_id`, `associated_type`, `auditable_id`, `auditable_type`, `audited_changes`, `comment`, `created_at`, `remote_address`, `user_id`, `user_type`, `username`, `version`) VALUES ('create', NULL, NULL, 1, 'Post', '---\n:title: Updated\n', NULL, '2013-02-04 17:01:25', NULL, 1, 'User', NULL, 1)
81561
+  (40.2ms) COMMIT
81562
+  (0.1ms) BEGIN
81563
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing45@example.com' LIMIT 1
81564
+ 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-02-04 17:01:25', '2013-02-04 17:01:25', NULL, NULL, 'testing45@example.com', 'eb4cb17c892136f3941a14154cfa31563aa721cfa2fd6c8f572c885b5815a3e92826ca6a1d41416ad3ff293f93cbb998fe620f172a0aa65d275ca0dd78f5b6be', 0, NULL, NULL, NULL, 'Admin', '8A5xvLhetugEkTTGft7Q', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 17:01:25')
81565
+  (60.0ms) COMMIT
81566
+ Processing by Sunrise::DashboardController#index as HTML
81567
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1
81568
+ Audited::Adapters::ActiveRecord::Audit Load (0.5ms) SELECT `audits`.* FROM `audits` ORDER BY version, audits.id asc LIMIT 50 OFFSET 0
81569
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` IN (1)
81570
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_event.html.erb (3.9ms)
81571
+  (0.5ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `audits` LIMIT 50 OFFSET 0) subquery_for_count 
81572
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
81573
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (1.3ms)
81574
+ Completed 200 OK in 34ms (Views: 20.2ms | ActiveRecord: 2.0ms)
81575
+ Processing by Sunrise::DashboardController#index as HTML
81576
+ Completed 401 Unauthorized in 1ms
81577
+ Processing by Sunrise::DashboardController#index as HTML
81578
+ Completed 401 Unauthorized in 1ms
81579
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
81580
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
81581
+  (296.7ms) TRUNCATE TABLE `assets`;
81582
+  (297.1ms) TRUNCATE TABLE `audits`;
81583
+  (162.2ms) TRUNCATE TABLE `meta_tags`;
81584
+  (239.4ms) TRUNCATE TABLE `page_parts`;
81585
+  (242.8ms) TRUNCATE TABLE `posts`;
81586
+  (146.4ms) TRUNCATE TABLE `settings`;
81587
+  (318.4ms) TRUNCATE TABLE `structures`;
81588
+  (422.6ms) TRUNCATE TABLE `users`;
81589
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
81590
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
81591
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
81592
+  (462.1ms) TRUNCATE TABLE `assets`;
81593
+  (296.9ms) TRUNCATE TABLE `audits`;
81594
+  (139.9ms) TRUNCATE TABLE `meta_tags`;
81595
+  (229.5ms) TRUNCATE TABLE `page_parts`;
81596
+  (318.4ms) TRUNCATE TABLE `posts`;
81597
+  (139.0ms) TRUNCATE TABLE `settings`;
81598
+  (274.5ms) TRUNCATE TABLE `structures`;
81599
+  (365.4ms) TRUNCATE TABLE `users`;
81600
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
81601
+  (0.1ms) BEGIN
81602
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
81603
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:01:29', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 17:01:29')
81604
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
81605
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
81606
+  (36.1ms) COMMIT
81607
+  (0.1ms) BEGIN
81608
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
81609
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:01:29', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug20', 'Structure', '2013-02-04 17:01:29')
81610
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
81611
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
81612
+ 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`
81613
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
81614
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
81615
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
81616
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
81617
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
81618
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
81619
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
81620
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
81621
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
81622
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
81623
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
81624
+  (39.9ms) COMMIT
81625
+  (0.1ms) BEGIN
81626
+ User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing46@example.com' LIMIT 1
81627
+ 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-02-04 17:01:29', '2013-02-04 17:01:29', NULL, NULL, 'testing46@example.com', '3dbb772056138506b6b7e4cf99b6ae3a59f07e97fded4cb7b328d80cc3dd3128a4a102314d5ed46a81d2959a331c4dfb0fd45b0d5dbe250777b493dbb01e94cc', 0, NULL, NULL, NULL, 'Admin', 'zmxyiCD6gqHxQWefkhqN', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 17:01:29')
81628
+  (37.3ms) COMMIT
81629
+ Processing by Sunrise::SharedController#services as JSON
81630
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
81631
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft` LIMIT 1
81632
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
81633
+ Completed 200 OK in 19ms (Views: 3.8ms | ActiveRecord: 1.7ms)
81634
+ Processing by Sunrise::SharedController#services as JSON
81635
+ Completed 401 Unauthorized in 1ms
81636
+ Processing by Sunrise::SharedController#services as HTML
81637
+ Completed 401 Unauthorized in 1ms
81638
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
81639
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
81640
+  (301.1ms) TRUNCATE TABLE `assets`;
81641
+  (306.2ms) TRUNCATE TABLE `audits`;
81642
+  (154.4ms) TRUNCATE TABLE `meta_tags`;
81643
+  (307.1ms) TRUNCATE TABLE `page_parts`;
81644
+  (239.1ms) TRUNCATE TABLE `posts`;
81645
+  (116.8ms) TRUNCATE TABLE `settings`;
81646
+  (273.8ms) TRUNCATE TABLE `structures`;
81647
+  (445.0ms) TRUNCATE TABLE `users`;
81648
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
81649
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
81650
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
81651
+  (317.5ms) TRUNCATE TABLE `assets`;
81652
+  (341.8ms) TRUNCATE TABLE `audits`;
81653
+  (242.2ms) TRUNCATE TABLE `meta_tags`;
81654
+  (237.7ms) TRUNCATE TABLE `page_parts`;
81655
+  (249.5ms) TRUNCATE TABLE `posts`;
81656
+  (128.3ms) TRUNCATE TABLE `settings`;
81657
+  (321.7ms) TRUNCATE TABLE `structures`;
81658
+  (1240.8ms) TRUNCATE TABLE `users`;
81659
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
81660
+  (0.1ms) BEGIN
81661
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing47@example.com' LIMIT 1
81662
+ 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-02-04 17:01:35', '2013-02-04 17:01:35', NULL, NULL, 'testing47@example.com', 'f27632ce66194420125b3f42efd37ba243984730809e269441eab0178c42f756a87706e4c44fbf9a21f670dd5426d3493350b9292ff311280d11651bae25868c', 0, NULL, NULL, NULL, 'Admin', 'swYBNyyGVJoYy9cX7vjP', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 17:01:35')
81663
+  (36.3ms) COMMIT
81664
+ Processing by Sunrise::SettingsController#edit as HTML
81665
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
81666
+ Settings Load (0.4ms) SELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL
81667
+ Settings Load (0.5ms) SELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL AND `settings`.`var` = 'some_setting' LIMIT 1
81668
+ Settings Load (0.5ms) SELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL AND `settings`.`var` = 'some_setting2' LIMIT 1
81669
+ Settings Load (0.4ms) SELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL AND `settings`.`var` = 'persisted?' LIMIT 1
81670
+ Rendered /var/www/gems/sunrise/app/views/sunrise/settings/_form.html.erb (14.2ms)
81671
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.1ms)
81672
+ Rendered /var/www/gems/sunrise/app/views/sunrise/settings/_header_edit.html.erb (1.7ms)
81673
+ Completed 200 OK in 269ms (Views: 248.8ms | ActiveRecord: 3.9ms)
81674
+ Processing by Sunrise::SettingsController#update as HTML
81675
+ Parameters: {"settings"=>{"some_setting"=>"blablabla"}}
81676
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
81677
+ 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
81678
+  (0.1ms) BEGIN
81679
+ SQL (42.8ms) INSERT INTO `settings` (`created_at`, `target_id`, `target_type`, `updated_at`, `value`, `var`) VALUES ('2013-02-04 17:01:35', NULL, NULL, '2013-02-04 17:01:35', '--- blablabla\n...\n', 'some_setting')
81680
+  (52.9ms) COMMIT
81681
+ Redirected to http://test.host/manage/
81682
+ Completed 302 Found in 141ms (ActiveRecord: 96.3ms)
81683
+ Processing by Sunrise::SettingsController#update as HTML
81684
+ Completed 401 Unauthorized in 1ms
81685
+ Processing by Sunrise::SettingsController#edit as HTML
81686
+ Completed 401 Unauthorized in 1ms
81687
+ Processing by Sunrise::SettingsController#edit as HTML
81688
+ Completed 401 Unauthorized in 1ms
81689
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
81690
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
81691
+  (350.1ms) TRUNCATE TABLE `assets`;
81692
+  (308.0ms) TRUNCATE TABLE `audits`;
81693
+  (273.3ms) TRUNCATE TABLE `meta_tags`;
81694
+  (151.1ms) TRUNCATE TABLE `page_parts`;
81695
+  (316.4ms) TRUNCATE TABLE `posts`;
81696
+  (116.6ms) TRUNCATE TABLE `settings`;
81697
+  (276.2ms) TRUNCATE TABLE `structures`;
81698
+  (399.6ms) TRUNCATE TABLE `users`;
81699
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
81700
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
81701
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
81702
+  (306.4ms) TRUNCATE TABLE `assets`;
81703
+  (352.4ms) TRUNCATE TABLE `audits`;
81704
+  (297.6ms) TRUNCATE TABLE `meta_tags`;
81705
+  (171.3ms) TRUNCATE TABLE `page_parts`;
81706
+  (250.1ms) TRUNCATE TABLE `posts`;
81707
+  (116.9ms) TRUNCATE TABLE `settings`;
81708
+  (306.8ms) TRUNCATE TABLE `structures`;
81709
+  (398.2ms) TRUNCATE TABLE `users`;
81710
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
81711
+  (0.1ms) BEGIN
81712
+ User Exists (0.5ms) SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing48@example.com' LIMIT 1
81713
+ 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-02-04 17:01:40', '2013-02-04 17:01:40', NULL, NULL, 'testing48@example.com', '2c7423cdc497be97529d41681f8c2cb0f743548b4af0a04f7bb11a826ff46609f6ef618003580f3ac5c9b940f4c32ceae53b8cd07af73a3a46e5338fc79569bc', 0, NULL, NULL, NULL, 'Admin', 'MpPbE5pN5QxvFksAfxTo', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 17:01:40')
81714
+  (60.1ms) COMMIT
81715
+  (0.1ms) BEGIN
81716
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
81717
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:01:40', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 17:01:40')
81718
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
81719
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
81720
+  (35.3ms) COMMIT
81721
+  (0.1ms) BEGIN
81722
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
81723
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:01:40', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug21', 'Structure', '2013-02-04 17:01:40')
81724
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
81725
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
81726
+ 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`
81727
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
81728
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
81729
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
81730
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
81731
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
81732
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
81733
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
81734
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
81735
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
81736
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
81737
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
81738
+  (41.1ms) COMMIT
81739
+ Processing by Sunrise::ManagerController#index as HTML
81740
+ Parameters: {"model_name"=>"structures"}
81741
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
81742
+ Completed 200 OK in 7ms (Views: 1.7ms | ActiveRecord: 0.6ms)
81743
+ Structure Load (0.7ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
81744
+ Processing by Sunrise::ManagerController#index as HTML
81745
+ Parameters: {"model_name"=>"wrong"}
81746
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
81747
+ Completed 404 Not Found in 8ms
81748
+ Processing by Sunrise::ManagerController#destroy as HTML
81749
+ Parameters: {"model_name"=>"structures", "id"=>"1"}
81750
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
81751
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
81752
+ Access denied on destroy #<Structure id: 1, title: "Main page", slug: "main-page", kind: 3, position: 1, is_visible: true, redirect_url: nil, parent_id: nil, lft: 1, rgt: 4, depth: 0, created_at: "2013-02-04 17:01:40", updated_at: "2013-02-04 17:01:40">, context: sunrise, user: 1
81753
+ Redirected to http://test.host/
81754
+ Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
81755
+  (0.1ms) BEGIN
81756
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
81757
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 17:01:40', 0, 1, 1, 5, NULL, 2, NULL, 6, 'slug22', 'Structure', '2013-02-04 17:01:40')
81758
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1
81759
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 3 ORDER BY `structures`.`lft`
81760
+  (67.8ms) COMMIT
81761
+  (0.1ms) BEGIN
81762
+ SQL (0.4ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-02-04 17:01:40', 1, 3, 'Default title', '2013-02-04 17:01:40')
81763
+  (41.9ms) COMMIT
81764
+ Processing by Sunrise::ManagerController#index as HTML
81765
+ Parameters: {"model_name"=>"posts"}
81766
+ User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
81767
+ Completed 200 OK in 31ms (Views: 1.7ms | ActiveRecord: 0.3ms)
81768
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` LIMIT 50 OFFSET 0
81769
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
81770
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
81771
+  (225.9ms) TRUNCATE TABLE `assets`;
81772
+  (384.4ms) TRUNCATE TABLE `audits`;
81773
+  (336.2ms) TRUNCATE TABLE `meta_tags`;
81774
+  (196.9ms) TRUNCATE TABLE `page_parts`;
81775
+  (237.5ms) TRUNCATE TABLE `posts`;
81776
+  (172.6ms) TRUNCATE TABLE `settings`;
81777
+  (305.8ms) TRUNCATE TABLE `structures`;
81778
+  (386.6ms) TRUNCATE TABLE `users`;
81779
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1