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.
- data/README.rdoc +50 -2
- data/app/assets/javascripts/sunrise/manage.js.coffee +18 -0
- data/app/assets/stylesheets/sunrise/customize.css +43 -0
- data/app/controllers/sunrise/dashboard_controller.rb +2 -1
- data/app/helpers/sunrise/manager_helper.rb +30 -0
- data/app/views/sunrise/manager/_field.html.erb +15 -1
- data/app/views/sunrise/manager/_nested_field.html.erb +4 -0
- data/config/locales/sunrise/en.yml +1 -0
- data/config/locales/sunrise/ru.yml +1 -0
- data/config/locales/sunrise/uk.yml +1 -0
- data/lib/sunrise/abstract_model.rb +3 -6
- data/lib/sunrise/config/field.rb +5 -1
- data/lib/sunrise/config/has_fields.rb +9 -0
- data/lib/sunrise/config/nested_field.rb +27 -0
- data/lib/sunrise/config.rb +1 -1
- data/lib/sunrise/models/settings.rb +4 -0
- data/lib/sunrise/version.rb +1 -1
- data/spec/dummy/log/test.log +2704 -0
- metadata +6 -4
data/spec/dummy/log/test.log
CHANGED
@@ -22467,3 +22467,2707 @@ Completed 302 Found in 13ms (ActiveRecord: 1.5ms)
|
|
22467
22467
|
[1m[35m (22.6ms)[0m TRUNCATE TABLE `structures`;
|
22468
22468
|
[1m[36m (44.8ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
22469
22469
|
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
22470
|
+
[1m[36m (109.3ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
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
|
+
[1m[35m (0.1ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
|
22477
|
+
Migrating to InstallActsAsAudited (20111227111941)
|
22478
|
+
Migrating to CreatePageParts (20111227143901)
|
22479
|
+
Migrating to CreatePosts (20111228152051)
|
22480
|
+
[1m[36m (0.1ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
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
|
+
[1m[35m (0.1ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
|
22487
|
+
Migrating to InstallActsAsAudited (20111227111941)
|
22488
|
+
Migrating to CreatePageParts (20111227143901)
|
22489
|
+
Migrating to CreatePosts (20111228152051)
|
22490
|
+
[1m[36m (54.3ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
22491
|
+
[1m[35m (0.2ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
22492
|
+
[1m[36m (71.8ms)[0m [1mSELECT DATABASE() as db[0m
|
22493
|
+
[1m[35m (72.8ms)[0m select table_name from information_schema.views where table_schema = 'sunrise_dummy_test'
|
22494
|
+
[1m[36m (279.3ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
22495
|
+
[1m[35m (109.6ms)[0m TRUNCATE TABLE `audits`;
|
22496
|
+
[1m[36m (136.4ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
22497
|
+
[1m[35m (51.9ms)[0m TRUNCATE TABLE `posts`;
|
22498
|
+
[1m[36m (77.9ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
22499
|
+
[1m[35m (33.4ms)[0m TRUNCATE TABLE `settings`;
|
22500
|
+
[1m[36m (133.6ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
22501
|
+
[1m[35m (243.7ms)[0m TRUNCATE TABLE `users`;
|
22502
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
22503
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22504
|
+
[1m[36mUser Exists (16.8ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing1@example.com' LIMIT 1[0m
|
22505
|
+
[1m[35mSQL (16.0ms)[0m 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
|
+
[1m[36mSQL (34.2ms)[0m [1mINSERT 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)[0m
|
22507
|
+
[1m[35m (40.2ms)[0m COMMIT
|
22508
|
+
[1m[36mUser Exists (0.6ms)[0m [1mSELECT 1 FROM `users` WHERE (`users`.`email` = BINARY 'wrong' AND `users`.`id` != 1) LIMIT 1[0m
|
22509
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 FROM `users` WHERE (`users`.`email` = BINARY 'wrong' AND `users`.`id` != 1) LIMIT 1
|
22510
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22511
|
+
[1m[35mUser Exists (0.5ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing2@example.com' LIMIT 1
|
22512
|
+
[1m[36mSQL (10.3ms)[0m [1mINSERT 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')[0m
|
22513
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (23.2ms)[0m [1mCOMMIT[0m
|
22515
|
+
[1m[35mUser Load (61.6ms)[0m SELECT `users`.* FROM `users` WHERE (email LIKE 'testing2%') LIMIT 1
|
22516
|
+
[1m[36m (1.1ms)[0m [1mBEGIN[0m
|
22517
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing3@example.com' LIMIT 1
|
22518
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
22519
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (66.0ms)[0m [1mCOMMIT[0m
|
22521
|
+
[1m[35mUser Load (19.6ms)[0m SELECT `users`.* FROM `users` INNER JOIN `roles` ON `roles`.`user_id` = `users`.`id` WHERE `roles`.`role_type` = 1
|
22522
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22523
|
+
[1m[35mUser Exists (0.5ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing4@example.com' LIMIT 1
|
22524
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
22525
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (33.4ms)[0m [1mCOMMIT[0m
|
22527
|
+
Scoped order and limit are ignored, it's forced to be batch order and batch size
|
22528
|
+
[1m[35mUser Load (0.5ms)[0m SELECT id, email, name, current_sign_in_ip FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000
|
22529
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22530
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing5@example.com' LIMIT 1
|
22531
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
22532
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (62.9ms)[0m [1mCOMMIT[0m
|
22534
|
+
Scoped order and limit are ignored, it's forced to be batch order and batch size
|
22535
|
+
[1m[35mUser Load (0.6ms)[0m SELECT id, email, confirmed_at, created_at FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000
|
22536
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22537
|
+
[1m[35mUser Exists (0.5ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing6@example.com' LIMIT 1
|
22538
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
22539
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (53.6ms)[0m [1mCOMMIT[0m
|
22541
|
+
[1m[35mRole Load (0.6ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 6 LIMIT 1
|
22542
|
+
[1m[36mRole Load (0.2ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 6 LIMIT 1[0m
|
22543
|
+
[1m[35mRole Load (0.5ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 6
|
22544
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
22545
|
+
[1m[35mUser Exists (0.6ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing7@example.com' LIMIT 1
|
22546
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT 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')[0m
|
22547
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (67.4ms)[0m [1mCOMMIT[0m
|
22549
|
+
[1m[35mAvatar Load (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22551
|
+
[1m[35mUser Exists (0.5ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing8@example.com' LIMIT 1
|
22552
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT 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')[0m
|
22553
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (38.6ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22578
|
+
[1m[36m (21.7ms)[0m [1mUPDATE `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[0m
|
22579
|
+
[1m[35m (28.3ms)[0m COMMIT
|
22580
|
+
[1m[36m (1.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
22581
|
+
[1m[35m (0.2ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
22582
|
+
[1m[36m (48.1ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
22583
|
+
[1m[35m (22.6ms)[0m TRUNCATE TABLE `audits`;
|
22584
|
+
[1m[36m (45.4ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
22585
|
+
[1m[35m (77.1ms)[0m TRUNCATE TABLE `posts`;
|
22586
|
+
[1m[36m (66.9ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
22587
|
+
[1m[35m (66.6ms)[0m TRUNCATE TABLE `settings`;
|
22588
|
+
[1m[36m (78.0ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
22589
|
+
[1m[35m (89.3ms)[0m TRUNCATE TABLE `users`;
|
22590
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
22591
|
+
[1m[35m (0.2ms)[0m BEGIN
|
22592
|
+
[1m[36mUser Exists (0.6ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing9@example.com' LIMIT 1[0m
|
22593
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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)[0m
|
22595
|
+
[1m[35m (48.1ms)[0m COMMIT
|
22596
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
22597
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (28.2ms)[0m [1mCOMMIT[0m
|
22599
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22600
|
+
[1m[36mUser Exists (0.5ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing10@example.com' LIMIT 1[0m
|
22601
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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)[0m
|
22603
|
+
[1m[35m (32.8ms)[0m COMMIT
|
22604
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22605
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing11@example.com' LIMIT 1
|
22606
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
22607
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (23.9ms)[0m [1mCOMMIT[0m
|
22609
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22610
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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)[0m
|
22611
|
+
[1m[35m (46.7ms)[0m COMMIT
|
22612
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22613
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing12@example.com' LIMIT 1
|
22614
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
22615
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (25.2ms)[0m [1mCOMMIT[0m
|
22617
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22618
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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)[0m
|
22619
|
+
[1m[35m (44.4ms)[0m COMMIT
|
22620
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
22621
|
+
[1m[35mUser Exists (0.5ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing13@example.com' LIMIT 1
|
22622
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT 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')[0m
|
22623
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (30.3ms)[0m [1mCOMMIT[0m
|
22625
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22626
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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)[0m
|
22627
|
+
[1m[35m (37.2ms)[0m COMMIT
|
22628
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22629
|
+
[1m[35mUser Exists (0.5ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing14@example.com' LIMIT 1
|
22630
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
22631
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (29.7ms)[0m [1mCOMMIT[0m
|
22633
|
+
[1m[35m (0.8ms)[0m BEGIN
|
22634
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT 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)[0m
|
22635
|
+
[1m[35m (101.1ms)[0m COMMIT
|
22636
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22637
|
+
[1m[35mUser Exists (0.5ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing15@example.com' LIMIT 1
|
22638
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
22639
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (255.9ms)[0m [1mCOMMIT[0m
|
22641
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22642
|
+
[1m[36mSQL (140.9ms)[0m [1mINSERT 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)[0m
|
22643
|
+
[1m[35m (185.7ms)[0m COMMIT
|
22644
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22645
|
+
[1m[35mUser Exists (0.5ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing16@example.com' LIMIT 1
|
22646
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
22647
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (225.1ms)[0m [1mCOMMIT[0m
|
22649
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22650
|
+
[1m[36mSQL (2.7ms)[0m [1mINSERT 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)[0m
|
22651
|
+
[1m[35m (39.8ms)[0m COMMIT
|
22652
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22653
|
+
[1m[35mUser Exists (0.5ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing17@example.com' LIMIT 1
|
22654
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
22655
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (27.7ms)[0m [1mCOMMIT[0m
|
22657
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22658
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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)[0m
|
22659
|
+
[1m[35m (23.4ms)[0m COMMIT
|
22660
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
22661
|
+
[1m[35mUser Exists (0.5ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing18@example.com' LIMIT 1
|
22662
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
22663
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (26.6ms)[0m [1mCOMMIT[0m
|
22665
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22666
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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)[0m
|
22667
|
+
[1m[35m (45.5ms)[0m COMMIT
|
22668
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22669
|
+
[1m[35mUser Exists (0.5ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing19@example.com' LIMIT 1
|
22670
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
22671
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (29.0ms)[0m [1mCOMMIT[0m
|
22673
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22674
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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)[0m
|
22675
|
+
[1m[35m (37.7ms)[0m COMMIT
|
22676
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22677
|
+
[1m[35mUser Exists (0.5ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing20@example.com' LIMIT 1
|
22678
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
22679
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (25.9ms)[0m [1mCOMMIT[0m
|
22681
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22682
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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)[0m
|
22683
|
+
[1m[35m (48.3ms)[0m COMMIT
|
22684
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22685
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
22686
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22687
|
+
[1m[35mUser Exists (0.5ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing21@example.com' LIMIT 1
|
22688
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
22689
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (33.5ms)[0m [1mCOMMIT[0m
|
22691
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22692
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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)[0m
|
22693
|
+
[1m[35m (37.3ms)[0m COMMIT
|
22694
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
22695
|
+
[1m[35mUser Exists (0.6ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing22@example.com' LIMIT 1
|
22696
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
22697
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (27.6ms)[0m [1mCOMMIT[0m
|
22699
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22700
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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)[0m
|
22701
|
+
[1m[35m (37.1ms)[0m COMMIT
|
22702
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
22703
|
+
[1m[35mUser Exists (0.5ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing23@example.com' LIMIT 1
|
22704
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
22705
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (27.4ms)[0m [1mCOMMIT[0m
|
22707
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22708
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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)[0m
|
22709
|
+
[1m[35m (37.7ms)[0m COMMIT
|
22710
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22711
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
22712
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
22713
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
22714
|
+
[1m[36m (50.0ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
22715
|
+
[1m[35m (22.4ms)[0m TRUNCATE TABLE `audits`;
|
22716
|
+
[1m[36m (22.7ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
22717
|
+
[1m[35m (44.6ms)[0m TRUNCATE TABLE `posts`;
|
22718
|
+
[1m[36m (22.7ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
22719
|
+
[1m[35m (22.3ms)[0m TRUNCATE TABLE `settings`;
|
22720
|
+
[1m[36m (45.0ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
22721
|
+
[1m[35m (78.0ms)[0m TRUNCATE TABLE `users`;
|
22722
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
22723
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
22724
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
22725
|
+
[1m[35m (83.4ms)[0m TRUNCATE TABLE `assets`;
|
22726
|
+
[1m[36m (33.4ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
22727
|
+
[1m[35m (55.9ms)[0m TRUNCATE TABLE `page_parts`;
|
22728
|
+
[1m[36m (44.6ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
22729
|
+
[1m[35m (84.6ms)[0m TRUNCATE TABLE `roles`;
|
22730
|
+
[1m[36m (27.0ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
22731
|
+
[1m[35m (44.8ms)[0m TRUNCATE TABLE `structures`;
|
22732
|
+
[1m[36m (22.7ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
22733
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
22734
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22735
|
+
[1m[35mUser Exists (0.5ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing24@example.com' LIMIT 1
|
22736
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
22737
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (31.6ms)[0m [1mCOMMIT[0m
|
22739
|
+
[1m[35m (0.2ms)[0m BEGIN
|
22740
|
+
[1m[36mUser Exists (0.5ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing25@example.com' LIMIT 1[0m
|
22741
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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)[0m
|
22743
|
+
[1m[35m (42.2ms)[0m COMMIT
|
22744
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
22745
|
+
[1m[35mUser Exists (0.5ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing26@example.com' LIMIT 1
|
22746
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT 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')[0m
|
22747
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (26.7ms)[0m [1mCOMMIT[0m
|
22749
|
+
[1m[35m (0.2ms)[0m BEGIN
|
22750
|
+
[1m[36mUser Exists (0.6ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing27@example.com' LIMIT 1[0m
|
22751
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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)[0m
|
22753
|
+
[1m[35m (33.2ms)[0m COMMIT
|
22754
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22755
|
+
[1m[35mUser Exists (1.3ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing28@example.com' LIMIT 1
|
22756
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT 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')[0m
|
22757
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (33.5ms)[0m [1mCOMMIT[0m
|
22759
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
22760
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
22761
|
+
[1m[35m (40.6ms)[0m TRUNCATE TABLE `assets`;
|
22762
|
+
[1m[36m (44.7ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
22763
|
+
[1m[35m (22.4ms)[0m TRUNCATE TABLE `page_parts`;
|
22764
|
+
[1m[36m (22.5ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
22765
|
+
[1m[35m (22.5ms)[0m TRUNCATE TABLE `roles`;
|
22766
|
+
[1m[36m (44.7ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
22767
|
+
[1m[35m (45.4ms)[0m TRUNCATE TABLE `structures`;
|
22768
|
+
[1m[36m (66.5ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
22769
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
22770
|
+
[1m[36mStructure Load (33.6ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`[0m
|
22771
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
22772
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
22773
|
+
[1m[35m (19.7ms)[0m TRUNCATE TABLE `assets`;
|
22774
|
+
[1m[36m (33.8ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
22775
|
+
[1m[35m (22.4ms)[0m TRUNCATE TABLE `page_parts`;
|
22776
|
+
[1m[36m (66.9ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
22777
|
+
[1m[35m (44.6ms)[0m TRUNCATE TABLE `roles`;
|
22778
|
+
[1m[36m (22.4ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
22779
|
+
[1m[35m (22.8ms)[0m TRUNCATE TABLE `structures`;
|
22780
|
+
[1m[36m (114.6ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
22781
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
22782
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22783
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
22784
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
22785
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
22786
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`[0m
|
22787
|
+
[1m[35m (50.8ms)[0m COMMIT
|
22788
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22789
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
22790
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
22791
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
|
22792
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
22793
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE[0m
|
22795
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
22796
|
+
[1m[36m (23.0ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
22797
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
22798
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
22799
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
|
22800
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
22801
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
22802
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
22803
|
+
[1m[35mSQL (0.2ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
22804
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
22805
|
+
[1m[35m (31.4ms)[0m COMMIT
|
22806
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22807
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
22808
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
22809
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
22810
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
22811
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22812
|
+
[1m[36mStructure Load (0.8ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
22813
|
+
[1m[35mStructure Load (0.8ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
22814
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
22815
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
22816
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
22817
|
+
[1m[35m (44.1ms)[0m COMMIT
|
22818
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
22819
|
+
[1m[35mStructure Load (0.1ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
22820
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
22821
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22822
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
22823
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
22824
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
22825
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
22826
|
+
[1m[36m (56.8ms)[0m [1mCOMMIT[0m
|
22827
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
22828
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
22829
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22830
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
22831
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
22832
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
22833
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
22834
|
+
[1m[36m (44.9ms)[0m [1mCOMMIT[0m
|
22835
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
22836
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
22837
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22838
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
22839
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft` LIMIT 1[0m
|
22841
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1 FOR UPDATE
|
22842
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE `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`[0m
|
22843
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
22844
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1[0m
|
22845
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
|
22846
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE `structures` SET `depth` = 2 WHERE `structures`.`id` = 3 ORDER BY `structures`.`lft`[0m
|
22847
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
|
22848
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 3 AND `structures`.`lft` < 4) AND (`structures`.id != 3) ORDER BY `structures`.`lft`[0m
|
22849
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1 FOR UPDATE
|
22850
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1[0m
|
22851
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
|
22852
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `structures` SET `depth` = 2 WHERE `structures`.`id` = 3 ORDER BY `structures`.`lft`[0m
|
22853
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
|
22854
|
+
[1m[36m (51.5ms)[0m [1mCOMMIT[0m
|
22855
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22856
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
22857
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
|
22858
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
22859
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
|
22860
|
+
[1m[36m (60.1ms)[0m [1mCOMMIT[0m
|
22861
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
22862
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
22863
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
|
22864
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 6) ORDER BY `structures`.`lft`[0m
|
22865
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22866
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
22867
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1[0m
|
22869
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1 FOR UPDATE
|
22870
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE `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`[0m
|
22871
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
|
22872
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1[0m
|
22873
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
|
22874
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 4 ORDER BY `structures`.`lft`[0m
|
22875
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
|
22876
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 6 AND `structures`.`lft` < 7) AND (`structures`.id != 4) ORDER BY `structures`.`lft`[0m
|
22877
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1 FOR UPDATE
|
22878
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1[0m
|
22879
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
|
22880
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 4 ORDER BY `structures`.`lft`[0m
|
22881
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
|
22882
|
+
[1m[36m (37.4ms)[0m [1mCOMMIT[0m
|
22883
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22884
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
22885
|
+
[1m[35m (0.4ms)[0m UPDATE `structures` SET `title` = 'Other big title', `updated_at` = '2012-11-05 12:50:20' WHERE `structures`.`id` = 4
|
22886
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1[0m
|
22887
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
|
22888
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 4 ORDER BY `structures`.`lft`[0m
|
22889
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
|
22890
|
+
[1m[36m (65.4ms)[0m [1mCOMMIT[0m
|
22891
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22892
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
22893
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1[0m
|
22895
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 5 LIMIT 1 FOR UPDATE
|
22896
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE `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`[0m
|
22897
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
|
22898
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 5 LIMIT 1[0m
|
22899
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 8 AND `structures`.`rgt` >= 9) AND (`structures`.id != 5)
|
22900
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 5 ORDER BY `structures`.`lft`[0m
|
22901
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 8 AND `structures`.`rgt` >= 9) AND (`structures`.id != 5)
|
22902
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 8 AND `structures`.`lft` < 9) AND (`structures`.id != 5) ORDER BY `structures`.`lft`[0m
|
22903
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 5 LIMIT 1 FOR UPDATE
|
22904
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 5 LIMIT 1[0m
|
22905
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 8 AND `structures`.`rgt` >= 9) AND (`structures`.id != 5)
|
22906
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 5 ORDER BY `structures`.`lft`[0m
|
22907
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 8 AND `structures`.`rgt` >= 9) AND (`structures`.id != 5)
|
22908
|
+
[1m[36m (42.9ms)[0m [1mCOMMIT[0m
|
22909
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 5 LIMIT 1
|
22910
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22911
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
22912
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)[0m
|
22913
|
+
[1m[35mSQL (0.7ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
22914
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)[0m
|
22915
|
+
[1m[35m (46.5ms)[0m COMMIT
|
22916
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
22917
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = 'slug1' LIMIT 1
|
22918
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22919
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
22920
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
22921
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
|
22922
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
22923
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
|
22924
|
+
[1m[36m (53.7ms)[0m [1mCOMMIT[0m
|
22925
|
+
[1m[35mStructure Load (19.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1352119821 LIMIT 1
|
22926
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22927
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
22928
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
22929
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
|
22930
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
22931
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
|
22932
|
+
[1m[36m (51.2ms)[0m [1mCOMMIT[0m
|
22933
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = 'wrong' LIMIT 1
|
22934
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 0 LIMIT 1[0m
|
22935
|
+
[1m[35mStructure Load (0.1ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = 'slug1' LIMIT 1
|
22936
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
22937
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
22938
|
+
[1m[36m (31.8ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
22939
|
+
[1m[35m (33.6ms)[0m TRUNCATE TABLE `audits`;
|
22940
|
+
[1m[36m (22.5ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
22941
|
+
[1m[35m (66.8ms)[0m TRUNCATE TABLE `posts`;
|
22942
|
+
[1m[36m (33.5ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
22943
|
+
[1m[35m (22.6ms)[0m TRUNCATE TABLE `settings`;
|
22944
|
+
[1m[36m (44.8ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
22945
|
+
[1m[35m (22.8ms)[0m TRUNCATE TABLE `users`;
|
22946
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
22947
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22948
|
+
[1m[36mUser Exists (0.4ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing29@example.com' LIMIT 1[0m
|
22949
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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)[0m
|
22951
|
+
[1m[35m (44.1ms)[0m COMMIT
|
22952
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22953
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing30@example.com' LIMIT 1
|
22954
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
22955
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (40.0ms)[0m [1mCOMMIT[0m
|
22957
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22958
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
22959
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
22961
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
|
22962
|
+
[1m[36m (53.2ms)[0m [1mCOMMIT[0m
|
22963
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22964
|
+
[1m[36mSQL (34.1ms)[0m [1mINSERT 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')[0m
|
22965
|
+
[1m[35m (45.0ms)[0m COMMIT
|
22966
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22967
|
+
[1m[35m (36.0ms)[0m SELECT MAX(`audits`.`version`) AS max_id FROM `audits` WHERE `audits`.`auditable_id` = 1 AND `audits`.`auditable_type` = 'Post'
|
22968
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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)[0m
|
22969
|
+
[1m[35m (46.4ms)[0m COMMIT
|
22970
|
+
|
22971
|
+
|
22972
|
+
Started GET "/manage/" for 127.0.0.1 at 2012-11-05 14:50:22 +0200
|
22973
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22974
|
+
[1m[35m (0.1ms)[0m COMMIT
|
22975
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
22976
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (32.1ms)[0m [1mCOMMIT[0m
|
22978
|
+
Processing by Sunrise::DashboardController#index as HTML
|
22979
|
+
[1m[35mRole Load (0.6ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
22980
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
22981
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
22982
|
+
[1m[36mAudited::Adapters::ActiveRecord::Audit Load (0.5ms)[0m [1mSELECT `audits`.* FROM `audits` ORDER BY version, audits.id desc LIMIT 50 OFFSET 0[0m
|
22983
|
+
[1m[35mUser Load (0.5ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `audits` LIMIT 50 OFFSET 0) subquery_for_count [0m
|
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
|
+
[1m[35m (0.2ms)[0m BEGIN
|
22994
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
22995
|
+
[1m[35m (0.1ms)[0m BEGIN
|
22996
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `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[0m
|
22997
|
+
[1m[35m (43.1ms)[0m COMMIT
|
22998
|
+
Processing by Sunrise::DashboardController#index as HTML
|
22999
|
+
[1m[36mRole Load (0.2ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23000
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23001
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23002
|
+
[1m[35mAudited::Adapters::ActiveRecord::Audit Load (0.2ms)[0m SELECT `audits`.* FROM `audits` ORDER BY version, audits.id desc LIMIT 50 OFFSET 0
|
23003
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` IN (2)[0m
|
23004
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_event.html.erb (4.0ms)
|
23005
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
23021
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
23022
|
+
[1m[36m (30.8ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
23023
|
+
[1m[35m (22.6ms)[0m TRUNCATE TABLE `audits`;
|
23024
|
+
[1m[36m (44.7ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
23025
|
+
[1m[35m (22.4ms)[0m TRUNCATE TABLE `posts`;
|
23026
|
+
[1m[36m (22.6ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
23027
|
+
[1m[35m (22.4ms)[0m TRUNCATE TABLE `settings`;
|
23028
|
+
[1m[36m (44.9ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
23029
|
+
[1m[35m (22.6ms)[0m TRUNCATE TABLE `users`;
|
23030
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
23031
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23032
|
+
[1m[36mUser Exists (0.4ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing31@example.com' LIMIT 1[0m
|
23033
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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)[0m
|
23035
|
+
[1m[35m (43.2ms)[0m COMMIT
|
23036
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23037
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
23038
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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')[0m
|
23039
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
23040
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`[0m
|
23041
|
+
[1m[35m (36.5ms)[0m COMMIT
|
23042
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23043
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
23044
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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')[0m
|
23045
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
|
23046
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
23047
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE[0m
|
23049
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
23050
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
23051
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
23052
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
23053
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
|
23054
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
23055
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
23056
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
23057
|
+
[1m[35mSQL (0.2ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
23058
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
23059
|
+
[1m[35m (49.2ms)[0m COMMIT
|
23060
|
+
|
23061
|
+
|
23062
|
+
Started GET "/manage/structures/2" for 127.0.0.1 at 2012-11-05 14:50:24 +0200
|
23063
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23064
|
+
[1m[35m (0.1ms)[0m COMMIT
|
23065
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23066
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (46.9ms)[0m [1mCOMMIT[0m
|
23068
|
+
Processing by Sunrise::ManagerController#show as HTML
|
23069
|
+
Parameters: {"model_name"=>"structures", "id"=>"2"}
|
23070
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
23071
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
23072
|
+
[1m[35mRole Load (0.4ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23073
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23074
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23084
|
+
[1m[35m (0.1ms)[0m COMMIT
|
23085
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23086
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (25.4ms)[0m [1mCOMMIT[0m
|
23088
|
+
Processing by Sunrise::ManagerController#show as HTML
|
23089
|
+
Parameters: {"model_name"=>"structures", "id"=>"2"}
|
23090
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
23091
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
23092
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23093
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23094
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
23113
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
23114
|
+
[1m[36m (23.4ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
23115
|
+
[1m[35m (44.8ms)[0m TRUNCATE TABLE `audits`;
|
23116
|
+
[1m[36m (22.4ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
23117
|
+
[1m[35m (22.4ms)[0m TRUNCATE TABLE `posts`;
|
23118
|
+
[1m[36m (22.5ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
23119
|
+
[1m[35m (44.8ms)[0m TRUNCATE TABLE `settings`;
|
23120
|
+
[1m[36m (22.6ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
23121
|
+
[1m[35m (44.9ms)[0m TRUNCATE TABLE `users`;
|
23122
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
23123
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23124
|
+
[1m[36mUser Exists (0.4ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing32@example.com' LIMIT 1[0m
|
23125
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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)[0m
|
23127
|
+
[1m[35m (41.5ms)[0m COMMIT
|
23128
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23129
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
23130
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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')[0m
|
23131
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
23132
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`[0m
|
23133
|
+
[1m[35m (35.2ms)[0m COMMIT
|
23134
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23135
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
23136
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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')[0m
|
23137
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
|
23138
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
23139
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE[0m
|
23141
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
23142
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
23143
|
+
[1m[35mSQL (0.2ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
23144
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
23145
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
|
23146
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
23147
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
23148
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
23149
|
+
[1m[35mSQL (0.2ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
23150
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
23151
|
+
[1m[35m (53.6ms)[0m COMMIT
|
23152
|
+
|
23153
|
+
|
23154
|
+
Started GET "/manage/structures" for 127.0.0.1 at 2012-11-05 14:50:25 +0200
|
23155
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23156
|
+
[1m[35m (0.1ms)[0m COMMIT
|
23157
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23158
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (36.1ms)[0m [1mCOMMIT[0m
|
23160
|
+
Processing by Sunrise::ManagerController#index as HTML
|
23161
|
+
Parameters: {"model_name"=>"structures"}
|
23162
|
+
[1m[35mRole Load (0.5ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23163
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23164
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23165
|
+
[1m[36mStructure Load (0.6ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`[0m
|
23166
|
+
[1m[35mStructure Load (0.6ms)[0m 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
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
23180
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
23181
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
23182
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23183
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23184
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23185
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23186
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
23187
|
+
[1m[36mSQL (9.6ms)[0m [1mDELETE FROM `structures` WHERE (`lft` > 2 AND `rgt` < 3)[0m
|
23188
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `lft` = (`lft` - 2) WHERE (`structures`.`lft` > 3) ORDER BY `structures`.`lft`
|
23189
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `rgt` = (`rgt` - 2) WHERE (`structures`.`rgt` > 3) ORDER BY `structures`.`lft`[0m
|
23190
|
+
[1m[35mPagePart Load (0.4ms)[0m SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
|
23191
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM `posts` WHERE `posts`.`structure_id` = 2[0m
|
23192
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM `structures` WHERE `structures`.`id` = 2
|
23193
|
+
[1m[36m (43.0ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
23202
|
+
[1m[36mRole Load (0.2ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23203
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23204
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23205
|
+
[1m[35mStructure Load (0.6ms)[0m 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
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
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
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
23226
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
23227
|
+
[1m[35m (41.6ms)[0m TRUNCATE TABLE `assets`;
|
23228
|
+
[1m[36m (22.5ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
23229
|
+
[1m[35m (44.8ms)[0m TRUNCATE TABLE `page_parts`;
|
23230
|
+
[1m[36m (66.8ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
23231
|
+
[1m[35m (22.5ms)[0m TRUNCATE TABLE `roles`;
|
23232
|
+
[1m[36m (22.5ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
23233
|
+
[1m[35m (45.5ms)[0m TRUNCATE TABLE `structures`;
|
23234
|
+
[1m[36m (22.7ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
23235
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
23236
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23237
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing33@example.com' LIMIT 1
|
23238
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
23239
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (32.2ms)[0m [1mCOMMIT[0m
|
23241
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23242
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
23243
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
23245
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
|
23246
|
+
[1m[36m (36.8ms)[0m [1mCOMMIT[0m
|
23247
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23248
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
23249
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1[0m
|
23251
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
23252
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE `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`[0m
|
23253
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
|
23254
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
23255
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
23256
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
23257
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
23258
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`[0m
|
23259
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
23260
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
23261
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
23262
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
23263
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
23264
|
+
[1m[36m (42.9ms)[0m [1mCOMMIT[0m
|
23265
|
+
|
23266
|
+
|
23267
|
+
Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2012-11-05 14:50:26 +0200
|
23268
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23269
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
23270
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23271
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `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[0m
|
23272
|
+
[1m[35m (36.7ms)[0m COMMIT
|
23273
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
23274
|
+
Parameters: {"model_name"=>"structures", "id"=>"2"}
|
23275
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1[0m
|
23276
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
23277
|
+
[1m[36mRole Load (0.4ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23278
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23279
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.5ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
23292
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1[0m
|
23293
|
+
[1m[35mStructure Load (0.1ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
23294
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23295
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23296
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23297
|
+
[1m[35mRole Load (0.4ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
|
23298
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23299
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
23301
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
23303
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
23304
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 2) AND (`structures`.id != 2) ORDER BY `structures`.`lft`[0m
|
23305
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
23306
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
23307
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
23308
|
+
[1m[36m (26.6ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
23317
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23318
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23319
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23320
|
+
[1m[35mStructure Load (0.6ms)[0m 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
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
23328
|
+
|
23329
|
+
|
23330
|
+
Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2012-11-05 14:50:27 +0200
|
23331
|
+
[1m[35m (0.2ms)[0m BEGIN
|
23332
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
23333
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23334
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `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[0m
|
23335
|
+
[1m[35m (18.1ms)[0m COMMIT
|
23336
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
23337
|
+
Parameters: {"model_name"=>"structures", "id"=>"2"}
|
23338
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1[0m
|
23339
|
+
[1m[35mStructure Load (0.1ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
23340
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23341
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23342
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.5ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
23355
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1[0m
|
23356
|
+
[1m[35mStructure Load (0.1ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
23357
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23358
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23359
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23360
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
|
23361
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23362
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
23363
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
23364
|
+
[1m[35m (23.6ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
23373
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23374
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23375
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23376
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`[0m
|
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
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23384
|
+
[1m[36mPagePart Load (0.6ms)[0m [1mSELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'[0m
|
23385
|
+
[1m[35mPagePart Exists (0.6ms)[0m 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
|
+
[1m[36mPagePart Exists (0.5ms)[0m [1mSELECT 1 FROM `page_parts` WHERE (`page_parts`.`key` = BINARY 'sidebar' AND `page_parts`.`partable_type` = 'Structure' AND `page_parts`.`partable_id` = 2) LIMIT 1[0m
|
23387
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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')[0m
|
23389
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
23390
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
23391
|
+
[1m[35m (17.9ms)[0m COMMIT
|
23392
|
+
|
23393
|
+
|
23394
|
+
Started GET "/manage/pages/2/edit" for 127.0.0.1 at 2012-11-05 14:50:27 +0200
|
23395
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23396
|
+
[1m[35m (0.6ms)[0m COMMIT
|
23397
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23398
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (35.4ms)[0m [1mCOMMIT[0m
|
23400
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
23401
|
+
Parameters: {"model_name"=>"pages", "id"=>"2"}
|
23402
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
23403
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
23404
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23405
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23406
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36mPagePart Load (0.6ms)[0m [1mSELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'[0m
|
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
|
+
[1m[35mUser Load (0.5ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
23420
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1[0m
|
23421
|
+
[1m[35mStructure Load (0.1ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
23422
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23423
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23424
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23425
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
|
23426
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23427
|
+
[1m[35mPagePart Load (0.5ms)[0m SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
|
23428
|
+
[1m[36mPagePart Exists (0.6ms)[0m [1mSELECT 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[0m
|
23429
|
+
[1m[35mPagePart Exists (0.4ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `page_parts` SET `content` = 'Main updated', `updated_at` = '2012-11-05 12:50:27' WHERE `page_parts`.`id` = 1[0m
|
23431
|
+
[1m[35m (0.3ms)[0m UPDATE `page_parts` SET `content` = 'Sidebar updated', `updated_at` = '2012-11-05 12:50:27' WHERE `page_parts`.`id` = 2
|
23432
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
23433
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
23434
|
+
[1m[36m (18.3ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
23443
|
+
[1m[36mRole Load (0.2ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23444
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23445
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23446
|
+
[1m[35mStructure Load (0.2ms)[0m 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
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
23454
|
+
[1m[35mPagePart Load (0.5ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
23468
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
23469
|
+
[1m[36m (42.5ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
23470
|
+
[1m[35m (22.4ms)[0m TRUNCATE TABLE `audits`;
|
23471
|
+
[1m[36m (33.5ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
23472
|
+
[1m[35m (22.4ms)[0m TRUNCATE TABLE `posts`;
|
23473
|
+
[1m[36m (22.5ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
23474
|
+
[1m[35m (22.4ms)[0m TRUNCATE TABLE `settings`;
|
23475
|
+
[1m[36m (45.6ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
23476
|
+
[1m[35m (91.0ms)[0m TRUNCATE TABLE `users`;
|
23477
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
23478
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23479
|
+
[1m[36mUser Exists (0.5ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing34@example.com' LIMIT 1[0m
|
23480
|
+
[1m[35mSQL (6.1ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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)[0m
|
23482
|
+
[1m[35m (46.6ms)[0m COMMIT
|
23483
|
+
|
23484
|
+
|
23485
|
+
Started GET "/manage/whatever/new" for 127.0.0.1 at 2012-11-05 14:50:27 +0200
|
23486
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23487
|
+
[1m[35m (0.1ms)[0m COMMIT
|
23488
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23489
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (46.2ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23498
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
23499
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23500
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `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[0m
|
23501
|
+
[1m[35m (32.8ms)[0m COMMIT
|
23502
|
+
Processing by Sunrise::ManagerController#new as HTML
|
23503
|
+
Parameters: {"model_name"=>"structures"}
|
23504
|
+
[1m[36mRole Load (0.5ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23505
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23506
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
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
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23517
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
23518
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23519
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `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[0m
|
23520
|
+
[1m[35m (22.8ms)[0m COMMIT
|
23521
|
+
Processing by Sunrise::ManagerController#new as HTML
|
23522
|
+
Parameters: {"model_name"=>"structures"}
|
23523
|
+
[1m[36mRole Load (0.2ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23524
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23525
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
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
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
23545
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
23546
|
+
[1m[35m (63.3ms)[0m TRUNCATE TABLE `assets`;
|
23547
|
+
[1m[36m (33.7ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
23548
|
+
[1m[35m (22.5ms)[0m TRUNCATE TABLE `page_parts`;
|
23549
|
+
[1m[36m (22.5ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
23550
|
+
[1m[35m (22.5ms)[0m TRUNCATE TABLE `roles`;
|
23551
|
+
[1m[36m (22.5ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
23552
|
+
[1m[35m (33.7ms)[0m TRUNCATE TABLE `structures`;
|
23553
|
+
[1m[36m (22.8ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
23554
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
23555
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23556
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing35@example.com' LIMIT 1
|
23557
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
23558
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (32.1ms)[0m [1mCOMMIT[0m
|
23560
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23561
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
23562
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
23564
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
|
23565
|
+
[1m[36m (36.5ms)[0m [1mCOMMIT[0m
|
23566
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23567
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
23568
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1[0m
|
23570
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
23571
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE `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`[0m
|
23572
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
|
23573
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
23574
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
23575
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
23576
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
23577
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`[0m
|
23578
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
23579
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
23580
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
23581
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
23582
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
23583
|
+
[1m[36m (61.3ms)[0m [1mCOMMIT[0m
|
23584
|
+
|
23585
|
+
|
23586
|
+
Started GET "/manage/users/export.xlsx" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
|
23587
|
+
[1m[35m (0.0ms)[0m BEGIN
|
23588
|
+
[1m[36m (0.0ms)[0m [1mCOMMIT[0m
|
23589
|
+
[1m[35m (0.0ms)[0m BEGIN
|
23590
|
+
[1m[36m (0.0ms)[0m [1mUPDATE `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[0m
|
23591
|
+
[1m[35m (0.0ms)[0m COMMIT
|
23592
|
+
Processing by Sunrise::ManagerController#export as XLSX
|
23593
|
+
Parameters: {"model_name"=>"users"}
|
23594
|
+
[1m[36mRole Load (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23595
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23596
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23597
|
+
Scoped order and limit are ignored, it's forced to be batch order and batch size
|
23598
|
+
[1m[35mUser Load (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
23605
|
+
[1m[35m (0.0ms)[0m COMMIT
|
23606
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
23607
|
+
[1m[35m (0.0ms)[0m UPDATE `users` SET `sign_in_count` = 2 WHERE `users`.`id` = 1
|
23608
|
+
[1m[36m (0.0ms)[0m [1mCOMMIT[0m
|
23609
|
+
Processing by Sunrise::ManagerController#export as CSV
|
23610
|
+
Parameters: {"model_name"=>"users"}
|
23611
|
+
[1m[35mRole Load (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23612
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23613
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000 OFFSET 0[0m
|
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
|
+
[1m[35m (0.0ms)[0m BEGIN
|
23622
|
+
[1m[36m (0.0ms)[0m [1mCOMMIT[0m
|
23623
|
+
[1m[35m (0.0ms)[0m BEGIN
|
23624
|
+
[1m[36m (0.0ms)[0m [1mUPDATE `users` SET `sign_in_count` = 3 WHERE `users`.`id` = 1[0m
|
23625
|
+
[1m[35m (0.0ms)[0m COMMIT
|
23626
|
+
Processing by Sunrise::ManagerController#export as JSON
|
23627
|
+
Parameters: {"model_name"=>"users"}
|
23628
|
+
[1m[36mRole Load (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23629
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23630
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23631
|
+
[1m[35mUser Load (0.0ms)[0m SELECT `users`.* FROM `users` LIMIT 25 OFFSET 0
|
23632
|
+
Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
|
23633
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
23634
|
+
[1m[35mSQL (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mCOMMIT[0m
|
23636
|
+
|
23637
|
+
|
23638
|
+
Started GET "/manage/posts/export.csv" for 127.0.0.1 at 2012-01-01 16:00:00 UTC
|
23639
|
+
[1m[35m (0.0ms)[0m BEGIN
|
23640
|
+
[1m[36m (0.0ms)[0m [1mCOMMIT[0m
|
23641
|
+
[1m[35m (0.0ms)[0m BEGIN
|
23642
|
+
[1m[36m (0.0ms)[0m [1mUPDATE `users` SET `sign_in_count` = 4 WHERE `users`.`id` = 1[0m
|
23643
|
+
[1m[35m (0.0ms)[0m COMMIT
|
23644
|
+
Processing by Sunrise::ManagerController#export as CSV
|
23645
|
+
Parameters: {"model_name"=>"posts"}
|
23646
|
+
[1m[36mRole Load (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23647
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23648
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23649
|
+
Scoped order and limit are ignored, it's forced to be batch order and batch size
|
23650
|
+
[1m[35mPost Load (0.0ms)[0m SELECT `posts`.* FROM `posts` WHERE (`posts`.`id` >= 0) ORDER BY `posts`.`id` ASC LIMIT 1000 OFFSET 0
|
23651
|
+
[1m[36mStructure Load (0.0ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` IN (2)[0m
|
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
|
+
[1m[35m (0.0ms)[0m BEGIN
|
23658
|
+
[1m[36m (0.0ms)[0m [1mCOMMIT[0m
|
23659
|
+
[1m[35m (0.0ms)[0m BEGIN
|
23660
|
+
[1m[36m (0.0ms)[0m [1mUPDATE `users` SET `sign_in_count` = 5 WHERE `users`.`id` = 1[0m
|
23661
|
+
[1m[35m (0.0ms)[0m COMMIT
|
23662
|
+
Processing by Sunrise::ManagerController#export as XLSX
|
23663
|
+
Parameters: {"model_name"=>"structures"}
|
23664
|
+
[1m[36mRole Load (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23665
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23666
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23667
|
+
Scoped order and limit are ignored, it's forced to be batch order and batch size
|
23668
|
+
[1m[35mStructure Load (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
23675
|
+
[1m[35m (0.0ms)[0m COMMIT
|
23676
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
23677
|
+
[1m[35m (0.0ms)[0m UPDATE `users` SET `sign_in_count` = 6 WHERE `users`.`id` = 1
|
23678
|
+
[1m[36m (0.0ms)[0m [1mCOMMIT[0m
|
23679
|
+
Processing by Sunrise::ManagerController#export as XML
|
23680
|
+
Parameters: {"model_name"=>"structures"}
|
23681
|
+
[1m[35mRole Load (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23682
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23683
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23684
|
+
[1m[36mStructure Load (0.0ms)[0m [1mSELECT `structures`.* FROM `structures` LIMIT 25 OFFSET 0[0m
|
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
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
23693
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
23694
|
+
[1m[35m (38.8ms)[0m TRUNCATE TABLE `assets`;
|
23695
|
+
[1m[36m (33.7ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
23696
|
+
[1m[35m (22.6ms)[0m TRUNCATE TABLE `page_parts`;
|
23697
|
+
[1m[36m (22.4ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
23698
|
+
[1m[35m (33.7ms)[0m TRUNCATE TABLE `roles`;
|
23699
|
+
[1m[36m (66.8ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
23700
|
+
[1m[35m (22.6ms)[0m TRUNCATE TABLE `structures`;
|
23701
|
+
[1m[36m (33.8ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
23702
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
23703
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23704
|
+
[1m[35mUser Exists (0.5ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing36@example.com' LIMIT 1
|
23705
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT 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')[0m
|
23706
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (31.0ms)[0m [1mCOMMIT[0m
|
23708
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23709
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
23710
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
23712
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
|
23713
|
+
[1m[36m (36.4ms)[0m [1mCOMMIT[0m
|
23714
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23715
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
23716
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1[0m
|
23718
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
23719
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE `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`[0m
|
23720
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
|
23721
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
23722
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
23723
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
23724
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
23725
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`[0m
|
23726
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
23727
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
23728
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
23729
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
23730
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
23731
|
+
[1m[36m (59.9ms)[0m [1mCOMMIT[0m
|
23732
|
+
|
23733
|
+
|
23734
|
+
Started GET "/manage/" for 127.0.0.1 at 2012-11-05 14:50:30 +0200
|
23735
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23736
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
23737
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23738
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `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[0m
|
23739
|
+
[1m[35m (25.8ms)[0m COMMIT
|
23740
|
+
Processing by Sunrise::DashboardController#index as HTML
|
23741
|
+
[1m[36mRole Load (0.5ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23742
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23743
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23744
|
+
[1m[35mAudited::Adapters::ActiveRecord::Audit Load (0.5ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `audits` LIMIT 50 OFFSET 0) subquery_for_count [0m
|
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
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23754
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
23755
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23756
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `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[0m
|
23757
|
+
[1m[35m (27.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23765
|
+
[1m[35m (0.1ms)[0m COMMIT
|
23766
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23767
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (37.5ms)[0m [1mCOMMIT[0m
|
23769
|
+
Processing by Sunrise::ManagerController#index as HTML
|
23770
|
+
Parameters: {"model_name"=>"structures"}
|
23771
|
+
[1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23772
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23773
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23774
|
+
[1m[36mStructure Load (0.6ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`[0m
|
23775
|
+
[1m[35mStructure Load (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23787
|
+
[1m[35m (0.1ms)[0m COMMIT
|
23788
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23789
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (35.3ms)[0m [1mCOMMIT[0m
|
23791
|
+
Processing by Sunrise::ManagerController#index as HTML
|
23792
|
+
Parameters: {"model_name"=>"users"}
|
23793
|
+
[1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23794
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23795
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23796
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT `users`.* FROM `users` LIMIT 25 OFFSET 0[0m
|
23797
|
+
[1m[35mAvatar Load (0.6ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `users` [0m
|
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
|
+
[1m[35m (0.2ms)[0m BEGIN
|
23812
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
23813
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23814
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `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[0m
|
23815
|
+
[1m[35m (22.9ms)[0m COMMIT
|
23816
|
+
Processing by Sunrise::ManagerController#index as HTML
|
23817
|
+
Parameters: {"model_name"=>"pages"}
|
23818
|
+
[1m[36mRole Load (0.2ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23819
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23820
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
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
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
23835
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
23836
|
+
[1m[35m (54.5ms)[0m TRUNCATE TABLE `assets`;
|
23837
|
+
[1m[36m (44.9ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
23838
|
+
[1m[35m (22.5ms)[0m TRUNCATE TABLE `page_parts`;
|
23839
|
+
[1m[36m (22.4ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
23840
|
+
[1m[35m (22.4ms)[0m TRUNCATE TABLE `roles`;
|
23841
|
+
[1m[36m (44.8ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
23842
|
+
[1m[35m (33.7ms)[0m TRUNCATE TABLE `structures`;
|
23843
|
+
[1m[36m (56.0ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
23844
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
23845
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23846
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing37@example.com' LIMIT 1
|
23847
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
23848
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (44.9ms)[0m [1mCOMMIT[0m
|
23850
|
+
|
23851
|
+
|
23852
|
+
Started GET "/manage/structures/new" for 127.0.0.1 at 2012-11-05 14:50:31 +0200
|
23853
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23854
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
23855
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23856
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `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[0m
|
23857
|
+
[1m[35m (44.9ms)[0m COMMIT
|
23858
|
+
Processing by Sunrise::ManagerController#new as HTML
|
23859
|
+
Parameters: {"model_name"=>"structures"}
|
23860
|
+
[1m[36mRole Load (0.5ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23861
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23862
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.5ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
23875
|
+
[1m[36mRole Load (0.2ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23876
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23877
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23878
|
+
[1m[35mRole Load (0.4ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
|
23879
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23880
|
+
[1m[35mStructure Load (32.4ms)[0m SELECT `structures`.* FROM `structures` WHERE (`slug` = 'good-day' OR `slug` LIKE 'good-day--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
|
23881
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
23882
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
23884
|
+
[1m[35mSQL (0.4ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
|
23885
|
+
[1m[36m (41.4ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
23894
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23895
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23896
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23897
|
+
[1m[35mStructure Load (0.6ms)[0m 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
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`id` DESC LIMIT 1[0m
|
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
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
23918
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
23919
|
+
[1m[35m (17.0ms)[0m TRUNCATE TABLE `assets`;
|
23920
|
+
[1m[36m (33.6ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
23921
|
+
[1m[35m (22.5ms)[0m TRUNCATE TABLE `page_parts`;
|
23922
|
+
[1m[36m (22.4ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
23923
|
+
[1m[35m (22.5ms)[0m TRUNCATE TABLE `roles`;
|
23924
|
+
[1m[36m (44.7ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
23925
|
+
[1m[35m (22.6ms)[0m TRUNCATE TABLE `structures`;
|
23926
|
+
[1m[36m (44.8ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
23927
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
23928
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23929
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing38@example.com' LIMIT 1
|
23930
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
23931
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (31.9ms)[0m [1mCOMMIT[0m
|
23933
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23934
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
23935
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
23937
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
|
23938
|
+
[1m[36m (36.3ms)[0m [1mCOMMIT[0m
|
23939
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23940
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
23941
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1[0m
|
23943
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
23944
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE `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`[0m
|
23945
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
|
23946
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
23947
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
23948
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
23949
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
23950
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`[0m
|
23951
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
23952
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
23953
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
23954
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
23955
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
23956
|
+
[1m[36m (45.7ms)[0m [1mCOMMIT[0m
|
23957
|
+
|
23958
|
+
|
23959
|
+
Started GET "/manage/whatever/2/edit" for 127.0.0.1 at 2012-11-05 14:50:32 +0200
|
23960
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23961
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
23962
|
+
[1m[35m (0.1ms)[0m BEGIN
|
23963
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `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[0m
|
23964
|
+
[1m[35m (57.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23972
|
+
[1m[35m (0.1ms)[0m COMMIT
|
23973
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23974
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (67.6ms)[0m [1mCOMMIT[0m
|
23976
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
23977
|
+
Parameters: {"model_name"=>"structures", "id"=>"2"}
|
23978
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
23979
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
23980
|
+
[1m[35mRole Load (0.4ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
23981
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
23982
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
23993
|
+
[1m[35m (0.1ms)[0m COMMIT
|
23994
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
23995
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (49.7ms)[0m [1mCOMMIT[0m
|
23997
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
23998
|
+
Parameters: {"model_name"=>"structures", "id"=>"2"}
|
23999
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
24000
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
24001
|
+
[1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24002
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24003
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24014
|
+
[1m[35m (0.1ms)[0m COMMIT
|
24015
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24016
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (23.4ms)[0m [1mCOMMIT[0m
|
24018
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
24019
|
+
Parameters: {"model_name"=>"pages", "id"=>"2"}
|
24020
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
24021
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
24022
|
+
[1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24023
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24024
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36mPagePart Load (0.5ms)[0m [1mSELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'[0m
|
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
|
+
[1m[35m (0.1ms)[0m BEGIN
|
24036
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
24037
|
+
[1m[35m (0.1ms)[0m BEGIN
|
24038
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `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[0m
|
24039
|
+
[1m[35m (40.2ms)[0m COMMIT
|
24040
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
24041
|
+
Parameters: {"model_name"=>"pages", "id"=>"2"}
|
24042
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1[0m
|
24043
|
+
[1m[35mStructure Load (0.1ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
24044
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24045
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24046
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24047
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
|
24048
|
+
[1m[35mPagePart Load (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
24067
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
24068
|
+
[1m[36m (22.9ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
24069
|
+
[1m[35m (33.7ms)[0m TRUNCATE TABLE `audits`;
|
24070
|
+
[1m[36m (22.4ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
24071
|
+
[1m[35m (22.5ms)[0m TRUNCATE TABLE `posts`;
|
24072
|
+
[1m[36m (22.5ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
24073
|
+
[1m[35m (33.7ms)[0m TRUNCATE TABLE `settings`;
|
24074
|
+
[1m[36m (22.6ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
24075
|
+
[1m[35m (44.8ms)[0m TRUNCATE TABLE `users`;
|
24076
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
24077
|
+
[1m[35m (0.1ms)[0m BEGIN
|
24078
|
+
[1m[36mUser Exists (0.4ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing39@example.com' LIMIT 1[0m
|
24079
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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)[0m
|
24081
|
+
[1m[35m (32.2ms)[0m COMMIT
|
24082
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24083
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
24084
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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')[0m
|
24085
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
24086
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`[0m
|
24087
|
+
[1m[35m (36.4ms)[0m COMMIT
|
24088
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24089
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
24090
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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')[0m
|
24091
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
|
24092
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
24093
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE[0m
|
24095
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
24096
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
24097
|
+
[1m[35mSQL (0.2ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
24098
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
24099
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
|
24100
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
24101
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
24102
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
24103
|
+
[1m[35mSQL (0.2ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
24104
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
24105
|
+
[1m[35m (61.0ms)[0m COMMIT
|
24106
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24107
|
+
[1m[35mSQL (35.5ms)[0m 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
|
+
[1m[36m (39.0ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35m (0.1ms)[0m BEGIN
|
24113
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
24114
|
+
[1m[35m (0.1ms)[0m BEGIN
|
24115
|
+
[1m[36m (0.5ms)[0m [1mUPDATE `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[0m
|
24116
|
+
[1m[35m (35.5ms)[0m COMMIT
|
24117
|
+
Processing by Sunrise::ManagerController#index as HTML
|
24118
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
24119
|
+
[1m[36mRole Load (0.5ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24120
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24121
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24122
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
24123
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
24124
|
+
[1m[35mPost Load (0.5ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2[0m
|
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
|
+
[1m[35mUser Load (0.5ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
24141
|
+
[1m[36mPost Load (0.5ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1[0m
|
24142
|
+
[1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24143
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24144
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24145
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24146
|
+
[1m[35mSQL (119.8ms)[0m DELETE FROM `posts` WHERE `posts`.`id` = 1
|
24147
|
+
[1m[36m (324.5ms)[0m [1mCOMMIT[0m
|
24148
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
24149
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
24158
|
+
[1m[36mRole Load (0.2ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24159
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24160
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24161
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
24162
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
24163
|
+
[1m[35mPost Load (0.5ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2[0m
|
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
|
+
[1m[35mPost Load (0.5ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
24188
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
24189
|
+
[1m[36m (168.4ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
24190
|
+
[1m[35m (33.6ms)[0m TRUNCATE TABLE `audits`;
|
24191
|
+
[1m[36m (22.4ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
24192
|
+
[1m[35m (22.8ms)[0m TRUNCATE TABLE `posts`;
|
24193
|
+
[1m[36m (22.6ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
24194
|
+
[1m[35m (33.1ms)[0m TRUNCATE TABLE `settings`;
|
24195
|
+
[1m[36m (22.6ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
24196
|
+
[1m[35m (33.8ms)[0m TRUNCATE TABLE `users`;
|
24197
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
24198
|
+
[1m[35m (0.1ms)[0m BEGIN
|
24199
|
+
[1m[36mUser Exists (0.5ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing40@example.com' LIMIT 1[0m
|
24200
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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)[0m
|
24202
|
+
[1m[35m (104.0ms)[0m COMMIT
|
24203
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24204
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
24205
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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')[0m
|
24206
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
24207
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`[0m
|
24208
|
+
[1m[35m (47.6ms)[0m COMMIT
|
24209
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24210
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
24211
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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')[0m
|
24212
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
|
24213
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
24214
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE[0m
|
24216
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
24217
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
24218
|
+
[1m[35mSQL (0.2ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
24219
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
24220
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
|
24221
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
24222
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
24223
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
24224
|
+
[1m[35mSQL (0.2ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
24225
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
24226
|
+
[1m[35m (61.8ms)[0m COMMIT
|
24227
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24228
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (124.6ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35m (0.1ms)[0m BEGIN
|
24234
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
24235
|
+
[1m[35m (0.1ms)[0m BEGIN
|
24236
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `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[0m
|
24237
|
+
[1m[35m (29.8ms)[0m COMMIT
|
24238
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
24239
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
|
24240
|
+
[1m[36mPost Load (0.5ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1[0m
|
24241
|
+
[1m[35mRole Load (0.4ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24242
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24243
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
24256
|
+
[1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
|
24257
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24258
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24259
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24260
|
+
[1m[35mRole Load (0.4ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
|
24261
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24262
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
|
24264
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
24265
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
24274
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24275
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24276
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24277
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
24278
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
24279
|
+
[1m[35mPost Load (0.6ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2[0m
|
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
|
+
[1m[35mPost Load (0.5ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
|
24291
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
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
|
+
[1m[35m (0.1ms)[0m BEGIN
|
24296
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
24297
|
+
[1m[35m (0.1ms)[0m BEGIN
|
24298
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `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[0m
|
24299
|
+
[1m[35m (19.7ms)[0m COMMIT
|
24300
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
24301
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
|
24302
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1[0m
|
24303
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24304
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24305
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
24318
|
+
[1m[35mPost Load (0.2ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
|
24319
|
+
[1m[36mRole Load (0.2ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24320
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24321
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24322
|
+
[1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
|
24323
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24324
|
+
[1m[35m (0.1ms)[0m COMMIT
|
24325
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1[0m
|
24326
|
+
[1m[35mStructure Load (0.1ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
24335
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24336
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24337
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24338
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1[0m
|
24339
|
+
[1m[35mStructure Load (0.1ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
24340
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0[0m
|
24341
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (4.8ms)
|
24342
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
24364
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
24365
|
+
[1m[36m (21.8ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
24366
|
+
[1m[35m (22.5ms)[0m TRUNCATE TABLE `audits`;
|
24367
|
+
[1m[36m (33.7ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
24368
|
+
[1m[35m (22.4ms)[0m TRUNCATE TABLE `posts`;
|
24369
|
+
[1m[36m (22.4ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
24370
|
+
[1m[35m (22.5ms)[0m TRUNCATE TABLE `settings`;
|
24371
|
+
[1m[36m (22.5ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
24372
|
+
[1m[35m (22.6ms)[0m TRUNCATE TABLE `users`;
|
24373
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
24374
|
+
[1m[35m (0.1ms)[0m BEGIN
|
24375
|
+
[1m[36mUser Exists (0.4ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing41@example.com' LIMIT 1[0m
|
24376
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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)[0m
|
24378
|
+
[1m[35m (54.3ms)[0m COMMIT
|
24379
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24380
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
24381
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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')[0m
|
24382
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
24383
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`[0m
|
24384
|
+
[1m[35m (25.2ms)[0m COMMIT
|
24385
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24386
|
+
[1m[35mStructure Load (0.6ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
24387
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT 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')[0m
|
24388
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
|
24389
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
24390
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE[0m
|
24392
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
24393
|
+
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
24394
|
+
[1m[35mSQL (0.4ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
24395
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
24396
|
+
[1m[35mStructure Load (0.6ms)[0m SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
|
24397
|
+
[1m[36mStructure Load (0.6ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
24398
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
24399
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
24400
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
24401
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
24402
|
+
[1m[35m (39.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
24407
|
+
[1m[35m (0.1ms)[0m COMMIT
|
24408
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24409
|
+
[1m[35m (0.6ms)[0m 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
|
+
[1m[36m (21.7ms)[0m [1mCOMMIT[0m
|
24411
|
+
Processing by Sunrise::ManagerController#new as HTML
|
24412
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
24413
|
+
[1m[35mStructure Load (0.6ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
24414
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
24415
|
+
[1m[35mRole Load (0.5ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24416
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24417
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24428
|
+
[1m[35m (0.1ms)[0m COMMIT
|
24429
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24430
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (17.0ms)[0m [1mCOMMIT[0m
|
24432
|
+
Processing by Sunrise::ManagerController#new as HTML
|
24433
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
24434
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
24435
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
24436
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24437
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24438
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24449
|
+
[1m[35m (0.1ms)[0m COMMIT
|
24450
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24451
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (31.0ms)[0m [1mCOMMIT[0m
|
24453
|
+
Processing by Sunrise::ManagerController#new as HTML
|
24454
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
24455
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
24456
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
24457
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24458
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24459
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
24467
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
24468
|
+
[1m[36m (66.7ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
24469
|
+
[1m[35m (44.7ms)[0m TRUNCATE TABLE `audits`;
|
24470
|
+
[1m[36m (22.5ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
24471
|
+
[1m[35m (22.5ms)[0m TRUNCATE TABLE `posts`;
|
24472
|
+
[1m[36m (44.6ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
24473
|
+
[1m[35m (22.6ms)[0m TRUNCATE TABLE `settings`;
|
24474
|
+
[1m[36m (22.6ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
24475
|
+
[1m[35m (44.8ms)[0m TRUNCATE TABLE `users`;
|
24476
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
24477
|
+
[1m[35m (0.2ms)[0m BEGIN
|
24478
|
+
[1m[36mUser Exists (0.6ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing42@example.com' LIMIT 1[0m
|
24479
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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)[0m
|
24481
|
+
[1m[35m (41.5ms)[0m COMMIT
|
24482
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24483
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
24484
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
24485
|
+
[1m[35mStructure Load (1.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
24486
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`[0m
|
24487
|
+
[1m[35m (43.2ms)[0m COMMIT
|
24488
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24489
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
24490
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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')[0m
|
24491
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
|
24492
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
24493
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE[0m
|
24495
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
24496
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
24497
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
24498
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
24499
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
|
24500
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
24501
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
24502
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
24503
|
+
[1m[35mSQL (0.2ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
24504
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
24505
|
+
[1m[35m (46.8ms)[0m COMMIT
|
24506
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24507
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (40.8ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35m (0.1ms)[0m BEGIN
|
24513
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
24514
|
+
[1m[35m (0.1ms)[0m BEGIN
|
24515
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `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[0m
|
24516
|
+
[1m[35m (35.6ms)[0m COMMIT
|
24517
|
+
Processing by Sunrise::ManagerController#index as HTML
|
24518
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
24519
|
+
[1m[36mRole Load (0.5ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24520
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24521
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24522
|
+
[1m[35mStructure Load (1.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
24523
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
24524
|
+
[1m[35mPost Load (0.5ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2[0m
|
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
|
+
[1m[35m (0.2ms)[0m BEGIN
|
24536
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
24537
|
+
[1m[35m (23.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24542
|
+
[1m[35m (0.1ms)[0m COMMIT
|
24543
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24544
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (35.5ms)[0m [1mCOMMIT[0m
|
24546
|
+
Processing by Sunrise::ManagerController#index as HTML
|
24547
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
24548
|
+
[1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24549
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24550
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24551
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1[0m
|
24552
|
+
[1m[35mStructure Load (0.1ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
24553
|
+
[1m[36mPost Load (0.6ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0[0m
|
24554
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (9.2ms)
|
24555
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
24570
|
+
[1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24571
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24572
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24573
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1[0m
|
24574
|
+
[1m[35mStructure Load (0.1ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
24575
|
+
[1m[36mPost Load (0.5ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`title` = 'Good day' AND `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0[0m
|
24576
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (100.2ms)
|
24577
|
+
[1m[35m (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24590
|
+
[1m[35m (0.1ms)[0m COMMIT
|
24591
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24592
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (19.5ms)[0m [1mCOMMIT[0m
|
24594
|
+
Processing by Sunrise::ManagerController#index as HTML
|
24595
|
+
Parameters: {"parent_id"=>"1", "parent_type"=>"Structure", "model_name"=>"posts"}
|
24596
|
+
[1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24597
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24598
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24599
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '1' LIMIT 1[0m
|
24600
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
24601
|
+
[1m[36mPost Load (0.5ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 1 LIMIT 25 OFFSET 0[0m
|
24602
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (0.0ms)
|
24603
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
24613
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
24614
|
+
[1m[36m (30.2ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
24615
|
+
[1m[35m (44.7ms)[0m TRUNCATE TABLE `audits`;
|
24616
|
+
[1m[36m (22.4ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
24617
|
+
[1m[35m (22.6ms)[0m TRUNCATE TABLE `posts`;
|
24618
|
+
[1m[36m (22.5ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
24619
|
+
[1m[35m (44.6ms)[0m TRUNCATE TABLE `settings`;
|
24620
|
+
[1m[36m (45.6ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
24621
|
+
[1m[35m (33.7ms)[0m TRUNCATE TABLE `users`;
|
24622
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
24623
|
+
[1m[35m (0.1ms)[0m BEGIN
|
24624
|
+
[1m[36mUser Exists (0.5ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing43@example.com' LIMIT 1[0m
|
24625
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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)[0m
|
24627
|
+
[1m[35m (48.1ms)[0m COMMIT
|
24628
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24629
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
24630
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
24631
|
+
[1m[35mStructure Load (0.6ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
24632
|
+
[1m[36mSQL (1.3ms)[0m [1mUPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`[0m
|
24633
|
+
[1m[35m (33.7ms)[0m COMMIT
|
24634
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24635
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
24636
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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')[0m
|
24637
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
|
24638
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
24639
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE[0m
|
24641
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
24642
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
24643
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
24644
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
24645
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
|
24646
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
24647
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
24648
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
24649
|
+
[1m[35mSQL (0.2ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
24650
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
24651
|
+
[1m[35m (40.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24656
|
+
[1m[35m (0.1ms)[0m COMMIT
|
24657
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24658
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (35.4ms)[0m [1mCOMMIT[0m
|
24660
|
+
Processing by Sunrise::ManagerController#new as HTML
|
24661
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
24662
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
24663
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
24664
|
+
[1m[35mRole Load (0.4ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24665
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24666
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
24679
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
24680
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
24681
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24682
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24683
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24684
|
+
[1m[36mRole Load (0.4ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1[0m
|
24685
|
+
[1m[35m (0.1ms)[0m BEGIN
|
24686
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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')[0m
|
24687
|
+
[1m[35m (26.0ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
24696
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24697
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24698
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24699
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1[0m
|
24700
|
+
[1m[35mStructure Load (0.1ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
24701
|
+
[1m[36mPost Load (0.5ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0[0m
|
24702
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (4.8ms)
|
24703
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36mPost Load (0.6ms)[0m [1mSELECT `posts`.* FROM `posts` ORDER BY `posts`.`id` DESC LIMIT 1[0m
|
24713
|
+
[1m[35mStructure Load (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24718
|
+
[1m[35m (0.1ms)[0m COMMIT
|
24719
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24720
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (20.5ms)[0m [1mCOMMIT[0m
|
24722
|
+
Processing by Sunrise::ManagerController#new as HTML
|
24723
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
24724
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
24725
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
24726
|
+
[1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24727
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24728
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
24741
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
24742
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
24743
|
+
[1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24744
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24745
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24746
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1[0m
|
24747
|
+
[1m[35m (0.1ms)[0m BEGIN
|
24748
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
24749
|
+
[1m[35m (18.1ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
24758
|
+
[1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24759
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24760
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24761
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1[0m
|
24762
|
+
[1m[35mStructure Load (0.1ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
24763
|
+
[1m[36mPost Load (0.5ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0[0m
|
24764
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (8.8ms)
|
24765
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36mPost Load (0.5ms)[0m [1mSELECT `posts`.* FROM `posts` ORDER BY `posts`.`id` DESC LIMIT 1[0m
|
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
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
24788
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
24789
|
+
[1m[35m (62.5ms)[0m TRUNCATE TABLE `assets`;
|
24790
|
+
[1m[36m (22.5ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
24791
|
+
[1m[35m (44.7ms)[0m TRUNCATE TABLE `page_parts`;
|
24792
|
+
[1m[36m (33.6ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
24793
|
+
[1m[35m (33.6ms)[0m TRUNCATE TABLE `roles`;
|
24794
|
+
[1m[36m (44.7ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
24795
|
+
[1m[35m (55.8ms)[0m TRUNCATE TABLE `structures`;
|
24796
|
+
[1m[36m (123.9ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
24797
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
24798
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24799
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing44@example.com' LIMIT 1
|
24800
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
24801
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (43.1ms)[0m [1mCOMMIT[0m
|
24803
|
+
[1m[35m (0.1ms)[0m BEGIN
|
24804
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
24805
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
24807
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
|
24808
|
+
[1m[36m (36.4ms)[0m [1mCOMMIT[0m
|
24809
|
+
[1m[35m (0.1ms)[0m BEGIN
|
24810
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
24811
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1[0m
|
24813
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
24814
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE `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`[0m
|
24815
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
|
24816
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
24817
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
24818
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
24819
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
24820
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`[0m
|
24821
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
24822
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
24823
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
24824
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
24825
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
24826
|
+
[1m[36m (52.0ms)[0m [1mCOMMIT[0m
|
24827
|
+
[1m[35m (0.1ms)[0m BEGIN
|
24828
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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')[0m
|
24829
|
+
[1m[35m (41.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24834
|
+
[1m[35m (0.1ms)[0m COMMIT
|
24835
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24836
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (35.4ms)[0m [1mCOMMIT[0m
|
24838
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
24839
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
|
24840
|
+
[1m[35mPost Load (0.5ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
|
24841
|
+
[1m[36mRole Load (0.4ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24842
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24843
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
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
|
+
[1m[35m (0.1ms)[0m BEGIN
|
24854
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
24855
|
+
[1m[35m (0.1ms)[0m BEGIN
|
24856
|
+
[1m[36m (0.5ms)[0m [1mUPDATE `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[0m
|
24857
|
+
[1m[35m (22.7ms)[0m COMMIT
|
24858
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
24859
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
|
24860
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1[0m
|
24861
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24862
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24863
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
24883
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
24884
|
+
[1m[36m (32.9ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
24885
|
+
[1m[35m (22.6ms)[0m TRUNCATE TABLE `audits`;
|
24886
|
+
[1m[36m (22.5ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
24887
|
+
[1m[35m (33.3ms)[0m TRUNCATE TABLE `posts`;
|
24888
|
+
[1m[36m (22.5ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
24889
|
+
[1m[35m (22.3ms)[0m TRUNCATE TABLE `settings`;
|
24890
|
+
[1m[36m (91.9ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
24891
|
+
[1m[35m (65.8ms)[0m TRUNCATE TABLE `users`;
|
24892
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
24893
|
+
[1m[35m (0.1ms)[0m BEGIN
|
24894
|
+
[1m[36mUser Exists (0.4ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing45@example.com' LIMIT 1[0m
|
24895
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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)[0m
|
24897
|
+
[1m[35m (33.5ms)[0m COMMIT
|
24898
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24899
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
24900
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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')[0m
|
24901
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
24902
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`[0m
|
24903
|
+
[1m[35m (54.5ms)[0m COMMIT
|
24904
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24905
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
24906
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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')[0m
|
24907
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
|
24908
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
24909
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE[0m
|
24911
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
24912
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
24913
|
+
[1m[35mSQL (0.2ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
24914
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
24915
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
|
24916
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
24917
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
24918
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
24919
|
+
[1m[35mSQL (0.2ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
24920
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
24921
|
+
[1m[35m (52.2ms)[0m COMMIT
|
24922
|
+
|
24923
|
+
|
24924
|
+
Started GET "/manage/services.json" for 127.0.0.1 at 2012-11-05 14:50:39 +0200
|
24925
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24926
|
+
[1m[35m (0.1ms)[0m COMMIT
|
24927
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24928
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (24.3ms)[0m [1mCOMMIT[0m
|
24930
|
+
Processing by Sunrise::SharedController#services as JSON
|
24931
|
+
[1m[35mRole Load (0.6ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24932
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
24933
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
24934
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`depth` = 1[0m
|
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
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
24942
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
24943
|
+
[1m[35m (28.5ms)[0m TRUNCATE TABLE `assets`;
|
24944
|
+
[1m[36m (58.1ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
24945
|
+
[1m[35m (34.1ms)[0m TRUNCATE TABLE `page_parts`;
|
24946
|
+
[1m[36m (70.7ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
24947
|
+
[1m[35m (45.1ms)[0m TRUNCATE TABLE `roles`;
|
24948
|
+
[1m[36m (228.5ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
24949
|
+
[1m[35m (40.9ms)[0m TRUNCATE TABLE `structures`;
|
24950
|
+
[1m[36m (77.7ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
24951
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
24952
|
+
[1m[36m (0.3ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
24953
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
24954
|
+
[1m[36m (43.4ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
24955
|
+
[1m[35m (22.5ms)[0m TRUNCATE TABLE `audits`;
|
24956
|
+
[1m[36m (33.6ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
24957
|
+
[1m[35m (22.5ms)[0m TRUNCATE TABLE `posts`;
|
24958
|
+
[1m[36m (22.6ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
24959
|
+
[1m[35m (33.5ms)[0m TRUNCATE TABLE `settings`;
|
24960
|
+
[1m[36m (22.6ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
24961
|
+
[1m[35m (44.8ms)[0m TRUNCATE TABLE `users`;
|
24962
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
24963
|
+
[1m[35m (0.1ms)[0m BEGIN
|
24964
|
+
[1m[36mUser Exists (0.5ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing46@example.com' LIMIT 1[0m
|
24965
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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)[0m
|
24967
|
+
[1m[35m (28.9ms)[0m COMMIT
|
24968
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24969
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
24970
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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')[0m
|
24971
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
24972
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`[0m
|
24973
|
+
[1m[35m (35.2ms)[0m COMMIT
|
24974
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
24975
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (42.2ms)[0m [1mCOMMIT[0m
|
24977
|
+
[1m[35m (0.1ms)[0m BEGIN
|
24978
|
+
[1m[36m (0.5ms)[0m [1mSELECT MAX(`audits`.`version`) AS max_id FROM `audits` WHERE `audits`.`auditable_id` = 1 AND `audits`.`auditable_type` = 'Post'[0m
|
24979
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (31.1ms)[0m [1mCOMMIT[0m
|
24981
|
+
[1m[35m (0.1ms)[0m BEGIN
|
24982
|
+
[1m[36mUser Exists (0.4ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing47@example.com' LIMIT 1[0m
|
24983
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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)[0m
|
24985
|
+
[1m[35m (36.3ms)[0m COMMIT
|
24986
|
+
Processing by Sunrise::DashboardController#index as HTML
|
24987
|
+
[1m[36mUser Load (0.6ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1[0m
|
24988
|
+
[1m[35mRole Load (0.6ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 2 LIMIT 1
|
24989
|
+
[1m[36mRole Load (0.2ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 2 LIMIT 1[0m
|
24990
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 2 LIMIT 1
|
24991
|
+
[1m[36mAudited::Adapters::ActiveRecord::Audit Load (0.5ms)[0m [1mSELECT `audits`.* FROM `audits` ORDER BY version, audits.id asc LIMIT 50 OFFSET 0[0m
|
24992
|
+
[1m[35mUser Load (0.6ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `audits` LIMIT 50 OFFSET 0) subquery_for_count [0m
|
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
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
25003
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
25004
|
+
[1m[35m (21.9ms)[0m TRUNCATE TABLE `assets`;
|
25005
|
+
[1m[36m (44.6ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
25006
|
+
[1m[35m (22.4ms)[0m TRUNCATE TABLE `page_parts`;
|
25007
|
+
[1m[36m (22.4ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
25008
|
+
[1m[35m (44.8ms)[0m TRUNCATE TABLE `roles`;
|
25009
|
+
[1m[36m (84.2ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
25010
|
+
[1m[35m (212.7ms)[0m TRUNCATE TABLE `structures`;
|
25011
|
+
[1m[36m (88.5ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
25012
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
25013
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
25014
|
+
[1m[35mStructure Load (0.6ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
25015
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT 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')[0m
|
25016
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
25017
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`[0m
|
25018
|
+
[1m[35m (43.7ms)[0m COMMIT
|
25019
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
25020
|
+
[1m[35mStructure Load (0.6ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
25021
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
25022
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
|
25023
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
25024
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE[0m
|
25026
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
25027
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
25028
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
25029
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
25030
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
|
25031
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
25032
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
25033
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
25034
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
25035
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
25036
|
+
[1m[35m (24.5ms)[0m COMMIT
|
25037
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
25038
|
+
[1m[35mUser Exists (0.5ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing48@example.com' LIMIT 1
|
25039
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT 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')[0m
|
25040
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (34.1ms)[0m [1mCOMMIT[0m
|
25042
|
+
Processing by Sunrise::SharedController#services as JSON
|
25043
|
+
[1m[35mUser Load (0.5ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
25044
|
+
[1m[36mRole Load (0.5ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
25045
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
25046
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
25047
|
+
[1m[35mStructure Load (0.5ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
25054
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
25055
|
+
[1m[36m (19.7ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
25056
|
+
[1m[35m (44.7ms)[0m TRUNCATE TABLE `audits`;
|
25057
|
+
[1m[36m (22.4ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
25058
|
+
[1m[35m (22.6ms)[0m TRUNCATE TABLE `posts`;
|
25059
|
+
[1m[36m (22.5ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
25060
|
+
[1m[35m (44.7ms)[0m TRUNCATE TABLE `settings`;
|
25061
|
+
[1m[36m (22.5ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
25062
|
+
[1m[35m (44.7ms)[0m TRUNCATE TABLE `users`;
|
25063
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
25064
|
+
[1m[35m (0.1ms)[0m BEGIN
|
25065
|
+
[1m[36mUser Exists (0.5ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing49@example.com' LIMIT 1[0m
|
25066
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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)[0m
|
25068
|
+
[1m[35m (61.0ms)[0m COMMIT
|
25069
|
+
Processing by Sunrise::SettingsController#edit as HTML
|
25070
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
25071
|
+
[1m[35mRole Load (0.5ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
25072
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
25073
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
25074
|
+
[1m[36mSettings Load (0.3ms)[0m [1mSELECT var, value FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL[0m
|
25075
|
+
[1m[35mSettings Load (0.5ms)[0m SELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL AND `settings`.`var` = 'some_setting' LIMIT 1
|
25076
|
+
[1m[36mSettings Load (0.5ms)[0m [1mSELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL AND `settings`.`var` = 'some_setting2' LIMIT 1[0m
|
25077
|
+
[1m[35mSettings Load (0.4ms)[0m 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
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
25085
|
+
[1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
25086
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
25087
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
25088
|
+
[1m[36mSettings Load (0.2ms)[0m [1mSELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL AND `settings`.`var` = 'some_setting' LIMIT 1[0m
|
25089
|
+
[1m[35m (0.1ms)[0m BEGIN
|
25090
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
25091
|
+
[1m[35m (29.6ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
25101
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
25102
|
+
[1m[36m (49.9ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
25103
|
+
[1m[35m (44.7ms)[0m TRUNCATE TABLE `audits`;
|
25104
|
+
[1m[36m (22.6ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
25105
|
+
[1m[35m (22.5ms)[0m TRUNCATE TABLE `posts`;
|
25106
|
+
[1m[36m (44.6ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
25107
|
+
[1m[35m (22.7ms)[0m TRUNCATE TABLE `settings`;
|
25108
|
+
[1m[36m (22.7ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
25109
|
+
[1m[35m (45.0ms)[0m TRUNCATE TABLE `users`;
|
25110
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
25111
|
+
[1m[35m (0.1ms)[0m BEGIN
|
25112
|
+
[1m[36mUser Exists (0.4ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing50@example.com' LIMIT 1[0m
|
25113
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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)[0m
|
25115
|
+
[1m[35m (47.0ms)[0m COMMIT
|
25116
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
25117
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
25118
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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')[0m
|
25119
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
25120
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`[0m
|
25121
|
+
[1m[35m (34.7ms)[0m COMMIT
|
25122
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
25123
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
25124
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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')[0m
|
25125
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
|
25126
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
25127
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE[0m
|
25129
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
25130
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
25131
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
25132
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
25133
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
|
25134
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
25135
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
25136
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
25137
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
25138
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
25139
|
+
[1m[35m (53.5ms)[0m COMMIT
|
25140
|
+
Processing by Sunrise::ManagerController#index as HTML
|
25141
|
+
Parameters: {"model_name"=>"structures"}
|
25142
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
25143
|
+
[1m[35mRole Load (0.5ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
25144
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
25145
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
25146
|
+
Completed 200 OK in 10ms (Views: 1.8ms | ActiveRecord: 1.3ms)
|
25147
|
+
[1m[36mStructure Load (0.6ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`[0m
|
25148
|
+
Processing by Sunrise::ManagerController#index as HTML
|
25149
|
+
Parameters: {"model_name"=>"wrong"}
|
25150
|
+
[1m[35mUser Load (0.2ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
25155
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '1' LIMIT 1
|
25156
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
25157
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
25158
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
25159
|
+
[1m[35mRole Load (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
25164
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
25165
|
+
[1m[36m (21.5ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
25166
|
+
[1m[35m (44.7ms)[0m TRUNCATE TABLE `audits`;
|
25167
|
+
[1m[36m (22.5ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
25168
|
+
[1m[35m (22.5ms)[0m TRUNCATE TABLE `posts`;
|
25169
|
+
[1m[36m (22.5ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
25170
|
+
[1m[35m (22.5ms)[0m TRUNCATE TABLE `settings`;
|
25171
|
+
[1m[36m (45.0ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
25172
|
+
[1m[35m (22.9ms)[0m TRUNCATE TABLE `users`;
|
25173
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|