sunrise-cms 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -22467,3 +22467,2707 @@ Completed 302 Found in 13ms (ActiveRecord: 1.5ms)
22467
22467
   (22.6ms) TRUNCATE TABLE `structures`;
22468
22468
   (44.8ms) TRUNCATE TABLE `users`;
22469
22469
   (0.1ms) SET FOREIGN_KEY_CHECKS = 1
22470
+  (109.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
22471
+ Migrating to CreateAssets (20111216144515)
22472
+ Migrating to CreateRoles (20111216144815)
22473
+ Migrating to CreateStructures (20111216144915)
22474
+ Migrating to CreateUsers (20111216145015)
22475
+ Migrating to CreateSettings (20120611095315)
22476
+  (0.1ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
22477
+ Migrating to InstallActsAsAudited (20111227111941)
22478
+ Migrating to CreatePageParts (20111227143901)
22479
+ Migrating to CreatePosts (20111228152051)
22480
+  (0.1ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
22481
+ Migrating to CreateAssets (20111216144515)
22482
+ Migrating to CreateRoles (20111216144815)
22483
+ Migrating to CreateStructures (20111216144915)
22484
+ Migrating to CreateUsers (20111216145015)
22485
+ Migrating to CreateSettings (20120611095315)
22486
+  (0.1ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
22487
+ Migrating to InstallActsAsAudited (20111227111941)
22488
+ Migrating to CreatePageParts (20111227143901)
22489
+ Migrating to CreatePosts (20111228152051)
22490
+  (54.3ms) SELECT @@FOREIGN_KEY_CHECKS
22491
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
22492
+  (71.8ms) SELECT DATABASE() as db
22493
+  (72.8ms) select table_name from information_schema.views where table_schema = 'sunrise_dummy_test'
22494
+  (279.3ms) TRUNCATE TABLE `assets`;
22495
+  (109.6ms) TRUNCATE TABLE `audits`;
22496
+  (136.4ms) TRUNCATE TABLE `page_parts`;
22497
+  (51.9ms) TRUNCATE TABLE `posts`;
22498
+  (77.9ms) TRUNCATE TABLE `roles`;
22499
+  (33.4ms) TRUNCATE TABLE `settings`;
22500
+  (133.6ms) TRUNCATE TABLE `structures`;
22501
+  (243.7ms) TRUNCATE TABLE `users`;
22502
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
22503
+  (0.1ms) BEGIN
22504
+ User Exists (16.8ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing1@example.com' LIMIT 1
22505
+ SQL (16.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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:01', '2012-11-05 12:50:02', NULL, NULL, 'testing1@example.com', '99b9d1b22754deed5fa141aaff3a90674146e11e24c42ca634133541b531e8804638ed5bb3b45182d1f1ee70077c23b7fdf6cf8b78cf69bcc72ead44f75f9462', 0, NULL, NULL, NULL, 'Test', '2NgsuRqW33sFpDxWXrqc', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:02')
22506
+ SQL (34.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:02', 1, '2012-11-05 12:50:02', 1)
22507
+  (40.2ms) COMMIT
22508
+ User Exists (0.6ms) SELECT 1 FROM `users` WHERE (`users`.`email` = BINARY 'wrong' AND `users`.`id` != 1) LIMIT 1
22509
+ User Exists (0.2ms) SELECT 1 FROM `users` WHERE (`users`.`email` = BINARY 'wrong' AND `users`.`id` != 1) LIMIT 1
22510
+  (0.1ms) BEGIN
22511
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing2@example.com' LIMIT 1
22512
+ SQL (10.3ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:02', '2012-11-05 12:50:02', NULL, NULL, 'testing2@example.com', '73a24c7ea66a4cc78fb014099ec6348a970f112000906d911573cef1f03c39f53fece2bfe23870c81782c257e26c3a13317161f52368641b3ee554e1e07a2b96', 0, NULL, NULL, NULL, 'Test', 'SmeXxjzgt5GHtBq8J4mW', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:02')
22513
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:02', 1, '2012-11-05 12:50:02', 2)
22514
+  (23.2ms) COMMIT
22515
+ User Load (61.6ms) SELECT `users`.* FROM `users` WHERE (email LIKE 'testing2%') LIMIT 1
22516
+  (1.1ms) BEGIN
22517
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing3@example.com' LIMIT 1
22518
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:02', '2012-11-05 12:50:02', NULL, NULL, 'testing3@example.com', '24d162e8721b9ff2449730bf3eca84dbc490c2bb2f3ade3a56711f70103ef49d0e830d776a88d74f3cc788a1813b9a885d968361c927c0d6d4264f39df9f45d6', 0, NULL, NULL, NULL, 'Test', '29gZh6VfENXCuqTGdBTp', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:02')
22519
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:02', 1, '2012-11-05 12:50:02', 3)
22520
+  (66.0ms) COMMIT
22521
+ User Load (19.6ms) SELECT `users`.* FROM `users` INNER JOIN `roles` ON `roles`.`user_id` = `users`.`id` WHERE `roles`.`role_type` = 1
22522
+  (0.1ms) BEGIN
22523
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing4@example.com' LIMIT 1
22524
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:03', '2012-11-05 12:50:03', NULL, NULL, 'testing4@example.com', '4813b23f66dfbed8fa049936772a48ad982b4be08f336e3ac2aebf5ed60c9a99cce07fa7b28cf56921f679aa1b1e0e6f3c7d36254c4d48f2cd681c0fdf7b8401', 0, NULL, NULL, NULL, 'Test', 'Thhs8uLHYjF8Rhpkqp2t', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:03')
22525
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:03', 1, '2012-11-05 12:50:03', 4)
22526
+  (33.4ms) COMMIT
22527
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
22528
+ User Load (0.5ms) SELECT id, email, name, current_sign_in_ip FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000
22529
+  (0.1ms) BEGIN
22530
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing5@example.com' LIMIT 1
22531
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:03', '2012-11-05 12:50:03', NULL, NULL, 'testing5@example.com', 'c5b010fb07e1cc9dfcd04b7298b4d4fac728e59df9893870ed1e5a047c83fcc64534c5dfb42ad7a977c5ffec94c438a5fe0b64165f731784b35f98ae7b71c3ef', 0, NULL, NULL, NULL, 'Test', 'XSExmyJxpz1vyB3vhgTq', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:03')
22532
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:03', 1, '2012-11-05 12:50:03', 5)
22533
+  (62.9ms) COMMIT
22534
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
22535
+ User Load (0.6ms) SELECT id, email, confirmed_at, created_at FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000
22536
+  (0.1ms) BEGIN
22537
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing6@example.com' LIMIT 1
22538
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:03', '2012-11-05 12:50:03', NULL, NULL, 'testing6@example.com', '2ea9561457bce260bd02536d0805335d8942cfe4d04ef280149988ad137ccb16f91b113d9906202eda861976e27d168336a5ed12e218d4f125307f9def2c2fa6', 0, NULL, NULL, NULL, 'Test', 'oNXNzMsMpnEQgqUya6Pt', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:03')
22539
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:03', 1, '2012-11-05 12:50:03', 6)
22540
+  (53.6ms) COMMIT
22541
+ Role Load (0.6ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 6 LIMIT 1
22542
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 6 LIMIT 1
22543
+ Role Load (0.5ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 6
22544
+  (0.2ms) BEGIN
22545
+ User Exists (0.6ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing7@example.com' LIMIT 1
22546
+ SQL (0.7ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:03', '2012-11-05 12:50:03', NULL, NULL, 'testing7@example.com', '657d986eaed56c2e8a97e2cfecdb77a8df929c791dd761b0f855c4400ab53d413399c0f7aa829f36878f2814769c045c62cd768330ed0b781a13156f9d857c95', 0, NULL, NULL, NULL, 'Test', '4fCY8Y6qX9uBnkAsqGK1', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:03')
22547
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:03', 1, '2012-11-05 12:50:03', 7)
22548
+  (67.4ms) COMMIT
22549
+ Avatar Load (0.7ms) SELECT `assets`.* FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`assetable_id` = 7 AND `assets`.`assetable_type` = 'User' ORDER BY `assets`.sort_order LIMIT 1
22550
+  (0.1ms) BEGIN
22551
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing8@example.com' LIMIT 1
22552
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:03', '2012-11-05 12:50:03', NULL, NULL, 'testing8@example.com', 'ab1193283456943beab510723d8c30abe51ea5fa3737ceb34980ad21405e189c986673a9b1fa3cf43e82f8924b13907647db85722e746ae08fc2adf1b4afe820', 0, NULL, NULL, NULL, 'Test', '5MHqDZ4NWM689Dn3Baxj', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:03')
22553
+ SQL (0.4ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:03', 1, '2012-11-05 12:50:03', 8)
22554
+  (38.6ms) COMMIT
22555
+ Rendered /home/igor/.rvm/gems/ruby-1.9.3-p194/gems/devise-2.1.0/app/views/devise/mailer/unlock_instructions.html.erb (8.2ms)
22556
+
22557
+ Sent mail to testing8@example.com (157ms)
22558
+ Date: Mon, 05 Nov 2012 14:50:04 +0200
22559
+ From: please-change-me-at-config-initializers-devise@example.com
22560
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
22561
+ To: testing8@example.com
22562
+ Message-ID: <5097b5fc2acf2_1b4448ff008142b@mario.mail>
22563
+ Subject: Unlock Instructions
22564
+ Mime-Version: 1.0
22565
+ Content-Type: text/html;
22566
+ charset=UTF-8
22567
+ Content-Transfer-Encoding: 7bit
22568
+
22569
+ <p>Hello testing8@example.com!</p>
22570
+
22571
+ <p>Your account has been locked due to an excessive amount of unsuccessful sign in attempts.</p>
22572
+
22573
+ <p>Click the link below to unlock your account:</p>
22574
+
22575
+ <p><a href="http://test.com/users/unlock?unlock_token=ymox7d54UyyRHycHyYQn">Unlock my account</a></p>
22576
+
22577
+  (0.1ms) BEGIN
22578
+  (21.7ms) UPDATE `users` SET `confirmed_at` = NULL, `locked_at` = '2012-11-05 12:50:03', `unlock_token` = 'ymox7d54UyyRHycHyYQn', `updated_at` = '2012-11-05 12:50:04' WHERE `users`.`id` = 8
22579
+  (28.3ms) COMMIT
22580
+  (1.2ms) SELECT @@FOREIGN_KEY_CHECKS
22581
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
22582
+  (48.1ms) TRUNCATE TABLE `assets`;
22583
+  (22.6ms) TRUNCATE TABLE `audits`;
22584
+  (45.4ms) TRUNCATE TABLE `page_parts`;
22585
+  (77.1ms) TRUNCATE TABLE `posts`;
22586
+  (66.9ms) TRUNCATE TABLE `roles`;
22587
+  (66.6ms) TRUNCATE TABLE `settings`;
22588
+  (78.0ms) TRUNCATE TABLE `structures`;
22589
+  (89.3ms) TRUNCATE TABLE `users`;
22590
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
22591
+  (0.2ms) BEGIN
22592
+ User Exists (0.6ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing9@example.com' LIMIT 1
22593
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:06', '2012-11-05 12:50:06', NULL, NULL, 'testing9@example.com', 'a1428c81203742255b223683d7f6ef728ea9c2397c40296019f1981086c554740b69432692a26483e46c6508cf0e8f6dc32127dfd0494444c53d4a7dcd6a86f4', 0, NULL, NULL, NULL, 'Test', 'Y2TT1bxsLQ9EvxuMXjH1', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:06')
22594
+ SQL (0.4ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:06', 1, '2012-11-05 12:50:06', 1)
22595
+  (48.1ms) COMMIT
22596
+  (0.2ms) BEGIN
22597
+ 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', '2012-11-05 12:50:06', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-11-05 12:50:06', NULL, 50)
22598
+  (28.2ms) COMMIT
22599
+  (0.1ms) BEGIN
22600
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing10@example.com' LIMIT 1
22601
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:08', '2012-11-05 12:50:08', NULL, NULL, 'testing10@example.com', 'a39195e76d3cc93e3ec53c25541b058f69111ab0fcc241cdb273bdcf637c1e1ad57097ef01255452dcafd362c33afd92ec5d47fd9f30fc98d81d1f96ff535a00', 0, NULL, NULL, NULL, 'Test', '3Qrwud3xkxWBiq2EtMRT', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:08')
22602
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:08', 1, '2012-11-05 12:50:08', 2)
22603
+  (32.8ms) COMMIT
22604
+  (0.1ms) BEGIN
22605
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing11@example.com' LIMIT 1
22606
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:09', '2012-11-05 12:50:09', NULL, NULL, 'testing11@example.com', 'a963a63fb2abadf258b6cf49a3b617954ec99f2cd5669e723542f51ed276492f9b12ca3a09d5ac0f8e586e385714d4c3b3e33fae8d1b8c9eae380ff18dbaa2c3', 0, NULL, NULL, NULL, 'Test', 'qezmqTm4x1iwwBuK42zS', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:09')
22607
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:09', 1, '2012-11-05 12:50:09', 3)
22608
+  (23.9ms) COMMIT
22609
+  (0.1ms) BEGIN
22610
+ 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', '2012-11-05 12:50:09', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-11-05 12:50:09', NULL, 50)
22611
+  (46.7ms) COMMIT
22612
+  (0.1ms) BEGIN
22613
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing12@example.com' LIMIT 1
22614
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:09', '2012-11-05 12:50:09', NULL, NULL, 'testing12@example.com', '4e32dc4b3b7243c40ba93a1641c4a129a192bd7f04718cc171101cca668a7d18baba292b54a4ccd7f0941e300c699dcc34e7545bc46bbe54117a7ed5452a8fc7', 0, NULL, NULL, NULL, 'Test', 'tUxCojx9ouXxjXxZsTBR', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:09')
22615
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:09', 1, '2012-11-05 12:50:09', 4)
22616
+  (25.2ms) COMMIT
22617
+  (0.1ms) BEGIN
22618
+ 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', '2012-11-05 12:50:09', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-11-05 12:50:09', NULL, 50)
22619
+  (44.4ms) COMMIT
22620
+  (0.2ms) BEGIN
22621
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing13@example.com' LIMIT 1
22622
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:10', '2012-11-05 12:50:10', NULL, NULL, 'testing13@example.com', 'f382595bce6e7ee33131e10e5552e4b057f46741ed223980a57d13d0856c8479952258afe829928bb0c491da08988c4b58231f09bc6dbd030aa9617d3300e662', 0, NULL, NULL, NULL, 'Test', 'YVq3hAMLaW4jaVLGtWEp', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:10')
22623
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:10', 1, '2012-11-05 12:50:10', 5)
22624
+  (30.3ms) COMMIT
22625
+  (0.1ms) BEGIN
22626
+ 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', '2012-11-05 12:50:10', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-11-05 12:50:10', NULL, 50)
22627
+  (37.2ms) COMMIT
22628
+  (0.1ms) BEGIN
22629
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing14@example.com' LIMIT 1
22630
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:10', '2012-11-05 12:50:10', NULL, NULL, 'testing14@example.com', 'aa3c74ae98a93ffa0ee92bb6138404b9bae69bbe21d31a7ad5ec6235fa2affbb8c41c0c6ccc9c716f28b2559eb7dbbc37b0d4eaa14431b8cd5f7c9052a9066f5', 0, NULL, NULL, NULL, 'Test', 'PbUaeECFXmpsuxkyapyj', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:10')
22631
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:10', 1, '2012-11-05 12:50:10', 6)
22632
+  (29.7ms) COMMIT
22633
+  (0.8ms) BEGIN
22634
+ 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', '2012-11-05 12:50:10', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-11-05 12:50:10', NULL, 50)
22635
+  (101.1ms) COMMIT
22636
+  (0.1ms) BEGIN
22637
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing15@example.com' LIMIT 1
22638
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:11', '2012-11-05 12:50:11', NULL, NULL, 'testing15@example.com', '1512a1df6dd57782687f0ebe1a247d079b4db9e61315a8553b530961b49bac810014c7841b0139e4a5f26a173818ed186aebfc8b6bd4f71547a493a666fb83bc', 0, NULL, NULL, NULL, 'Test', 'LKVD6z33XovhGWcoF2Gc', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:11')
22639
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:11', 1, '2012-11-05 12:50:11', 7)
22640
+  (255.9ms) COMMIT
22641
+  (0.1ms) BEGIN
22642
+ SQL (140.9ms) 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', '2012-11-05 12:50:11', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-11-05 12:50:11', NULL, 50)
22643
+  (185.7ms) COMMIT
22644
+  (0.1ms) BEGIN
22645
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing16@example.com' LIMIT 1
22646
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:11', '2012-11-05 12:50:11', NULL, NULL, 'testing16@example.com', 'b6a7e1e3fce5e24b0444324d349baee3fc3e23d2d6ce272ddaed01904faffe4e321138ef7407fc3ae3cf8f643dd0452cbbf2948c5c874572f04c613cce9655ca', 0, NULL, NULL, NULL, 'Test', '3wtNxohozN6zBd5joYPd', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:11')
22647
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:11', 1, '2012-11-05 12:50:11', 8)
22648
+  (225.1ms) COMMIT
22649
+  (0.1ms) BEGIN
22650
+ SQL (2.7ms) 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', '2012-11-05 12:50:12', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-11-05 12:50:12', NULL, 50)
22651
+  (39.8ms) COMMIT
22652
+  (0.1ms) BEGIN
22653
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing17@example.com' LIMIT 1
22654
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:12', '2012-11-05 12:50:12', NULL, NULL, 'testing17@example.com', '0d3d02a0ccb71dc78a9abc7f7a09d83f8720d6958ade4ac0fc8b6f38a448dc25efc32ea1851a8d44e9da744ec46f2901ff92e3f06bd698050663dd27b20f39c2', 0, NULL, NULL, NULL, 'Test', 'kYJqkArSDK7LadoCfwbf', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:12')
22655
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:12', 1, '2012-11-05 12:50:12', 9)
22656
+  (27.7ms) COMMIT
22657
+  (0.1ms) BEGIN
22658
+ 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', '2012-11-05 12:50:12', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-11-05 12:50:12', NULL, 50)
22659
+  (23.4ms) COMMIT
22660
+  (0.2ms) BEGIN
22661
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing18@example.com' LIMIT 1
22662
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:12', '2012-11-05 12:50:12', NULL, NULL, 'testing18@example.com', 'd24d6df341c542961c29d567482fe4264da29a49ab55d4515f1bbf26a7f17e2a6b28dbe8f993f32fc914ca43d816e8a1b0438317d5e0c38c78f788c243211bbc', 0, NULL, NULL, NULL, 'Test', '95aUAS7PJSXDdRDF4ixu', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:12')
22663
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:12', 1, '2012-11-05 12:50:12', 10)
22664
+  (26.6ms) COMMIT
22665
+  (0.1ms) BEGIN
22666
+ SQL (0.4ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (10, 'User', '2012-11-05 12:50:12', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-11-05 12:50:12', NULL, 50)
22667
+  (45.5ms) COMMIT
22668
+  (0.1ms) BEGIN
22669
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing19@example.com' LIMIT 1
22670
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:13', '2012-11-05 12:50:13', NULL, NULL, 'testing19@example.com', 'aa19d401e14ff75d624fb06e96d447c0af29d2c9c415dcff89ad2d585996af50bfe5d4db90114e0a94ef7bc952da7f1fac54eca2c9f86688f774ffc16d482c27', 0, NULL, NULL, NULL, 'Test', 'u5PxJtyLMTyPzE4V6qS5', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:13')
22671
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:13', 1, '2012-11-05 12:50:13', 11)
22672
+  (29.0ms) COMMIT
22673
+  (0.1ms) BEGIN
22674
+ 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', '2012-11-05 12:50:13', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-11-05 12:50:13', NULL, 50)
22675
+  (37.7ms) COMMIT
22676
+  (0.1ms) BEGIN
22677
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing20@example.com' LIMIT 1
22678
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:13', '2012-11-05 12:50:13', NULL, NULL, 'testing20@example.com', 'a26e5e6c81a436991267685e62e6d0603a6419a4bfb92fa43cc13ddd890caa9ccb0410b0ccdfa1f8bc157cae2f8b6c92f18f750fd8163db887bd08d6c39d052a', 0, NULL, NULL, NULL, 'Test', 'pmbUW6qCouxsrAAhBnsK', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:13')
22679
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:13', 1, '2012-11-05 12:50:13', 12)
22680
+  (25.9ms) COMMIT
22681
+  (0.1ms) BEGIN
22682
+ SQL (0.4ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (12, 'User', '2012-11-05 12:50:13', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-11-05 12:50:13', NULL, 50)
22683
+  (48.3ms) COMMIT
22684
+  (0.1ms) BEGIN
22685
+  (0.1ms) ROLLBACK
22686
+  (0.1ms) BEGIN
22687
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing21@example.com' LIMIT 1
22688
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:14', '2012-11-05 12:50:14', NULL, NULL, 'testing21@example.com', 'b386c5fdd642b11c4eb0958d1b44980901968c171d3aecafda386fe2332ec0bf0952f06ce4199434ac2ecaf11fb7b64d9486a5ca7c67d64c1d10857cede87a34', 0, NULL, NULL, NULL, 'Test', 'WCTzkyJtbtGLMZ8pENNT', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:14')
22689
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:14', 1, '2012-11-05 12:50:14', 13)
22690
+  (33.5ms) COMMIT
22691
+  (0.1ms) BEGIN
22692
+ 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', '2012-11-05 12:50:14', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-11-05 12:50:14', NULL, 50)
22693
+  (37.3ms) COMMIT
22694
+  (0.2ms) BEGIN
22695
+ User Exists (0.6ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing22@example.com' LIMIT 1
22696
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:14', '2012-11-05 12:50:14', NULL, NULL, 'testing22@example.com', '8bf57b0d109de9398ffc433252ad2b311943d50c3e06b3d30d5d710c0bed0a5cc3010d9dab4fe72f0dd1eb93100bf8a14cb3552208dc4c43db6b92389ef7f47c', 0, NULL, NULL, NULL, 'Test', 'zp8j6SqgiRA4LWp8u6jL', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:14')
22697
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:14', 1, '2012-11-05 12:50:14', 14)
22698
+  (27.6ms) COMMIT
22699
+  (0.1ms) BEGIN
22700
+ 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', '2012-11-05 12:50:14', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-11-05 12:50:14', NULL, 50)
22701
+  (37.1ms) COMMIT
22702
+  (0.2ms) BEGIN
22703
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing23@example.com' LIMIT 1
22704
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:15', '2012-11-05 12:50:15', NULL, NULL, 'testing23@example.com', '9df53f144615766f2dcffc26a8da3cd2f0ca8118f05a7978679521b80bd931e5b1f2f68c32110c9baee3c2081bda204515b4d8f2e1aabad6735379735ce71448', 0, NULL, NULL, NULL, 'Test', 'oDpN9DYSaysp3mPgknt3', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:15')
22705
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:15', 1, '2012-11-05 12:50:15', 15)
22706
+  (27.4ms) COMMIT
22707
+  (0.1ms) BEGIN
22708
+ 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', '2012-11-05 12:50:15', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-11-05 12:50:15', NULL, 50)
22709
+  (37.7ms) COMMIT
22710
+  (0.1ms) BEGIN
22711
+  (0.1ms) ROLLBACK
22712
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
22713
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
22714
+  (50.0ms) TRUNCATE TABLE `assets`;
22715
+  (22.4ms) TRUNCATE TABLE `audits`;
22716
+  (22.7ms) TRUNCATE TABLE `page_parts`;
22717
+  (44.6ms) TRUNCATE TABLE `posts`;
22718
+  (22.7ms) TRUNCATE TABLE `roles`;
22719
+  (22.3ms) TRUNCATE TABLE `settings`;
22720
+  (45.0ms) TRUNCATE TABLE `structures`;
22721
+  (78.0ms) TRUNCATE TABLE `users`;
22722
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
22723
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
22724
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
22725
+  (83.4ms) TRUNCATE TABLE `assets`;
22726
+  (33.4ms) TRUNCATE TABLE `audits`;
22727
+  (55.9ms) TRUNCATE TABLE `page_parts`;
22728
+  (44.6ms) TRUNCATE TABLE `posts`;
22729
+  (84.6ms) TRUNCATE TABLE `roles`;
22730
+  (27.0ms) TRUNCATE TABLE `settings`;
22731
+  (44.8ms) TRUNCATE TABLE `structures`;
22732
+  (22.7ms) TRUNCATE TABLE `users`;
22733
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
22734
+  (0.1ms) BEGIN
22735
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing24@example.com' LIMIT 1
22736
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:16', '2012-11-05 12:50:16', NULL, NULL, 'testing24@example.com', '9c2ce5f11714b402df080b041c7037b2fbd01495c93374b0f05fda99183e1b6428c2b8a365c0095020a595a8224b92af2a8b0267277b3ace0744ee3d77257e83', 0, NULL, NULL, NULL, 'Test', 'HPjWZszTqfwhn2pXCEd6', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:16')
22737
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:16', 1, '2012-11-05 12:50:16', 1)
22738
+  (31.6ms) COMMIT
22739
+  (0.2ms) BEGIN
22740
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing25@example.com' LIMIT 1
22741
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:16', '2012-11-05 12:50:16', NULL, NULL, 'testing25@example.com', 'cb267be6fbe027cf95a3217a2503cb07d5eacf18bdcf2fdd0b0f47c84c75b0c6a9959034135d9c86c96736d34d8d586cd1d7f2934e2d8931acd6928afc175be6', 0, NULL, NULL, NULL, 'Test', '22q3cMzWFqLhBt4nK5cT', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:16')
22742
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:16', 1, '2012-11-05 12:50:16', 2)
22743
+  (42.2ms) COMMIT
22744
+  (0.2ms) BEGIN
22745
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing26@example.com' LIMIT 1
22746
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:17', '2012-11-05 12:50:17', NULL, NULL, 'testing26@example.com', 'aa9bfeaa23b3eb32282597d2cf70713853183662b2d3c4d76db7f448b77dbf33b36b6a7763298119640809bd104454a45fe2262030a1fc3796a8fb165902ce40', 0, NULL, NULL, NULL, 'Test', 'kpuyHffD4FAdyfpm1ste', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:17')
22747
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:17', 1, '2012-11-05 12:50:17', 3)
22748
+  (26.7ms) COMMIT
22749
+  (0.2ms) BEGIN
22750
+ User Exists (0.6ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing27@example.com' LIMIT 1
22751
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:18', '2012-11-05 12:50:18', NULL, NULL, 'testing27@example.com', 'dd49b9d4f1e2c12a64276c42b00c9d8693668a35685c4d1ef7b2b44c61fb7cc233cdd1749a0496407841d9a2d61d78c4d568f2cc8a91b60d4177b02ca3847360', 0, NULL, NULL, NULL, 'Test', 'LzGMdnuMC86QJ1Fcz3Vd', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:18')
22752
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:18', 1, '2012-11-05 12:50:18', 4)
22753
+  (33.2ms) COMMIT
22754
+  (0.1ms) BEGIN
22755
+ User Exists (1.3ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing28@example.com' LIMIT 1
22756
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:18', '2012-11-05 12:50:18', NULL, NULL, 'testing28@example.com', '96b86f84e1a65b471ae33e0cab6428ee2d2eb2c8be59f8f1e2d36d993532d4c6ff600a37d724a1cd3f086c8a84cc95d9905871c6091f5e70690562d670c0e443', 0, NULL, NULL, NULL, 'Test', '3hVugWWRMpBAyXJ7HLyy', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:18')
22757
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:18', 1, '2012-11-05 12:50:18', 5)
22758
+  (33.5ms) COMMIT
22759
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
22760
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
22761
+  (40.6ms) TRUNCATE TABLE `assets`;
22762
+  (44.7ms) TRUNCATE TABLE `audits`;
22763
+  (22.4ms) TRUNCATE TABLE `page_parts`;
22764
+  (22.5ms) TRUNCATE TABLE `posts`;
22765
+  (22.5ms) TRUNCATE TABLE `roles`;
22766
+  (44.7ms) TRUNCATE TABLE `settings`;
22767
+  (45.4ms) TRUNCATE TABLE `structures`;
22768
+  (66.5ms) TRUNCATE TABLE `users`;
22769
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
22770
+ Structure Load (33.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
22771
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
22772
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
22773
+  (19.7ms) TRUNCATE TABLE `assets`;
22774
+  (33.8ms) TRUNCATE TABLE `audits`;
22775
+  (22.4ms) TRUNCATE TABLE `page_parts`;
22776
+  (66.9ms) TRUNCATE TABLE `posts`;
22777
+  (44.6ms) TRUNCATE TABLE `roles`;
22778
+  (22.4ms) TRUNCATE TABLE `settings`;
22779
+  (22.8ms) TRUNCATE TABLE `structures`;
22780
+  (114.6ms) TRUNCATE TABLE `users`;
22781
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
22782
+  (0.1ms) BEGIN
22783
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
22784
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:20', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-11-05 12:50:20')
22785
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
22786
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
22787
+  (50.8ms) COMMIT
22788
+  (0.1ms) BEGIN
22789
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
22790
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:20', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug1', 'Structure', '2012-11-05 12:50:20')
22791
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
22792
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
22793
+ 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`
22794
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
22795
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
22796
+  (23.0ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
22797
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
22798
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
22799
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
22800
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
22801
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
22802
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
22803
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
22804
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
22805
+  (31.4ms) COMMIT
22806
+  (0.1ms) BEGIN
22807
+  (0.1ms) ROLLBACK
22808
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
22809
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
22810
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
22811
+  (0.1ms) BEGIN
22812
+ Structure Load (0.8ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
22813
+ Structure Load (0.8ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
22814
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
22815
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
22816
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
22817
+  (44.1ms) COMMIT
22818
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
22819
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
22820
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
22821
+  (0.1ms) BEGIN
22822
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
22823
+  (0.1ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
22824
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
22825
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
22826
+  (56.8ms) COMMIT
22827
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
22828
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
22829
+  (0.1ms) BEGIN
22830
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
22831
+  (0.1ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
22832
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
22833
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
22834
+  (44.9ms) COMMIT
22835
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
22836
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
22837
+  (0.1ms) BEGIN
22838
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
22839
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:20', 0, 1, 1, 5, 2, 2, NULL, 6, 'slug2', 'Structure', '2012-11-05 12:50:20')
22840
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft` LIMIT 1
22841
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1 FOR UPDATE
22842
+ 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`
22843
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
22844
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1
22845
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
22846
+ SQL (0.5ms) UPDATE `structures` SET `depth` = 2 WHERE `structures`.`id` = 3 ORDER BY `structures`.`lft`
22847
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
22848
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 3 AND `structures`.`lft` < 4) AND (`structures`.id != 3) ORDER BY `structures`.`lft`
22849
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1 FOR UPDATE
22850
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1
22851
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
22852
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 2 WHERE `structures`.`id` = 3 ORDER BY `structures`.`lft`
22853
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
22854
+  (51.5ms) COMMIT
22855
+  (0.1ms) BEGIN
22856
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
22857
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
22858
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
22859
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
22860
+  (60.1ms) COMMIT
22861
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
22862
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
22863
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
22864
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 6) ORDER BY `structures`.`lft`
22865
+  (0.1ms) BEGIN
22866
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
22867
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:20', 0, 1, 1, 7, 1, 2, NULL, 8, 'slug3', 'Some super title', '2012-11-05 12:50:20')
22868
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
22869
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1 FOR UPDATE
22870
+ 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`
22871
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
22872
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1
22873
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
22874
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 4 ORDER BY `structures`.`lft`
22875
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
22876
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 6 AND `structures`.`lft` < 7) AND (`structures`.id != 4) ORDER BY `structures`.`lft`
22877
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1 FOR UPDATE
22878
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1
22879
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
22880
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 4 ORDER BY `structures`.`lft`
22881
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
22882
+  (37.4ms) COMMIT
22883
+  (0.1ms) BEGIN
22884
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
22885
+  (0.4ms) UPDATE `structures` SET `title` = 'Other big title', `updated_at` = '2012-11-05 12:50:20' WHERE `structures`.`id` = 4
22886
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1
22887
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
22888
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 4 ORDER BY `structures`.`lft`
22889
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
22890
+  (65.4ms) COMMIT
22891
+  (0.1ms) BEGIN
22892
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
22893
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:20', 0, 1, 1, 9, 1, 2, NULL, 10, 'original-slug', 'Tra ta ta', '2012-11-05 12:50:20')
22894
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
22895
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 5 LIMIT 1 FOR UPDATE
22896
+ SQL (0.5ms) 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`
22897
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
22898
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 5 LIMIT 1
22899
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 8 AND `structures`.`rgt` >= 9) AND (`structures`.id != 5)
22900
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 5 ORDER BY `structures`.`lft`
22901
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 8 AND `structures`.`rgt` >= 9) AND (`structures`.id != 5)
22902
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 8 AND `structures`.`lft` < 9) AND (`structures`.id != 5) ORDER BY `structures`.`lft`
22903
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 5 LIMIT 1 FOR UPDATE
22904
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 5 LIMIT 1
22905
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 8 AND `structures`.`rgt` >= 9) AND (`structures`.id != 5)
22906
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 5 ORDER BY `structures`.`lft`
22907
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 8 AND `structures`.`rgt` >= 9) AND (`structures`.id != 5)
22908
+  (42.9ms) COMMIT
22909
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 5 LIMIT 1
22910
+  (0.1ms) BEGIN
22911
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
22912
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
22913
+ SQL (0.7ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
22914
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
22915
+  (46.5ms) COMMIT
22916
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
22917
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = 'slug1' LIMIT 1
22918
+  (0.1ms) BEGIN
22919
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
22920
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
22921
+  (0.1ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
22922
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
22923
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
22924
+  (53.7ms) COMMIT
22925
+ Structure Load (19.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1352119821 LIMIT 1
22926
+  (0.1ms) BEGIN
22927
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
22928
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
22929
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
22930
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
22931
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
22932
+  (51.2ms) COMMIT
22933
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = 'wrong' LIMIT 1
22934
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 0 LIMIT 1
22935
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = 'slug1' LIMIT 1
22936
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
22937
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
22938
+  (31.8ms) TRUNCATE TABLE `assets`;
22939
+  (33.6ms) TRUNCATE TABLE `audits`;
22940
+  (22.5ms) TRUNCATE TABLE `page_parts`;
22941
+  (66.8ms) TRUNCATE TABLE `posts`;
22942
+  (33.5ms) TRUNCATE TABLE `roles`;
22943
+  (22.6ms) TRUNCATE TABLE `settings`;
22944
+  (44.8ms) TRUNCATE TABLE `structures`;
22945
+  (22.8ms) TRUNCATE TABLE `users`;
22946
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
22947
+  (0.1ms) BEGIN
22948
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing29@example.com' LIMIT 1
22949
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:21', '2012-11-05 12:50:21', NULL, NULL, 'testing29@example.com', '5e48639fa20ae5ccb8fa9fa509670909c8ece13b80a20041a6ac01d41cc33e9109f2b05e0c99ab2376ddfff2f36f885fd216e1fbe3a7bf25d3824bf38a3ef211', 0, NULL, NULL, NULL, 'Admin', 'Rs6dbBcUHX81EaTBAG1T', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:21')
22950
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:21', 4, '2012-11-05 12:50:21', 1)
22951
+  (44.1ms) COMMIT
22952
+  (0.1ms) BEGIN
22953
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing30@example.com' LIMIT 1
22954
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:21', '2012-11-05 12:50:21', NULL, NULL, 'testing30@example.com', '74ee9f9765f25877dcd9eae415f1107ff9a83339fa3c330339997d6e8239aeba197d59fcf6cd3817ccc75a98f48363eb1b9959a644223b1710fadcfcc724cd72', 0, NULL, NULL, NULL, 'Test', 'Lk61WDyAsgU4yy6uzLGa', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:21')
22955
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:21', 1, '2012-11-05 12:50:21', 2)
22956
+  (40.0ms) COMMIT
22957
+  (0.1ms) BEGIN
22958
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
22959
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:21', 0, 1, 1, 1, NULL, 2, NULL, 2, 'slug5', 'Structure', '2012-11-05 12:50:21')
22960
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
22961
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
22962
+  (53.2ms) COMMIT
22963
+  (0.1ms) BEGIN
22964
+ SQL (34.1ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2012-11-05 12:50:21', 1, 1, 'Default title', '2012-11-05 12:50:21')
22965
+  (45.0ms) COMMIT
22966
+  (0.1ms) BEGIN
22967
+  (36.0ms) SELECT MAX(`audits`.`version`) AS max_id FROM `audits` WHERE `audits`.`auditable_id` = 1 AND `audits`.`auditable_type` = 'Post'
22968
+ 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, '2012-11-05 12:50:21', NULL, 2, 'User', NULL, 1)
22969
+  (46.4ms) COMMIT
22970
+
22971
+
22972
+ Started GET "/manage/" for 127.0.0.1 at 2012-11-05 14:50:22 +0200
22973
+  (0.1ms) BEGIN
22974
+  (0.1ms) COMMIT
22975
+  (0.1ms) BEGIN
22976
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2012-11-05 12:50:22', `current_sign_in_at` = '2012-11-05 12:50:22', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-11-05 12:50:22' WHERE `users`.`id` = 1
22977
+  (32.1ms) COMMIT
22978
+ Processing by Sunrise::DashboardController#index as HTML
22979
+ Role Load (0.6ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
22980
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
22981
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
22982
+ Audited::Adapters::ActiveRecord::Audit Load (0.5ms) SELECT `audits`.* FROM `audits` ORDER BY version, audits.id desc LIMIT 50 OFFSET 0
22983
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` IN (2)
22984
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_event.html.erb (5.5ms)
22985
+  (0.5ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `audits` LIMIT 50 OFFSET 0) subquery_for_count 
22986
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/index.html.erb within layouts/sunrise/application (785.4ms)
22987
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (18.9ms)
22988
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (2.8ms)
22989
+ Completed 200 OK in 1001ms (Views: 944.4ms | ActiveRecord: 2.1ms)
22990
+
22991
+
22992
+ Started GET "/manage/" for 127.0.0.1 at 2012-11-05 14:50:23 +0200
22993
+  (0.2ms) BEGIN
22994
+  (0.1ms) COMMIT
22995
+  (0.1ms) BEGIN
22996
+  (0.4ms) UPDATE `users` SET `current_sign_in_at` = '2012-11-05 12:50:23', `sign_in_count` = 2, `updated_at` = '2012-11-05 12:50:23' WHERE `users`.`id` = 1
22997
+  (43.1ms) COMMIT
22998
+ Processing by Sunrise::DashboardController#index as HTML
22999
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23000
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23001
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23002
+ Audited::Adapters::ActiveRecord::Audit Load (0.2ms) SELECT `audits`.* FROM `audits` ORDER BY version, audits.id desc LIMIT 50 OFFSET 0
23003
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` IN (2)
23004
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_event.html.erb (4.0ms)
23005
+  (0.2ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `audits` LIMIT 50 OFFSET 0) subquery_for_count
23006
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.4ms)
23007
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (1.6ms)
23008
+ Completed 200 OK in 36ms (Views: 22.3ms | ActiveRecord: 1.0ms)
23009
+
23010
+
23011
+ Started GET "/manage/" for 127.0.0.1 at 2012-11-05 14:50:24 +0200
23012
+ Processing by Sunrise::DashboardController#index as HTML
23013
+ Completed 401 Unauthorized in 1ms
23014
+
23015
+
23016
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-11-05 14:50:24 +0200
23017
+ Processing by Devise::SessionsController#new as HTML
23018
+ Rendered /home/igor/.rvm/gems/ruby-1.9.3-p194/gems/devise-2.1.0/app/views/devise/shared/_links.erb (3.7ms)
23019
+ Completed 200 OK in 67ms (Views: 64.4ms | ActiveRecord: 0.0ms)
23020
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
23021
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
23022
+  (30.8ms) TRUNCATE TABLE `assets`;
23023
+  (22.6ms) TRUNCATE TABLE `audits`;
23024
+  (44.7ms) TRUNCATE TABLE `page_parts`;
23025
+  (22.4ms) TRUNCATE TABLE `posts`;
23026
+  (22.6ms) TRUNCATE TABLE `roles`;
23027
+  (22.4ms) TRUNCATE TABLE `settings`;
23028
+  (44.9ms) TRUNCATE TABLE `structures`;
23029
+  (22.6ms) TRUNCATE TABLE `users`;
23030
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
23031
+  (0.1ms) BEGIN
23032
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing31@example.com' LIMIT 1
23033
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:24', '2012-11-05 12:50:24', NULL, NULL, 'testing31@example.com', '313b30fa0d38910a262b9e7c336652a252713bbb8820372e7b924d7cc5d4f25b4c810e83f5669cdfc8d9056f2c9f6cd2489a98c66fe505c21398e1c42d63885c', 0, NULL, NULL, NULL, 'Admin', 'msgVBc2RpYhTrmkPSGt8', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:24')
23034
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:24', 4, '2012-11-05 12:50:24', 1)
23035
+  (43.2ms) COMMIT
23036
+  (0.1ms) BEGIN
23037
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
23038
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:24', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-11-05 12:50:24')
23039
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
23040
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
23041
+  (36.5ms) COMMIT
23042
+  (0.1ms) BEGIN
23043
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
23044
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:24', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug6', 'Structure', '2012-11-05 12:50:24')
23045
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
23046
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
23047
+ 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`
23048
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
23049
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23050
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
23051
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
23052
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
23053
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
23054
+ Structure Load (0.2ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
23055
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23056
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
23057
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
23058
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
23059
+  (49.2ms) COMMIT
23060
+
23061
+
23062
+ Started GET "/manage/structures/2" for 127.0.0.1 at 2012-11-05 14:50:24 +0200
23063
+  (0.1ms) BEGIN
23064
+  (0.1ms) COMMIT
23065
+  (0.1ms) BEGIN
23066
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2012-11-05 12:50:24', `current_sign_in_at` = '2012-11-05 12:50:24', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-11-05 12:50:24' WHERE `users`.`id` = 1
23067
+  (46.9ms) COMMIT
23068
+ Processing by Sunrise::ManagerController#show as HTML
23069
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
23070
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
23071
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23072
+ Role Load (0.4ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23073
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23074
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23075
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.8ms)
23076
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (1.0ms)
23077
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (9.5ms)
23078
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (23.8ms)
23079
+ Completed 200 OK in 103ms (Views: 46.1ms | ActiveRecord: 1.2ms)
23080
+
23081
+
23082
+ Started GET "/manage/structures/2" for 127.0.0.1 at 2012-11-05 14:50:24 +0200
23083
+  (0.1ms) BEGIN
23084
+  (0.1ms) COMMIT
23085
+  (0.1ms) BEGIN
23086
+  (0.5ms) UPDATE `users` SET `current_sign_in_at` = '2012-11-05 12:50:24', `sign_in_count` = 2, `updated_at` = '2012-11-05 12:50:24' WHERE `users`.`id` = 1
23087
+  (25.4ms) COMMIT
23088
+ Processing by Sunrise::ManagerController#show as HTML
23089
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
23090
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
23091
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23092
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23093
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23094
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23095
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.7ms)
23096
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
23097
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (3.4ms)
23098
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.8ms)
23099
+ Completed 200 OK in 21ms (Views: 13.6ms | ActiveRecord: 0.4ms)
23100
+
23101
+
23102
+ Started GET "/manage/structures/2" for 127.0.0.1 at 2012-11-05 14:50:24 +0200
23103
+ Processing by Sunrise::ManagerController#show as HTML
23104
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
23105
+ Completed 401 Unauthorized in 1ms
23106
+
23107
+
23108
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-11-05 14:50:24 +0200
23109
+ Processing by Devise::SessionsController#new as HTML
23110
+ Rendered /home/igor/.rvm/gems/ruby-1.9.3-p194/gems/devise-2.1.0/app/views/devise/shared/_links.erb (1.1ms)
23111
+ Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.0ms)
23112
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
23113
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
23114
+  (23.4ms) TRUNCATE TABLE `assets`;
23115
+  (44.8ms) TRUNCATE TABLE `audits`;
23116
+  (22.4ms) TRUNCATE TABLE `page_parts`;
23117
+  (22.4ms) TRUNCATE TABLE `posts`;
23118
+  (22.5ms) TRUNCATE TABLE `roles`;
23119
+  (44.8ms) TRUNCATE TABLE `settings`;
23120
+  (22.6ms) TRUNCATE TABLE `structures`;
23121
+  (44.9ms) TRUNCATE TABLE `users`;
23122
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
23123
+  (0.1ms) BEGIN
23124
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing32@example.com' LIMIT 1
23125
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:25', '2012-11-05 12:50:25', NULL, NULL, 'testing32@example.com', 'c8da3b588c167be3047510b47030ce41d5685fad97714ac5d6c71d31827b9f1d3bff81d2e6c84f69617668809658bfc20599ccecfaed684fc4c0d343d597cb22', 0, NULL, NULL, NULL, 'Admin', 'EjCCP2CnZ7LtvkhsFfqd', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:25')
23126
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:25', 4, '2012-11-05 12:50:25', 1)
23127
+  (41.5ms) COMMIT
23128
+  (0.1ms) BEGIN
23129
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
23130
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:25', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-11-05 12:50:25')
23131
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
23132
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
23133
+  (35.2ms) COMMIT
23134
+  (0.1ms) BEGIN
23135
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
23136
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:25', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug7', 'Structure', '2012-11-05 12:50:25')
23137
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
23138
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
23139
+ 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`
23140
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
23141
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23142
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
23143
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
23144
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
23145
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
23146
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
23147
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23148
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
23149
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
23150
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
23151
+  (53.6ms) COMMIT
23152
+
23153
+
23154
+ Started GET "/manage/structures" for 127.0.0.1 at 2012-11-05 14:50:25 +0200
23155
+  (0.1ms) BEGIN
23156
+  (0.1ms) COMMIT
23157
+  (0.1ms) BEGIN
23158
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-11-05 12:50:25', `current_sign_in_at` = '2012-11-05 12:50:25', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-11-05 12:50:25' WHERE `users`.`id` = 1
23159
+  (36.1ms) COMMIT
23160
+ Processing by Sunrise::ManagerController#index as HTML
23161
+ Parameters: {"model_name"=>"structures"}
23162
+ Role Load (0.5ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23163
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23164
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23165
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
23166
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
23167
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (2.4ms)
23168
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (24.2ms)
23169
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.5ms)
23170
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
23171
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (3.3ms)
23172
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.8ms)
23173
+ Completed 200 OK in 111ms (Views: 98.8ms | ActiveRecord: 1.7ms)
23174
+
23175
+
23176
+ Started DELETE "/manage/structures/2/delete" for 127.0.0.1 at 2012-11-05 14:50:25 +0200
23177
+ Processing by Sunrise::ManagerController#destroy as HTML
23178
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
23179
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
23180
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
23181
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23182
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23183
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23184
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23185
+  (0.1ms) BEGIN
23186
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
23187
+ SQL (9.6ms) DELETE FROM `structures` WHERE (`lft` > 2 AND `rgt` < 3)
23188
+ SQL (0.3ms) UPDATE `structures` SET `lft` = (`lft` - 2) WHERE (`structures`.`lft` > 3) ORDER BY `structures`.`lft`
23189
+ SQL (0.3ms) UPDATE `structures` SET `rgt` = (`rgt` - 2) WHERE (`structures`.`rgt` > 3) ORDER BY `structures`.`lft`
23190
+ PagePart Load (0.4ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
23191
+ SQL (0.3ms) DELETE FROM `posts` WHERE `posts`.`structure_id` = 2
23192
+ SQL (0.2ms) DELETE FROM `structures` WHERE `structures`.`id` = 2
23193
+  (43.0ms) COMMIT
23194
+ Redirected to http://www.example.com/manage/structures
23195
+ Completed 302 Found in 234ms (ActiveRecord: 0.0ms)
23196
+
23197
+
23198
+ Started GET "/manage/structures" for 127.0.0.1 at 2012-11-05 14:50:25 +0200
23199
+ Processing by Sunrise::ManagerController#index as HTML
23200
+ Parameters: {"model_name"=>"structures"}
23201
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
23202
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23203
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23204
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23205
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
23206
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (1.5ms)
23207
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.3ms)
23208
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
23209
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (3.2ms)
23210
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.6ms)
23211
+ Completed 200 OK in 24ms (Views: 15.3ms | ActiveRecord: 1.0ms)
23212
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23213
+
23214
+
23215
+ Started GET "/manage/structures" for 127.0.0.1 at 2012-11-05 14:50:25 +0200
23216
+ Processing by Sunrise::ManagerController#index as HTML
23217
+ Parameters: {"model_name"=>"structures"}
23218
+ Completed 401 Unauthorized in 1ms
23219
+
23220
+
23221
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-11-05 14:50:25 +0200
23222
+ Processing by Devise::SessionsController#new as HTML
23223
+ Rendered /home/igor/.rvm/gems/ruby-1.9.3-p194/gems/devise-2.1.0/app/views/devise/shared/_links.erb (1.2ms)
23224
+ Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms)
23225
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
23226
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
23227
+  (41.6ms) TRUNCATE TABLE `assets`;
23228
+  (22.5ms) TRUNCATE TABLE `audits`;
23229
+  (44.8ms) TRUNCATE TABLE `page_parts`;
23230
+  (66.8ms) TRUNCATE TABLE `posts`;
23231
+  (22.5ms) TRUNCATE TABLE `roles`;
23232
+  (22.5ms) TRUNCATE TABLE `settings`;
23233
+  (45.5ms) TRUNCATE TABLE `structures`;
23234
+  (22.7ms) TRUNCATE TABLE `users`;
23235
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
23236
+  (0.1ms) BEGIN
23237
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing33@example.com' LIMIT 1
23238
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:26', '2012-11-05 12:50:26', NULL, NULL, 'testing33@example.com', '5fc07e48b71e6dc11375c673c2d2a539259726cd152c661d957e3dcf50630df386b0574a6cdfb598811d9deb3cef4e889d464dfe178721b94352dc55de1974a2', 0, NULL, NULL, NULL, 'Admin', 'Bvqe8z8k89qJzbqXVvLg', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:26')
23239
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:26', 4, '2012-11-05 12:50:26', 1)
23240
+  (32.2ms) COMMIT
23241
+  (0.1ms) BEGIN
23242
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
23243
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:26', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-11-05 12:50:26')
23244
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
23245
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
23246
+  (36.8ms) COMMIT
23247
+  (0.1ms) BEGIN
23248
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
23249
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:26', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug8', 'Structure', '2012-11-05 12:50:26')
23250
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
23251
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
23252
+ 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`
23253
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
23254
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23255
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
23256
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
23257
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
23258
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
23259
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
23260
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23261
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
23262
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
23263
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
23264
+  (42.9ms) COMMIT
23265
+
23266
+
23267
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2012-11-05 14:50:26 +0200
23268
+  (0.1ms) BEGIN
23269
+  (0.1ms) COMMIT
23270
+  (0.1ms) BEGIN
23271
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-11-05 12:50:26', `current_sign_in_at` = '2012-11-05 12:50:26', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-11-05 12:50:26' WHERE `users`.`id` = 1
23272
+  (36.7ms) COMMIT
23273
+ Processing by Sunrise::ManagerController#edit as HTML
23274
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
23275
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
23276
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23277
+ Role Load (0.4ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23278
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23279
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23280
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
23281
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (76.2ms)
23282
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (375.5ms)
23283
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.6ms)
23284
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (1.4ms)
23285
+ Completed 200 OK in 442ms (Views: 391.2ms | ActiveRecord: 1.3ms)
23286
+
23287
+
23288
+ Started PUT "/manage/structures/2/edit" for 127.0.0.1 at 2012-11-05 14:50:26 +0200
23289
+ Processing by Sunrise::ManagerController#update as HTML
23290
+ Parameters: {"utf8"=>"✓", "parent_id"=>"", "parent_type"=>"", "structure"=>{"title"=>"Title updated", "redirect_url"=>"", "slug"=>"slug8", "parent_id"=>"", "kind"=>"2", "position"=>"1", "is_visible"=>"0"}, "commit"=>"Update Structure", "model_name"=>"structures", "id"=>"2"}
23291
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
23292
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
23293
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23294
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23295
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23296
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23297
+ Role Load (0.4ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
23298
+  (0.1ms) BEGIN
23299
+  (0.5ms) UPDATE `structures` SET `title` = 'Title updated', `redirect_url` = '', `parent_id` = NULL, `kind` = 2, `position` = 1, `is_visible` = 0, `updated_at` = '2012-11-05 12:50:26' WHERE `structures`.`id` = 2
23300
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
23301
+ SQL (0.4ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 1 AND 1 THEN `lft` + 3 - 1 WHEN `lft` BETWEEN 2 AND 3 THEN `lft` + 1 - 2 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 1 AND 1 THEN `rgt` + 3 - 1 WHEN `rgt` BETWEEN 2 AND 3 THEN `rgt` + 1 - 2 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN NULL ELSE `parent_id` END ORDER BY `structures`.`lft`
23302
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23303
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
23304
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 2) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
23305
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
23306
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23307
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
23308
+  (26.6ms) COMMIT
23309
+ Redirected to http://www.example.com/manage/structures
23310
+ Completed 302 Found in 60ms (ActiveRecord: 0.0ms)
23311
+
23312
+
23313
+ Started GET "/manage/structures" for 127.0.0.1 at 2012-11-05 14:50:27 +0200
23314
+ Processing by Sunrise::ManagerController#index as HTML
23315
+ Parameters: {"model_name"=>"structures"}
23316
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
23317
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23318
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23319
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23320
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
23321
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (2.6ms)
23322
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.2ms)
23323
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
23324
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (3.1ms)
23325
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.6ms)
23326
+ Completed 200 OK in 23ms (Views: 16.1ms | ActiveRecord: 0.9ms)
23327
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23328
+
23329
+
23330
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2012-11-05 14:50:27 +0200
23331
+  (0.2ms) BEGIN
23332
+  (0.1ms) COMMIT
23333
+  (0.1ms) BEGIN
23334
+  (0.4ms) UPDATE `users` SET `current_sign_in_at` = '2012-11-05 12:50:27', `sign_in_count` = 2, `updated_at` = '2012-11-05 12:50:27' WHERE `users`.`id` = 1
23335
+  (18.1ms) COMMIT
23336
+ Processing by Sunrise::ManagerController#edit as HTML
23337
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
23338
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
23339
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23340
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23341
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23342
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23343
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
23344
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (13.6ms)
23345
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (17.3ms)
23346
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.5ms)
23347
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.6ms)
23348
+ Completed 200 OK in 34ms (Views: 26.5ms | ActiveRecord: 0.7ms)
23349
+
23350
+
23351
+ Started PUT "/manage/structures/2/edit" for 127.0.0.1 at 2012-11-05 14:50:27 +0200
23352
+ Processing by Sunrise::ManagerController#update as HTML
23353
+ Parameters: {"utf8"=>"✓", "parent_id"=>"", "parent_type"=>"", "structure"=>{"title"=>"Title updated", "redirect_url"=>"", "slug"=>"slug8", "kind"=>"2", "position"=>"1", "is_visible"=>"0"}, "commit"=>"Update Structure", "model_name"=>"structures", "id"=>"2"}
23354
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
23355
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
23356
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23357
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23358
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23359
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23360
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
23361
+  (0.1ms) BEGIN
23362
+ CACHE (0.0ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23363
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
23364
+  (23.6ms) COMMIT
23365
+ Redirected to http://www.example.com/manage/structures
23366
+ Completed 302 Found in 38ms (ActiveRecord: 0.0ms)
23367
+
23368
+
23369
+ Started GET "/manage/structures" for 127.0.0.1 at 2012-11-05 14:50:27 +0200
23370
+ Processing by Sunrise::ManagerController#index as HTML
23371
+ Parameters: {"model_name"=>"structures"}
23372
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
23373
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23374
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23375
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23376
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
23377
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (2.6ms)
23378
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.1ms)
23379
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
23380
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (3.1ms)
23381
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.6ms)
23382
+ Completed 200 OK in 21ms (Views: 15.3ms | ActiveRecord: 0.5ms)
23383
+  (0.1ms) BEGIN
23384
+ PagePart Load (0.6ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
23385
+ PagePart Exists (0.6ms) SELECT 1 FROM `page_parts` WHERE (`page_parts`.`key` = BINARY 'main' AND `page_parts`.`partable_type` = 'Structure' AND `page_parts`.`partable_id` = 2) LIMIT 1
23386
+ PagePart Exists (0.5ms) SELECT 1 FROM `page_parts` WHERE (`page_parts`.`key` = BINARY 'sidebar' AND `page_parts`.`partable_type` = 'Structure' AND `page_parts`.`partable_id` = 2) LIMIT 1
23387
+ SQL (0.4ms) INSERT INTO `page_parts` (`content`, `created_at`, `key`, `partable_id`, `partable_type`, `updated_at`) VALUES ('Main', '2012-11-05 12:50:27', 'main', 2, 'Structure', '2012-11-05 12:50:27')
23388
+ SQL (0.3ms) INSERT INTO `page_parts` (`content`, `created_at`, `key`, `partable_id`, `partable_type`, `updated_at`) VALUES ('Sidebar', '2012-11-05 12:50:27', 'sidebar', 2, 'Structure', '2012-11-05 12:50:27')
23389
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23390
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
23391
+  (17.9ms) COMMIT
23392
+
23393
+
23394
+ Started GET "/manage/pages/2/edit" for 127.0.0.1 at 2012-11-05 14:50:27 +0200
23395
+  (0.1ms) BEGIN
23396
+  (0.6ms) COMMIT
23397
+  (0.1ms) BEGIN
23398
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-11-05 12:50:27', `current_sign_in_at` = '2012-11-05 12:50:27', `sign_in_count` = 3, `updated_at` = '2012-11-05 12:50:27' WHERE `users`.`id` = 1
23399
+  (35.4ms) COMMIT
23400
+ Processing by Sunrise::ManagerController#edit as HTML
23401
+ Parameters: {"model_name"=>"pages", "id"=>"2"}
23402
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
23403
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23404
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23405
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23406
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23407
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
23408
+ PagePart Load (0.6ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
23409
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (23.6ms)
23410
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (27.3ms)
23411
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.6ms)
23412
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.6ms)
23413
+ Completed 200 OK in 43ms (Views: 36.0ms | ActiveRecord: 1.0ms)
23414
+
23415
+
23416
+ Started PUT "/manage/pages/2/edit" for 127.0.0.1 at 2012-11-05 14:50:27 +0200
23417
+ Processing by Sunrise::ManagerController#update as HTML
23418
+ Parameters: {"utf8"=>"✓", "parent_id"=>"", "parent_type"=>"", "structure"=>{"main"=>"Main updated", "sidebar"=>"Sidebar updated"}, "commit"=>"Update Structure", "model_name"=>"pages", "id"=>"2"}
23419
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
23420
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
23421
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23422
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23423
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23424
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23425
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
23426
+  (0.1ms) BEGIN
23427
+ PagePart Load (0.5ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
23428
+ PagePart Exists (0.6ms) SELECT 1 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
23429
+ PagePart Exists (0.4ms) SELECT 1 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
23430
+  (0.4ms) UPDATE `page_parts` SET `content` = 'Main updated', `updated_at` = '2012-11-05 12:50:27' WHERE `page_parts`.`id` = 1
23431
+  (0.3ms) UPDATE `page_parts` SET `content` = 'Sidebar updated', `updated_at` = '2012-11-05 12:50:27' WHERE `page_parts`.`id` = 2
23432
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23433
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
23434
+  (18.3ms) COMMIT
23435
+ Redirected to http://www.example.com/manage/structures
23436
+ Completed 302 Found in 44ms (ActiveRecord: 0.0ms)
23437
+
23438
+
23439
+ Started GET "/manage/structures" for 127.0.0.1 at 2012-11-05 14:50:27 +0200
23440
+ Processing by Sunrise::ManagerController#index as HTML
23441
+ Parameters: {"model_name"=>"structures"}
23442
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
23443
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23444
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23445
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23446
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
23447
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (4.3ms)
23448
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.9ms)
23449
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
23450
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (3.7ms)
23451
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (4.2ms)
23452
+ Completed 200 OK in 29ms (Views: 20.7ms | ActiveRecord: 0.6ms)
23453
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23454
+ PagePart Load (0.5ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
23455
+
23456
+
23457
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2012-11-05 14:50:27 +0200
23458
+ Processing by Sunrise::ManagerController#edit as HTML
23459
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
23460
+ Completed 401 Unauthorized in 1ms
23461
+
23462
+
23463
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-11-05 14:50:27 +0200
23464
+ Processing by Devise::SessionsController#new as HTML
23465
+ Rendered /home/igor/.rvm/gems/ruby-1.9.3-p194/gems/devise-2.1.0/app/views/devise/shared/_links.erb (1.4ms)
23466
+ Completed 200 OK in 93ms (Views: 91.4ms | ActiveRecord: 0.0ms)
23467
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
23468
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
23469
+  (42.5ms) TRUNCATE TABLE `assets`;
23470
+  (22.4ms) TRUNCATE TABLE `audits`;
23471
+  (33.5ms) TRUNCATE TABLE `page_parts`;
23472
+  (22.4ms) TRUNCATE TABLE `posts`;
23473
+  (22.5ms) TRUNCATE TABLE `roles`;
23474
+  (22.4ms) TRUNCATE TABLE `settings`;
23475
+  (45.6ms) TRUNCATE TABLE `structures`;
23476
+  (91.0ms) TRUNCATE TABLE `users`;
23477
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
23478
+  (0.1ms) BEGIN
23479
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing34@example.com' LIMIT 1
23480
+ SQL (6.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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:27', '2012-11-05 12:50:27', NULL, NULL, 'testing34@example.com', 'd1e19455aaf9904177e4fa3e185c48d54662ece4e1dddb428d8a20dc284455043085bfe21f7c173c77af47cff8f347b959afd0c8e3c938989eff24f31ba70988', 0, NULL, NULL, NULL, 'Admin', 'v1y51rdvTd7PBfHiZn94', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:27')
23481
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:27', 4, '2012-11-05 12:50:27', 1)
23482
+  (46.6ms) COMMIT
23483
+
23484
+
23485
+ Started GET "/manage/whatever/new" for 127.0.0.1 at 2012-11-05 14:50:27 +0200
23486
+  (0.1ms) BEGIN
23487
+  (0.1ms) COMMIT
23488
+  (0.1ms) BEGIN
23489
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2012-11-05 12:50:27', `current_sign_in_at` = '2012-11-05 12:50:27', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-11-05 12:50:27' WHERE `users`.`id` = 1
23490
+  (46.2ms) COMMIT
23491
+ Processing by Sunrise::ManagerController#new as HTML
23492
+ Parameters: {"model_name"=>"whatever"}
23493
+ Completed 500 Internal Server Error in 11ms
23494
+
23495
+
23496
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2012-11-05 14:50:28 +0200
23497
+  (0.1ms) BEGIN
23498
+  (0.1ms) COMMIT
23499
+  (0.1ms) BEGIN
23500
+  (0.4ms) UPDATE `users` SET `current_sign_in_at` = '2012-11-05 12:50:28', `sign_in_count` = 2, `updated_at` = '2012-11-05 12:50:28' WHERE `users`.`id` = 1
23501
+  (32.8ms) COMMIT
23502
+ Processing by Sunrise::ManagerController#new as HTML
23503
+ Parameters: {"model_name"=>"structures"}
23504
+ Role Load (0.5ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23505
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23506
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23507
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
23508
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (15.8ms)
23509
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (19.7ms)
23510
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.5ms)
23511
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (1.4ms)
23512
+ Completed 200 OK in 44ms (Views: 33.7ms | ActiveRecord: 0.5ms)
23513
+
23514
+
23515
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2012-11-05 14:50:28 +0200
23516
+  (0.1ms) BEGIN
23517
+  (0.1ms) COMMIT
23518
+  (0.1ms) BEGIN
23519
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-11-05 12:50:28', `current_sign_in_at` = '2012-11-05 12:50:28', `sign_in_count` = 3, `updated_at` = '2012-11-05 12:50:28' WHERE `users`.`id` = 1
23520
+  (22.8ms) COMMIT
23521
+ Processing by Sunrise::ManagerController#new as HTML
23522
+ Parameters: {"model_name"=>"structures"}
23523
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23524
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23525
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23526
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
23527
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (14.5ms)
23528
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (17.9ms)
23529
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.3ms)
23530
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.6ms)
23531
+ Completed 200 OK in 31ms (Views: 26.4ms | ActiveRecord: 0.2ms)
23532
+
23533
+
23534
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2012-11-05 14:50:28 +0200
23535
+ Processing by Sunrise::ManagerController#new as HTML
23536
+ Parameters: {"model_name"=>"structures"}
23537
+ Completed 401 Unauthorized in 1ms
23538
+
23539
+
23540
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-11-05 14:50:28 +0200
23541
+ Processing by Devise::SessionsController#new as HTML
23542
+ Rendered /home/igor/.rvm/gems/ruby-1.9.3-p194/gems/devise-2.1.0/app/views/devise/shared/_links.erb (1.2ms)
23543
+ Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.0ms)
23544
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
23545
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
23546
+  (63.3ms) TRUNCATE TABLE `assets`;
23547
+  (33.7ms) TRUNCATE TABLE `audits`;
23548
+  (22.5ms) TRUNCATE TABLE `page_parts`;
23549
+  (22.5ms) TRUNCATE TABLE `posts`;
23550
+  (22.5ms) TRUNCATE TABLE `roles`;
23551
+  (22.5ms) TRUNCATE TABLE `settings`;
23552
+  (33.7ms) TRUNCATE TABLE `structures`;
23553
+  (22.8ms) TRUNCATE TABLE `users`;
23554
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
23555
+  (0.1ms) BEGIN
23556
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing35@example.com' LIMIT 1
23557
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:28', '2012-11-05 12:50:28', NULL, NULL, 'testing35@example.com', '59a965551a89c9ad33857a4fda797d14eba2c6a10de621dd6a215c29594b4bbc9a77786203ef5b4933866baf543949c0b45446795702fdf59e32306225f3beed', 0, NULL, NULL, NULL, 'Admin', 'iMYfY8HWCqq1SrVxWrhs', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:28')
23558
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:28', 4, '2012-11-05 12:50:28', 1)
23559
+  (32.1ms) COMMIT
23560
+  (0.1ms) BEGIN
23561
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
23562
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:28', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-11-05 12:50:28')
23563
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
23564
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
23565
+  (36.5ms) COMMIT
23566
+  (0.1ms) BEGIN
23567
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
23568
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:28', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug9', 'Structure', '2012-11-05 12:50:28')
23569
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
23570
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
23571
+ 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`
23572
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
23573
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23574
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
23575
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
23576
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
23577
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
23578
+ Structure Load (0.2ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
23579
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23580
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
23581
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
23582
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
23583
+  (61.3ms) COMMIT
23584
+
23585
+
23586
+ Started GET "/manage/users/export.xlsx" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
23587
+  (0.0ms) BEGIN
23588
+  (0.0ms) COMMIT
23589
+  (0.0ms) BEGIN
23590
+  (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
23591
+  (0.0ms) COMMIT
23592
+ Processing by Sunrise::ManagerController#export as XLSX
23593
+ Parameters: {"model_name"=>"users"}
23594
+ Role Load (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23595
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23596
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23597
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
23598
+ User Load (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000 OFFSET 0
23599
+ Sent data users_2012-01-01_16h00m00.xls (0.0ms)
23600
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
23601
+
23602
+
23603
+ Started GET "/manage/users/export.csv" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
23604
+  (0.0ms) BEGIN
23605
+  (0.0ms) COMMIT
23606
+  (0.0ms) BEGIN
23607
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 2 WHERE `users`.`id` = 1
23608
+  (0.0ms) COMMIT
23609
+ Processing by Sunrise::ManagerController#export as CSV
23610
+ Parameters: {"model_name"=>"users"}
23611
+ Role Load (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23612
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23613
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23614
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
23615
+ User Load (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000 OFFSET 0
23616
+ Sent data users_2012-01-01_16h00m00.csv (0.0ms)
23617
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
23618
+
23619
+
23620
+ Started GET "/manage/users/export.json" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
23621
+  (0.0ms) BEGIN
23622
+  (0.0ms) COMMIT
23623
+  (0.0ms) BEGIN
23624
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 3 WHERE `users`.`id` = 1
23625
+  (0.0ms) COMMIT
23626
+ Processing by Sunrise::ManagerController#export as JSON
23627
+ Parameters: {"model_name"=>"users"}
23628
+ Role Load (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23629
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23630
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23631
+ User Load (0.0ms) SELECT `users`.* FROM `users` LIMIT 25 OFFSET 0
23632
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
23633
+  (0.0ms) BEGIN
23634
+ 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')
23635
+  (0.0ms) COMMIT
23636
+
23637
+
23638
+ Started GET "/manage/posts/export.csv" for 127.0.0.1 at 2012-01-01 16:00:00 UTC
23639
+  (0.0ms) BEGIN
23640
+  (0.0ms) COMMIT
23641
+  (0.0ms) BEGIN
23642
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 4 WHERE `users`.`id` = 1
23643
+  (0.0ms) COMMIT
23644
+ Processing by Sunrise::ManagerController#export as CSV
23645
+ Parameters: {"model_name"=>"posts"}
23646
+ Role Load (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23647
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23648
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23649
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
23650
+ Post Load (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.`id` >= 0) ORDER BY `posts`.`id` ASC LIMIT 1000 OFFSET 0
23651
+ Structure Load (0.0ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` IN (2)
23652
+ Sent data posts_2012-01-01_16h00m00.csv (0.0ms)
23653
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
23654
+
23655
+
23656
+ Started GET "/manage/structures/export.xlsx" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
23657
+  (0.0ms) BEGIN
23658
+  (0.0ms) COMMIT
23659
+  (0.0ms) BEGIN
23660
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 5 WHERE `users`.`id` = 1
23661
+  (0.0ms) COMMIT
23662
+ Processing by Sunrise::ManagerController#export as XLSX
23663
+ Parameters: {"model_name"=>"structures"}
23664
+ Role Load (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23665
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23666
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23667
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
23668
+ Structure Load (0.0ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`id` >= 0) ORDER BY `structures`.`id` ASC LIMIT 1000 OFFSET 0
23669
+ Sent data structures_2012-01-01_16h00m00.xls (0.0ms)
23670
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
23671
+
23672
+
23673
+ Started GET "/manage/structures/export.xml" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
23674
+  (0.0ms) BEGIN
23675
+  (0.0ms) COMMIT
23676
+  (0.0ms) BEGIN
23677
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 6 WHERE `users`.`id` = 1
23678
+  (0.0ms) COMMIT
23679
+ Processing by Sunrise::ManagerController#export as XML
23680
+ Parameters: {"model_name"=>"structures"}
23681
+ Role Load (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23682
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23683
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23684
+ Structure Load (0.0ms) SELECT `structures`.* FROM `structures` LIMIT 25 OFFSET 0
23685
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
23686
+
23687
+
23688
+ Started GET "/manage/users/export.xlsx" for 127.0.0.1 at 2012-11-05 14:50:30 +0200
23689
+ Processing by Sunrise::ManagerController#export as XLSX
23690
+ Parameters: {"model_name"=>"users"}
23691
+ Completed 401 Unauthorized in 1ms
23692
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
23693
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
23694
+  (38.8ms) TRUNCATE TABLE `assets`;
23695
+  (33.7ms) TRUNCATE TABLE `audits`;
23696
+  (22.6ms) TRUNCATE TABLE `page_parts`;
23697
+  (22.4ms) TRUNCATE TABLE `posts`;
23698
+  (33.7ms) TRUNCATE TABLE `roles`;
23699
+  (66.8ms) TRUNCATE TABLE `settings`;
23700
+  (22.6ms) TRUNCATE TABLE `structures`;
23701
+  (33.8ms) TRUNCATE TABLE `users`;
23702
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
23703
+  (0.1ms) BEGIN
23704
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing36@example.com' LIMIT 1
23705
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:30', '2012-11-05 12:50:30', NULL, NULL, 'testing36@example.com', '8d226a9bcbc0711b484fddc847be86f20927081715b2d8995e32654c1b99179b531c3995bacde859a7d330c5f4fe41b646aa895bafdbf6a132b0bc68d38bfb59', 0, NULL, NULL, NULL, 'Admin', 'eSh6aV6tc3Tq8ZXfM4gi', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:30')
23706
+ SQL (0.4ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:30', 4, '2012-11-05 12:50:30', 1)
23707
+  (31.0ms) COMMIT
23708
+  (0.1ms) BEGIN
23709
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
23710
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:30', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-11-05 12:50:30')
23711
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
23712
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
23713
+  (36.4ms) COMMIT
23714
+  (0.1ms) BEGIN
23715
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
23716
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:30', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug10', 'Structure', '2012-11-05 12:50:30')
23717
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
23718
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
23719
+ 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`
23720
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
23721
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23722
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
23723
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
23724
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
23725
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
23726
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
23727
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23728
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
23729
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
23730
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
23731
+  (59.9ms) COMMIT
23732
+
23733
+
23734
+ Started GET "/manage/" for 127.0.0.1 at 2012-11-05 14:50:30 +0200
23735
+  (0.1ms) BEGIN
23736
+  (0.1ms) COMMIT
23737
+  (0.1ms) BEGIN
23738
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-11-05 12:50:30', `current_sign_in_at` = '2012-11-05 12:50:30', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-11-05 12:50:30' WHERE `users`.`id` = 1
23739
+  (25.8ms) COMMIT
23740
+ Processing by Sunrise::DashboardController#index as HTML
23741
+ Role Load (0.5ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23742
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23743
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23744
+ Audited::Adapters::ActiveRecord::Audit Load (0.5ms) SELECT `audits`.* FROM `audits` ORDER BY version, audits.id desc LIMIT 50 OFFSET 0
23745
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_event.html.erb (0.0ms)
23746
+  (0.4ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `audits` LIMIT 50 OFFSET 0) subquery_for_count 
23747
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.6ms)
23748
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (1.6ms)
23749
+ Completed 200 OK in 29ms (Views: 15.3ms | ActiveRecord: 1.3ms)
23750
+
23751
+
23752
+ Started GET "/manage/whatever" for 127.0.0.1 at 2012-11-05 14:50:30 +0200
23753
+  (0.1ms) BEGIN
23754
+  (0.1ms) COMMIT
23755
+  (0.1ms) BEGIN
23756
+  (0.4ms) UPDATE `users` SET `current_sign_in_at` = '2012-11-05 12:50:30', `sign_in_count` = 2, `updated_at` = '2012-11-05 12:50:30' WHERE `users`.`id` = 1
23757
+  (27.7ms) COMMIT
23758
+ Processing by Sunrise::ManagerController#index as HTML
23759
+ Parameters: {"model_name"=>"whatever"}
23760
+ Completed 500 Internal Server Error in 9ms
23761
+
23762
+
23763
+ Started GET "/manage/structures" for 127.0.0.1 at 2012-11-05 14:50:30 +0200
23764
+  (0.1ms) BEGIN
23765
+  (0.1ms) COMMIT
23766
+  (0.1ms) BEGIN
23767
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-11-05 12:50:30', `current_sign_in_at` = '2012-11-05 12:50:30', `sign_in_count` = 3, `updated_at` = '2012-11-05 12:50:30' WHERE `users`.`id` = 1
23768
+  (37.5ms) COMMIT
23769
+ Processing by Sunrise::ManagerController#index as HTML
23770
+ Parameters: {"model_name"=>"structures"}
23771
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23772
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23773
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23774
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
23775
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
23776
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (2.2ms)
23777
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (6.3ms)
23778
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.4ms)
23779
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
23780
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (3.3ms)
23781
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.8ms)
23782
+ Completed 200 OK in 27ms (Views: 20.0ms | ActiveRecord: 1.3ms)
23783
+
23784
+
23785
+ Started GET "/manage/users" for 127.0.0.1 at 2012-11-05 14:50:30 +0200
23786
+  (0.1ms) BEGIN
23787
+  (0.1ms) COMMIT
23788
+  (0.1ms) BEGIN
23789
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-11-05 12:50:30', `current_sign_in_at` = '2012-11-05 12:50:30', `sign_in_count` = 4, `updated_at` = '2012-11-05 12:50:30' WHERE `users`.`id` = 1
23790
+  (35.3ms) COMMIT
23791
+ Processing by Sunrise::ManagerController#index as HTML
23792
+ Parameters: {"model_name"=>"users"}
23793
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23794
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23795
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23796
+ User Load (0.5ms) SELECT `users`.* FROM `users` LIMIT 25 OFFSET 0
23797
+ Avatar Load (0.6ms) SELECT `assets`.* FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`assetable_type` = 'User' AND `assets`.`assetable_id` IN (1) ORDER BY `assets`.sort_order
23798
+ Rendered sunrise/manager/users/thumbs/_record.html.erb (4.7ms)
23799
+  (0.4ms) SELECT COUNT(*) FROM `users` 
23800
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.7ms)
23801
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
23802
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
23803
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (37.2ms)
23804
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (51.0ms)
23805
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (5.1ms)
23806
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (60.0ms)
23807
+ Completed 200 OK in 228ms (Views: 211.1ms | ActiveRecord: 1.7ms)
23808
+
23809
+
23810
+ Started GET "/manage/pages" for 127.0.0.1 at 2012-11-05 14:50:31 +0200
23811
+  (0.2ms) BEGIN
23812
+  (0.1ms) COMMIT
23813
+  (0.1ms) BEGIN
23814
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-11-05 12:50:30', `current_sign_in_at` = '2012-11-05 12:50:31', `sign_in_count` = 5, `updated_at` = '2012-11-05 12:50:31' WHERE `users`.`id` = 1
23815
+  (22.9ms) COMMIT
23816
+ Processing by Sunrise::ManagerController#index as HTML
23817
+ Parameters: {"model_name"=>"pages"}
23818
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23819
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23820
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23821
+ Completed 500 Internal Server Error in 5ms
23822
+
23823
+
23824
+ Started GET "/manage/structures" for 127.0.0.1 at 2012-11-05 14:50:31 +0200
23825
+ Processing by Sunrise::ManagerController#index as HTML
23826
+ Parameters: {"model_name"=>"structures"}
23827
+ Completed 401 Unauthorized in 1ms
23828
+
23829
+
23830
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-11-05 14:50:31 +0200
23831
+ Processing by Devise::SessionsController#new as HTML
23832
+ Rendered /home/igor/.rvm/gems/ruby-1.9.3-p194/gems/devise-2.1.0/app/views/devise/shared/_links.erb (1.1ms)
23833
+ Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.0ms)
23834
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
23835
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
23836
+  (54.5ms) TRUNCATE TABLE `assets`;
23837
+  (44.9ms) TRUNCATE TABLE `audits`;
23838
+  (22.5ms) TRUNCATE TABLE `page_parts`;
23839
+  (22.4ms) TRUNCATE TABLE `posts`;
23840
+  (22.4ms) TRUNCATE TABLE `roles`;
23841
+  (44.8ms) TRUNCATE TABLE `settings`;
23842
+  (33.7ms) TRUNCATE TABLE `structures`;
23843
+  (56.0ms) TRUNCATE TABLE `users`;
23844
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
23845
+  (0.1ms) BEGIN
23846
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing37@example.com' LIMIT 1
23847
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:31', '2012-11-05 12:50:31', NULL, NULL, 'testing37@example.com', '19eeb9258eed6e02e73ab30efd28f2abfe2c3248b968c97b19794f58b9474361acaee22a4ad0115785e6b9ee39ef5d35554f522764f2d787ec99a140942ab4fd', 0, NULL, NULL, NULL, 'Admin', 'd2PV1cJjT452pD4qEyPx', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:31')
23848
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:31', 4, '2012-11-05 12:50:31', 1)
23849
+  (44.9ms) COMMIT
23850
+
23851
+
23852
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2012-11-05 14:50:31 +0200
23853
+  (0.1ms) BEGIN
23854
+  (0.1ms) COMMIT
23855
+  (0.1ms) BEGIN
23856
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-11-05 12:50:31', `current_sign_in_at` = '2012-11-05 12:50:31', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-11-05 12:50:31' WHERE `users`.`id` = 1
23857
+  (44.9ms) COMMIT
23858
+ Processing by Sunrise::ManagerController#new as HTML
23859
+ Parameters: {"model_name"=>"structures"}
23860
+ Role Load (0.5ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23861
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23862
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23863
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
23864
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (14.8ms)
23865
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (18.3ms)
23866
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.4ms)
23867
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.6ms)
23868
+ Completed 200 OK in 33ms (Views: 27.4ms | ActiveRecord: 0.5ms)
23869
+
23870
+
23871
+ Started POST "/manage/structures/new" for 127.0.0.1 at 2012-11-05 14:50:31 +0200
23872
+ Processing by Sunrise::ManagerController#create as HTML
23873
+ Parameters: {"utf8"=>"✓", "parent_id"=>"", "parent_type"=>"", "structure"=>{"title"=>"Good day", "redirect_url"=>"", "slug"=>"", "parent_id"=>"", "kind"=>"1", "position"=>"2", "is_visible"=>"1"}, "commit"=>"Create Structure", "model_name"=>"structures"}
23874
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
23875
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23876
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23877
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23878
+ Role Load (0.4ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
23879
+  (0.1ms) BEGIN
23880
+ Structure Load (32.4ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'good-day' OR `slug` LIKE 'good-day--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
23881
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
23882
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:32', 0, 1, 1, 1, NULL, 2, '', 2, 'good-day', 'Good day', '2012-11-05 12:50:32')
23883
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
23884
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
23885
+  (41.4ms) COMMIT
23886
+ Redirected to http://www.example.com/manage/structures
23887
+ Completed 302 Found in 426ms (ActiveRecord: 0.0ms)
23888
+
23889
+
23890
+ Started GET "/manage/structures" for 127.0.0.1 at 2012-11-05 14:50:32 +0200
23891
+ Processing by Sunrise::ManagerController#index as HTML
23892
+ Parameters: {"model_name"=>"structures"}
23893
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
23894
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23895
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23896
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23897
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
23898
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (1.5ms)
23899
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.3ms)
23900
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
23901
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (3.2ms)
23902
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.6ms)
23903
+ Completed 200 OK in 22ms (Views: 14.9ms | ActiveRecord: 0.9ms)
23904
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`id` DESC LIMIT 1
23905
+
23906
+
23907
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2012-11-05 14:50:32 +0200
23908
+ Processing by Sunrise::ManagerController#new as HTML
23909
+ Parameters: {"model_name"=>"structures"}
23910
+ Completed 401 Unauthorized in 0ms
23911
+
23912
+
23913
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-11-05 14:50:32 +0200
23914
+ Processing by Devise::SessionsController#new as HTML
23915
+ Rendered /home/igor/.rvm/gems/ruby-1.9.3-p194/gems/devise-2.1.0/app/views/devise/shared/_links.erb (1.1ms)
23916
+ Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.0ms)
23917
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
23918
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
23919
+  (17.0ms) TRUNCATE TABLE `assets`;
23920
+  (33.6ms) TRUNCATE TABLE `audits`;
23921
+  (22.5ms) TRUNCATE TABLE `page_parts`;
23922
+  (22.4ms) TRUNCATE TABLE `posts`;
23923
+  (22.5ms) TRUNCATE TABLE `roles`;
23924
+  (44.7ms) TRUNCATE TABLE `settings`;
23925
+  (22.6ms) TRUNCATE TABLE `structures`;
23926
+  (44.8ms) TRUNCATE TABLE `users`;
23927
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
23928
+  (0.1ms) BEGIN
23929
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing38@example.com' LIMIT 1
23930
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:32', '2012-11-05 12:50:32', NULL, NULL, 'testing38@example.com', '4348a8daac734d52fc8aaccc508225e3351fdd2d5af8b274bed863e5a31acc5b35ded8ed34a6e37b319c6b433c7f04f3672ae626f65e1433e28a39efcbd4477b', 0, NULL, NULL, NULL, 'Admin', 'MQQFsvWzJK98TdcQCR7a', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:32')
23931
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:32', 4, '2012-11-05 12:50:32', 1)
23932
+  (31.9ms) COMMIT
23933
+  (0.1ms) BEGIN
23934
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
23935
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:32', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-11-05 12:50:32')
23936
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
23937
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
23938
+  (36.3ms) COMMIT
23939
+  (0.1ms) BEGIN
23940
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
23941
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:32', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug11', 'Structure', '2012-11-05 12:50:32')
23942
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
23943
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
23944
+ 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`
23945
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
23946
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23947
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
23948
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
23949
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
23950
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
23951
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
23952
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23953
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
23954
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
23955
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
23956
+  (45.7ms) COMMIT
23957
+
23958
+
23959
+ Started GET "/manage/whatever/2/edit" for 127.0.0.1 at 2012-11-05 14:50:32 +0200
23960
+  (0.1ms) BEGIN
23961
+  (0.1ms) COMMIT
23962
+  (0.1ms) BEGIN
23963
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-11-05 12:50:32', `current_sign_in_at` = '2012-11-05 12:50:32', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-11-05 12:50:32' WHERE `users`.`id` = 1
23964
+  (57.5ms) COMMIT
23965
+ Processing by Sunrise::ManagerController#edit as HTML
23966
+ Parameters: {"model_name"=>"whatever", "id"=>"2"}
23967
+ Completed 500 Internal Server Error in 10ms
23968
+
23969
+
23970
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2012-11-05 14:50:32 +0200
23971
+  (0.1ms) BEGIN
23972
+  (0.1ms) COMMIT
23973
+  (0.1ms) BEGIN
23974
+  (0.4ms) UPDATE `users` SET `current_sign_in_at` = '2012-11-05 12:50:32', `sign_in_count` = 2, `updated_at` = '2012-11-05 12:50:32' WHERE `users`.`id` = 1
23975
+  (67.6ms) COMMIT
23976
+ Processing by Sunrise::ManagerController#edit as HTML
23977
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
23978
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
23979
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
23980
+ Role Load (0.4ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23981
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23982
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
23983
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
23984
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (15.9ms)
23985
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (19.8ms)
23986
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.7ms)
23987
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.7ms)
23988
+ Completed 200 OK in 37ms (Views: 29.4ms | ActiveRecord: 1.2ms)
23989
+
23990
+
23991
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2012-11-05 14:50:32 +0200
23992
+  (0.2ms) BEGIN
23993
+  (0.1ms) COMMIT
23994
+  (0.1ms) BEGIN
23995
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-11-05 12:50:32', `current_sign_in_at` = '2012-11-05 12:50:32', `sign_in_count` = 3, `updated_at` = '2012-11-05 12:50:32' WHERE `users`.`id` = 1
23996
+  (49.7ms) COMMIT
23997
+ Processing by Sunrise::ManagerController#edit as HTML
23998
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
23999
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
24000
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24001
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24002
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24003
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24004
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
24005
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (103.2ms)
24006
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (107.3ms)
24007
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.7ms)
24008
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.6ms)
24009
+ Completed 200 OK in 125ms (Views: 116.8ms | ActiveRecord: 0.5ms)
24010
+
24011
+
24012
+ Started GET "/manage/pages/2/edit" for 127.0.0.1 at 2012-11-05 14:50:32 +0200
24013
+  (0.1ms) BEGIN
24014
+  (0.1ms) COMMIT
24015
+  (0.1ms) BEGIN
24016
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-11-05 12:50:32', `current_sign_in_at` = '2012-11-05 12:50:32', `sign_in_count` = 4, `updated_at` = '2012-11-05 12:50:32' WHERE `users`.`id` = 1
24017
+  (23.4ms) COMMIT
24018
+ Processing by Sunrise::ManagerController#edit as HTML
24019
+ Parameters: {"model_name"=>"pages", "id"=>"2"}
24020
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
24021
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24022
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24023
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24024
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24025
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
24026
+ PagePart Load (0.5ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
24027
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (9.8ms)
24028
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (13.7ms)
24029
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.8ms)
24030
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.6ms)
24031
+ Completed 200 OK in 32ms (Views: 22.9ms | ActiveRecord: 1.0ms)
24032
+
24033
+
24034
+ Started GET "/manage/pages/2/edit" for 127.0.0.1 at 2012-11-05 14:50:33 +0200
24035
+  (0.1ms) BEGIN
24036
+  (0.1ms) COMMIT
24037
+  (0.1ms) BEGIN
24038
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-11-05 12:50:32', `current_sign_in_at` = '2012-11-05 12:50:33', `sign_in_count` = 5, `updated_at` = '2012-11-05 12:50:33' WHERE `users`.`id` = 1
24039
+  (40.2ms) COMMIT
24040
+ Processing by Sunrise::ManagerController#edit as HTML
24041
+ Parameters: {"model_name"=>"pages", "id"=>"2"}
24042
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
24043
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24044
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24045
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24046
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24047
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
24048
+ PagePart Load (0.2ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
24049
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (7.5ms)
24050
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (11.2ms)
24051
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.5ms)
24052
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.7ms)
24053
+ Completed 200 OK in 27ms (Views: 20.2ms | ActiveRecord: 0.6ms)
24054
+
24055
+
24056
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2012-11-05 14:50:33 +0200
24057
+ Processing by Sunrise::ManagerController#edit as HTML
24058
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
24059
+ Completed 401 Unauthorized in 1ms
24060
+
24061
+
24062
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-11-05 14:50:33 +0200
24063
+ Processing by Devise::SessionsController#new as HTML
24064
+ Rendered /home/igor/.rvm/gems/ruby-1.9.3-p194/gems/devise-2.1.0/app/views/devise/shared/_links.erb (1.2ms)
24065
+ Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 0.0ms)
24066
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
24067
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
24068
+  (22.9ms) TRUNCATE TABLE `assets`;
24069
+  (33.7ms) TRUNCATE TABLE `audits`;
24070
+  (22.4ms) TRUNCATE TABLE `page_parts`;
24071
+  (22.5ms) TRUNCATE TABLE `posts`;
24072
+  (22.5ms) TRUNCATE TABLE `roles`;
24073
+  (33.7ms) TRUNCATE TABLE `settings`;
24074
+  (22.6ms) TRUNCATE TABLE `structures`;
24075
+  (44.8ms) TRUNCATE TABLE `users`;
24076
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
24077
+  (0.1ms) BEGIN
24078
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing39@example.com' LIMIT 1
24079
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:33', '2012-11-05 12:50:33', NULL, NULL, 'testing39@example.com', '6bd36bfa82addda95dd9ef53ac49d428cdfc9f3b91492345b3a8b069d434109343da974f0eedd85d2d5ac69bf58692717ef5dd59bd7deb5ca10084084f02b1fc', 0, NULL, NULL, NULL, 'Admin', 'dysWBMxyxj2d8szjn6Fp', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:33')
24080
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:33', 4, '2012-11-05 12:50:33', 1)
24081
+  (32.2ms) COMMIT
24082
+  (0.1ms) BEGIN
24083
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
24084
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:33', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-11-05 12:50:33')
24085
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
24086
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
24087
+  (36.4ms) COMMIT
24088
+  (0.1ms) BEGIN
24089
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
24090
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:33', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug12', 'Structure', '2012-11-05 12:50:33')
24091
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
24092
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
24093
+ 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`
24094
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
24095
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24096
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
24097
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
24098
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
24099
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
24100
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
24101
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24102
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
24103
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
24104
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
24105
+  (61.0ms) COMMIT
24106
+  (0.1ms) BEGIN
24107
+ SQL (35.5ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2012-11-05 12:50:33', 1, 2, 'Default title', '2012-11-05 12:50:33')
24108
+  (39.0ms) COMMIT
24109
+
24110
+
24111
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-11-05 14:50:33 +0200
24112
+  (0.1ms) BEGIN
24113
+  (0.1ms) COMMIT
24114
+  (0.1ms) BEGIN
24115
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2012-11-05 12:50:33', `current_sign_in_at` = '2012-11-05 12:50:33', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-11-05 12:50:33' WHERE `users`.`id` = 1
24116
+  (35.5ms) COMMIT
24117
+ Processing by Sunrise::ManagerController#index as HTML
24118
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
24119
+ Role Load (0.5ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24120
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24121
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24122
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
24123
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24124
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
24125
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (7.2ms)
24126
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
24127
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (5.0ms)
24128
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
24129
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
24130
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (6.4ms)
24131
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (17.1ms)
24132
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (3.5ms)
24133
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (21.3ms)
24134
+ Completed 200 OK in 96ms (Views: 83.0ms | ActiveRecord: 2.2ms)
24135
+
24136
+
24137
+ Started DELETE "/manage/posts/1/delete?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-11-05 14:50:33 +0200
24138
+ Processing by Sunrise::ManagerController#destroy as HTML
24139
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
24140
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
24141
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
24142
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24143
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24144
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24145
+  (0.1ms) BEGIN
24146
+ SQL (119.8ms) DELETE FROM `posts` WHERE `posts`.`id` = 1
24147
+  (324.5ms) COMMIT
24148
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
24149
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24150
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
24151
+ Completed 302 Found in 460ms (ActiveRecord: 0.0ms)
24152
+
24153
+
24154
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-11-05 14:50:34 +0200
24155
+ Processing by Sunrise::ManagerController#index as HTML
24156
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
24157
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
24158
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24159
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24160
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24161
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
24162
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24163
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
24164
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (0.0ms)
24165
+  (0.4ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
24166
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.8ms)
24167
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
24168
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
24169
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (6.1ms)
24170
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (11.7ms)
24171
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (3.5ms)
24172
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (15.9ms)
24173
+ Completed 200 OK in 40ms (Views: 28.9ms | ActiveRecord: 1.4ms)
24174
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
24175
+
24176
+
24177
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-11-05 14:50:34 +0200
24178
+ Processing by Sunrise::ManagerController#index as HTML
24179
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
24180
+ Completed 401 Unauthorized in 1ms
24181
+
24182
+
24183
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-11-05 14:50:34 +0200
24184
+ Processing by Devise::SessionsController#new as HTML
24185
+ Rendered /home/igor/.rvm/gems/ruby-1.9.3-p194/gems/devise-2.1.0/app/views/devise/shared/_links.erb (101.2ms)
24186
+ Completed 200 OK in 109ms (Views: 108.3ms | ActiveRecord: 0.0ms)
24187
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
24188
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
24189
+  (168.4ms) TRUNCATE TABLE `assets`;
24190
+  (33.6ms) TRUNCATE TABLE `audits`;
24191
+  (22.4ms) TRUNCATE TABLE `page_parts`;
24192
+  (22.8ms) TRUNCATE TABLE `posts`;
24193
+  (22.6ms) TRUNCATE TABLE `roles`;
24194
+  (33.1ms) TRUNCATE TABLE `settings`;
24195
+  (22.6ms) TRUNCATE TABLE `structures`;
24196
+  (33.8ms) TRUNCATE TABLE `users`;
24197
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
24198
+  (0.1ms) BEGIN
24199
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing40@example.com' LIMIT 1
24200
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:34', '2012-11-05 12:50:34', NULL, NULL, 'testing40@example.com', '061074703602d5c8c877e2aee80929fd296afec3d594714fdc47f537bcf248a98fd9f66e12bd29ac371a50660abae41666c2e9523e4a6941eef3a133fca62953', 0, NULL, NULL, NULL, 'Admin', 'YgEyxBUzhexbaUpbg2Pc', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:34')
24201
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:34', 4, '2012-11-05 12:50:34', 1)
24202
+  (104.0ms) COMMIT
24203
+  (0.1ms) BEGIN
24204
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
24205
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:34', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-11-05 12:50:34')
24206
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
24207
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
24208
+  (47.6ms) COMMIT
24209
+  (0.1ms) BEGIN
24210
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
24211
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:35', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug13', 'Structure', '2012-11-05 12:50:35')
24212
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
24213
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
24214
+ 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`
24215
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
24216
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24217
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
24218
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
24219
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
24220
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
24221
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
24222
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24223
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
24224
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
24225
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
24226
+  (61.8ms) COMMIT
24227
+  (0.1ms) BEGIN
24228
+ SQL (0.3ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2012-11-05 12:50:35', 1, 2, 'Default title', '2012-11-05 12:50:35')
24229
+  (124.6ms) COMMIT
24230
+
24231
+
24232
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-11-05 14:50:35 +0200
24233
+  (0.1ms) BEGIN
24234
+  (0.1ms) COMMIT
24235
+  (0.1ms) BEGIN
24236
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-11-05 12:50:35', `current_sign_in_at` = '2012-11-05 12:50:35', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-11-05 12:50:35' WHERE `users`.`id` = 1
24237
+  (29.8ms) COMMIT
24238
+ Processing by Sunrise::ManagerController#edit as HTML
24239
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
24240
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
24241
+ Role Load (0.4ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24242
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24243
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24244
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
24245
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (7.4ms)
24246
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (11.1ms)
24247
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.8ms)
24248
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.7ms)
24249
+ Completed 200 OK in 30ms (Views: 21.1ms | ActiveRecord: 0.9ms)
24250
+
24251
+
24252
+ Started PUT "/manage/posts/1/edit" for 127.0.0.1 at 2012-11-05 14:50:35 +0200
24253
+ Processing by Sunrise::ManagerController#update as HTML
24254
+ 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"}
24255
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
24256
+ Post Load (0.1ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
24257
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24258
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24259
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24260
+ Role Load (0.4ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
24261
+  (0.1ms) BEGIN
24262
+  (0.4ms) UPDATE `posts` SET `title` = 'Title updated', `content` = 'Tra la la', `is_visible` = 0, `updated_at` = '2012-11-05 12:50:35' WHERE `posts`.`id` = 1
24263
+  (19.5ms) COMMIT
24264
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
24265
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24266
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
24267
+ Completed 302 Found in 37ms (ActiveRecord: 0.0ms)
24268
+
24269
+
24270
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-11-05 14:50:35 +0200
24271
+ Processing by Sunrise::ManagerController#index as HTML
24272
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
24273
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
24274
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24275
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24276
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24277
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
24278
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24279
+ Post Load (0.6ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
24280
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (5.0ms)
24281
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
24282
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.6ms)
24283
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
24284
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
24285
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (6.5ms)
24286
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (12.1ms)
24287
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (3.7ms)
24288
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (16.4ms)
24289
+ Completed 200 OK in 45ms (Views: 34.7ms | ActiveRecord: 1.7ms)
24290
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
24291
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24292
+
24293
+
24294
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-11-05 14:50:35 +0200
24295
+  (0.1ms) BEGIN
24296
+  (0.1ms) COMMIT
24297
+  (0.1ms) BEGIN
24298
+  (0.4ms) UPDATE `users` SET `current_sign_in_at` = '2012-11-05 12:50:35', `sign_in_count` = 2, `updated_at` = '2012-11-05 12:50:35' WHERE `users`.`id` = 1
24299
+  (19.7ms) COMMIT
24300
+ Processing by Sunrise::ManagerController#edit as HTML
24301
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
24302
+ Post Load (0.2ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
24303
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24304
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24305
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24306
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.6ms)
24307
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (7.4ms)
24308
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (11.1ms)
24309
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (5.1ms)
24310
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.6ms)
24311
+ Completed 200 OK in 27ms (Views: 20.9ms | ActiveRecord: 0.3ms)
24312
+
24313
+
24314
+ Started PUT "/manage/posts/1/edit" for 127.0.0.1 at 2012-11-05 14:50:35 +0200
24315
+ Processing by Sunrise::ManagerController#update as HTML
24316
+ 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"}
24317
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
24318
+ Post Load (0.2ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
24319
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24320
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24321
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24322
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
24323
+  (0.1ms) BEGIN
24324
+  (0.1ms) COMMIT
24325
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
24326
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24327
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
24328
+ Completed 302 Found in 14ms (ActiveRecord: 0.0ms)
24329
+
24330
+
24331
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-11-05 14:50:35 +0200
24332
+ Processing by Sunrise::ManagerController#index as HTML
24333
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
24334
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
24335
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24336
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24337
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24338
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
24339
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24340
+ Post Load (0.2ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
24341
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (4.8ms)
24342
+  (0.2ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
24343
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.5ms)
24344
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
24345
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
24346
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.9ms)
24347
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (11.2ms)
24348
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (3.5ms)
24349
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (15.4ms)
24350
+ Completed 200 OK in 42ms (Views: 33.0ms | ActiveRecord: 0.9ms)
24351
+
24352
+
24353
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-11-05 14:50:35 +0200
24354
+ Processing by Sunrise::ManagerController#edit as HTML
24355
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
24356
+ Completed 401 Unauthorized in 1ms
24357
+
24358
+
24359
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-11-05 14:50:35 +0200
24360
+ Processing by Devise::SessionsController#new as HTML
24361
+ Rendered /home/igor/.rvm/gems/ruby-1.9.3-p194/gems/devise-2.1.0/app/views/devise/shared/_links.erb (1.3ms)
24362
+ Completed 200 OK in 12ms (Views: 10.3ms | ActiveRecord: 0.0ms)
24363
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
24364
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
24365
+  (21.8ms) TRUNCATE TABLE `assets`;
24366
+  (22.5ms) TRUNCATE TABLE `audits`;
24367
+  (33.7ms) TRUNCATE TABLE `page_parts`;
24368
+  (22.4ms) TRUNCATE TABLE `posts`;
24369
+  (22.4ms) TRUNCATE TABLE `roles`;
24370
+  (22.5ms) TRUNCATE TABLE `settings`;
24371
+  (22.5ms) TRUNCATE TABLE `structures`;
24372
+  (22.6ms) TRUNCATE TABLE `users`;
24373
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
24374
+  (0.1ms) BEGIN
24375
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing41@example.com' LIMIT 1
24376
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:35', '2012-11-05 12:50:35', NULL, NULL, 'testing41@example.com', 'a51a9d2476a8e515076fffd378e357bfd302330b51568a1844d929915a6375e9597212870f9fcd6f0d952439a9a877969eb6911a5a9e3a6c34d0418184d75bb1', 0, NULL, NULL, NULL, 'Admin', 'FWuTw4Fao3KpaQTvCF7q', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:35')
24377
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:35', 4, '2012-11-05 12:50:35', 1)
24378
+  (54.3ms) COMMIT
24379
+  (0.1ms) BEGIN
24380
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
24381
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:35', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-11-05 12:50:35')
24382
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
24383
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
24384
+  (25.2ms) COMMIT
24385
+  (0.1ms) BEGIN
24386
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
24387
+ SQL (0.7ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:35', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug14', 'Structure', '2012-11-05 12:50:35')
24388
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
24389
+ Structure Load (0.5ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
24390
+ 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`
24391
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
24392
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24393
+  (0.7ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
24394
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
24395
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
24396
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
24397
+ Structure Load (0.6ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
24398
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24399
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
24400
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
24401
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
24402
+  (39.1ms) COMMIT
24403
+
24404
+
24405
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-11-05 14:50:35 +0200
24406
+  (0.2ms) BEGIN
24407
+  (0.1ms) COMMIT
24408
+  (0.1ms) BEGIN
24409
+  (0.6ms) UPDATE `users` SET `last_sign_in_at` = '2012-11-05 12:50:35', `current_sign_in_at` = '2012-11-05 12:50:35', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-11-05 12:50:35' WHERE `users`.`id` = 1
24410
+  (21.7ms) COMMIT
24411
+ Processing by Sunrise::ManagerController#new as HTML
24412
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
24413
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
24414
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24415
+ Role Load (0.5ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24416
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24417
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24418
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
24419
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (107.1ms)
24420
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (110.9ms)
24421
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.7ms)
24422
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.6ms)
24423
+ Completed 200 OK in 133ms (Views: 120.6ms | ActiveRecord: 1.6ms)
24424
+
24425
+
24426
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-11-05 14:50:36 +0200
24427
+  (0.1ms) BEGIN
24428
+  (0.1ms) COMMIT
24429
+  (0.1ms) BEGIN
24430
+  (0.4ms) UPDATE `users` SET `current_sign_in_at` = '2012-11-05 12:50:36', `sign_in_count` = 2, `updated_at` = '2012-11-05 12:50:36' WHERE `users`.`id` = 1
24431
+  (17.0ms) COMMIT
24432
+ Processing by Sunrise::ManagerController#new as HTML
24433
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
24434
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
24435
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24436
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24437
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24438
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24439
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.6ms)
24440
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (9.2ms)
24441
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (12.9ms)
24442
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.9ms)
24443
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.6ms)
24444
+ Completed 200 OK in 31ms (Views: 22.5ms | ActiveRecord: 0.5ms)
24445
+
24446
+
24447
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-11-05 14:50:36 +0200
24448
+  (0.1ms) BEGIN
24449
+  (0.1ms) COMMIT
24450
+  (0.1ms) BEGIN
24451
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-11-05 12:50:36', `current_sign_in_at` = '2012-11-05 12:50:36', `sign_in_count` = 3, `updated_at` = '2012-11-05 12:50:36' WHERE `users`.`id` = 1
24452
+  (31.0ms) COMMIT
24453
+ Processing by Sunrise::ManagerController#new as HTML
24454
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
24455
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
24456
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24457
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24458
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24459
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24460
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
24461
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (7.1ms)
24462
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (10.6ms)
24463
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (5.4ms)
24464
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.9ms)
24465
+ Completed 200 OK in 29ms (Views: 21.3ms | ActiveRecord: 0.4ms)
24466
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
24467
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
24468
+  (66.7ms) TRUNCATE TABLE `assets`;
24469
+  (44.7ms) TRUNCATE TABLE `audits`;
24470
+  (22.5ms) TRUNCATE TABLE `page_parts`;
24471
+  (22.5ms) TRUNCATE TABLE `posts`;
24472
+  (44.6ms) TRUNCATE TABLE `roles`;
24473
+  (22.6ms) TRUNCATE TABLE `settings`;
24474
+  (22.6ms) TRUNCATE TABLE `structures`;
24475
+  (44.8ms) TRUNCATE TABLE `users`;
24476
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
24477
+  (0.2ms) BEGIN
24478
+ User Exists (0.6ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing42@example.com' LIMIT 1
24479
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:36', '2012-11-05 12:50:36', NULL, NULL, 'testing42@example.com', 'd821510a4808ae9885452216e14d1315d78bce89233d4986487483f1c2a8445c702011713621f0765f68479695d2271d956cdf194a46ed3090d11ec5df44d714', 0, NULL, NULL, NULL, 'Admin', 'rcTwrTqr93JvCx5eMdBC', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:36')
24480
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:36', 4, '2012-11-05 12:50:36', 1)
24481
+  (41.5ms) COMMIT
24482
+  (0.1ms) BEGIN
24483
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
24484
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:36', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-11-05 12:50:36')
24485
+ Structure Load (1.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
24486
+ SQL (0.6ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
24487
+  (43.2ms) COMMIT
24488
+  (0.1ms) BEGIN
24489
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
24490
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:36', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug15', 'Structure', '2012-11-05 12:50:36')
24491
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
24492
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
24493
+ 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`
24494
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
24495
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24496
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
24497
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
24498
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
24499
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
24500
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
24501
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24502
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
24503
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
24504
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
24505
+  (46.8ms) COMMIT
24506
+  (0.1ms) BEGIN
24507
+ SQL (0.3ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2012-11-05 12:50:36', 1, 2, 'Default title', '2012-11-05 12:50:36')
24508
+  (40.8ms) COMMIT
24509
+
24510
+
24511
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-11-05 14:50:36 +0200
24512
+  (0.1ms) BEGIN
24513
+  (0.1ms) COMMIT
24514
+  (0.1ms) BEGIN
24515
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-11-05 12:50:36', `current_sign_in_at` = '2012-11-05 12:50:36', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-11-05 12:50:36' WHERE `users`.`id` = 1
24516
+  (35.6ms) COMMIT
24517
+ Processing by Sunrise::ManagerController#index as HTML
24518
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
24519
+ Role Load (0.5ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24520
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24521
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24522
+ Structure Load (1.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
24523
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24524
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
24525
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (6.7ms)
24526
+  (0.6ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
24527
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (5.8ms)
24528
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
24529
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
24530
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (6.6ms)
24531
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (12.6ms)
24532
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (3.6ms)
24533
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (16.9ms)
24534
+ Completed 200 OK in 53ms (Views: 40.4ms | ActiveRecord: 3.4ms)
24535
+  (0.2ms) BEGIN
24536
+ SQL (0.4ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2012-11-05 12:50:36', 1, 2, 'Good day', '2012-11-05 12:50:36')
24537
+  (23.4ms) COMMIT
24538
+
24539
+
24540
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-11-05 14:50:36 +0200
24541
+  (0.1ms) BEGIN
24542
+  (0.1ms) COMMIT
24543
+  (0.1ms) BEGIN
24544
+  (0.4ms) UPDATE `users` SET `current_sign_in_at` = '2012-11-05 12:50:36', `sign_in_count` = 2, `updated_at` = '2012-11-05 12:50:36' WHERE `users`.`id` = 1
24545
+  (35.5ms) COMMIT
24546
+ Processing by Sunrise::ManagerController#index as HTML
24547
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
24548
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24549
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24550
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24551
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
24552
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24553
+ Post Load (0.6ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
24554
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (9.2ms)
24555
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
24556
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.8ms)
24557
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
24558
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
24559
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (6.0ms)
24560
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (11.4ms)
24561
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (3.6ms)
24562
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (15.6ms)
24563
+ Completed 200 OK in 49ms (Views: 38.9ms | ActiveRecord: 1.5ms)
24564
+
24565
+
24566
+ 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 2012-11-05 14:50:37 +0200
24567
+ Processing by Sunrise::ManagerController#index as HTML
24568
+ Parameters: {"utf8"=>"✓", "parent_id"=>"2", "parent_type"=>"Structure", "search"=>{"title"=>"Good day", "structure_id"=>""}, "commit"=>"Search", "model_name"=>"posts"}
24569
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
24570
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24571
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24572
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24573
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
24574
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24575
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`title` = 'Good day' AND `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
24576
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (100.2ms)
24577
+  (0.7ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`title` = 'Good day' AND `posts`.`structure_id` = 2
24578
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.7ms)
24579
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
24580
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
24581
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (6.1ms)
24582
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (12.2ms)
24583
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (3.8ms)
24584
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (16.6ms)
24585
+ Completed 200 OK in 142ms (Views: 130.4ms | ActiveRecord: 2.1ms)
24586
+
24587
+
24588
+ Started GET "/manage/posts?parent_id=1&parent_type=Structure" for 127.0.0.1 at 2012-11-05 14:50:37 +0200
24589
+  (0.1ms) BEGIN
24590
+  (0.1ms) COMMIT
24591
+  (0.1ms) BEGIN
24592
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2012-11-05 12:50:36', `current_sign_in_at` = '2012-11-05 12:50:37', `sign_in_count` = 3, `updated_at` = '2012-11-05 12:50:37' WHERE `users`.`id` = 1
24593
+  (19.5ms) COMMIT
24594
+ Processing by Sunrise::ManagerController#index as HTML
24595
+ Parameters: {"parent_id"=>"1", "parent_type"=>"Structure", "model_name"=>"posts"}
24596
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24597
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24598
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24599
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '1' LIMIT 1
24600
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
24601
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 1 LIMIT 25 OFFSET 0
24602
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (0.0ms)
24603
+  (0.3ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 1
24604
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (5.9ms)
24605
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
24606
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
24607
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (6.3ms)
24608
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (12.8ms)
24609
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (3.6ms)
24610
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (17.2ms)
24611
+ Completed 200 OK in 43ms (Views: 31.5ms | ActiveRecord: 1.9ms)
24612
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
24613
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
24614
+  (30.2ms) TRUNCATE TABLE `assets`;
24615
+  (44.7ms) TRUNCATE TABLE `audits`;
24616
+  (22.4ms) TRUNCATE TABLE `page_parts`;
24617
+  (22.6ms) TRUNCATE TABLE `posts`;
24618
+  (22.5ms) TRUNCATE TABLE `roles`;
24619
+  (44.6ms) TRUNCATE TABLE `settings`;
24620
+  (45.6ms) TRUNCATE TABLE `structures`;
24621
+  (33.7ms) TRUNCATE TABLE `users`;
24622
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
24623
+  (0.1ms) BEGIN
24624
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing43@example.com' LIMIT 1
24625
+ SQL (0.8ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:37', '2012-11-05 12:50:37', NULL, NULL, 'testing43@example.com', 'e27e0720af6228b37d256869b517c9d430a4c700476448dc4526f2dc3fdb3232eb5f9f9d36460854ca96b94bfca7551b1956bd450f9de0f79262a96652b0bfc6', 0, NULL, NULL, NULL, 'Admin', 'aAypxYnLUXqsemTURgx3', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:37')
24626
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:37', 4, '2012-11-05 12:50:37', 1)
24627
+  (48.1ms) COMMIT
24628
+  (0.1ms) BEGIN
24629
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
24630
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:37', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-11-05 12:50:37')
24631
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
24632
+ SQL (1.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
24633
+  (33.7ms) COMMIT
24634
+  (0.1ms) BEGIN
24635
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
24636
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:37', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug16', 'Structure', '2012-11-05 12:50:37')
24637
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
24638
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
24639
+ 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`
24640
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
24641
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24642
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
24643
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
24644
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
24645
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
24646
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
24647
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24648
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
24649
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
24650
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
24651
+  (40.7ms) COMMIT
24652
+
24653
+
24654
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-11-05 14:50:37 +0200
24655
+  (0.1ms) BEGIN
24656
+  (0.1ms) COMMIT
24657
+  (0.1ms) BEGIN
24658
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2012-11-05 12:50:37', `current_sign_in_at` = '2012-11-05 12:50:37', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-11-05 12:50:37' WHERE `users`.`id` = 1
24659
+  (35.4ms) COMMIT
24660
+ Processing by Sunrise::ManagerController#new as HTML
24661
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
24662
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
24663
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24664
+ Role Load (0.4ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24665
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24666
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24667
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
24668
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (7.1ms)
24669
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (10.6ms)
24670
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.7ms)
24671
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.6ms)
24672
+ Completed 200 OK in 28ms (Views: 20.0ms | ActiveRecord: 1.2ms)
24673
+
24674
+
24675
+ Started POST "/manage/posts/new" for 127.0.0.1 at 2012-11-05 14:50:37 +0200
24676
+ Processing by Sunrise::ManagerController#create as HTML
24677
+ 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"}
24678
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
24679
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
24680
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24681
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24682
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24683
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24684
+ Role Load (0.4ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
24685
+  (0.1ms) BEGIN
24686
+ SQL (0.3ms) 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', '2012-11-05 12:50:37', 1, 2, 'Good title', '2012-11-05 12:50:37')
24687
+  (26.0ms) COMMIT
24688
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
24689
+ Completed 302 Found in 40ms (ActiveRecord: 0.0ms)
24690
+
24691
+
24692
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-11-05 14:50:37 +0200
24693
+ Processing by Sunrise::ManagerController#index as HTML
24694
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
24695
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
24696
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24697
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24698
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24699
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
24700
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24701
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
24702
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (4.8ms)
24703
+  (0.4ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
24704
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (5.0ms)
24705
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
24706
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
24707
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (6.0ms)
24708
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (11.9ms)
24709
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (3.7ms)
24710
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (16.2ms)
24711
+ Completed 200 OK in 44ms (Views: 34.4ms | ActiveRecord: 1.5ms)
24712
+ Post Load (0.6ms) SELECT `posts`.* FROM `posts` ORDER BY `posts`.`id` DESC LIMIT 1
24713
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24714
+
24715
+
24716
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-11-05 14:50:37 +0200
24717
+  (0.1ms) BEGIN
24718
+  (0.1ms) COMMIT
24719
+  (0.1ms) BEGIN
24720
+  (0.5ms) UPDATE `users` SET `current_sign_in_at` = '2012-11-05 12:50:37', `sign_in_count` = 2, `updated_at` = '2012-11-05 12:50:37' WHERE `users`.`id` = 1
24721
+  (20.5ms) COMMIT
24722
+ Processing by Sunrise::ManagerController#new as HTML
24723
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
24724
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
24725
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24726
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24727
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24728
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24729
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
24730
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (8.7ms)
24731
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (12.6ms)
24732
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.6ms)
24733
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.6ms)
24734
+ Completed 200 OK in 30ms (Views: 22.2ms | ActiveRecord: 0.5ms)
24735
+
24736
+
24737
+ Started POST "/manage/posts/new" for 127.0.0.1 at 2012-11-05 14:50:38 +0200
24738
+ Processing by Sunrise::ManagerController#create as HTML
24739
+ 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"}
24740
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
24741
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
24742
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24743
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24744
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24745
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24746
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
24747
+  (0.1ms) BEGIN
24748
+ 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', '2012-11-05 12:50:38', 1, 2, 'Good title', '2012-11-05 12:50:38')
24749
+  (18.1ms) COMMIT
24750
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
24751
+ Completed 302 Found in 137ms (ActiveRecord: 0.0ms)
24752
+
24753
+
24754
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-11-05 14:50:38 +0200
24755
+ Processing by Sunrise::ManagerController#index as HTML
24756
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
24757
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
24758
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24759
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24760
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24761
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
24762
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24763
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
24764
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (8.8ms)
24765
+  (0.4ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
24766
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.9ms)
24767
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
24768
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
24769
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (6.1ms)
24770
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (11.5ms)
24771
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (3.5ms)
24772
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (15.7ms)
24773
+ Completed 200 OK in 51ms (Views: 39.8ms | ActiveRecord: 1.6ms)
24774
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` ORDER BY `posts`.`id` DESC LIMIT 1
24775
+
24776
+
24777
+ Started GET "/manage/posts/new" for 127.0.0.1 at 2012-11-05 14:50:38 +0200
24778
+ Processing by Sunrise::ManagerController#new as HTML
24779
+ Parameters: {"model_name"=>"posts"}
24780
+ Completed 401 Unauthorized in 0ms
24781
+
24782
+
24783
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-11-05 14:50:38 +0200
24784
+ Processing by Devise::SessionsController#new as HTML
24785
+ Rendered /home/igor/.rvm/gems/ruby-1.9.3-p194/gems/devise-2.1.0/app/views/devise/shared/_links.erb (1.1ms)
24786
+ Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.0ms)
24787
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
24788
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
24789
+  (62.5ms) TRUNCATE TABLE `assets`;
24790
+  (22.5ms) TRUNCATE TABLE `audits`;
24791
+  (44.7ms) TRUNCATE TABLE `page_parts`;
24792
+  (33.6ms) TRUNCATE TABLE `posts`;
24793
+  (33.6ms) TRUNCATE TABLE `roles`;
24794
+  (44.7ms) TRUNCATE TABLE `settings`;
24795
+  (55.8ms) TRUNCATE TABLE `structures`;
24796
+  (123.9ms) TRUNCATE TABLE `users`;
24797
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
24798
+  (0.1ms) BEGIN
24799
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing44@example.com' LIMIT 1
24800
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:38', '2012-11-05 12:50:38', NULL, NULL, 'testing44@example.com', 'b65794ce0e783030063eca67cccb0ff89329f8323fc09b2ccb2a93cc0d3a364810c4218d06a30798b14d9e3d4887e7c3caa0dc20f83495f8f9faf5a65b8dcb34', 0, NULL, NULL, NULL, 'Admin', 'DsFoft3M246sTnLT1oGJ', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:38')
24801
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:38', 4, '2012-11-05 12:50:38', 1)
24802
+  (43.1ms) COMMIT
24803
+  (0.1ms) BEGIN
24804
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
24805
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:38', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-11-05 12:50:38')
24806
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
24807
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
24808
+  (36.4ms) COMMIT
24809
+  (0.1ms) BEGIN
24810
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
24811
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:38', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug17', 'Structure', '2012-11-05 12:50:38')
24812
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
24813
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
24814
+ 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`
24815
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
24816
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24817
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
24818
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
24819
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
24820
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
24821
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
24822
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24823
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
24824
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
24825
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
24826
+  (52.0ms) COMMIT
24827
+  (0.1ms) BEGIN
24828
+ SQL (0.3ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2012-11-05 12:50:38', 1, 2, 'Default title', '2012-11-05 12:50:38')
24829
+  (41.0ms) COMMIT
24830
+
24831
+
24832
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-11-05 14:50:38 +0200
24833
+  (0.1ms) BEGIN
24834
+  (0.1ms) COMMIT
24835
+  (0.1ms) BEGIN
24836
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-11-05 12:50:38', `current_sign_in_at` = '2012-11-05 12:50:38', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-11-05 12:50:38' WHERE `users`.`id` = 1
24837
+  (35.4ms) COMMIT
24838
+ Processing by Sunrise::ManagerController#edit as HTML
24839
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
24840
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
24841
+ Role Load (0.4ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24842
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24843
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24844
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
24845
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (7.3ms)
24846
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (11.0ms)
24847
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.8ms)
24848
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.6ms)
24849
+ Completed 200 OK in 28ms (Views: 20.5ms | ActiveRecord: 0.9ms)
24850
+
24851
+
24852
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-11-05 14:50:38 +0200
24853
+  (0.1ms) BEGIN
24854
+  (0.1ms) COMMIT
24855
+  (0.1ms) BEGIN
24856
+  (0.5ms) UPDATE `users` SET `current_sign_in_at` = '2012-11-05 12:50:38', `sign_in_count` = 2, `updated_at` = '2012-11-05 12:50:38' WHERE `users`.`id` = 1
24857
+  (22.7ms) COMMIT
24858
+ Processing by Sunrise::ManagerController#edit as HTML
24859
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
24860
+ Post Load (0.2ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
24861
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24862
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24863
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24864
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.6ms)
24865
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (7.0ms)
24866
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (10.7ms)
24867
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.5ms)
24868
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.6ms)
24869
+ Completed 200 OK in 26ms (Views: 19.9ms | ActiveRecord: 0.3ms)
24870
+
24871
+
24872
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-11-05 14:50:39 +0200
24873
+ Processing by Sunrise::ManagerController#edit as HTML
24874
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
24875
+ Completed 401 Unauthorized in 1ms
24876
+
24877
+
24878
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-11-05 14:50:39 +0200
24879
+ Processing by Devise::SessionsController#new as HTML
24880
+ Rendered /home/igor/.rvm/gems/ruby-1.9.3-p194/gems/devise-2.1.0/app/views/devise/shared/_links.erb (1.2ms)
24881
+ Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.0ms)
24882
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
24883
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
24884
+  (32.9ms) TRUNCATE TABLE `assets`;
24885
+  (22.6ms) TRUNCATE TABLE `audits`;
24886
+  (22.5ms) TRUNCATE TABLE `page_parts`;
24887
+  (33.3ms) TRUNCATE TABLE `posts`;
24888
+  (22.5ms) TRUNCATE TABLE `roles`;
24889
+  (22.3ms) TRUNCATE TABLE `settings`;
24890
+  (91.9ms) TRUNCATE TABLE `structures`;
24891
+  (65.8ms) TRUNCATE TABLE `users`;
24892
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
24893
+  (0.1ms) BEGIN
24894
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing45@example.com' LIMIT 1
24895
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:39', '2012-11-05 12:50:39', NULL, NULL, 'testing45@example.com', '957613460e949259a5ff4dd6c36816fbdb6630a070556434bcb48c697f3cb2632f47fa0de8e361616b9c4e0a9a16d3a1ec414fb02661779078ed5b0cd0dc1a87', 0, NULL, NULL, NULL, 'Admin', 'NnxbvRqGQcnCmCSvuUiw', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:39')
24896
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:39', 4, '2012-11-05 12:50:39', 1)
24897
+  (33.5ms) COMMIT
24898
+  (0.1ms) BEGIN
24899
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
24900
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:39', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-11-05 12:50:39')
24901
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
24902
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
24903
+  (54.5ms) COMMIT
24904
+  (0.1ms) BEGIN
24905
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
24906
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:39', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug18', 'Structure', '2012-11-05 12:50:39')
24907
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
24908
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
24909
+ 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`
24910
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
24911
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24912
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
24913
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
24914
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
24915
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
24916
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
24917
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
24918
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
24919
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
24920
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
24921
+  (52.2ms) COMMIT
24922
+
24923
+
24924
+ Started GET "/manage/services.json" for 127.0.0.1 at 2012-11-05 14:50:39 +0200
24925
+  (0.1ms) BEGIN
24926
+  (0.1ms) COMMIT
24927
+  (0.1ms) BEGIN
24928
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2012-11-05 12:50:39', `current_sign_in_at` = '2012-11-05 12:50:39', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-11-05 12:50:39' WHERE `users`.`id` = 1
24929
+  (24.3ms) COMMIT
24930
+ Processing by Sunrise::SharedController#services as JSON
24931
+ Role Load (0.6ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24932
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24933
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
24934
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`depth` = 1
24935
+ Completed 200 OK in 102ms (Views: 86.1ms | ActiveRecord: 1.1ms)
24936
+
24937
+
24938
+ Started GET "/manage/services.json" for 127.0.0.1 at 2012-11-05 14:50:39 +0200
24939
+ Processing by Sunrise::SharedController#services as JSON
24940
+ Completed 401 Unauthorized in 1ms
24941
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
24942
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
24943
+  (28.5ms) TRUNCATE TABLE `assets`;
24944
+  (58.1ms) TRUNCATE TABLE `audits`;
24945
+  (34.1ms) TRUNCATE TABLE `page_parts`;
24946
+  (70.7ms) TRUNCATE TABLE `posts`;
24947
+  (45.1ms) TRUNCATE TABLE `roles`;
24948
+  (228.5ms) TRUNCATE TABLE `settings`;
24949
+  (40.9ms) TRUNCATE TABLE `structures`;
24950
+  (77.7ms) TRUNCATE TABLE `users`;
24951
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
24952
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
24953
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
24954
+  (43.4ms) TRUNCATE TABLE `assets`;
24955
+  (22.5ms) TRUNCATE TABLE `audits`;
24956
+  (33.6ms) TRUNCATE TABLE `page_parts`;
24957
+  (22.5ms) TRUNCATE TABLE `posts`;
24958
+  (22.6ms) TRUNCATE TABLE `roles`;
24959
+  (33.5ms) TRUNCATE TABLE `settings`;
24960
+  (22.6ms) TRUNCATE TABLE `structures`;
24961
+  (44.8ms) TRUNCATE TABLE `users`;
24962
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
24963
+  (0.1ms) BEGIN
24964
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing46@example.com' LIMIT 1
24965
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:40', '2012-11-05 12:50:40', NULL, NULL, 'testing46@example.com', 'ea1b4c3c5b0c35fc5e65316e5f9d0eb3dda9002bad405000e875698729c21b6c4a96e785cd9a557f4e906e50b32bf2d18149bbd0c40c9d0b6233568424d72681', 0, NULL, NULL, NULL, 'Test', 'pbdgCDPaQWcrKyMtKDVR', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:40')
24966
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:40', 1, '2012-11-05 12:50:40', 1)
24967
+  (28.9ms) COMMIT
24968
+  (0.1ms) BEGIN
24969
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
24970
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:40', 0, 1, 1, 1, NULL, 2, NULL, 2, 'slug19', 'Structure', '2012-11-05 12:50:40')
24971
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
24972
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
24973
+  (35.2ms) COMMIT
24974
+  (0.1ms) BEGIN
24975
+ SQL (0.3ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2012-11-05 12:50:40', 1, 1, 'Default title', '2012-11-05 12:50:40')
24976
+  (42.2ms) COMMIT
24977
+  (0.1ms) BEGIN
24978
+  (0.5ms) SELECT MAX(`audits`.`version`) AS max_id FROM `audits` WHERE `audits`.`auditable_id` = 1 AND `audits`.`auditable_type` = 'Post'
24979
+ 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, '2012-11-05 12:50:40', NULL, 1, 'User', NULL, 1)
24980
+  (31.1ms) COMMIT
24981
+  (0.1ms) BEGIN
24982
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing47@example.com' LIMIT 1
24983
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:40', '2012-11-05 12:50:40', NULL, NULL, 'testing47@example.com', 'f44df29069eb4c9e1d5ebf335c4083407e8a5952a4b76d284194b4e51caf92f4dabc4d155df4feac8d9b8b95b8212af9b6feec476b56c8e554fdeaf08f079532', 0, NULL, NULL, NULL, 'Admin', 'uXNZ9JxFxBq4xZmRuhz8', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:40')
24984
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:40', 4, '2012-11-05 12:50:40', 2)
24985
+  (36.3ms) COMMIT
24986
+ Processing by Sunrise::DashboardController#index as HTML
24987
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1
24988
+ Role Load (0.6ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 2 LIMIT 1
24989
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 2 LIMIT 1
24990
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 2 LIMIT 1
24991
+ Audited::Adapters::ActiveRecord::Audit Load (0.5ms) SELECT `audits`.* FROM `audits` ORDER BY version, audits.id asc LIMIT 50 OFFSET 0
24992
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` IN (1)
24993
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_event.html.erb (4.6ms)
24994
+  (0.5ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `audits` LIMIT 50 OFFSET 0) subquery_for_count 
24995
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (5.2ms)
24996
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (1.8ms)
24997
+ Completed 200 OK in 43ms (Views: 24.5ms | ActiveRecord: 3.2ms)
24998
+ Processing by Sunrise::DashboardController#index as HTML
24999
+ Completed 401 Unauthorized in 1ms
25000
+ Processing by Sunrise::DashboardController#index as HTML
25001
+ Completed 401 Unauthorized in 1ms
25002
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
25003
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
25004
+  (21.9ms) TRUNCATE TABLE `assets`;
25005
+  (44.6ms) TRUNCATE TABLE `audits`;
25006
+  (22.4ms) TRUNCATE TABLE `page_parts`;
25007
+  (22.4ms) TRUNCATE TABLE `posts`;
25008
+  (44.8ms) TRUNCATE TABLE `roles`;
25009
+  (84.2ms) TRUNCATE TABLE `settings`;
25010
+  (212.7ms) TRUNCATE TABLE `structures`;
25011
+  (88.5ms) TRUNCATE TABLE `users`;
25012
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
25013
+  (0.1ms) BEGIN
25014
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
25015
+ SQL (0.5ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:41', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-11-05 12:50:41')
25016
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
25017
+ SQL (0.5ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
25018
+  (43.7ms) COMMIT
25019
+  (0.1ms) BEGIN
25020
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
25021
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:41', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug20', 'Structure', '2012-11-05 12:50:41')
25022
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
25023
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
25024
+ SQL (0.8ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
25025
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
25026
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
25027
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
25028
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
25029
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
25030
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
25031
+ Structure Load (0.4ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
25032
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
25033
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
25034
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
25035
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
25036
+  (24.5ms) COMMIT
25037
+  (0.1ms) BEGIN
25038
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing48@example.com' LIMIT 1
25039
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:41', '2012-11-05 12:50:41', NULL, NULL, 'testing48@example.com', '97bcf21d7c15b40ca02bdba5e66f285b33aa8b77cc6d94ccd512ee634e736e73211c926f808318d690254429229dd93a8843428e879add610b86d310534dc48a', 0, NULL, NULL, NULL, 'Admin', 'ds67Gf4jq7JeWHJ21ugr', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:41')
25040
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:41', 4, '2012-11-05 12:50:41', 1)
25041
+  (34.1ms) COMMIT
25042
+ Processing by Sunrise::SharedController#services as JSON
25043
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
25044
+ Role Load (0.5ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
25045
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
25046
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
25047
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`depth` = 1
25048
+ Completed 200 OK in 19ms (Views: 3.3ms | ActiveRecord: 1.8ms)
25049
+ Processing by Sunrise::SharedController#services as JSON
25050
+ Completed 401 Unauthorized in 1ms
25051
+ Processing by Sunrise::SharedController#services as HTML
25052
+ Completed 401 Unauthorized in 1ms
25053
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
25054
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
25055
+  (19.7ms) TRUNCATE TABLE `assets`;
25056
+  (44.7ms) TRUNCATE TABLE `audits`;
25057
+  (22.4ms) TRUNCATE TABLE `page_parts`;
25058
+  (22.6ms) TRUNCATE TABLE `posts`;
25059
+  (22.5ms) TRUNCATE TABLE `roles`;
25060
+  (44.7ms) TRUNCATE TABLE `settings`;
25061
+  (22.5ms) TRUNCATE TABLE `structures`;
25062
+  (44.7ms) TRUNCATE TABLE `users`;
25063
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
25064
+  (0.1ms) BEGIN
25065
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing49@example.com' LIMIT 1
25066
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:42', '2012-11-05 12:50:42', NULL, NULL, 'testing49@example.com', '52756077bb72d45480ff7b549d2ab5086f99d704e4126e3d5e0336dc37b6ed900d034f49a2a1ff77448865cef7ec08191e4d45a9bfe55f6327a19a707382753c', 0, NULL, NULL, NULL, 'Admin', 'z9uNoSJVdzhJUx5YB8GL', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:42')
25067
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:42', 4, '2012-11-05 12:50:42', 1)
25068
+  (61.0ms) COMMIT
25069
+ Processing by Sunrise::SettingsController#edit as HTML
25070
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
25071
+ Role Load (0.5ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
25072
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
25073
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
25074
+ Settings Load (0.3ms) SELECT var, value FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL
25075
+ 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
25076
+ 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
25077
+ 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
25078
+ Rendered /var/www/gems/sunrise/app/views/sunrise/settings/_form.html.erb (15.4ms)
25079
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (5.2ms)
25080
+ Rendered /var/www/gems/sunrise/app/views/sunrise/settings/_header_edit.html.erb (1.6ms)
25081
+ Completed 200 OK in 130ms (Views: 109.1ms | ActiveRecord: 4.6ms)
25082
+ Processing by Sunrise::SettingsController#update as HTML
25083
+ Parameters: {"settings"=>{"some_setting"=>"blablabla"}}
25084
+ User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
25085
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
25086
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
25087
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
25088
+ 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
25089
+  (0.1ms) BEGIN
25090
+ SQL (0.4ms) INSERT INTO `settings` (`created_at`, `target_id`, `target_type`, `updated_at`, `value`, `var`) VALUES ('2012-11-05 12:50:42', NULL, NULL, '2012-11-05 12:50:42', '--- blablabla\n...\n', 'some_setting')
25091
+  (29.6ms) COMMIT
25092
+ Redirected to http://test.host/manage/
25093
+ Completed 302 Found in 83ms (ActiveRecord: 31.1ms)
25094
+ Processing by Sunrise::SettingsController#update as HTML
25095
+ Completed 401 Unauthorized in 1ms
25096
+ Processing by Sunrise::SettingsController#edit as HTML
25097
+ Completed 401 Unauthorized in 1ms
25098
+ Processing by Sunrise::SettingsController#edit as HTML
25099
+ Completed 401 Unauthorized in 0ms
25100
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
25101
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
25102
+  (49.9ms) TRUNCATE TABLE `assets`;
25103
+  (44.7ms) TRUNCATE TABLE `audits`;
25104
+  (22.6ms) TRUNCATE TABLE `page_parts`;
25105
+  (22.5ms) TRUNCATE TABLE `posts`;
25106
+  (44.6ms) TRUNCATE TABLE `roles`;
25107
+  (22.7ms) TRUNCATE TABLE `settings`;
25108
+  (22.7ms) TRUNCATE TABLE `structures`;
25109
+  (45.0ms) TRUNCATE TABLE `users`;
25110
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
25111
+  (0.1ms) BEGIN
25112
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing50@example.com' LIMIT 1
25113
+ 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`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-11-05 12:50:42', '2012-11-05 12:50:42', NULL, NULL, 'testing50@example.com', 'ae61e2fe61e81ebca0f24c1fd803972f13c5a7f0aaf2326a887d45a4eae42b0149dba36c35e5c6be6055324962323f223866ac2a0c97a74da55f2c89ff088a4e', 0, NULL, NULL, NULL, 'Admin', 'VYyeoNLzDRFtavYRJAMR', NULL, NULL, NULL, 0, NULL, '2012-11-05 12:50:42')
25114
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-11-05 12:50:42', 4, '2012-11-05 12:50:42', 1)
25115
+  (47.0ms) COMMIT
25116
+  (0.1ms) BEGIN
25117
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
25118
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:42', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-11-05 12:50:42')
25119
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
25120
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
25121
+  (34.7ms) COMMIT
25122
+  (0.1ms) BEGIN
25123
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
25124
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-11-05 12:50:42', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug21', 'Structure', '2012-11-05 12:50:42')
25125
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
25126
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
25127
+ 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`
25128
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
25129
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
25130
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
25131
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
25132
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
25133
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
25134
+ Structure Load (0.3ms) SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
25135
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
25136
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
25137
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
25138
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
25139
+  (53.5ms) COMMIT
25140
+ Processing by Sunrise::ManagerController#index as HTML
25141
+ Parameters: {"model_name"=>"structures"}
25142
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
25143
+ Role Load (0.5ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
25144
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
25145
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
25146
+ Completed 200 OK in 10ms (Views: 1.8ms | ActiveRecord: 1.3ms)
25147
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
25148
+ Processing by Sunrise::ManagerController#index as HTML
25149
+ Parameters: {"model_name"=>"wrong"}
25150
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
25151
+ Completed 500 Internal Server Error in 9ms
25152
+ Processing by Sunrise::ManagerController#destroy as HTML
25153
+ Parameters: {"model_name"=>"structures", "id"=>"1"}
25154
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
25155
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '1' LIMIT 1
25156
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
25157
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
25158
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
25159
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
25160
+ 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: "2012-11-05 12:50:42", updated_at: "2012-11-05 12:50:42">, context: sunrise, user: 1
25161
+ Redirected to http://test.host/
25162
+ Completed 302 Found in 12ms (ActiveRecord: 1.4ms)
25163
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
25164
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
25165
+  (21.5ms) TRUNCATE TABLE `assets`;
25166
+  (44.7ms) TRUNCATE TABLE `audits`;
25167
+  (22.5ms) TRUNCATE TABLE `page_parts`;
25168
+  (22.5ms) TRUNCATE TABLE `posts`;
25169
+  (22.5ms) TRUNCATE TABLE `roles`;
25170
+  (22.5ms) TRUNCATE TABLE `settings`;
25171
+  (45.0ms) TRUNCATE TABLE `structures`;
25172
+  (22.9ms) TRUNCATE TABLE `users`;
25173
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1