sunrise-cms 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -214,11 +214,7 @@ module Sunrise
214
214
 
215
215
  # List of columns names to be exported
216
216
  def export_columns
217
- if config.list.fields
218
- config.list.fields.map(&:name)
219
- else
220
- model.column_names
221
- end
217
+ list.fields ? list.fields.map(&:name) : model.column_names
222
218
  end
223
219
 
224
220
  # Filename for export data
@@ -1,3 +1,3 @@
1
1
  module Sunrise
2
- VERSION = "0.3.1".freeze
2
+ VERSION = "0.3.2".freeze
3
3
  end
@@ -286655,3 +286655,2749 @@ Completed 401 Unauthorized in 1ms
286655
286655
   (44.1ms) TRUNCATE TABLE `structures`;
286656
286656
   (55.2ms) TRUNCATE TABLE `users`;
286657
286657
   (0.2ms) SET FOREIGN_KEY_CHECKS = 1
286658
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
286659
+ Migrating to CreateAssets (20111216144515)
286660
+ Migrating to CreateRoles (20111216144815)
286661
+ Migrating to CreateStructures (20111216144915)
286662
+ Migrating to CreateUsers (20111216145015)
286663
+ Migrating to CreateSettings (20120611095315)
286664
+  (0.1ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
286665
+ Migrating to InstallActsAsAudited (20111227111941)
286666
+ Migrating to CreatePageParts (20111227143901)
286667
+ Migrating to CreatePosts (20111228152051)
286668
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
286669
+ Migrating to CreateAssets (20111216144515)
286670
+ Migrating to CreateRoles (20111216144815)
286671
+ Migrating to CreateStructures (20111216144915)
286672
+ Migrating to CreateUsers (20111216145015)
286673
+ Migrating to CreateSettings (20120611095315)
286674
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
286675
+ Migrating to InstallActsAsAudited (20111227111941)
286676
+ Migrating to CreatePageParts (20111227143901)
286677
+ Migrating to CreatePosts (20111228152051)
286678
+  (0.2ms) BEGIN
286679
+ User Exists (0.6ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing1@example.com' LIMIT 1
286680
+ SQL (0.6ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:04', '2012-06-22 09:11:05', NULL, NULL, 'testing1@example.com', '3379fc989b9af705c60f938b8145fcff8c99f31ed71f83adb7ab698a76ae4475d4276a81621feae3a5e8c2c380ce2a62a859340be3f6ac0ec4355000ecc7a916', 0, NULL, NULL, NULL, 'Admin', 'QSQRTmyuw9K4iEdPcqpN', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:05')
286681
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:05', 4, '2012-06-22 09:11:05', 1)
286682
+  (84.9ms) COMMIT
286683
+  (0.2ms) BEGIN
286684
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing2@example.com' LIMIT 1
286685
+ SQL (0.6ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:05', '2012-06-22 09:11:05', NULL, NULL, 'testing2@example.com', 'bf345c8843c78d7f348a7c9c00d358a85d854edadbd9f349a5f44c269214bef7b528cd0a45cdc878c161a195ed2b42d4539d7f31aa73bacd44d0bb4ab912fe3a', 0, NULL, NULL, NULL, 'Test', 'hWwQy3wxqanVGRsxfJqP', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:05')
286686
+ SQL (0.4ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:05', 1, '2012-06-22 09:11:05', 2)
286687
+  (87.6ms) COMMIT
286688
+  (0.2ms) BEGIN
286689
+ Structure Load (0.7ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
286690
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
286691
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:05', 0, 1, 1, 1, NULL, 2, NULL, 2, 'structure', 'Structure', '2012-06-22 09:11:05')
286692
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
286693
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
286694
+  (42.1ms) COMMIT
286695
+  (0.1ms) BEGIN
286696
+ SQL (0.3ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2012-06-22 09:11:05', 1, 1, 'Default title', '2012-06-22 09:11:05')
286697
+  (39.7ms) COMMIT
286698
+  (0.1ms) BEGIN
286699
+  (0.6ms) SELECT MAX(`audits`.`version`) AS max_id FROM `audits` WHERE `audits`.`auditable_id` = 1 AND `audits`.`auditable_type` = 'Post'
286700
+ SQL (0.4ms) INSERT INTO `audits` (`action`, `associated_id`, `associated_type`, `auditable_id`, `auditable_type`, `audited_changes`, `comment`, `created_at`, `remote_address`, `user_id`, `user_type`, `username`, `version`) VALUES ('create', NULL, NULL, 1, 'Post', '---\n:title: Updated\n', NULL, '2012-06-22 09:11:05', NULL, 2, 'User', NULL, 1)
286701
+  (37.1ms) COMMIT
286702
+
286703
+
286704
+ Started GET "/manage/" for 127.0.0.1 at 2012-06-22 12:11:05 +0300
286705
+  (0.1ms) BEGIN
286706
+  (0.1ms) COMMIT
286707
+  (0.2ms) BEGIN
286708
+  (0.6ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-22 09:11:05', `current_sign_in_at` = '2012-06-22 09:11:05', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-22 09:11:05' WHERE `users`.`id` = 1
286709
+  (39.9ms) COMMIT
286710
+ Processing by Sunrise::DashboardController#index as HTML
286711
+ Role Load (0.6ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
286712
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
286713
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
286714
+ Audited::Adapters::ActiveRecord::Audit Load (0.4ms) SELECT `audits`.* FROM `audits` ORDER BY version LIMIT 50 OFFSET 0
286715
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` IN (2)
286716
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_event.html.erb (3.3ms)
286717
+  (0.5ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `audits` LIMIT 50 OFFSET 0) subquery_for_count 
286718
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/index.html.erb within layouts/sunrise/application (131.2ms)
286719
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (57.8ms)
286720
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (2.3ms)
286721
+ Completed 200 OK in 274ms (Views: 260.7ms | ActiveRecord: 2.2ms)
286722
+
286723
+
286724
+ Started GET "/manage/" for 127.0.0.1 at 2012-06-22 12:11:06 +0300
286725
+  (0.2ms) BEGIN
286726
+  (0.1ms) COMMIT
286727
+  (0.1ms) BEGIN
286728
+  (0.5ms) UPDATE `users` SET `current_sign_in_at` = '2012-06-22 09:11:06', `sign_in_count` = 2, `updated_at` = '2012-06-22 09:11:06' WHERE `users`.`id` = 1
286729
+  (39.0ms) COMMIT
286730
+ Processing by Sunrise::DashboardController#index as HTML
286731
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
286732
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
286733
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
286734
+ Audited::Adapters::ActiveRecord::Audit Load (0.2ms) SELECT `audits`.* FROM `audits` ORDER BY version LIMIT 50 OFFSET 0
286735
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` IN (2)
286736
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_event.html.erb (2.3ms)
286737
+  (0.2ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `audits` LIMIT 50 OFFSET 0) subquery_for_count
286738
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.7ms)
286739
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (1.0ms)
286740
+ Completed 200 OK in 24ms (Views: 13.3ms | ActiveRecord: 1.3ms)
286741
+
286742
+
286743
+ Started GET "/manage/" for 127.0.0.1 at 2012-06-22 12:11:06 +0300
286744
+ Processing by Sunrise::DashboardController#index as HTML
286745
+ Completed 401 Unauthorized in 0ms
286746
+
286747
+
286748
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-06-22 12:11:06 +0300
286749
+ Processing by Devise::SessionsController#new as HTML
286750
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/app/views/devise/shared/_links.erb (2.1ms)
286751
+ Completed 200 OK in 15ms (Views: 13.6ms | ActiveRecord: 0.0ms)
286752
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
286753
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
286754
+  (0.2ms) SELECT DATABASE() as db
286755
+  (0.8ms) select table_name from information_schema.views where table_schema = 'sunrise_dummy_test'
286756
+  (60.1ms) TRUNCATE TABLE `assets`;
286757
+  (43.9ms) TRUNCATE TABLE `audits`;
286758
+  (44.0ms) TRUNCATE TABLE `headers`;
286759
+  (55.1ms) TRUNCATE TABLE `page_parts`;
286760
+  (44.2ms) TRUNCATE TABLE `posts`;
286761
+  (77.1ms) TRUNCATE TABLE `roles`;
286762
+  (44.3ms) TRUNCATE TABLE `settings`;
286763
+  (44.1ms) TRUNCATE TABLE `structures`;
286764
+  (44.0ms) TRUNCATE TABLE `users`;
286765
+  (0.3ms) SET FOREIGN_KEY_CHECKS = 1
286766
+  (0.1ms) BEGIN
286767
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing3@example.com' LIMIT 1
286768
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:06', '2012-06-22 09:11:06', NULL, NULL, 'testing3@example.com', '74c269425208a0bd1f1d45ada852181558ace45e13162a4f4031137af86bbbd34045a8aa341aaca03e31b3e8140af1b6007faed231088516795a08788298c50f', 0, NULL, NULL, NULL, 'Admin', 'b1yBiLJBpAEqgpLCuJBN', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:06')
286769
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:06', 4, '2012-06-22 09:11:06', 1)
286770
+  (44.1ms) COMMIT
286771
+  (0.1ms) BEGIN
286772
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
286773
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
286774
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:06', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-22 09:11:06')
286775
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
286776
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
286777
+  (36.4ms) COMMIT
286778
+  (0.2ms) BEGIN
286779
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
286780
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
286781
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:06', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-22 09:11:06')
286782
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
286783
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
286784
+ SQL (0.3ms) 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 `lft`
286785
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
286786
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
286787
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
286788
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
286789
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
286790
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
286791
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
286792
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
286793
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
286794
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
286795
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
286796
+  (81.0ms) COMMIT
286797
+
286798
+
286799
+ Started GET "/manage/services.json" for 127.0.0.1 at 2012-06-22 12:11:07 +0300
286800
+  (0.2ms) BEGIN
286801
+  (0.1ms) COMMIT
286802
+  (0.1ms) BEGIN
286803
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-22 09:11:07', `current_sign_in_at` = '2012-06-22 09:11:07', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-22 09:11:07' WHERE `users`.`id` = 1
286804
+  (77.0ms) COMMIT
286805
+ Processing by Sunrise::SharedController#services as JSON
286806
+ Role Load (0.6ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
286807
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
286808
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
286809
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE `structures`.`depth` = 1
286810
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`depth` = 1
286811
+ Completed 200 OK in 25ms (Views: 11.6ms | ActiveRecord: 1.4ms)
286812
+
286813
+
286814
+ Started GET "/manage/services.json" for 127.0.0.1 at 2012-06-22 12:11:07 +0300
286815
+ Processing by Sunrise::SharedController#services as JSON
286816
+ Completed 401 Unauthorized in 0ms
286817
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
286818
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
286819
+  (99.0ms) TRUNCATE TABLE `assets`;
286820
+  (44.1ms) TRUNCATE TABLE `audits`;
286821
+  (66.1ms) TRUNCATE TABLE `headers`;
286822
+  (55.2ms) TRUNCATE TABLE `page_parts`;
286823
+  (55.1ms) TRUNCATE TABLE `posts`;
286824
+  (55.2ms) TRUNCATE TABLE `roles`;
286825
+  (55.1ms) TRUNCATE TABLE `settings`;
286826
+  (68.0ms) TRUNCATE TABLE `structures`;
286827
+  (66.3ms) TRUNCATE TABLE `users`;
286828
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
286829
+  (0.2ms) BEGIN
286830
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing4@example.com' LIMIT 1
286831
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:07', '2012-06-22 09:11:07', NULL, NULL, 'testing4@example.com', '2b7b60dd22f86c4acbf2fc2239485072250929743010a94b869b59386a7a1c7397c22feca42338cd54f0a59cbc83399555b055353af7598f4388e8f6d1679a5f', 0, NULL, NULL, NULL, 'Admin', 'GCjg2gutCq8yF5xCa5QB', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:07')
286832
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:07', 4, '2012-06-22 09:11:07', 1)
286833
+  (56.0ms) COMMIT
286834
+  (0.1ms) BEGIN
286835
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
286836
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
286837
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:07', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-22 09:11:07')
286838
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
286839
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
286840
+  (55.7ms) COMMIT
286841
+  (0.1ms) BEGIN
286842
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
286843
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
286844
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:07', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-22 09:11:07')
286845
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
286846
+ Structure Load (0.4ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
286847
+ SQL (0.6ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`
286848
+ Structure Load (0.4ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
286849
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
286850
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
286851
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
286852
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
286853
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
286854
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
286855
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
286856
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
286857
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
286858
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
286859
+  (87.7ms) COMMIT
286860
+  (0.2ms) BEGIN
286861
+ SQL (0.4ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2012-06-22 09:11:08', 1, 2, 'Default title', '2012-06-22 09:11:08')
286862
+  (80.8ms) COMMIT
286863
+
286864
+
286865
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-22 12:11:08 +0300
286866
+  (0.2ms) BEGIN
286867
+  (0.1ms) COMMIT
286868
+  (0.1ms) BEGIN
286869
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-22 09:11:08', `current_sign_in_at` = '2012-06-22 09:11:08', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-22 09:11:08' WHERE `users`.`id` = 1
286870
+  (55.7ms) COMMIT
286871
+ Processing by Sunrise::ManagerController#index as HTML
286872
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
286873
+ Role Load (0.5ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
286874
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
286875
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
286876
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
286877
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
286878
+ Post Load (0.4ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
286879
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (4.5ms)
286880
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
286881
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.8ms)
286882
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.6ms)
286883
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
286884
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (459.7ms)
286885
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (470.8ms)
286886
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (3.2ms)
286887
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (476.4ms)
286888
+ Completed 200 OK in 515ms (Views: 500.6ms | ActiveRecord: 2.2ms)
286889
+  (0.2ms) BEGIN
286890
+ SQL (0.4ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2012-06-22 09:11:08', 1, 2, 'Aimbulance', '2012-06-22 09:11:08')
286891
+  (56.8ms) COMMIT
286892
+
286893
+
286894
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-22 12:11:08 +0300
286895
+  (0.2ms) BEGIN
286896
+  (0.1ms) COMMIT
286897
+  (0.1ms) BEGIN
286898
+  (0.5ms) UPDATE `users` SET `current_sign_in_at` = '2012-06-22 09:11:08', `sign_in_count` = 2, `updated_at` = '2012-06-22 09:11:08' WHERE `users`.`id` = 1
286899
+  (48.8ms) COMMIT
286900
+ Processing by Sunrise::ManagerController#index as HTML
286901
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
286902
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
286903
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
286904
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
286905
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
286906
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
286907
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
286908
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (62.8ms)
286909
+  (0.6ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
286910
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.8ms)
286911
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
286912
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
286913
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (3.4ms)
286914
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (6.7ms)
286915
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (2.1ms)
286916
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (9.3ms)
286917
+ Completed 200 OK in 89ms (Views: 81.0ms | ActiveRecord: 1.5ms)
286918
+
286919
+
286920
+ Started GET "/manage/posts?utf8=%E2%9C%93&parent_id=2&parent_type=Structure&search[title]=Aimbulance&search[structure_id]=&commit=Search" for 127.0.0.1 at 2012-06-22 12:11:08 +0300
286921
+ Processing by Sunrise::ManagerController#index as HTML
286922
+ Parameters: {"utf8"=>"✓", "parent_id"=>"2", "parent_type"=>"Structure", "search"=>{"title"=>"Aimbulance", "structure_id"=>""}, "commit"=>"Search", "model_name"=>"posts"}
286923
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
286924
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
286925
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
286926
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
286927
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
286928
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
286929
+ Post Load (0.6ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`title` = 'Aimbulance' AND `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
286930
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (3.2ms)
286931
+  (0.6ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`title` = 'Aimbulance' AND `posts`.`structure_id` = 2
286932
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (56.0ms)
286933
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
286934
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
286935
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (3.5ms)
286936
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (7.5ms)
286937
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (2.1ms)
286938
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (10.0ms)
286939
+ Completed 200 OK in 84ms (Views: 76.1ms | ActiveRecord: 2.3ms)
286940
+
286941
+
286942
+ Started GET "/manage/posts?parent_id=1&parent_type=Structure" for 127.0.0.1 at 2012-06-22 12:11:09 +0300
286943
+  (0.2ms) BEGIN
286944
+  (0.2ms) COMMIT
286945
+  (0.1ms) BEGIN
286946
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-22 09:11:08', `current_sign_in_at` = '2012-06-22 09:11:09', `sign_in_count` = 3, `updated_at` = '2012-06-22 09:11:09' WHERE `users`.`id` = 1
286947
+  (52.1ms) COMMIT
286948
+ Processing by Sunrise::ManagerController#index as HTML
286949
+ Parameters: {"parent_id"=>"1", "parent_type"=>"Structure", "model_name"=>"posts"}
286950
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
286951
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
286952
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
286953
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '1' LIMIT 1
286954
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
286955
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 1 LIMIT 25 OFFSET 0
286956
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (0.0ms)
286957
+  (0.4ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 1
286958
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.8ms)
286959
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
286960
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
286961
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (3.3ms)
286962
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (6.8ms)
286963
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (2.0ms)
286964
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (9.1ms)
286965
+ Completed 200 OK in 25ms (Views: 17.0ms | ActiveRecord: 1.9ms)
286966
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
286967
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
286968
+  (62.9ms) TRUNCATE TABLE `assets`;
286969
+  (55.0ms) TRUNCATE TABLE `audits`;
286970
+  (55.2ms) TRUNCATE TABLE `headers`;
286971
+  (55.2ms) TRUNCATE TABLE `page_parts`;
286972
+  (110.4ms) TRUNCATE TABLE `posts`;
286973
+  (55.1ms) TRUNCATE TABLE `roles`;
286974
+  (66.2ms) TRUNCATE TABLE `settings`;
286975
+  (43.9ms) TRUNCATE TABLE `structures`;
286976
+  (44.1ms) TRUNCATE TABLE `users`;
286977
+  (0.3ms) SET FOREIGN_KEY_CHECKS = 1
286978
+  (0.1ms) BEGIN
286979
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing5@example.com' LIMIT 1
286980
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:09', '2012-06-22 09:11:09', NULL, NULL, 'testing5@example.com', 'c52623bb5e9374d4e11d8daf3b229d77806f9cc368b88af5ba03f888bcb9152476e30c4c6cbc28f157391207e0840559e8170b8d6f074bda9a673ed6336135f2', 0, NULL, NULL, NULL, 'Admin', 'YyxspAuzpqzAtmevmysb', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:09')
286981
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:09', 4, '2012-06-22 09:11:09', 1)
286982
+  (35.7ms) COMMIT
286983
+  (0.1ms) BEGIN
286984
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
286985
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
286986
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:09', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-22 09:11:09')
286987
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
286988
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
286989
+  (37.2ms) COMMIT
286990
+  (0.1ms) BEGIN
286991
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
286992
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
286993
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:09', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-22 09:11:09')
286994
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
286995
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
286996
+ SQL (0.5ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`
286997
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
286998
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
286999
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
287000
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
287001
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
287002
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
287003
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
287004
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287005
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
287006
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
287007
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
287008
+  (56.7ms) COMMIT
287009
+
287010
+
287011
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-22 12:11:09 +0300
287012
+  (0.2ms) BEGIN
287013
+  (0.1ms) COMMIT
287014
+  (0.1ms) BEGIN
287015
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-22 09:11:09', `current_sign_in_at` = '2012-06-22 09:11:09', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-22 09:11:09' WHERE `users`.`id` = 1
287016
+  (36.2ms) COMMIT
287017
+ Processing by Sunrise::ManagerController#new as HTML
287018
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
287019
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
287020
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287021
+ Role Load (0.4ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287022
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287023
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287024
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
287025
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (18.5ms)
287026
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (85.4ms)
287027
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.8ms)
287028
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.9ms)
287029
+ Completed 200 OK in 103ms (Views: 94.6ms | ActiveRecord: 1.2ms)
287030
+
287031
+
287032
+ Started POST "/manage/posts/new" for 127.0.0.1 at 2012-06-22 12:11:10 +0300
287033
+ Processing by Sunrise::ManagerController#create as HTML
287034
+ Parameters: {"utf8"=>"✓", "parent_id"=>"2", "parent_type"=>"Structure", "post"=>{"title"=>"Aimbulance", "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"}
287035
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
287036
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
287037
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287038
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287039
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287040
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287041
+ Role Load (0.5ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
287042
+  (0.2ms) BEGIN
287043
+ SQL (0.4ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long text', '2012-06-22 09:11:10', 1, 2, 'Aimbulance', '2012-06-22 09:11:10')
287044
+  (60.2ms) COMMIT
287045
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
287046
+ Completed 302 Found in 136ms (ActiveRecord: 0.0ms)
287047
+
287048
+
287049
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-22 12:11:10 +0300
287050
+ Processing by Sunrise::ManagerController#index as HTML
287051
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
287052
+ User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
287053
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287054
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287055
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287056
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
287057
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287058
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
287059
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (3.0ms)
287060
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
287061
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.8ms)
287062
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
287063
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
287064
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (3.5ms)
287065
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (6.7ms)
287066
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (2.1ms)
287067
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (9.1ms)
287068
+ Completed 200 OK in 28ms (Views: 20.1ms | ActiveRecord: 1.9ms)
287069
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` ORDER BY `posts`.`id` DESC LIMIT 1
287070
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287071
+
287072
+
287073
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-22 12:11:10 +0300
287074
+  (0.2ms) BEGIN
287075
+  (0.1ms) COMMIT
287076
+  (0.1ms) BEGIN
287077
+  (0.4ms) UPDATE `users` SET `current_sign_in_at` = '2012-06-22 09:11:10', `sign_in_count` = 2, `updated_at` = '2012-06-22 09:11:10' WHERE `users`.`id` = 1
287078
+  (37.0ms) COMMIT
287079
+ Processing by Sunrise::ManagerController#new as HTML
287080
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
287081
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
287082
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287083
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287084
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287085
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287086
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.7ms)
287087
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (61.4ms)
287088
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (65.1ms)
287089
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.0ms)
287090
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.4ms)
287091
+ Completed 200 OK in 81ms (Views: 71.8ms | ActiveRecord: 0.6ms)
287092
+
287093
+
287094
+ Started POST "/manage/posts/new" for 127.0.0.1 at 2012-06-22 12:11:10 +0300
287095
+ Processing by Sunrise::ManagerController#create as HTML
287096
+ Parameters: {"utf8"=>"✓", "parent_id"=>"2", "parent_type"=>"Structure", "post"=>{"title"=>"Aimbulance", "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"}
287097
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
287098
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
287099
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287100
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287101
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287102
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287103
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
287104
+  (0.1ms) BEGIN
287105
+ SQL (0.4ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long text', '2012-06-22 09:11:10', 1, 2, 'Aimbulance', '2012-06-22 09:11:10')
287106
+  (40.7ms) COMMIT
287107
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
287108
+ Completed 302 Found in 53ms (ActiveRecord: 0.0ms)
287109
+
287110
+
287111
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-22 12:11:10 +0300
287112
+ Processing by Sunrise::ManagerController#index as HTML
287113
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
287114
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
287115
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287116
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287117
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287118
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
287119
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287120
+ Post Load (0.6ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
287121
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (5.1ms)
287122
+  (0.4ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
287123
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.7ms)
287124
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
287125
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
287126
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (3.6ms)
287127
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (6.6ms)
287128
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (2.0ms)
287129
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (9.0ms)
287130
+ Completed 200 OK in 30ms (Views: 22.2ms | ActiveRecord: 1.8ms)
287131
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` ORDER BY `posts`.`id` DESC LIMIT 1
287132
+
287133
+
287134
+ Started GET "/manage/posts/new" for 127.0.0.1 at 2012-06-22 12:11:10 +0300
287135
+ Processing by Sunrise::ManagerController#new as HTML
287136
+ Parameters: {"model_name"=>"posts"}
287137
+ Completed 401 Unauthorized in 1ms
287138
+
287139
+
287140
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-06-22 12:11:10 +0300
287141
+ Processing by Devise::SessionsController#new as HTML
287142
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/app/views/devise/shared/_links.erb (1.0ms)
287143
+ Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms)
287144
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
287145
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
287146
+  (39.3ms) TRUNCATE TABLE `assets`;
287147
+  (55.0ms) TRUNCATE TABLE `audits`;
287148
+  (44.1ms) TRUNCATE TABLE `headers`;
287149
+  (44.1ms) TRUNCATE TABLE `page_parts`;
287150
+  (44.0ms) TRUNCATE TABLE `posts`;
287151
+  (66.3ms) TRUNCATE TABLE `roles`;
287152
+  (55.2ms) TRUNCATE TABLE `settings`;
287153
+  (44.0ms) TRUNCATE TABLE `structures`;
287154
+  (44.1ms) TRUNCATE TABLE `users`;
287155
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
287156
+  (0.1ms) BEGIN
287157
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing6@example.com' LIMIT 1
287158
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:10', '2012-06-22 09:11:10', NULL, NULL, 'testing6@example.com', 'c929ebe1ebda21839f88f4c3d9b7e4d2df70ba5054a334229e1f13b99dce650bd974dae191597e873bbe6ec1ae148fe0aa729ccc7df946b55c9f69c63fe23b57', 0, NULL, NULL, NULL, 'Admin', 'js14Ha1TJoVzFbj6ia7Y', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:10')
287159
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:10', 4, '2012-06-22 09:11:10', 1)
287160
+  (101.4ms) COMMIT
287161
+  (0.1ms) BEGIN
287162
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
287163
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
287164
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:11', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-22 09:11:11')
287165
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
287166
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
287167
+  (74.7ms) COMMIT
287168
+  (0.1ms) BEGIN
287169
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
287170
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
287171
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:11', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-22 09:11:11')
287172
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
287173
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
287174
+ SQL (0.5ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`
287175
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
287176
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287177
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
287178
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
287179
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
287180
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
287181
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
287182
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287183
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
287184
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
287185
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
287186
+  (46.6ms) COMMIT
287187
+  (0.1ms) BEGIN
287188
+ SQL (0.3ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2012-06-22 09:11:11', 1, 2, 'Default title', '2012-06-22 09:11:11')
287189
+  (40.4ms) COMMIT
287190
+
287191
+
287192
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-22 12:11:11 +0300
287193
+  (0.2ms) BEGIN
287194
+  (0.2ms) COMMIT
287195
+  (0.1ms) BEGIN
287196
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-22 09:11:11', `current_sign_in_at` = '2012-06-22 09:11:11', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-22 09:11:11' WHERE `users`.`id` = 1
287197
+  (37.8ms) COMMIT
287198
+ Processing by Sunrise::ManagerController#index as HTML
287199
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
287200
+ Role Load (0.5ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287201
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287202
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287203
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
287204
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287205
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
287206
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (3.5ms)
287207
+  (0.4ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
287208
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.2ms)
287209
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
287210
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
287211
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (4.1ms)
287212
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (8.1ms)
287213
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (61.6ms)
287214
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (70.4ms)
287215
+ Completed 200 OK in 91ms (Views: 83.2ms | ActiveRecord: 2.2ms)
287216
+
287217
+
287218
+ Started DELETE "/manage/posts/1/delete?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-22 12:11:11 +0300
287219
+ Processing by Sunrise::ManagerController#destroy as HTML
287220
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
287221
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
287222
+ Post Load (0.2ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
287223
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287224
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287225
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287226
+  (0.1ms) BEGIN
287227
+ SQL (0.4ms) DELETE FROM `posts` WHERE `posts`.`id` = 1
287228
+  (38.0ms) COMMIT
287229
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
287230
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287231
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
287232
+ Completed 302 Found in 54ms (ActiveRecord: 0.0ms)
287233
+
287234
+
287235
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-22 12:11:11 +0300
287236
+ Processing by Sunrise::ManagerController#index as HTML
287237
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
287238
+ User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
287239
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287240
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287241
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287242
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
287243
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287244
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
287245
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (0.0ms)
287246
+  (0.4ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
287247
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.8ms)
287248
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
287249
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
287250
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (3.5ms)
287251
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (6.6ms)
287252
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (2.0ms)
287253
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (9.0ms)
287254
+ Completed 200 OK in 24ms (Views: 16.7ms | ActiveRecord: 1.7ms)
287255
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
287256
+
287257
+
287258
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-22 12:11:11 +0300
287259
+ Processing by Sunrise::ManagerController#index as HTML
287260
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
287261
+ Completed 401 Unauthorized in 0ms
287262
+
287263
+
287264
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-06-22 12:11:11 +0300
287265
+ Processing by Devise::SessionsController#new as HTML
287266
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/app/views/devise/shared/_links.erb (0.7ms)
287267
+ Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms)
287268
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
287269
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
287270
+  (59.1ms) TRUNCATE TABLE `assets`;
287271
+  (44.0ms) TRUNCATE TABLE `audits`;
287272
+  (43.9ms) TRUNCATE TABLE `headers`;
287273
+  (66.3ms) TRUNCATE TABLE `page_parts`;
287274
+  (55.2ms) TRUNCATE TABLE `posts`;
287275
+  (44.0ms) TRUNCATE TABLE `roles`;
287276
+  (44.1ms) TRUNCATE TABLE `settings`;
287277
+  (44.2ms) TRUNCATE TABLE `structures`;
287278
+  (44.2ms) TRUNCATE TABLE `users`;
287279
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
287280
+  (0.1ms) BEGIN
287281
+ User Exists (0.3ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing7@example.com' LIMIT 1
287282
+ SQL (48.9ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:11', '2012-06-22 09:11:11', NULL, NULL, 'testing7@example.com', 'bbd35ec9644ce86fb19517cc872d0c84a45a96998514dfedd9571d0275b0d5844b5dd616026de09d8fe39761bd7c4de7e33b4faffb323851d3e1455eb40af0c5', 0, NULL, NULL, NULL, 'Admin', 'wwfzPDowNpD5VoXqSauU', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:11')
287283
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:12', 4, '2012-06-22 09:11:12', 1)
287284
+  (108.4ms) COMMIT
287285
+  (0.2ms) BEGIN
287286
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
287287
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
287288
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:12', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-22 09:11:12')
287289
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
287290
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
287291
+  (47.7ms) COMMIT
287292
+  (0.1ms) BEGIN
287293
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
287294
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
287295
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:12', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-22 09:11:12')
287296
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
287297
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
287298
+ SQL (0.4ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`
287299
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
287300
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287301
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
287302
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
287303
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
287304
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
287305
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
287306
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287307
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
287308
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
287309
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
287310
+  (52.2ms) COMMIT
287311
+  (0.1ms) BEGIN
287312
+ SQL (0.2ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2012-06-22 09:11:12', 1, 2, 'Default title', '2012-06-22 09:11:12')
287313
+  (52.4ms) COMMIT
287314
+
287315
+
287316
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-22 12:11:12 +0300
287317
+  (0.2ms) BEGIN
287318
+  (0.1ms) COMMIT
287319
+  (0.1ms) BEGIN
287320
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-22 09:11:12', `current_sign_in_at` = '2012-06-22 09:11:12', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-22 09:11:12' WHERE `users`.`id` = 1
287321
+  (47.0ms) COMMIT
287322
+ Processing by Sunrise::ManagerController#edit as HTML
287323
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
287324
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
287325
+ Role Load (0.4ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287326
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287327
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287328
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
287329
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (4.1ms)
287330
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (6.4ms)
287331
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.6ms)
287332
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.8ms)
287333
+ Completed 200 OK in 21ms (Views: 14.0ms | ActiveRecord: 0.9ms)
287334
+
287335
+
287336
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-22 12:11:12 +0300
287337
+  (0.2ms) BEGIN
287338
+  (0.1ms) COMMIT
287339
+  (0.1ms) BEGIN
287340
+  (0.5ms) UPDATE `users` SET `current_sign_in_at` = '2012-06-22 09:11:12', `sign_in_count` = 2, `updated_at` = '2012-06-22 09:11:12' WHERE `users`.`id` = 1
287341
+  (48.3ms) COMMIT
287342
+ Processing by Sunrise::ManagerController#edit as HTML
287343
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
287344
+ Post Load (0.3ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
287345
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287346
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287347
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287348
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
287349
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (4.0ms)
287350
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (6.0ms)
287351
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.5ms)
287352
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.3ms)
287353
+ Completed 200 OK in 18ms (Views: 11.2ms | ActiveRecord: 0.5ms)
287354
+
287355
+
287356
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-22 12:11:12 +0300
287357
+ Processing by Sunrise::ManagerController#edit as HTML
287358
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
287359
+ Completed 401 Unauthorized in 0ms
287360
+
287361
+
287362
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-06-22 12:11:12 +0300
287363
+ Processing by Devise::SessionsController#new as HTML
287364
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/app/views/devise/shared/_links.erb (0.8ms)
287365
+ Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.0ms)
287366
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
287367
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
287368
+  (50.1ms) TRUNCATE TABLE `assets`;
287369
+  (55.0ms) TRUNCATE TABLE `audits`;
287370
+  (55.0ms) TRUNCATE TABLE `headers`;
287371
+  (55.1ms) TRUNCATE TABLE `page_parts`;
287372
+  (55.2ms) TRUNCATE TABLE `posts`;
287373
+  (55.0ms) TRUNCATE TABLE `roles`;
287374
+  (55.2ms) TRUNCATE TABLE `settings`;
287375
+  (55.2ms) TRUNCATE TABLE `structures`;
287376
+  (132.7ms) TRUNCATE TABLE `users`;
287377
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
287378
+  (0.1ms) BEGIN
287379
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing8@example.com' LIMIT 1
287380
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:13', '2012-06-22 09:11:13', NULL, NULL, 'testing8@example.com', '2b5f329d85c27763653c8faaa45609f21187768b12637fa0e19c5d5bad8f8aa86a59a42fe6574a0fdd8c17651f66ca2e77a042d326f4264046e2a5890f337c14', 0, NULL, NULL, NULL, 'Admin', 'Qqegfzbqia2FJQ2ayV9S', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:13')
287381
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:13', 4, '2012-06-22 09:11:13', 1)
287382
+  (53.5ms) COMMIT
287383
+  (0.1ms) BEGIN
287384
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
287385
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
287386
+ SQL (0.2ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:13', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-22 09:11:13')
287387
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
287388
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
287389
+  (54.6ms) COMMIT
287390
+  (0.2ms) BEGIN
287391
+ Structure Load (0.7ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
287392
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
287393
+ SQL (0.2ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:13', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-22 09:11:13')
287394
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
287395
+ Structure Load (0.4ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
287396
+ SQL (0.4ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`
287397
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
287398
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287399
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
287400
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
287401
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
287402
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
287403
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
287404
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287405
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
287406
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
287407
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
287408
+  (51.4ms) COMMIT
287409
+
287410
+
287411
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-22 12:11:13 +0300
287412
+  (0.2ms) BEGIN
287413
+  (0.1ms) COMMIT
287414
+  (0.1ms) BEGIN
287415
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-22 09:11:13', `current_sign_in_at` = '2012-06-22 09:11:13', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-22 09:11:13' WHERE `users`.`id` = 1
287416
+  (57.4ms) COMMIT
287417
+ Processing by Sunrise::ManagerController#new as HTML
287418
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
287419
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
287420
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287421
+ Role Load (0.4ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287422
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287423
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287424
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
287425
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (5.0ms)
287426
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (7.4ms)
287427
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.1ms)
287428
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.4ms)
287429
+ Completed 200 OK in 20ms (Views: 13.7ms | ActiveRecord: 1.3ms)
287430
+
287431
+
287432
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-22 12:11:13 +0300
287433
+  (0.2ms) BEGIN
287434
+  (0.1ms) COMMIT
287435
+  (0.1ms) BEGIN
287436
+  (0.4ms) UPDATE `users` SET `current_sign_in_at` = '2012-06-22 09:11:13', `sign_in_count` = 2, `updated_at` = '2012-06-22 09:11:13' WHERE `users`.`id` = 1
287437
+  (46.7ms) COMMIT
287438
+ Processing by Sunrise::ManagerController#new as HTML
287439
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
287440
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
287441
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287442
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287443
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287444
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287445
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
287446
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (3.9ms)
287447
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (5.8ms)
287448
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.6ms)
287449
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.3ms)
287450
+ Completed 200 OK in 15ms (Views: 10.9ms | ActiveRecord: 0.3ms)
287451
+
287452
+
287453
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-22 12:11:13 +0300
287454
+  (0.2ms) BEGIN
287455
+  (0.1ms) COMMIT
287456
+  (0.1ms) BEGIN
287457
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-22 09:11:13', `current_sign_in_at` = '2012-06-22 09:11:13', `sign_in_count` = 3, `updated_at` = '2012-06-22 09:11:13' WHERE `users`.`id` = 1
287458
+  (55.6ms) COMMIT
287459
+ Processing by Sunrise::ManagerController#new as HTML
287460
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
287461
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
287462
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287463
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287464
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287465
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287466
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.6ms)
287467
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (7.6ms)
287468
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (10.7ms)
287469
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.5ms)
287470
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.3ms)
287471
+ Completed 200 OK in 24ms (Views: 16.6ms | ActiveRecord: 0.5ms)
287472
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
287473
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
287474
+  (52.4ms) TRUNCATE TABLE `assets`;
287475
+  (66.0ms) TRUNCATE TABLE `audits`;
287476
+  (55.0ms) TRUNCATE TABLE `headers`;
287477
+  (55.2ms) TRUNCATE TABLE `page_parts`;
287478
+  (121.8ms) TRUNCATE TABLE `posts`;
287479
+  (95.2ms) TRUNCATE TABLE `roles`;
287480
+  (114.5ms) TRUNCATE TABLE `settings`;
287481
+  (66.0ms) TRUNCATE TABLE `structures`;
287482
+  (55.2ms) TRUNCATE TABLE `users`;
287483
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
287484
+  (0.1ms) BEGIN
287485
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing9@example.com' LIMIT 1
287486
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:14', '2012-06-22 09:11:14', NULL, NULL, 'testing9@example.com', '9d8f074c0b7f78eb82816a4f3fbe1fb6b91d20fe733fb5d4a9b33088c38eac51259bff3c28b904229984229725ec8c2d227bbfada17fb2919f2fa06bd463de8a', 0, NULL, NULL, NULL, 'Admin', 'wjY2T3xjVovwVbeKkLzZ', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:14')
287487
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:14', 4, '2012-06-22 09:11:14', 1)
287488
+  (47.1ms) COMMIT
287489
+  (0.1ms) BEGIN
287490
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
287491
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
287492
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:14', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-22 09:11:14')
287493
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
287494
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
287495
+  (46.7ms) COMMIT
287496
+  (0.2ms) BEGIN
287497
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
287498
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
287499
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:14', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-22 09:11:14')
287500
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
287501
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
287502
+ SQL (0.5ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`
287503
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
287504
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287505
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
287506
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
287507
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
287508
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
287509
+ Structure Load (0.4ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
287510
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287511
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
287512
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
287513
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
287514
+  (52.3ms) COMMIT
287515
+  (0.2ms) BEGIN
287516
+ SQL (0.4ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2012-06-22 09:11:14', 1, 2, 'Default title', '2012-06-22 09:11:14')
287517
+  (40.0ms) COMMIT
287518
+
287519
+
287520
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-22 12:11:14 +0300
287521
+  (0.1ms) BEGIN
287522
+  (0.1ms) COMMIT
287523
+  (0.2ms) BEGIN
287524
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-22 09:11:14', `current_sign_in_at` = '2012-06-22 09:11:14', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-22 09:11:14' WHERE `users`.`id` = 1
287525
+  (37.4ms) COMMIT
287526
+ Processing by Sunrise::ManagerController#edit as HTML
287527
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
287528
+ Post Load (0.4ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
287529
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287530
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287531
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287532
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
287533
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (4.0ms)
287534
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (6.1ms)
287535
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (63.7ms)
287536
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.4ms)
287537
+ Completed 200 OK in 78ms (Views: 72.8ms | ActiveRecord: 0.6ms)
287538
+
287539
+
287540
+ Started PUT "/manage/posts/1/edit" for 127.0.0.1 at 2012-06-22 12:11:14 +0300
287541
+ Processing by Sunrise::ManagerController#update as HTML
287542
+ Parameters: {"utf8"=>"✓", "parent_id"=>"2", "parent_type"=>"Structure", "post"=>{"title"=>"Aimbulance updated", "content"=>"Tra la la", "is_visible"=>"0"}, "commit"=>"Update Post", "model_name"=>"posts", "id"=>"1"}
287543
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
287544
+ Post Load (0.2ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
287545
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287546
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287547
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287548
+ Role Load (0.3ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
287549
+  (0.1ms) BEGIN
287550
+  (0.3ms) UPDATE `posts` SET `title` = 'Aimbulance updated', `content` = 'Tra la la', `is_visible` = 0, `updated_at` = '2012-06-22 09:11:14' WHERE `posts`.`id` = 1
287551
+  (35.7ms) COMMIT
287552
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
287553
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287554
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
287555
+ Completed 302 Found in 57ms (ActiveRecord: 0.0ms)
287556
+
287557
+
287558
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-22 12:11:14 +0300
287559
+ Processing by Sunrise::ManagerController#index as HTML
287560
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
287561
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
287562
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287563
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287564
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287565
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
287566
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287567
+ Post Load (0.6ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
287568
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (2.9ms)
287569
+  (0.4ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
287570
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.7ms)
287571
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
287572
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
287573
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (3.4ms)
287574
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (6.5ms)
287575
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (2.0ms)
287576
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (8.9ms)
287577
+ Completed 200 OK in 30ms (Views: 19.4ms | ActiveRecord: 1.8ms)
287578
+ Post Load (0.6ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
287579
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287580
+
287581
+
287582
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-22 12:11:14 +0300
287583
+  (0.2ms) BEGIN
287584
+  (0.2ms) COMMIT
287585
+  (0.1ms) BEGIN
287586
+  (0.5ms) UPDATE `users` SET `current_sign_in_at` = '2012-06-22 09:11:14', `sign_in_count` = 2, `updated_at` = '2012-06-22 09:11:14' WHERE `users`.`id` = 1
287587
+  (36.4ms) COMMIT
287588
+ Processing by Sunrise::ManagerController#edit as HTML
287589
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
287590
+ Post Load (0.4ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
287591
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287592
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287593
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287594
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
287595
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (4.2ms)
287596
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (6.4ms)
287597
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.6ms)
287598
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.4ms)
287599
+ Completed 200 OK in 16ms (Views: 11.7ms | ActiveRecord: 0.6ms)
287600
+
287601
+
287602
+ Started PUT "/manage/posts/1/edit" for 127.0.0.1 at 2012-06-22 12:11:14 +0300
287603
+ Processing by Sunrise::ManagerController#update as HTML
287604
+ Parameters: {"utf8"=>"✓", "parent_id"=>"2", "parent_type"=>"Structure", "post"=>{"title"=>"Aimbulance updated", "content"=>"Tra la la", "is_visible"=>"0"}, "commit"=>"Update Post", "model_name"=>"posts", "id"=>"1"}
287605
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
287606
+ Post Load (0.2ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
287607
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287608
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287609
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287610
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
287611
+  (0.1ms) BEGIN
287612
+  (0.1ms) COMMIT
287613
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
287614
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287615
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
287616
+ Completed 302 Found in 9ms (ActiveRecord: 0.0ms)
287617
+
287618
+
287619
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-22 12:11:14 +0300
287620
+ Processing by Sunrise::ManagerController#index as HTML
287621
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
287622
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
287623
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287624
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287625
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287626
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
287627
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287628
+ Post Load (0.2ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
287629
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (3.0ms)
287630
+  (0.2ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
287631
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.6ms)
287632
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
287633
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
287634
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (3.3ms)
287635
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (6.3ms)
287636
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (61.1ms)
287637
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (67.8ms)
287638
+ Completed 200 OK in 87ms (Views: 79.5ms | ActiveRecord: 1.1ms)
287639
+
287640
+
287641
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-22 12:11:14 +0300
287642
+ Processing by Sunrise::ManagerController#edit as HTML
287643
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
287644
+ Completed 401 Unauthorized in 0ms
287645
+
287646
+
287647
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-06-22 12:11:14 +0300
287648
+ Processing by Devise::SessionsController#new as HTML
287649
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/app/views/devise/shared/_links.erb (0.8ms)
287650
+ Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms)
287651
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
287652
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
287653
+  (98.1ms) TRUNCATE TABLE `assets`;
287654
+  (220.8ms) TRUNCATE TABLE `audits`;
287655
+  (111.4ms) TRUNCATE TABLE `headers`;
287656
+  (98.1ms) TRUNCATE TABLE `page_parts`;
287657
+  (55.1ms) TRUNCATE TABLE `posts`;
287658
+  (44.3ms) TRUNCATE TABLE `roles`;
287659
+  (55.0ms) TRUNCATE TABLE `settings`;
287660
+  (44.3ms) TRUNCATE TABLE `structures`;
287661
+  (44.0ms) TRUNCATE TABLE `users`;
287662
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
287663
+  (0.1ms) BEGIN
287664
+ User Exists (0.3ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing10@example.com' LIMIT 1
287665
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:15', '2012-06-22 09:11:15', NULL, NULL, 'testing10@example.com', 'dd16f489436d33446500fd3030a5d286277d56ea76e91605d0c08f71688be955161340665ab8038e27f998cffc4f6fc7f1da97b89d765492f7816fc72615aca0', 0, NULL, NULL, NULL, 'Admin', 'ND43MYkFtAyzse8sKby2', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:15')
287666
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:15', 4, '2012-06-22 09:11:15', 1)
287667
+  (102.1ms) COMMIT
287668
+  (0.2ms) BEGIN
287669
+ Structure Load (0.7ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
287670
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
287671
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:15', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-22 09:11:15')
287672
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
287673
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
287674
+  (90.8ms) COMMIT
287675
+  (0.2ms) BEGIN
287676
+ Structure Load (0.7ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
287677
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
287678
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:15', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-22 09:11:15')
287679
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
287680
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
287681
+ SQL (0.4ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`
287682
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
287683
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287684
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
287685
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
287686
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
287687
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
287688
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
287689
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287690
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
287691
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
287692
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
287693
+  (81.0ms) COMMIT
287694
+
287695
+
287696
+ Started GET "/manage/" for 127.0.0.1 at 2012-06-22 12:11:16 +0300
287697
+  (0.2ms) BEGIN
287698
+  (0.1ms) COMMIT
287699
+  (0.1ms) BEGIN
287700
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-22 09:11:16', `current_sign_in_at` = '2012-06-22 09:11:16', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-22 09:11:16' WHERE `users`.`id` = 1
287701
+  (80.6ms) COMMIT
287702
+ Processing by Sunrise::DashboardController#index as HTML
287703
+ Role Load (0.6ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287704
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287705
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287706
+ Audited::Adapters::ActiveRecord::Audit Load (0.5ms) SELECT `audits`.* FROM `audits` ORDER BY version LIMIT 50 OFFSET 0
287707
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_event.html.erb (0.0ms)
287708
+  (0.4ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `audits` LIMIT 50 OFFSET 0) subquery_for_count
287709
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (5.7ms)
287710
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (1.8ms)
287711
+ Completed 200 OK in 30ms (Views: 18.5ms | ActiveRecord: 1.6ms)
287712
+
287713
+
287714
+ Started GET "/manage/whatever" for 127.0.0.1 at 2012-06-22 12:11:16 +0300
287715
+  (0.3ms) BEGIN
287716
+  (0.2ms) COMMIT
287717
+  (0.1ms) BEGIN
287718
+  (0.5ms) UPDATE `users` SET `current_sign_in_at` = '2012-06-22 09:11:16', `sign_in_count` = 2, `updated_at` = '2012-06-22 09:11:16' WHERE `users`.`id` = 1
287719
+  (55.0ms) COMMIT
287720
+ Processing by Sunrise::ManagerController#index as HTML
287721
+ Parameters: {"model_name"=>"whatever"}
287722
+ Completed 500 Internal Server Error in 7ms
287723
+
287724
+
287725
+ Started GET "/manage/structures" for 127.0.0.1 at 2012-06-22 12:11:16 +0300
287726
+  (0.2ms) BEGIN
287727
+  (0.2ms) COMMIT
287728
+  (0.1ms) BEGIN
287729
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-22 09:11:16', `current_sign_in_at` = '2012-06-22 09:11:16', `sign_in_count` = 3, `updated_at` = '2012-06-22 09:11:16' WHERE `users`.`id` = 1
287730
+  (87.1ms) COMMIT
287731
+ Processing by Sunrise::ManagerController#index as HTML
287732
+ Parameters: {"model_name"=>"structures"}
287733
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `lft`
287734
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 4) ORDER BY `lft`
287735
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287736
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287737
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287738
+ CACHE (0.0ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `lft`
287739
+ Structure Load (0.7ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
287740
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (1.9ms)
287741
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (7.6ms)
287742
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.1ms)
287743
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
287744
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.3ms)
287745
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (2.6ms)
287746
+ Completed 200 OK in 32ms (Views: 19.2ms | ActiveRecord: 1.6ms)
287747
+
287748
+
287749
+ Started GET "/manage/users" for 127.0.0.1 at 2012-06-22 12:11:16 +0300
287750
+  (0.2ms) BEGIN
287751
+  (0.1ms) COMMIT
287752
+  (0.2ms) BEGIN
287753
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-22 09:11:16', `current_sign_in_at` = '2012-06-22 09:11:16', `sign_in_count` = 4, `updated_at` = '2012-06-22 09:11:16' WHERE `users`.`id` = 1
287754
+  (39.7ms) COMMIT
287755
+ Processing by Sunrise::ManagerController#index as HTML
287756
+ Parameters: {"model_name"=>"users"}
287757
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287758
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287759
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287760
+ User Load (0.4ms) SELECT `users`.* FROM `users` LIMIT 25 OFFSET 0
287761
+ Avatar Load (0.4ms) 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
287762
+ Rendered sunrise/manager/users/thumbs/_record.html.erb (5.6ms)
287763
+  (0.4ms) SELECT COUNT(*) FROM `users`
287764
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (5.1ms)
287765
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
287766
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
287767
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (7.9ms)
287768
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (17.9ms)
287769
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (2.0ms)
287770
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (20.5ms)
287771
+ Completed 200 OK in 123ms (Views: 52.3ms | ActiveRecord: 3.5ms)
287772
+
287773
+
287774
+ Started GET "/manage/pages" for 127.0.0.1 at 2012-06-22 12:11:16 +0300
287775
+  (0.2ms) BEGIN
287776
+  (0.1ms) COMMIT
287777
+  (0.2ms) BEGIN
287778
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-22 09:11:16', `current_sign_in_at` = '2012-06-22 09:11:16', `sign_in_count` = 5, `updated_at` = '2012-06-22 09:11:16' WHERE `users`.`id` = 1
287779
+  (92.7ms) COMMIT
287780
+ Processing by Sunrise::ManagerController#index as HTML
287781
+ Parameters: {"model_name"=>"pages"}
287782
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287783
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287784
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287785
+ Completed 500 Internal Server Error in 7ms
287786
+
287787
+
287788
+ Started GET "/manage/structures" for 127.0.0.1 at 2012-06-22 12:11:16 +0300
287789
+ Processing by Sunrise::ManagerController#index as HTML
287790
+ Parameters: {"model_name"=>"structures"}
287791
+ Completed 401 Unauthorized in 1ms
287792
+
287793
+
287794
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-06-22 12:11:16 +0300
287795
+ Processing by Devise::SessionsController#new as HTML
287796
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/app/views/devise/shared/_links.erb (0.8ms)
287797
+ Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms)
287798
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
287799
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
287800
+  (67.4ms) TRUNCATE TABLE `assets`;
287801
+  (65.9ms) TRUNCATE TABLE `audits`;
287802
+  (55.0ms) TRUNCATE TABLE `headers`;
287803
+  (66.2ms) TRUNCATE TABLE `page_parts`;
287804
+  (55.2ms) TRUNCATE TABLE `posts`;
287805
+  (66.2ms) TRUNCATE TABLE `roles`;
287806
+  (154.6ms) TRUNCATE TABLE `settings`;
287807
+  (55.1ms) TRUNCATE TABLE `structures`;
287808
+  (55.2ms) TRUNCATE TABLE `users`;
287809
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
287810
+  (0.1ms) BEGIN
287811
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing11@example.com' LIMIT 1
287812
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:17', '2012-06-22 09:11:17', NULL, NULL, 'testing11@example.com', '2e9c6e7c93c0ca55a64f14c90d4fb7b71ad1e8d8a091cdf81691fa6215dda5e8ee2d2cccf2c2259798ffde919c21cbe61e4f942492e20559fccdb28fd87c0c43', 0, NULL, NULL, NULL, 'Admin', '5nxZpzbn78BhbzxTyXvP', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:17')
287813
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:17', 4, '2012-06-22 09:11:17', 1)
287814
+  (56.5ms) COMMIT
287815
+
287816
+
287817
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2012-06-22 12:11:17 +0300
287818
+  (0.2ms) BEGIN
287819
+  (0.1ms) COMMIT
287820
+  (0.1ms) BEGIN
287821
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-22 09:11:17', `current_sign_in_at` = '2012-06-22 09:11:17', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-22 09:11:17' WHERE `users`.`id` = 1
287822
+  (47.6ms) COMMIT
287823
+ Processing by Sunrise::ManagerController#new as HTML
287824
+ Parameters: {"model_name"=>"structures"}
287825
+ Role Load (0.5ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287826
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287827
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287828
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
287829
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (22.3ms)
287830
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (25.0ms)
287831
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.6ms)
287832
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.3ms)
287833
+ Completed 200 OK in 37ms (Views: 30.6ms | ActiveRecord: 0.5ms)
287834
+
287835
+
287836
+ Started POST "/manage/structures/new" for 127.0.0.1 at 2012-06-22 12:11:17 +0300
287837
+ Processing by Sunrise::ManagerController#create as HTML
287838
+ Parameters: {"utf8"=>"✓", "parent_id"=>"", "parent_type"=>"", "structure"=>{"title"=>"Aimbulance", "redirect_url"=>"", "slug"=>"", "parent_id"=>"", "kind"=>"1", "position"=>"2", "is_visible"=>"1"}, "commit"=>"Create Structure", "model_name"=>"structures"}
287839
+ User Load (0.7ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
287840
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287841
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287842
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287843
+ Role Load (0.3ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
287844
+  (0.1ms) BEGIN
287845
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'aimbulance' OR `slug` LIKE 'aimbulance--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
287846
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
287847
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:17', 0, 1, 1, 1, NULL, 2, '', 2, 'aimbulance', 'Aimbulance', '2012-06-22 09:11:17')
287848
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
287849
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
287850
+  (52.2ms) COMMIT
287851
+ Redirected to http://www.example.com/manage/structures
287852
+ Completed 302 Found in 65ms (ActiveRecord: 0.0ms)
287853
+
287854
+
287855
+ Started GET "/manage/structures" for 127.0.0.1 at 2012-06-22 12:11:17 +0300
287856
+ Processing by Sunrise::ManagerController#index as HTML
287857
+ Parameters: {"model_name"=>"structures"}
287858
+ User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
287859
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287860
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287861
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287862
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `lft`
287863
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (1.2ms)
287864
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.4ms)
287865
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
287866
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (1.8ms)
287867
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (2.1ms)
287868
+ Completed 200 OK in 13ms (Views: 8.7ms | ActiveRecord: 1.2ms)
287869
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`id` DESC LIMIT 1
287870
+
287871
+
287872
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2012-06-22 12:11:17 +0300
287873
+ Processing by Sunrise::ManagerController#new as HTML
287874
+ Parameters: {"model_name"=>"structures"}
287875
+ Completed 401 Unauthorized in 0ms
287876
+
287877
+
287878
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-06-22 12:11:17 +0300
287879
+ Processing by Devise::SessionsController#new as HTML
287880
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/app/views/devise/shared/_links.erb (0.8ms)
287881
+ Completed 200 OK in 71ms (Views: 70.0ms | ActiveRecord: 0.0ms)
287882
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
287883
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
287884
+  (58.4ms) TRUNCATE TABLE `assets`;
287885
+  (55.1ms) TRUNCATE TABLE `audits`;
287886
+  (55.1ms) TRUNCATE TABLE `headers`;
287887
+  (55.3ms) TRUNCATE TABLE `page_parts`;
287888
+  (55.1ms) TRUNCATE TABLE `posts`;
287889
+  (55.2ms) TRUNCATE TABLE `roles`;
287890
+  (55.3ms) TRUNCATE TABLE `settings`;
287891
+  (121.4ms) TRUNCATE TABLE `structures`;
287892
+  (77.3ms) TRUNCATE TABLE `users`;
287893
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
287894
+  (0.1ms) BEGIN
287895
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing12@example.com' LIMIT 1
287896
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:18', '2012-06-22 09:11:18', NULL, NULL, 'testing12@example.com', '47dbec52c4efc19386f4a6d39e471d7d60cf0a3bacd15832495cbdb242027d78e7ad18aeb951635983d397d8ea7e57c06729d3db60f66fe3d99e4e5ae2d18ff7', 0, NULL, NULL, NULL, 'Admin', 'hL5kcyKqbqpynRX8QdJN', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:18')
287897
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:18', 4, '2012-06-22 09:11:18', 1)
287898
+  (47.1ms) COMMIT
287899
+  (0.1ms) BEGIN
287900
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
287901
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
287902
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:18', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-22 09:11:18')
287903
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
287904
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
287905
+  (47.5ms) COMMIT
287906
+  (0.1ms) BEGIN
287907
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
287908
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
287909
+ SQL (0.2ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:18', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-22 09:11:18')
287910
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
287911
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
287912
+ SQL (0.4ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`
287913
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
287914
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287915
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
287916
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
287917
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
287918
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
287919
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
287920
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
287921
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
287922
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
287923
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
287924
+  (68.4ms) COMMIT
287925
+
287926
+
287927
+ Started GET "/manage/users/export.xlsx" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
287928
+  (0.0ms) BEGIN
287929
+  (0.0ms) COMMIT
287930
+  (0.0ms) BEGIN
287931
+  (0.0ms) UPDATE `users` SET `last_sign_in_at` = '2012-01-01 16:00:00', `current_sign_in_at` = '2012-01-01 16:00:00', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-01-01 16:00:00' WHERE `users`.`id` = 1
287932
+  (0.0ms) COMMIT
287933
+ Processing by Sunrise::ManagerController#export as XLSX
287934
+ Parameters: {"model_name"=>"users"}
287935
+ Role Load (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287936
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287937
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287938
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
287939
+ User Load (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000 OFFSET 0
287940
+ Sent data users_2012-01-01_16h00m00.xls (0.0ms)
287941
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
287942
+
287943
+
287944
+ Started GET "/manage/users/export.csv" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
287945
+  (0.0ms) BEGIN
287946
+  (0.0ms) COMMIT
287947
+  (0.0ms) BEGIN
287948
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 2 WHERE `users`.`id` = 1
287949
+  (0.0ms) COMMIT
287950
+ Processing by Sunrise::ManagerController#export as CSV
287951
+ Parameters: {"model_name"=>"users"}
287952
+ Role Load (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287953
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287954
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287955
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
287956
+ User Load (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000 OFFSET 0
287957
+ Sent data users_2012-01-01_16h00m00.csv (0.0ms)
287958
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
287959
+
287960
+
287961
+ Started GET "/manage/users/export.json" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
287962
+  (0.0ms) BEGIN
287963
+  (0.0ms) COMMIT
287964
+  (0.0ms) BEGIN
287965
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 3 WHERE `users`.`id` = 1
287966
+  (0.0ms) COMMIT
287967
+ Processing by Sunrise::ManagerController#export as JSON
287968
+ Parameters: {"model_name"=>"users"}
287969
+ Role Load (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287970
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287971
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287972
+ User Load (0.0ms) SELECT `users`.* FROM `users` LIMIT 25 OFFSET 0
287973
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
287974
+  (0.0ms) BEGIN
287975
+ SQL (0.0ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES (NULL, '2012-01-01 16:00:00', 1, 2, 'Some title', '2012-01-01 16:00:00')
287976
+  (0.0ms) COMMIT
287977
+
287978
+
287979
+ Started GET "/manage/posts/export.csv" for 127.0.0.1 at 2012-01-01 16:00:00 UTC
287980
+  (0.0ms) BEGIN
287981
+  (0.0ms) COMMIT
287982
+  (0.0ms) BEGIN
287983
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 4 WHERE `users`.`id` = 1
287984
+  (0.0ms) COMMIT
287985
+ Processing by Sunrise::ManagerController#export as CSV
287986
+ Parameters: {"model_name"=>"posts"}
287987
+ Role Load (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287988
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287989
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
287990
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
287991
+ Post Load (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.`id` >= 0) ORDER BY `posts`.`id` ASC LIMIT 1000 OFFSET 0
287992
+ Structure Load (0.0ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` IN (2)
287993
+ Sent data posts_2012-01-01_16h00m00.csv (0.0ms)
287994
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
287995
+
287996
+
287997
+ Started GET "/manage/structures/export.xlsx" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
287998
+  (0.0ms) BEGIN
287999
+  (0.0ms) COMMIT
288000
+  (0.0ms) BEGIN
288001
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 5 WHERE `users`.`id` = 1
288002
+  (0.0ms) COMMIT
288003
+ Processing by Sunrise::ManagerController#export as XLSX
288004
+ Parameters: {"model_name"=>"structures"}
288005
+ Role Load (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288006
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288007
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288008
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
288009
+ Structure Load (0.0ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`id` >= 0) ORDER BY `structures`.`id` ASC LIMIT 1000 OFFSET 0
288010
+ Sent data structures_2012-01-01_16h00m00.xls (0.0ms)
288011
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
288012
+
288013
+
288014
+ Started GET "/manage/structures/export.xml" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
288015
+  (0.0ms) BEGIN
288016
+  (0.0ms) COMMIT
288017
+  (0.0ms) BEGIN
288018
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 6 WHERE `users`.`id` = 1
288019
+  (0.0ms) COMMIT
288020
+ Processing by Sunrise::ManagerController#export as XML
288021
+ Parameters: {"model_name"=>"structures"}
288022
+ Role Load (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288023
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288024
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288025
+ Structure Load (0.0ms) SELECT `structures`.* FROM `structures` LIMIT 25 OFFSET 0
288026
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
288027
+
288028
+
288029
+ Started GET "/manage/users/export.xlsx" for 127.0.0.1 at 2012-06-22 12:11:19 +0300
288030
+ Processing by Sunrise::ManagerController#export as XLSX
288031
+ Parameters: {"model_name"=>"users"}
288032
+ Completed 401 Unauthorized in 0ms
288033
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
288034
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
288035
+  (55.4ms) TRUNCATE TABLE `assets`;
288036
+  (44.0ms) TRUNCATE TABLE `audits`;
288037
+  (44.0ms) TRUNCATE TABLE `headers`;
288038
+  (44.0ms) TRUNCATE TABLE `page_parts`;
288039
+  (44.2ms) TRUNCATE TABLE `posts`;
288040
+  (44.2ms) TRUNCATE TABLE `roles`;
288041
+  (43.9ms) TRUNCATE TABLE `settings`;
288042
+  (44.1ms) TRUNCATE TABLE `structures`;
288043
+  (44.0ms) TRUNCATE TABLE `users`;
288044
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
288045
+  (0.1ms) BEGIN
288046
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing13@example.com' LIMIT 1
288047
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:20', '2012-06-22 09:11:20', NULL, NULL, 'testing13@example.com', 'cc0e62aff6a53002bb23026e4ba9f32309bd7888ee78b8c35cb4c2747376658da3c7f757d15bbd7d2bdef2f09d0cd4ff98bda25aecff0ec95cf9a6804e3ebe5b', 0, NULL, NULL, NULL, 'Admin', 'aGRKRry1sWrebAbvx8gU', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:20')
288048
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:20', 4, '2012-06-22 09:11:20', 1)
288049
+  (41.2ms) COMMIT
288050
+  (0.1ms) BEGIN
288051
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
288052
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
288053
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:20', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-22 09:11:20')
288054
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
288055
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
288056
+  (102.5ms) COMMIT
288057
+  (0.1ms) BEGIN
288058
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
288059
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
288060
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:20', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-22 09:11:20')
288061
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
288062
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
288063
+ SQL (0.4ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`
288064
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
288065
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
288066
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
288067
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
288068
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
288069
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
288070
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
288071
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
288072
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
288073
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
288074
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
288075
+  (55.4ms) COMMIT
288076
+
288077
+
288078
+ Started GET "/manage/structures/2" for 127.0.0.1 at 2012-06-22 12:11:20 +0300
288079
+  (0.1ms) BEGIN
288080
+  (0.1ms) COMMIT
288081
+  (0.1ms) BEGIN
288082
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-22 09:11:20', `current_sign_in_at` = '2012-06-22 09:11:20', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-22 09:11:20' WHERE `users`.`id` = 1
288083
+  (48.3ms) COMMIT
288084
+ Processing by Sunrise::ManagerController#show as HTML
288085
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
288086
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
288087
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
288088
+ Role Load (0.4ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288089
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288090
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288091
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.6ms)
288092
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
288093
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.0ms)
288094
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (2.3ms)
288095
+ Completed 200 OK in 23ms (Views: 11.7ms | ActiveRecord: 1.3ms)
288096
+
288097
+
288098
+ Started GET "/manage/structures/2" for 127.0.0.1 at 2012-06-22 12:11:20 +0300
288099
+  (0.2ms) BEGIN
288100
+  (0.1ms) COMMIT
288101
+  (0.1ms) BEGIN
288102
+  (0.5ms) UPDATE `users` SET `current_sign_in_at` = '2012-06-22 09:11:20', `sign_in_count` = 2, `updated_at` = '2012-06-22 09:11:20' WHERE `users`.`id` = 1
288103
+  (37.2ms) COMMIT
288104
+ Processing by Sunrise::ManagerController#show as HTML
288105
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
288106
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
288107
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
288108
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288109
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288110
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288111
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.6ms)
288112
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
288113
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.0ms)
288114
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (2.3ms)
288115
+ Completed 200 OK in 15ms (Views: 9.4ms | ActiveRecord: 0.6ms)
288116
+
288117
+
288118
+ Started GET "/manage/structures/2" for 127.0.0.1 at 2012-06-22 12:11:20 +0300
288119
+ Processing by Sunrise::ManagerController#show as HTML
288120
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
288121
+ Completed 401 Unauthorized in 0ms
288122
+
288123
+
288124
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-06-22 12:11:20 +0300
288125
+ Processing by Devise::SessionsController#new as HTML
288126
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/app/views/devise/shared/_links.erb (0.7ms)
288127
+ Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)
288128
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
288129
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
288130
+  (57.4ms) TRUNCATE TABLE `assets`;
288131
+  (44.0ms) TRUNCATE TABLE `audits`;
288132
+  (44.0ms) TRUNCATE TABLE `headers`;
288133
+  (44.1ms) TRUNCATE TABLE `page_parts`;
288134
+  (57.1ms) TRUNCATE TABLE `posts`;
288135
+  (44.3ms) TRUNCATE TABLE `roles`;
288136
+  (55.1ms) TRUNCATE TABLE `settings`;
288137
+  (55.2ms) TRUNCATE TABLE `structures`;
288138
+  (55.1ms) TRUNCATE TABLE `users`;
288139
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
288140
+  (0.1ms) BEGIN
288141
+ User Exists (0.3ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing14@example.com' LIMIT 1
288142
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:20', '2012-06-22 09:11:20', NULL, NULL, 'testing14@example.com', '32fa0fb93db1279c79887b72d51f66f8e1b144e118dcf9fe5343ad64373262f57695738fe6f94d4f38075d039038613829860f6d2cf33991e0e8a42f4541423b', 0, NULL, NULL, NULL, 'Admin', 'xEqyyu1p8aVoh3w94qWx', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:20')
288143
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:20', 4, '2012-06-22 09:11:20', 1)
288144
+  (46.9ms) COMMIT
288145
+  (0.1ms) BEGIN
288146
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
288147
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
288148
+ SQL (0.2ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:21', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-22 09:11:21')
288149
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
288150
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
288151
+  (49.1ms) COMMIT
288152
+  (0.1ms) BEGIN
288153
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
288154
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
288155
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:21', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-22 09:11:21')
288156
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
288157
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
288158
+ SQL (0.6ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`
288159
+ Structure Load (0.4ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
288160
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
288161
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
288162
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
288163
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
288164
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
288165
+ Structure Load (0.4ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
288166
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
288167
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
288168
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
288169
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
288170
+  (49.6ms) COMMIT
288171
+
288172
+
288173
+ Started GET "/manage/structures" for 127.0.0.1 at 2012-06-22 12:11:21 +0300
288174
+  (0.1ms) BEGIN
288175
+  (0.1ms) COMMIT
288176
+  (0.1ms) BEGIN
288177
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-22 09:11:21', `current_sign_in_at` = '2012-06-22 09:11:21', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-22 09:11:21' WHERE `users`.`id` = 1
288178
+  (92.4ms) COMMIT
288179
+ Processing by Sunrise::ManagerController#index as HTML
288180
+ Parameters: {"model_name"=>"structures"}
288181
+ Role Load (0.5ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288182
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288183
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288184
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `lft`
288185
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
288186
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (1.2ms)
288187
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (4.1ms)
288188
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.6ms)
288189
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
288190
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.2ms)
288191
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (2.4ms)
288192
+ Completed 200 OK in 21ms (Views: 13.6ms | ActiveRecord: 1.6ms)
288193
+
288194
+
288195
+ Started DELETE "/manage/structures/2/delete" for 127.0.0.1 at 2012-06-22 12:11:21 +0300
288196
+ Processing by Sunrise::ManagerController#destroy as HTML
288197
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
288198
+ User Load (0.7ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
288199
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
288200
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
288201
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288202
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288203
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288204
+  (0.1ms) BEGIN
288205
+ Structure Load (0.4ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
288206
+ Structure Load (0.3ms) SELECT id FROM `structures` WHERE (`lft` >= 2) FOR UPDATE
288207
+ SQL (0.3ms) DELETE FROM `structures` WHERE (`lft` > 2 AND `rgt` < 3)
288208
+ SQL (0.3ms) UPDATE `structures` SET `lft` = (`lft` - 2) WHERE (`lft` > 3) ORDER BY `lft`
288209
+ SQL (0.2ms) UPDATE `structures` SET `rgt` = (`rgt` - 2) WHERE (`rgt` > 3) ORDER BY `lft`
288210
+ PagePart Load (0.4ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
288211
+ SQL (0.2ms) DELETE FROM `posts` WHERE `posts`.`structure_id` = 2
288212
+ SQL (0.3ms) DELETE FROM `structures` WHERE `structures`.`id` = 2
288213
+  (52.8ms) COMMIT
288214
+ Redirected to http://www.example.com/manage/structures
288215
+ Completed 302 Found in 81ms (ActiveRecord: 0.0ms)
288216
+
288217
+
288218
+ Started GET "/manage/structures" for 127.0.0.1 at 2012-06-22 12:11:21 +0300
288219
+ Processing by Sunrise::ManagerController#index as HTML
288220
+ Parameters: {"model_name"=>"structures"}
288221
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
288222
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288223
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288224
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288225
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `lft`
288226
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (1.3ms)
288227
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.7ms)
288228
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
288229
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.1ms)
288230
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (2.5ms)
288231
+ Completed 200 OK in 16ms (Views: 9.9ms | ActiveRecord: 0.8ms)
288232
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
288233
+
288234
+
288235
+ Started GET "/manage/structures" for 127.0.0.1 at 2012-06-22 12:11:21 +0300
288236
+ Processing by Sunrise::ManagerController#index as HTML
288237
+ Parameters: {"model_name"=>"structures"}
288238
+ Completed 401 Unauthorized in 0ms
288239
+
288240
+
288241
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-06-22 12:11:21 +0300
288242
+ Processing by Devise::SessionsController#new as HTML
288243
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/app/views/devise/shared/_links.erb (0.8ms)
288244
+ Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms)
288245
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
288246
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
288247
+  (53.8ms) TRUNCATE TABLE `assets`;
288248
+  (66.1ms) TRUNCATE TABLE `audits`;
288249
+  (66.3ms) TRUNCATE TABLE `headers`;
288250
+  (55.1ms) TRUNCATE TABLE `page_parts`;
288251
+  (55.2ms) TRUNCATE TABLE `posts`;
288252
+  (55.2ms) TRUNCATE TABLE `roles`;
288253
+  (55.2ms) TRUNCATE TABLE `settings`;
288254
+  (55.1ms) TRUNCATE TABLE `structures`;
288255
+  (55.2ms) TRUNCATE TABLE `users`;
288256
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
288257
+  (0.1ms) BEGIN
288258
+ User Exists (0.3ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing15@example.com' LIMIT 1
288259
+ SQL (0.3ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:22', '2012-06-22 09:11:22', NULL, NULL, 'testing15@example.com', 'c26c943f59228bcc08f7776ba96c7469607022e5ab829f3b99ef4901de6f512ffd902cf684b2f8f6eea00bf525f635cfb2749895fc81ca70f177aeef6e24053b', 0, NULL, NULL, NULL, 'Admin', 'kZQwDpskJu58X8MH9URo', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:22')
288260
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:22', 4, '2012-06-22 09:11:22', 1)
288261
+  (46.7ms) COMMIT
288262
+  (0.1ms) BEGIN
288263
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
288264
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
288265
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:22', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-22 09:11:22')
288266
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
288267
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
288268
+  (47.8ms) COMMIT
288269
+  (0.1ms) BEGIN
288270
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
288271
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
288272
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:22', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-22 09:11:22')
288273
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
288274
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
288275
+ SQL (0.4ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`
288276
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
288277
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
288278
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
288279
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
288280
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
288281
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
288282
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
288283
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
288284
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
288285
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
288286
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
288287
+  (56.9ms) COMMIT
288288
+
288289
+
288290
+ Started GET "/manage/whatever/2/edit" for 127.0.0.1 at 2012-06-22 12:11:22 +0300
288291
+  (0.2ms) BEGIN
288292
+  (0.2ms) COMMIT
288293
+  (0.1ms) BEGIN
288294
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-22 09:11:22', `current_sign_in_at` = '2012-06-22 09:11:22', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-22 09:11:22' WHERE `users`.`id` = 1
288295
+  (171.9ms) COMMIT
288296
+ Processing by Sunrise::ManagerController#edit as HTML
288297
+ Parameters: {"model_name"=>"whatever", "id"=>"2"}
288298
+ Completed 500 Internal Server Error in 5ms
288299
+
288300
+
288301
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2012-06-22 12:11:22 +0300
288302
+  (0.2ms) BEGIN
288303
+  (0.2ms) COMMIT
288304
+  (0.1ms) BEGIN
288305
+  (0.5ms) UPDATE `users` SET `current_sign_in_at` = '2012-06-22 09:11:22', `sign_in_count` = 2, `updated_at` = '2012-06-22 09:11:22' WHERE `users`.`id` = 1
288306
+  (52.9ms) COMMIT
288307
+ Processing by Sunrise::ManagerController#edit as HTML
288308
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
288309
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
288310
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
288311
+ Role Load (0.4ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288312
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288313
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288314
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
288315
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (11.2ms)
288316
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (14.5ms)
288317
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.6ms)
288318
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.4ms)
288319
+ Completed 200 OK in 32ms (Views: 20.5ms | ActiveRecord: 1.3ms)
288320
+
288321
+
288322
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2012-06-22 12:11:22 +0300
288323
+  (0.2ms) BEGIN
288324
+  (0.2ms) COMMIT
288325
+  (0.1ms) BEGIN
288326
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-22 09:11:22', `current_sign_in_at` = '2012-06-22 09:11:22', `sign_in_count` = 3, `updated_at` = '2012-06-22 09:11:22' WHERE `users`.`id` = 1
288327
+  (49.3ms) COMMIT
288328
+ Processing by Sunrise::ManagerController#edit as HTML
288329
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
288330
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
288331
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
288332
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288333
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288334
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288335
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.6ms)
288336
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (11.1ms)
288337
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (14.5ms)
288338
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.6ms)
288339
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (60.9ms)
288340
+ Completed 200 OK in 89ms (Views: 81.3ms | ActiveRecord: 0.5ms)
288341
+
288342
+
288343
+ Started GET "/manage/pages/2/edit" for 127.0.0.1 at 2012-06-22 12:11:22 +0300
288344
+  (0.2ms) BEGIN
288345
+  (0.1ms) COMMIT
288346
+  (0.1ms) BEGIN
288347
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-22 09:11:22', `current_sign_in_at` = '2012-06-22 09:11:22', `sign_in_count` = 4, `updated_at` = '2012-06-22 09:11:22' WHERE `users`.`id` = 1
288348
+  (51.8ms) COMMIT
288349
+ Processing by Sunrise::ManagerController#edit as HTML
288350
+ Parameters: {"model_name"=>"pages", "id"=>"2"}
288351
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
288352
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
288353
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288354
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288355
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288356
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
288357
+ PagePart Load (0.6ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
288358
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (16.8ms)
288359
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (19.5ms)
288360
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.6ms)
288361
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.4ms)
288362
+ Completed 200 OK in 31ms (Views: 24.3ms | ActiveRecord: 1.1ms)
288363
+
288364
+
288365
+ Started GET "/manage/pages/2/edit" for 127.0.0.1 at 2012-06-22 12:11:22 +0300
288366
+  (0.1ms) BEGIN
288367
+  (0.1ms) COMMIT
288368
+  (0.0ms) BEGIN
288369
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-22 09:11:22', `current_sign_in_at` = '2012-06-22 09:11:22', `sign_in_count` = 5, `updated_at` = '2012-06-22 09:11:22' WHERE `users`.`id` = 1
288370
+  (53.4ms) COMMIT
288371
+ Processing by Sunrise::ManagerController#edit as HTML
288372
+ Parameters: {"model_name"=>"pages", "id"=>"2"}
288373
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
288374
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
288375
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288376
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288377
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288378
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.6ms)
288379
+ PagePart Load (0.1ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
288380
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (5.5ms)
288381
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.1ms)
288382
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.6ms)
288383
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.3ms)
288384
+ Completed 200 OK in 24ms (Views: 15.1ms | ActiveRecord: 1.0ms)
288385
+
288386
+
288387
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2012-06-22 12:11:22 +0300
288388
+ Processing by Sunrise::ManagerController#edit as HTML
288389
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
288390
+ Completed 401 Unauthorized in 0ms
288391
+
288392
+
288393
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-06-22 12:11:22 +0300
288394
+ Processing by Devise::SessionsController#new as HTML
288395
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/app/views/devise/shared/_links.erb (0.7ms)
288396
+ Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms)
288397
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
288398
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
288399
+  (69.6ms) TRUNCATE TABLE `assets`;
288400
+  (66.0ms) TRUNCATE TABLE `audits`;
288401
+  (55.2ms) TRUNCATE TABLE `headers`;
288402
+  (55.2ms) TRUNCATE TABLE `page_parts`;
288403
+  (55.2ms) TRUNCATE TABLE `posts`;
288404
+  (144.4ms) TRUNCATE TABLE `roles`;
288405
+  (120.7ms) TRUNCATE TABLE `settings`;
288406
+  (55.0ms) TRUNCATE TABLE `structures`;
288407
+  (55.2ms) TRUNCATE TABLE `users`;
288408
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
288409
+  (0.2ms) BEGIN
288410
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing16@example.com' LIMIT 1
288411
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:23', '2012-06-22 09:11:23', NULL, NULL, 'testing16@example.com', 'db38f884d2f676773470c13e051ed2e7306f4c38a835cfd5ef3c247847793403c52e56d62b1d96925cc81c7d48654a0761c6470f2a6533d435524af9dc3072f7', 0, NULL, NULL, NULL, 'Admin', 'LAhV8XyMhamfySoL9eL4', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:23')
288412
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:23', 4, '2012-06-22 09:11:23', 1)
288413
+  (45.0ms) COMMIT
288414
+
288415
+
288416
+ Started GET "/manage/whatever/new" for 127.0.0.1 at 2012-06-22 12:11:23 +0300
288417
+  (0.1ms) BEGIN
288418
+  (0.1ms) COMMIT
288419
+  (0.1ms) BEGIN
288420
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-22 09:11:23', `current_sign_in_at` = '2012-06-22 09:11:23', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-22 09:11:23' WHERE `users`.`id` = 1
288421
+  (36.2ms) COMMIT
288422
+ Processing by Sunrise::ManagerController#new as HTML
288423
+ Parameters: {"model_name"=>"whatever"}
288424
+ Completed 500 Internal Server Error in 4ms
288425
+
288426
+
288427
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2012-06-22 12:11:23 +0300
288428
+  (0.2ms) BEGIN
288429
+  (0.2ms) COMMIT
288430
+  (0.1ms) BEGIN
288431
+  (0.5ms) UPDATE `users` SET `current_sign_in_at` = '2012-06-22 09:11:23', `sign_in_count` = 2, `updated_at` = '2012-06-22 09:11:23' WHERE `users`.`id` = 1
288432
+  (37.1ms) COMMIT
288433
+ Processing by Sunrise::ManagerController#new as HTML
288434
+ Parameters: {"model_name"=>"structures"}
288435
+ Role Load (0.5ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288436
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288437
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288438
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
288439
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (9.0ms)
288440
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (11.1ms)
288441
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.6ms)
288442
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.3ms)
288443
+ Completed 200 OK in 22ms (Views: 16.4ms | ActiveRecord: 0.5ms)
288444
+
288445
+
288446
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2012-06-22 12:11:23 +0300
288447
+  (0.2ms) BEGIN
288448
+  (0.1ms) COMMIT
288449
+  (0.2ms) BEGIN
288450
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-22 09:11:23', `current_sign_in_at` = '2012-06-22 09:11:23', `sign_in_count` = 3, `updated_at` = '2012-06-22 09:11:23' WHERE `users`.`id` = 1
288451
+  (40.7ms) COMMIT
288452
+ Processing by Sunrise::ManagerController#new as HTML
288453
+ Parameters: {"model_name"=>"structures"}
288454
+ Role Load (0.3ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288455
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288456
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288457
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
288458
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (9.0ms)
288459
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (11.2ms)
288460
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.6ms)
288461
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.3ms)
288462
+ Completed 200 OK in 24ms (Views: 17.2ms | ActiveRecord: 0.3ms)
288463
+
288464
+
288465
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2012-06-22 12:11:23 +0300
288466
+ Processing by Sunrise::ManagerController#new as HTML
288467
+ Parameters: {"model_name"=>"structures"}
288468
+ Completed 401 Unauthorized in 0ms
288469
+
288470
+
288471
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-06-22 12:11:23 +0300
288472
+ Processing by Devise::SessionsController#new as HTML
288473
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/app/views/devise/shared/_links.erb (0.7ms)
288474
+ Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms)
288475
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
288476
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
288477
+  (60.9ms) TRUNCATE TABLE `assets`;
288478
+  (44.0ms) TRUNCATE TABLE `audits`;
288479
+  (44.3ms) TRUNCATE TABLE `headers`;
288480
+  (55.1ms) TRUNCATE TABLE `page_parts`;
288481
+  (43.9ms) TRUNCATE TABLE `posts`;
288482
+  (73.5ms) TRUNCATE TABLE `roles`;
288483
+  (81.0ms) TRUNCATE TABLE `settings`;
288484
+  (43.9ms) TRUNCATE TABLE `structures`;
288485
+  (44.4ms) TRUNCATE TABLE `users`;
288486
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
288487
+  (0.1ms) BEGIN
288488
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing17@example.com' LIMIT 1
288489
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:24', '2012-06-22 09:11:24', NULL, NULL, 'testing17@example.com', 'a801fcf1817ad124c1876c6e11c40b6aae6ab5fbef85b23d56bdb1b60930e89092ae1a9c741e513e415dd3aae83f7fc2a064ee3d3ad053b7c49b0395936eb8e4', 0, NULL, NULL, NULL, 'Admin', 'hJsastA3YHEBb3RwzaST', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:24')
288490
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:24', 4, '2012-06-22 09:11:24', 1)
288491
+  (42.0ms) COMMIT
288492
+  (0.1ms) BEGIN
288493
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
288494
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
288495
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:24', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-22 09:11:24')
288496
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
288497
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
288498
+  (36.3ms) COMMIT
288499
+  (0.1ms) BEGIN
288500
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
288501
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
288502
+ SQL (0.2ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:24', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-22 09:11:24')
288503
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
288504
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
288505
+ SQL (0.3ms) 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 `lft`
288506
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
288507
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
288508
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
288509
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
288510
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
288511
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
288512
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
288513
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
288514
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
288515
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
288516
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
288517
+  (38.4ms) COMMIT
288518
+
288519
+
288520
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2012-06-22 12:11:24 +0300
288521
+  (0.2ms) BEGIN
288522
+  (0.1ms) COMMIT
288523
+  (0.1ms) BEGIN
288524
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-22 09:11:24', `current_sign_in_at` = '2012-06-22 09:11:24', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-22 09:11:24' WHERE `users`.`id` = 1
288525
+  (37.6ms) COMMIT
288526
+ Processing by Sunrise::ManagerController#edit as HTML
288527
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
288528
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
288529
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
288530
+ Role Load (0.3ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288531
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288532
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288533
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
288534
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (10.8ms)
288535
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (13.2ms)
288536
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.5ms)
288537
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.3ms)
288538
+ Completed 200 OK in 24ms (Views: 18.6ms | ActiveRecord: 1.1ms)
288539
+
288540
+
288541
+ Started PUT "/manage/structures/2/edit" for 127.0.0.1 at 2012-06-22 12:11:24 +0300
288542
+ Processing by Sunrise::ManagerController#update as HTML
288543
+ Parameters: {"utf8"=>"✓", "parent_id"=>"", "parent_type"=>"", "structure"=>{"title"=>"Aimbulance updated", "redirect_url"=>"", "slug"=>"structure", "parent_id"=>"1", "kind"=>"2", "position"=>"1", "is_visible"=>"0"}, "commit"=>"Update Structure", "model_name"=>"structures", "id"=>"2"}
288544
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
288545
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
288546
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
288547
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288548
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288549
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288550
+ Role Load (0.4ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
288551
+  (0.1ms) BEGIN
288552
+  (0.4ms) UPDATE `structures` SET `title` = 'Aimbulance updated', `redirect_url` = '', `kind` = 2, `position` = 1, `is_visible` = 0, `updated_at` = '2012-06-22 09:11:24' WHERE `structures`.`id` = 2
288553
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
288554
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
288555
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
288556
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
288557
+  (39.2ms) COMMIT
288558
+ Redirected to http://www.example.com/manage/structures
288559
+ Completed 302 Found in 57ms (ActiveRecord: 0.0ms)
288560
+
288561
+
288562
+ Started GET "/manage/structures" for 127.0.0.1 at 2012-06-22 12:11:24 +0300
288563
+ Processing by Sunrise::ManagerController#index as HTML
288564
+ Parameters: {"model_name"=>"structures"}
288565
+ User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
288566
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288567
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288568
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288569
+ Structure Load (0.7ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `lft`
288570
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
288571
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (1.2ms)
288572
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (4.0ms)
288573
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.4ms)
288574
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (59.1ms)
288575
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (61.3ms)
288576
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (61.6ms)
288577
+ Completed 200 OK in 76ms (Views: 70.5ms | ActiveRecord: 1.7ms)
288578
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
288579
+
288580
+
288581
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2012-06-22 12:11:24 +0300
288582
+  (0.2ms) BEGIN
288583
+  (0.1ms) COMMIT
288584
+  (0.1ms) BEGIN
288585
+  (0.5ms) UPDATE `users` SET `current_sign_in_at` = '2012-06-22 09:11:24', `sign_in_count` = 2, `updated_at` = '2012-06-22 09:11:24' WHERE `users`.`id` = 1
288586
+  (36.3ms) COMMIT
288587
+ Processing by Sunrise::ManagerController#edit as HTML
288588
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
288589
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
288590
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
288591
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288592
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288593
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288594
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
288595
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (9.2ms)
288596
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (11.5ms)
288597
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.6ms)
288598
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.3ms)
288599
+ Completed 200 OK in 22ms (Views: 16.8ms | ActiveRecord: 0.7ms)
288600
+
288601
+
288602
+ Started PUT "/manage/structures/2/edit" for 127.0.0.1 at 2012-06-22 12:11:24 +0300
288603
+ Processing by Sunrise::ManagerController#update as HTML
288604
+ Parameters: {"utf8"=>"✓", "parent_id"=>"", "parent_type"=>"", "structure"=>{"title"=>"Aimbulance updated", "redirect_url"=>"", "slug"=>"structure", "parent_id"=>"1", "kind"=>"2", "position"=>"1", "is_visible"=>"0"}, "commit"=>"Update Structure", "model_name"=>"structures", "id"=>"2"}
288605
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
288606
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
288607
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
288608
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288609
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288610
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288611
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
288612
+  (0.1ms) BEGIN
288613
+ CACHE (0.0ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
288614
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
288615
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
288616
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
288617
+  (44.0ms) COMMIT
288618
+ Redirected to http://www.example.com/manage/structures
288619
+ Completed 302 Found in 58ms (ActiveRecord: 0.0ms)
288620
+
288621
+
288622
+ Started GET "/manage/structures" for 127.0.0.1 at 2012-06-22 12:11:24 +0300
288623
+ Processing by Sunrise::ManagerController#index as HTML
288624
+ Parameters: {"model_name"=>"structures"}
288625
+ User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
288626
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288627
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288628
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288629
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `lft`
288630
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
288631
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (1.1ms)
288632
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (3.4ms)
288633
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.3ms)
288634
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
288635
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (1.7ms)
288636
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (2.0ms)
288637
+ Completed 200 OK in 15ms (Views: 10.5ms | ActiveRecord: 0.9ms)
288638
+  (0.2ms) BEGIN
288639
+ PagePart Load (0.6ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
288640
+ PagePart Exists (0.4ms) 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
288641
+ PagePart Exists (0.4ms) SELECT 1 FROM `page_parts` WHERE (`page_parts`.`key` = BINARY 'sidebar' AND `page_parts`.`partable_type` = 'Structure' AND `page_parts`.`partable_id` = 2) LIMIT 1
288642
+ SQL (0.4ms) INSERT INTO `page_parts` (`content`, `created_at`, `key`, `partable_id`, `partable_type`, `updated_at`) VALUES ('Main', '2012-06-22 09:11:24', 'main', 2, 'Structure', '2012-06-22 09:11:24')
288643
+ SQL (0.3ms) INSERT INTO `page_parts` (`content`, `created_at`, `key`, `partable_id`, `partable_type`, `updated_at`) VALUES ('Sidebar', '2012-06-22 09:11:24', 'sidebar', 2, 'Structure', '2012-06-22 09:11:24')
288644
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
288645
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
288646
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
288647
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
288648
+  (41.7ms) COMMIT
288649
+
288650
+
288651
+ Started GET "/manage/pages/2/edit" for 127.0.0.1 at 2012-06-22 12:11:24 +0300
288652
+  (0.1ms) BEGIN
288653
+  (0.1ms) COMMIT
288654
+  (0.1ms) BEGIN
288655
+  (0.3ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-22 09:11:24', `current_sign_in_at` = '2012-06-22 09:11:24', `sign_in_count` = 3, `updated_at` = '2012-06-22 09:11:24' WHERE `users`.`id` = 1
288656
+  (49.7ms) COMMIT
288657
+ Processing by Sunrise::ManagerController#edit as HTML
288658
+ Parameters: {"model_name"=>"pages", "id"=>"2"}
288659
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
288660
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
288661
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288662
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288663
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288664
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
288665
+ PagePart Load (0.5ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
288666
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (5.5ms)
288667
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (7.9ms)
288668
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.0ms)
288669
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.3ms)
288670
+ Completed 200 OK in 19ms (Views: 13.3ms | ActiveRecord: 1.2ms)
288671
+
288672
+
288673
+ Started PUT "/manage/pages/2/edit" for 127.0.0.1 at 2012-06-22 12:11:25 +0300
288674
+ Processing by Sunrise::ManagerController#update as HTML
288675
+ Parameters: {"utf8"=>"✓", "parent_id"=>"", "parent_type"=>"", "structure"=>{"main"=>"Main updated", "sidebar"=>"Sidebar updated"}, "commit"=>"Update Structure", "model_name"=>"pages", "id"=>"2"}
288676
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
288677
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
288678
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
288679
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288680
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288681
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288682
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
288683
+  (0.1ms) BEGIN
288684
+ PagePart Load (0.3ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
288685
+ PagePart Exists (0.4ms) SELECT 1 FROM `page_parts` WHERE (`page_parts`.`key` = BINARY 'main' AND `page_parts`.`id` != 1 AND `page_parts`.`partable_type` = 'Structure' AND `page_parts`.`partable_id` = 2) LIMIT 1
288686
+ PagePart Exists (0.2ms) 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
288687
+  (0.3ms) UPDATE `page_parts` SET `content` = 'Main updated', `updated_at` = '2012-06-22 09:11:25' WHERE `page_parts`.`id` = 1
288688
+  (0.2ms) UPDATE `page_parts` SET `content` = 'Sidebar updated', `updated_at` = '2012-06-22 09:11:25' WHERE `page_parts`.`id` = 2
288689
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
288690
+  (0.1ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
288691
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
288692
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
288693
+  (45.8ms) COMMIT
288694
+ Redirected to http://www.example.com/manage/structures
288695
+ Completed 302 Found in 63ms (ActiveRecord: 0.0ms)
288696
+
288697
+
288698
+ Started GET "/manage/structures" for 127.0.0.1 at 2012-06-22 12:11:25 +0300
288699
+ Processing by Sunrise::ManagerController#index as HTML
288700
+ Parameters: {"model_name"=>"structures"}
288701
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
288702
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288703
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288704
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
288705
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `lft`
288706
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
288707
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (1.1ms)
288708
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (3.4ms)
288709
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (64.2ms)
288710
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
288711
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.2ms)
288712
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (2.4ms)
288713
+ Completed 200 OK in 77ms (Views: 73.1ms | ActiveRecord: 0.6ms)
288714
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
288715
+ PagePart Load (0.5ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
288716
+
288717
+
288718
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2012-06-22 12:11:25 +0300
288719
+ Processing by Sunrise::ManagerController#edit as HTML
288720
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
288721
+ Completed 401 Unauthorized in 0ms
288722
+
288723
+
288724
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-06-22 12:11:25 +0300
288725
+ Processing by Devise::SessionsController#new as HTML
288726
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/app/views/devise/shared/_links.erb (0.7ms)
288727
+ Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms)
288728
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
288729
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
288730
+  (98.6ms) TRUNCATE TABLE `assets`;
288731
+  (54.9ms) TRUNCATE TABLE `audits`;
288732
+  (55.1ms) TRUNCATE TABLE `headers`;
288733
+  (55.0ms) TRUNCATE TABLE `page_parts`;
288734
+  (55.1ms) TRUNCATE TABLE `posts`;
288735
+  (55.2ms) TRUNCATE TABLE `roles`;
288736
+  (55.2ms) TRUNCATE TABLE `settings`;
288737
+  (55.2ms) TRUNCATE TABLE `structures`;
288738
+  (55.1ms) TRUNCATE TABLE `users`;
288739
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
288740
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
288741
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
288742
+  (54.2ms) TRUNCATE TABLE `assets`;
288743
+  (54.9ms) TRUNCATE TABLE `audits`;
288744
+  (55.3ms) TRUNCATE TABLE `headers`;
288745
+  (99.4ms) TRUNCATE TABLE `page_parts`;
288746
+  (55.1ms) TRUNCATE TABLE `posts`;
288747
+  (66.0ms) TRUNCATE TABLE `roles`;
288748
+  (135.4ms) TRUNCATE TABLE `settings`;
288749
+  (118.9ms) TRUNCATE TABLE `structures`;
288750
+  (144.6ms) TRUNCATE TABLE `users`;
288751
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
288752
+  (0.2ms) BEGIN
288753
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing18@example.com' LIMIT 1
288754
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:27', '2012-06-22 09:11:27', NULL, NULL, 'testing18@example.com', '1f44923797783d36ac869348b53995c116f7616d8bc9e193cd1d3fcafb6a1553cc6a0d944c3c90fa8a616e7c25511cd1f81175696ef7b51ba7e08f140baa6d8c', 0, NULL, NULL, NULL, 'Test', 'V1nVcvX9pQiKg27qpD7E', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:27')
288755
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:27', 1, '2012-06-22 09:11:27', 1)
288756
+  (94.6ms) COMMIT
288757
+  (0.2ms) BEGIN
288758
+ SQL (0.5ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (1, 'User', '2012-06-22 09:11:27', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-22 09:11:27', NULL, 50)
288759
+  (108.6ms) COMMIT
288760
+  (0.3ms) BEGIN
288761
+ User Exists (0.6ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing19@example.com' LIMIT 1
288762
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:28', '2012-06-22 09:11:28', NULL, NULL, 'testing19@example.com', '6788649b682e7cb8206df052ffa972e19e1daf7675d4ccb93f93121dc97013d5c0a1f40e0e1c6a6be5462e069138798cb522aee11a30c64517f1fd2086b4929d', 0, NULL, NULL, NULL, 'Test', 'MJFi3hVYiitDjcq5zUWx', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:28')
288763
+ SQL (0.1ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:28', 1, '2012-06-22 09:11:28', 2)
288764
+  (89.2ms) COMMIT
288765
+  (0.2ms) BEGIN
288766
+ User Exists (0.6ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing20@example.com' LIMIT 1
288767
+ SQL (0.6ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:29', '2012-06-22 09:11:29', NULL, NULL, 'testing20@example.com', '60bce353c4a5dcdb5f1c855dd74a677763f229d6c3b2f9f37e48999e65a12b62472c8d354ea3eadd55525df7aeb1ddd34275205f1f90597fc77c2b876e57fa54', 0, NULL, NULL, NULL, 'Test', 'UuWJ696qAepv57jTjx3N', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:29')
288768
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:29', 1, '2012-06-22 09:11:29', 3)
288769
+  (70.4ms) COMMIT
288770
+  (0.2ms) BEGIN
288771
+ SQL (0.5ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (3, 'User', '2012-06-22 09:11:29', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-22 09:11:29', NULL, 50)
288772
+  (60.4ms) COMMIT
288773
+  (0.3ms) BEGIN
288774
+ User Exists (0.6ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing21@example.com' LIMIT 1
288775
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:29', '2012-06-22 09:11:29', NULL, NULL, 'testing21@example.com', '45ea1418cded874387ecc5b5f99596e37de944c27b357efb6e7493129e32ad81a83462ac9d74de4f51e47b5c3a3353dfeea456b7165aa8b858a41555fff05073', 0, NULL, NULL, NULL, 'Test', 'vedjxt3qpnQXazzn7QAU', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:29')
288776
+ SQL (0.4ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:29', 1, '2012-06-22 09:11:29', 4)
288777
+  (89.6ms) COMMIT
288778
+  (0.2ms) BEGIN
288779
+ SQL (0.4ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (4, 'User', '2012-06-22 09:11:29', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-22 09:11:29', NULL, 50)
288780
+  (98.4ms) COMMIT
288781
+  (0.2ms) BEGIN
288782
+ User Exists (0.6ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing22@example.com' LIMIT 1
288783
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:30', '2012-06-22 09:11:30', NULL, NULL, 'testing22@example.com', 'c104326ca660d6850639ac119d00df905449c66f087258ce2d2e6ac970bfd6179d1dc5f1e9646c98289dee858bfddebf3fb7faa1b2ee595b12fd9d0f96b6e5ac', 0, NULL, NULL, NULL, 'Test', 'y8VsgXJUGXepUHmxvuPo', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:30')
288784
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:30', 1, '2012-06-22 09:11:30', 5)
288785
+  (79.6ms) COMMIT
288786
+  (0.2ms) BEGIN
288787
+ SQL (0.5ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (5, 'User', '2012-06-22 09:11:30', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-22 09:11:30', NULL, 50)
288788
+  (47.1ms) COMMIT
288789
+  (0.3ms) BEGIN
288790
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing23@example.com' LIMIT 1
288791
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:30', '2012-06-22 09:11:30', NULL, NULL, 'testing23@example.com', 'bf7a7a3743d69a299a63a573c8ae0987f499df18080da077e8004e54451112ee2944e6a801e732245226dad63394efed0c663874997bdd03386ece0c57d910d5', 0, NULL, NULL, NULL, 'Test', 'YxvGqPjAJiLRDWEqUcjW', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:30')
288792
+ SQL (0.4ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:30', 1, '2012-06-22 09:11:30', 6)
288793
+  (67.2ms) COMMIT
288794
+  (0.2ms) BEGIN
288795
+ SQL (0.5ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (6, 'User', '2012-06-22 09:11:30', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-22 09:11:30', NULL, 50)
288796
+  (152.7ms) COMMIT
288797
+  (0.2ms) BEGIN
288798
+ User Exists (0.6ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing24@example.com' LIMIT 1
288799
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:31', '2012-06-22 09:11:31', NULL, NULL, 'testing24@example.com', 'd1eef738e8f02b8d2ce43a7ba7435c4a103244a567fb9d1965dda88bbbc9f465d3f2e80e8dc656b214725167a67916917652ab96b02de7ad5add816db9ad6d50', 0, NULL, NULL, NULL, 'Test', 'VsyFfyx5L6Aq7bL8q8Cm', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:31')
288800
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:31', 1, '2012-06-22 09:11:31', 7)
288801
+  (59.7ms) COMMIT
288802
+  (0.2ms) BEGIN
288803
+ SQL (0.4ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (7, 'User', '2012-06-22 09:11:31', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-22 09:11:31', NULL, 50)
288804
+  (48.4ms) COMMIT
288805
+  (0.3ms) BEGIN
288806
+ User Exists (0.6ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing25@example.com' LIMIT 1
288807
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:31', '2012-06-22 09:11:31', NULL, NULL, 'testing25@example.com', '3b99bf127921b615833dca38153db94609618561756e05fbb22b43078052c7a0cc1b45154e84c413ea8b5ceb5bda7e5a5e0a4f4a33877bc31af4790942859102', 0, NULL, NULL, NULL, 'Test', 'YesWEKndaSyz6TwhE5Tn', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:31')
288808
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:31', 1, '2012-06-22 09:11:31', 8)
288809
+  (93.7ms) COMMIT
288810
+  (0.1ms) BEGIN
288811
+ SQL (0.5ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (8, 'User', '2012-06-22 09:11:31', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-22 09:11:31', NULL, 50)
288812
+  (84.1ms) COMMIT
288813
+  (0.3ms) BEGIN
288814
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing26@example.com' LIMIT 1
288815
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:32', '2012-06-22 09:11:32', NULL, NULL, 'testing26@example.com', 'a281f441d1fdb9f3d96e66c8c7c0d7a4e56b726f4115fd197f013d7a1929b75a6887218077e1cd1d8529025a7a4579ae5bff943959eba2f5cb34732f8645f2ee', 0, NULL, NULL, NULL, 'Test', 'x4A2udsBvbS6rqR3yZNE', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:32')
288816
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:32', 1, '2012-06-22 09:11:32', 9)
288817
+  (99.0ms) COMMIT
288818
+  (0.2ms) BEGIN
288819
+ SQL (0.4ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (9, 'User', '2012-06-22 09:11:32', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-22 09:11:32', NULL, 50)
288820
+  (79.4ms) COMMIT
288821
+  (0.3ms) BEGIN
288822
+ User Exists (0.6ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing27@example.com' LIMIT 1
288823
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:32', '2012-06-22 09:11:32', NULL, NULL, 'testing27@example.com', '40214a1fa6ba1163d4b0960d3753edd190546a184898923b8d9cb6ffb9e5785941b97908b1f3c125489587d40ed77b07587b3558006d623c96365eb04afb9fd0', 0, NULL, NULL, NULL, 'Test', 'oqVpqYsTfEHPjG7N5Ssj', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:32')
288824
+ SQL (0.4ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:32', 1, '2012-06-22 09:11:32', 10)
288825
+  (68.2ms) COMMIT
288826
+  (0.2ms) BEGIN
288827
+ SQL (0.5ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (10, 'User', '2012-06-22 09:11:32', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-22 09:11:32', NULL, 50)
288828
+  (49.8ms) COMMIT
288829
+  (0.2ms) BEGIN
288830
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing28@example.com' LIMIT 1
288831
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:33', '2012-06-22 09:11:33', NULL, NULL, 'testing28@example.com', '9c1c066f1e19c0e0bd2c2a1c8436194a683ece6e49d388320e8b347707b82a3769647cf3e943c3387d7f72cecfeb84c7eab15bf85f88f131a910a360f066aee5', 0, NULL, NULL, NULL, 'Test', 'kmWKmUUP92GXKupy6uCZ', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:33')
288832
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:33', 1, '2012-06-22 09:11:33', 11)
288833
+  (54.8ms) COMMIT
288834
+  (0.1ms) BEGIN
288835
+ SQL (0.4ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (11, 'User', '2012-06-22 09:11:33', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-22 09:11:33', NULL, 50)
288836
+  (59.4ms) COMMIT
288837
+  (0.3ms) BEGIN
288838
+ User Exists (0.6ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing29@example.com' LIMIT 1
288839
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:33', '2012-06-22 09:11:33', NULL, NULL, 'testing29@example.com', 'c3e526d47bf7931eb5f8306a0208ad0f7d0f20fe599ab2a0f4d0c71139a40d8cef5a3d61997d0b0033bff045c266d2d1805fb534a3cb2040de20dea198170d32', 0, NULL, NULL, NULL, 'Test', 'T5CqSkGxRbUTZpqPBb1o', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:33')
288840
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:33', 1, '2012-06-22 09:11:33', 12)
288841
+  (106.4ms) COMMIT
288842
+  (0.2ms) BEGIN
288843
+ SQL (0.5ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (12, 'User', '2012-06-22 09:11:33', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-22 09:11:33', NULL, 50)
288844
+  (47.1ms) COMMIT
288845
+  (0.2ms) BEGIN
288846
+  (0.2ms) ROLLBACK
288847
+  (0.2ms) BEGIN
288848
+ User Exists (0.6ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing30@example.com' LIMIT 1
288849
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:34', '2012-06-22 09:11:34', NULL, NULL, 'testing30@example.com', 'a0c8de8614706c6ae42d2708a46c59a30b4f42290dc1ceb3578ed8e1e55915c86724403935993e237086a817753de88eabea2f817d73902b5f40b44a4b7553fc', 0, NULL, NULL, NULL, 'Test', 'CxhW5pzzjvPZpfxxypkC', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:34')
288850
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:34', 1, '2012-06-22 09:11:34', 13)
288851
+  (60.6ms) COMMIT
288852
+  (0.2ms) BEGIN
288853
+ SQL (0.4ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (13, 'User', '2012-06-22 09:11:34', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-22 09:11:34', NULL, 50)
288854
+  (50.0ms) COMMIT
288855
+  (0.3ms) BEGIN
288856
+ User Exists (0.7ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing31@example.com' LIMIT 1
288857
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:34', '2012-06-22 09:11:34', NULL, NULL, 'testing31@example.com', '3924a721da9bba9638134fb16d7b477ddbfb87cfa9aaa7bc77d44617443aa96534b17a5d810dfba1745053dec0990be5f85adaadf457a68270a44f07d368af3b', 0, NULL, NULL, NULL, 'Test', 'guA9mC9xw6yyzKqsuo2n', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:34')
288858
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:34', 1, '2012-06-22 09:11:34', 14)
288859
+  (72.4ms) COMMIT
288860
+  (0.1ms) BEGIN
288861
+ SQL (0.4ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (14, 'User', '2012-06-22 09:11:34', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-22 09:11:34', NULL, 50)
288862
+  (41.0ms) COMMIT
288863
+  (0.2ms) BEGIN
288864
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing32@example.com' LIMIT 1
288865
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:34', '2012-06-22 09:11:35', NULL, NULL, 'testing32@example.com', 'df3933d49d99a5349fadc5e370feb9b4d0c5db5adc64624772ee8491a62c2508b2a46497b8d4dd2f18b1c61d35bc224f5cca71795a70f913f5509575572d3431', 0, NULL, NULL, NULL, 'Test', '3Cz5KmEADxZfs6fdc7gY', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:35')
288866
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:35', 1, '2012-06-22 09:11:35', 15)
288867
+  (89.9ms) COMMIT
288868
+  (0.3ms) BEGIN
288869
+ SQL (0.4ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (15, 'User', '2012-06-22 09:11:35', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-22 09:11:35', NULL, 50)
288870
+  (50.0ms) COMMIT
288871
+  (0.2ms) BEGIN
288872
+  (0.2ms) ROLLBACK
288873
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
288874
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
288875
+  (63.3ms) TRUNCATE TABLE `assets`;
288876
+  (55.3ms) TRUNCATE TABLE `audits`;
288877
+  (55.1ms) TRUNCATE TABLE `headers`;
288878
+  (55.1ms) TRUNCATE TABLE `page_parts`;
288879
+  (55.2ms) TRUNCATE TABLE `posts`;
288880
+  (55.0ms) TRUNCATE TABLE `roles`;
288881
+  (55.3ms) TRUNCATE TABLE `settings`;
288882
+  (66.0ms) TRUNCATE TABLE `structures`;
288883
+  (55.3ms) TRUNCATE TABLE `users`;
288884
+  (0.3ms) SET FOREIGN_KEY_CHECKS = 1
288885
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
288886
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
288887
+  (56.3ms) TRUNCATE TABLE `assets`;
288888
+  (139.2ms) TRUNCATE TABLE `audits`;
288889
+  (81.3ms) TRUNCATE TABLE `headers`;
288890
+  (55.1ms) TRUNCATE TABLE `page_parts`;
288891
+  (55.2ms) TRUNCATE TABLE `posts`;
288892
+  (55.1ms) TRUNCATE TABLE `roles`;
288893
+  (55.2ms) TRUNCATE TABLE `settings`;
288894
+  (55.2ms) TRUNCATE TABLE `structures`;
288895
+  (43.9ms) TRUNCATE TABLE `users`;
288896
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
288897
+  (0.1ms) BEGIN
288898
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing33@example.com' LIMIT 1
288899
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:36', '2012-06-22 09:11:36', NULL, NULL, 'testing33@example.com', '034869b78dae60c698ca0c46b3b87769f958b265afa932bb44973bf2a4c61f3d2f32b40e761abe54b69f5dcaedb6164e2e5d854b9cf316170dec7b9e8ecad918', 0, NULL, NULL, NULL, 'Test', 'NW6TTayzHP4jpRYhjsEv', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:36')
288900
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:36', 1, '2012-06-22 09:11:36', 1)
288901
+  (44.3ms) COMMIT
288902
+  (0.1ms) BEGIN
288903
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing34@example.com' LIMIT 1
288904
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:36', '2012-06-22 09:11:36', NULL, NULL, 'testing34@example.com', 'b77c5fcda369f73489b8d5f19226d6152b480a06dcef7670f04aa19bb3ee8a0e162ea396e0686b2f23846822e94011eedd6104f17c7a7a424792b8b0ba27d89f', 0, NULL, NULL, NULL, 'Test', '4yAVZrzW3HFTsBQAXx3t', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:36')
288905
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:36', 1, '2012-06-22 09:11:36', 2)
288906
+  (69.8ms) COMMIT
288907
+  (0.2ms) BEGIN
288908
+ User Exists (0.6ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing35@example.com' LIMIT 1
288909
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:37', '2012-06-22 09:11:37', NULL, NULL, 'testing35@example.com', '091462e028cc5ce110c6bce590821dd235077bf2c212e428f5647156ef4436c87a59c620f9acf01f96264ee6cb91d7d1215097a17b6217f86057287577706436', 0, NULL, NULL, NULL, 'Test', 'ax82t6diuvjDdWZuhot3', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:37')
288910
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:37', 1, '2012-06-22 09:11:37', 3)
288911
+  (54.8ms) COMMIT
288912
+  (0.2ms) BEGIN
288913
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing36@example.com' LIMIT 1
288914
+ SQL (0.3ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:38', '2012-06-22 09:11:38', NULL, NULL, 'testing36@example.com', 'e5e572030587b0e84a00a5ef5c7ce06834abc635b1ef51b6faabb1519f8d39488369d0437d73a7126d79fbaf37580c21e851b20f31f67be9dbd2aa049ed470a3', 0, NULL, NULL, NULL, 'Test', 'T9ftxxFsr94MKapvFb2P', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:38')
288915
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:38', 1, '2012-06-22 09:11:38', 4)
288916
+  (255.5ms) COMMIT
288917
+  (0.2ms) BEGIN
288918
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing37@example.com' LIMIT 1
288919
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:38', '2012-06-22 09:11:38', NULL, NULL, 'testing37@example.com', '46388403fa9fc72eba628ae3056d16e1e916f2665c5ac496eeac1639a807870b1fa57476da7faef9d2d8c4c5bab9d92619dd719bd4cf1489563baea07bd9388d', 0, NULL, NULL, NULL, 'Test', 'PyyKmwLsUpkqjRkysapF', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:38')
288920
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:38', 1, '2012-06-22 09:11:38', 5)
288921
+  (124.0ms) COMMIT
288922
+  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS
288923
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
288924
+  (71.8ms) TRUNCATE TABLE `assets`;
288925
+  (54.8ms) TRUNCATE TABLE `audits`;
288926
+  (66.1ms) TRUNCATE TABLE `headers`;
288927
+  (55.0ms) TRUNCATE TABLE `page_parts`;
288928
+  (55.2ms) TRUNCATE TABLE `posts`;
288929
+  (55.1ms) TRUNCATE TABLE `roles`;
288930
+  (66.2ms) TRUNCATE TABLE `settings`;
288931
+  (55.1ms) TRUNCATE TABLE `structures`;
288932
+  (55.0ms) TRUNCATE TABLE `users`;
288933
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
288934
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
288935
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
288936
+  (130.0ms) TRUNCATE TABLE `assets`;
288937
+  (54.9ms) TRUNCATE TABLE `audits`;
288938
+  (66.1ms) TRUNCATE TABLE `headers`;
288939
+  (55.2ms) TRUNCATE TABLE `page_parts`;
288940
+  (55.2ms) TRUNCATE TABLE `posts`;
288941
+  (54.9ms) TRUNCATE TABLE `roles`;
288942
+  (55.0ms) TRUNCATE TABLE `settings`;
288943
+  (55.3ms) TRUNCATE TABLE `structures`;
288944
+  (55.2ms) TRUNCATE TABLE `users`;
288945
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
288946
+  (0.3ms) BEGIN
288947
+ User Exists (0.6ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing38@example.com' LIMIT 1
288948
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:40', '2012-06-22 09:11:40', NULL, NULL, 'testing38@example.com', '653c1c6d3c3f79fd37478f30052853a389b02c846d546d7e014c4d33d9dcb5ce25767f06262eb1aa7859ee8373356cd566001a2bc67ee855e4191fc11f3ce65c', 0, NULL, NULL, NULL, 'Test', 'qcJeqW1JGDTLe3qGTg2y', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:40')
288949
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:40', 1, '2012-06-22 09:11:40', 1)
288950
+  (56.0ms) COMMIT
288951
+ User Exists (0.6ms) SELECT 1 FROM `users` WHERE (`users`.`email` = BINARY 'wrong' AND `users`.`id` != 1) LIMIT 1
288952
+ User Exists (0.2ms) SELECT 1 FROM `users` WHERE (`users`.`email` = BINARY 'wrong' AND `users`.`id` != 1) LIMIT 1
288953
+  (0.1ms) BEGIN
288954
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing39@example.com' LIMIT 1
288955
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:40', '2012-06-22 09:11:40', NULL, NULL, 'testing39@example.com', '40b94b51d1176713ea8271c65c39ee8e2216dba457c6dde94f015bacbdc561499cf4b5f834147d6dba3973a4c5aaa97fd6726e434149bf1aeb48ad5209a65b2f', 0, NULL, NULL, NULL, 'Test', 'pUHWErXMpaWPmVu197yq', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:40')
288956
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:40', 1, '2012-06-22 09:11:40', 2)
288957
+  (54.9ms) COMMIT
288958
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE (email LIKE 'testing39%') LIMIT 1
288959
+  (0.2ms) BEGIN
288960
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing40@example.com' LIMIT 1
288961
+ SQL (0.6ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:40', '2012-06-22 09:11:40', NULL, NULL, 'testing40@example.com', '62157f152504a171431d0b288e571536161014434c77b47e2f25a0c9040570b21b192657b976e17b84d386d1c87aa4a4b0747ce99172a72c32da44eae68d0900', 0, NULL, NULL, NULL, 'Test', 'SfscNJLBJYzpKxv8rDyV', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:40')
288962
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:40', 1, '2012-06-22 09:11:40', 3)
288963
+  (52.6ms) COMMIT
288964
+ User Load (0.5ms) SELECT `users`.* FROM `users` INNER JOIN `roles` ON `roles`.`user_id` = `users`.`id` WHERE `roles`.`role_type` = 1
288965
+  (0.1ms) BEGIN
288966
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing41@example.com' LIMIT 1
288967
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:40', '2012-06-22 09:11:40', NULL, NULL, 'testing41@example.com', 'a44d4309915b7d332ae8dc62bcbe953bb0ba5a0805bd1e1acebf40fcfbebdf7199450070801341ef12d4dc7fd56d92125fb1c6f08c101f8be5f4b762b719a295', 0, NULL, NULL, NULL, 'Test', 'DJUqEPJezsc8aXKbZqrm', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:40')
288968
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:40', 1, '2012-06-22 09:11:40', 4)
288969
+  (48.7ms) COMMIT
288970
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
288971
+ User Load (0.6ms) SELECT id, email, name, current_sign_in_ip FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000
288972
+  (0.2ms) BEGIN
288973
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing42@example.com' LIMIT 1
288974
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:40', '2012-06-22 09:11:40', NULL, NULL, 'testing42@example.com', '1c45697c40ee752559c5ffbaa378b6651ab6cb1aa03d4b8cc4629691b97bc5c5ff20b361d78a82278219e5dbe58f1dd1b1d372d712820c443cfcfa78b9968934', 0, NULL, NULL, NULL, 'Test', 'WyTQiZAHzVHdZ6TeSxsc', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:40')
288975
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:40', 1, '2012-06-22 09:11:40', 5)
288976
+  (49.0ms) COMMIT
288977
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
288978
+ User Load (0.6ms) SELECT id, email, confirmed_at, created_at FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000
288979
+  (0.2ms) BEGIN
288980
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing43@example.com' LIMIT 1
288981
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:40', '2012-06-22 09:11:40', NULL, NULL, 'testing43@example.com', '4210d8510b819addfff26610b8c42335921b67c1c5c4c9197aefb48d19d273f9cf0bc1b874d9007c1421f253f42d8e518b5cf42949088931de5111e5e98d8fda', 0, NULL, NULL, NULL, 'Test', 'eS8ZvufFKEDjdDSv8sun', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:40')
288982
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:40', 1, '2012-06-22 09:11:40', 6)
288983
+  (83.5ms) COMMIT
288984
+ Role Load (0.6ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 6 LIMIT 1
288985
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 6 LIMIT 1
288986
+ Role Load (0.4ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 6
288987
+  (0.1ms) BEGIN
288988
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing44@example.com' LIMIT 1
288989
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:41', '2012-06-22 09:11:41', NULL, NULL, 'testing44@example.com', '837725d211b6f7b562ddc83b5f20c50ddd32b72c4dd6fe73cf60bfd08a902307213e3d08ebbc228fe6d85c873a100255bdaeff371e63ca99ed4a0c10a715f168', 0, NULL, NULL, NULL, 'Test', 'CTh6osvPQQsAPykyboKV', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:41')
288990
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:41', 1, '2012-06-22 09:11:41', 7)
288991
+  (76.7ms) COMMIT
288992
+ Avatar Load (0.7ms) SELECT `assets`.* FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`assetable_id` = 7 AND `assets`.`assetable_type` = 'User' ORDER BY `assets`.sort_order LIMIT 1
288993
+  (0.1ms) BEGIN
288994
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing45@example.com' LIMIT 1
288995
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:41', '2012-06-22 09:11:41', NULL, NULL, 'testing45@example.com', 'c6f9b8b9f68acc39611fa98e85dd6f5d875c9d019d139fd2086fa738b1d19a16bd73b7c83a0b9404a85584898052fb30a1b3de3c9b99db835e387ce253772221', 0, NULL, NULL, NULL, 'Test', 'yuK77jimisKjadJG5TNK', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:41')
288996
+ SQL (0.4ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:41', 1, '2012-06-22 09:11:41', 8)
288997
+  (54.3ms) COMMIT
288998
+
288999
+ Sent mail to testing45@example.com (73ms)
289000
+ Date: Fri, 22 Jun 2012 12:11:41 +0300
289001
+ From: please-change-me-at-config-initializers-devise@example.com
289002
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
289003
+ To: testing45@example.com
289004
+ Message-ID: <4fe436cd764a5_458e46010049652e@mario.mail>
289005
+ Subject: Unlock Instructions
289006
+ Mime-Version: 1.0
289007
+ Content-Type: text/html;
289008
+ charset=UTF-8
289009
+ Content-Transfer-Encoding: 7bit
289010
+
289011
+ <p>Hello testing45@example.com!</p>
289012
+
289013
+ <p>Your account has been locked due to an excessive amount of unsuccessful sign in attempts.</p>
289014
+
289015
+ <p>Click the link below to unlock your account:</p>
289016
+
289017
+ <p><a href="http://test.com/users/unlock?unlock_token=LEAekt6u25HCcjsB7QBu">Unlock my account</a></p>
289018
+
289019
+  (0.3ms) BEGIN
289020
+  (0.5ms) UPDATE `users` SET `confirmed_at` = NULL, `locked_at` = '2012-06-22 09:11:41', `unlock_token` = 'LEAekt6u25HCcjsB7QBu', `updated_at` = '2012-06-22 09:11:41' WHERE `users`.`id` = 8
289021
+  (47.7ms) COMMIT
289022
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
289023
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
289024
+  (63.5ms) TRUNCATE TABLE `assets`;
289025
+  (55.1ms) TRUNCATE TABLE `audits`;
289026
+  (86.1ms) TRUNCATE TABLE `headers`;
289027
+  (68.3ms) TRUNCATE TABLE `page_parts`;
289028
+  (55.2ms) TRUNCATE TABLE `posts`;
289029
+  (55.1ms) TRUNCATE TABLE `roles`;
289030
+  (66.1ms) TRUNCATE TABLE `settings`;
289031
+  (154.7ms) TRUNCATE TABLE `structures`;
289032
+  (43.9ms) TRUNCATE TABLE `users`;
289033
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
289034
+  (0.1ms) BEGIN
289035
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
289036
+ Structure Load (0.8ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
289037
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:42', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-22 09:11:42')
289038
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
289039
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
289040
+  (37.7ms) COMMIT
289041
+  (0.2ms) BEGIN
289042
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
289043
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
289044
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:42', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-22 09:11:42')
289045
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
289046
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
289047
+ SQL (0.5ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`
289048
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
289049
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289050
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289051
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
289052
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289053
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
289054
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
289055
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289056
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289057
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
289058
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289059
+  (45.1ms) COMMIT
289060
+  (0.1ms) BEGIN
289061
+  (0.1ms) ROLLBACK
289062
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289063
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
289064
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289065
+  (0.1ms) BEGIN
289066
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289067
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289068
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
289069
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289070
+  (42.9ms) COMMIT
289071
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289072
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
289073
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
289074
+  (0.1ms) BEGIN
289075
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289076
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289077
+ SQL (0.5ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
289078
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289079
+  (45.4ms) COMMIT
289080
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289081
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
289082
+  (0.1ms) BEGIN
289083
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289084
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289085
+ SQL (0.5ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
289086
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289087
+  (47.0ms) COMMIT
289088
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289089
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
289090
+  (0.1ms) BEGIN
289091
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
289092
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
289093
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:42', 0, 1, 1, 5, 2, 2, NULL, 6, 'structure--2', 'Structure', '2012-06-22 09:11:42')
289094
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 ORDER BY `lft` LIMIT 1
289095
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1 FOR UPDATE
289096
+ SQL (0.6ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 6 - 4 WHEN `lft` BETWEEN 5 AND 6 THEN `lft` + 3 - 5 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 6 - 4 WHEN `rgt` BETWEEN 5 AND 6 THEN `rgt` + 3 - 5 ELSE `rgt` END, `parent_id` = CASE WHEN id = 3 THEN 2 ELSE `parent_id` END ORDER BY `lft`
289097
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
289098
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1
289099
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
289100
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 2 WHERE `structures`.`id` = 3 ORDER BY `lft`
289101
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
289102
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 3 ORDER BY lft
289103
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1 FOR UPDATE
289104
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1
289105
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
289106
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 2 WHERE `structures`.`id` = 3 ORDER BY `lft`
289107
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
289108
+  (43.2ms) COMMIT
289109
+  (0.1ms) BEGIN
289110
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289111
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
289112
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
289113
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
289114
+  (41.7ms) COMMIT
289115
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289116
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
289117
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `lft`
289118
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 6) ORDER BY `lft`
289119
+  (0.1ms) BEGIN
289120
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'some-super-title' OR `slug` LIKE 'some-super-title--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
289121
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
289122
+ SQL (0.2ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:42', 0, 1, 1, 7, 1, 2, NULL, 8, 'some-super-title', 'Some super title', '2012-06-22 09:11:42')
289123
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
289124
+ Structure Load (0.1ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1 FOR UPDATE
289125
+ SQL (0.3ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 6 AND 6 THEN `lft` + 8 - 6 WHEN `lft` BETWEEN 7 AND 8 THEN `lft` + 6 - 7 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 6 AND 6 THEN `rgt` + 8 - 6 WHEN `rgt` BETWEEN 7 AND 8 THEN `rgt` + 6 - 7 ELSE `rgt` END, `parent_id` = CASE WHEN id = 4 THEN 1 ELSE `parent_id` END ORDER BY `lft`
289126
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
289127
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1
289128
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
289129
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 4 ORDER BY `lft`
289130
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
289131
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 4 ORDER BY lft
289132
+ Structure Load (0.4ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1 FOR UPDATE
289133
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1
289134
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
289135
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 4 ORDER BY `lft`
289136
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
289137
+  (43.9ms) COMMIT
289138
+  (0.3ms) BEGIN
289139
+  (0.5ms) UPDATE `structures` SET `title` = 'Other big title', `updated_at` = '2012-06-22 09:11:42' WHERE `structures`.`id` = 4
289140
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1
289141
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
289142
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 4 ORDER BY `lft`
289143
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
289144
+  (46.1ms) COMMIT
289145
+  (0.1ms) BEGIN
289146
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289147
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
289148
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
289149
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
289150
+  (39.4ms) COMMIT
289151
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289152
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = 'structure' LIMIT 1
289153
+  (0.2ms) BEGIN
289154
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289155
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
289156
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
289157
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
289158
+  (35.5ms) COMMIT
289159
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1340356302 LIMIT 1
289160
+  (0.1ms) BEGIN
289161
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289162
+  (0.1ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
289163
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
289164
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
289165
+  (89.8ms) COMMIT
289166
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = 'wrong' LIMIT 1
289167
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 0 LIMIT 1
289168
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = 'structure' LIMIT 1
289169
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
289170
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
289171
+  (68.5ms) TRUNCATE TABLE `assets`;
289172
+  (44.2ms) TRUNCATE TABLE `audits`;
289173
+  (44.1ms) TRUNCATE TABLE `headers`;
289174
+  (44.0ms) TRUNCATE TABLE `page_parts`;
289175
+  (44.1ms) TRUNCATE TABLE `posts`;
289176
+  (44.2ms) TRUNCATE TABLE `roles`;
289177
+  (44.1ms) TRUNCATE TABLE `settings`;
289178
+  (44.0ms) TRUNCATE TABLE `structures`;
289179
+  (44.0ms) TRUNCATE TABLE `users`;
289180
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
289181
+  (0.2ms) BEGIN
289182
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
289183
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
289184
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:43', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-22 09:11:43')
289185
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
289186
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
289187
+  (44.0ms) COMMIT
289188
+  (0.2ms) BEGIN
289189
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
289190
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
289191
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:43', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-22 09:11:43')
289192
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
289193
+ Structure Load (0.4ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
289194
+ SQL (0.5ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`
289195
+ Structure Load (0.4ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
289196
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289197
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289198
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
289199
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289200
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
289201
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
289202
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289203
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289204
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
289205
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289206
+  (49.3ms) COMMIT
289207
+  (0.1ms) BEGIN
289208
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing46@example.com' LIMIT 1
289209
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:43', '2012-06-22 09:11:43', NULL, NULL, 'testing46@example.com', '0f54974cd67b2189af6778fcd67d334f4c7be019a927878c613bfcaba6147b853dfbbf2b4d5c1957b6a61aa25dc390e28fcb4c3759ab08e65f0b106598184d7c', 0, NULL, NULL, NULL, 'Admin', 'SbpHVmv5qgqXoeCYtxjp', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:43')
289210
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:43', 4, '2012-06-22 09:11:43', 1)
289211
+  (56.0ms) COMMIT
289212
+ Processing by Sunrise::SharedController#services as JSON
289213
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
289214
+ Role Load (0.6ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289215
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289216
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289217
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE `structures`.`depth` = 1
289218
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`depth` = 1
289219
+ Completed 200 OK in 13ms (Views: 2.5ms | ActiveRecord: 2.2ms)
289220
+ Processing by Sunrise::SharedController#services as JSON
289221
+ Completed 401 Unauthorized in 1ms
289222
+ Processing by Sunrise::SharedController#services as HTML
289223
+ Completed 401 Unauthorized in 1ms
289224
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
289225
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
289226
+  (49.5ms) TRUNCATE TABLE `assets`;
289227
+  (54.9ms) TRUNCATE TABLE `audits`;
289228
+  (55.2ms) TRUNCATE TABLE `headers`;
289229
+  (110.7ms) TRUNCATE TABLE `page_parts`;
289230
+  (110.5ms) TRUNCATE TABLE `posts`;
289231
+  (55.1ms) TRUNCATE TABLE `roles`;
289232
+  (55.1ms) TRUNCATE TABLE `settings`;
289233
+  (66.3ms) TRUNCATE TABLE `structures`;
289234
+  (54.9ms) TRUNCATE TABLE `users`;
289235
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
289236
+  (0.2ms) BEGIN
289237
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing47@example.com' LIMIT 1
289238
+ SQL (0.5ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:44', '2012-06-22 09:11:44', NULL, NULL, 'testing47@example.com', 'aa96cde495f4e2321e306966d3b2be36224b1694a162756cf7ce7ff8cd247b9fff314ef8eede1335b70908cb51fc02be81fae5f033d66b43c001f080f75b9ab8', 0, NULL, NULL, NULL, 'Admin', 'WYVRzp92x92XJY3s1Run', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:44')
289239
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:44', 4, '2012-06-22 09:11:44', 1)
289240
+  (53.6ms) COMMIT
289241
+  (0.2ms) BEGIN
289242
+ Structure Load (0.7ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
289243
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
289244
+ SQL (0.3ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:44', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-22 09:11:44')
289245
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
289246
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
289247
+  (66.8ms) COMMIT
289248
+  (0.2ms) BEGIN
289249
+ Structure Load (0.7ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
289250
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
289251
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:44', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-22 09:11:44')
289252
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
289253
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
289254
+ SQL (0.5ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`
289255
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
289256
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289257
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289258
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
289259
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289260
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
289261
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
289262
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289263
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289264
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
289265
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289266
+  (47.1ms) COMMIT
289267
+ Processing by Sunrise::ManagerController#index as HTML
289268
+ Parameters: {"model_name"=>"structures"}
289269
+ User Load (0.7ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
289270
+ Role Load (0.5ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289271
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289272
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289273
+ Completed 200 OK in 10ms (Views: 1.7ms | ActiveRecord: 1.5ms)
289274
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `lft`
289275
+ Processing by Sunrise::ManagerController#index as HTML
289276
+ Parameters: {"model_name"=>"wrong"}
289277
+ User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
289278
+ Completed 500 Internal Server Error in 5ms
289279
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
289280
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
289281
+  (54.0ms) TRUNCATE TABLE `assets`;
289282
+  (66.0ms) TRUNCATE TABLE `audits`;
289283
+  (55.2ms) TRUNCATE TABLE `headers`;
289284
+  (66.1ms) TRUNCATE TABLE `page_parts`;
289285
+  (55.1ms) TRUNCATE TABLE `posts`;
289286
+  (90.8ms) TRUNCATE TABLE `roles`;
289287
+  (129.9ms) TRUNCATE TABLE `settings`;
289288
+  (77.4ms) TRUNCATE TABLE `structures`;
289289
+  (55.1ms) TRUNCATE TABLE `users`;
289290
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
289291
+  (0.2ms) BEGIN
289292
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing48@example.com' LIMIT 1
289293
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:45', '2012-06-22 09:11:45', NULL, NULL, 'testing48@example.com', '0b9774464d9ee3acf5f85db02114289bfb0844a174a7eb19ed9f4ba11a66e3d4c1192a6f487b31c8177ed17706c423c798c1857f7f519ac47bb63945ec465812', 0, NULL, NULL, NULL, 'Admin', 'xrtryfrzTEozJ8r9iRQY', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:45')
289294
+ SQL (0.4ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:45', 4, '2012-06-22 09:11:45', 1)
289295
+  (54.8ms) COMMIT
289296
+ Processing by Sunrise::SettingsController#edit as HTML
289297
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
289298
+ Role Load (0.6ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289299
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289300
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289301
+ Settings Load (0.4ms) SELECT var, value FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL
289302
+ Settings Load (0.6ms) SELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL AND `settings`.`var` = 'to_key' LIMIT 1
289303
+ Settings Load (0.5ms) SELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL AND `settings`.`var` = 'some_setting' LIMIT 1
289304
+ Settings Load (0.5ms) SELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL AND `settings`.`var` = 'some_setting2' LIMIT 1
289305
+ Settings Load (0.4ms) SELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL AND `settings`.`var` = 'persisted?' LIMIT 1
289306
+ Rendered /var/www/gems/sunrise/app/views/sunrise/settings/_form.html.erb (15.2ms)
289307
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.4ms)
289308
+ Rendered /var/www/gems/sunrise/app/views/sunrise/settings/_header_edit.html.erb (0.9ms)
289309
+ Completed 200 OK in 51ms (Views: 32.6ms | ActiveRecord: 5.6ms)
289310
+ Processing by Sunrise::SettingsController#update as HTML
289311
+ Parameters: {"settings"=>{"some_setting"=>"blablabla"}}
289312
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
289313
+ Role Load (0.3ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289314
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289315
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289316
+ Settings Load (0.2ms) SELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL AND `settings`.`var` = 'some_setting' LIMIT 1
289317
+  (0.1ms) BEGIN
289318
+ SQL (0.3ms) INSERT INTO `settings` (`created_at`, `target_id`, `target_type`, `updated_at`, `value`, `var`) VALUES ('2012-06-22 09:11:45', NULL, NULL, '2012-06-22 09:11:45', '--- blablabla\n...\n', 'some_setting')
289319
+  (48.1ms) COMMIT
289320
+ Redirected to http://test.host/manage/
289321
+ Completed 302 Found in 80ms (ActiveRecord: 49.8ms)
289322
+ Processing by Sunrise::SettingsController#update as HTML
289323
+ Completed 401 Unauthorized in 0ms
289324
+ Processing by Sunrise::SettingsController#edit as HTML
289325
+ Completed 401 Unauthorized in 0ms
289326
+ Processing by Sunrise::SettingsController#edit as HTML
289327
+ Completed 401 Unauthorized in 1ms
289328
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
289329
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
289330
+  (54.2ms) TRUNCATE TABLE `assets`;
289331
+  (55.0ms) TRUNCATE TABLE `audits`;
289332
+  (54.7ms) TRUNCATE TABLE `headers`;
289333
+  (66.3ms) TRUNCATE TABLE `page_parts`;
289334
+  (55.3ms) TRUNCATE TABLE `posts`;
289335
+  (65.9ms) TRUNCATE TABLE `roles`;
289336
+  (55.0ms) TRUNCATE TABLE `settings`;
289337
+  (66.2ms) TRUNCATE TABLE `structures`;
289338
+  (97.5ms) TRUNCATE TABLE `users`;
289339
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
289340
+  (0.1ms) BEGIN
289341
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing49@example.com' LIMIT 1
289342
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:46', '2012-06-22 09:11:46', NULL, NULL, 'testing49@example.com', 'bc2147dd3d6eb6c1fed7e76f721ff3de8f80aae9c826c9ae756b2293f8470e796b9805a22a4464de3eec50167fe15263ff581d214ff86017b190836a532f965e', 0, NULL, NULL, NULL, 'Test', 'dp9Pa9V12WEYosuspfCr', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:46')
289343
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:46', 1, '2012-06-22 09:11:46', 1)
289344
+  (69.9ms) COMMIT
289345
+  (0.2ms) BEGIN
289346
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
289347
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
289348
+ SQL (0.4ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-22 09:11:46', 0, 1, 1, 1, NULL, 2, NULL, 2, 'structure', 'Structure', '2012-06-22 09:11:46')
289349
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
289350
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
289351
+  (44.3ms) COMMIT
289352
+  (0.1ms) BEGIN
289353
+ SQL (0.4ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2012-06-22 09:11:46', 1, 1, 'Default title', '2012-06-22 09:11:46')
289354
+  (52.2ms) COMMIT
289355
+  (0.1ms) BEGIN
289356
+  (0.6ms) SELECT MAX(`audits`.`version`) AS max_id FROM `audits` WHERE `audits`.`auditable_id` = 1 AND `audits`.`auditable_type` = 'Post'
289357
+ SQL (0.4ms) INSERT INTO `audits` (`action`, `associated_id`, `associated_type`, `auditable_id`, `auditable_type`, `audited_changes`, `comment`, `created_at`, `remote_address`, `user_id`, `user_type`, `username`, `version`) VALUES ('create', NULL, NULL, 1, 'Post', '---\n:title: Updated\n', NULL, '2012-06-22 09:11:46', NULL, 1, 'User', NULL, 1)
289358
+  (38.2ms) COMMIT
289359
+  (0.2ms) BEGIN
289360
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing50@example.com' LIMIT 1
289361
+ SQL (0.4ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-22 09:11:46', '2012-06-22 09:11:46', NULL, NULL, 'testing50@example.com', '80a6dddf2d078bc30f0785f9c5e4dcb2805eb95a7ffedfb768ac849176f17d8fd2620d525c5436a5ea7af1ce2e36259a57bfaa1f23606e097bf23e929089d211', 0, NULL, NULL, NULL, 'Admin', 'GWKxhpGRLPBMiXbUz1Qq', NULL, NULL, NULL, 0, NULL, '2012-06-22 09:11:46')
289362
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-22 09:11:46', 4, '2012-06-22 09:11:46', 2)
289363
+  (46.5ms) COMMIT
289364
+ Processing by Sunrise::DashboardController#index as HTML
289365
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1
289366
+ Role Load (0.5ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 2 LIMIT 1
289367
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 2 LIMIT 1
289368
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 2 LIMIT 1
289369
+ Audited::Adapters::ActiveRecord::Audit Load (0.4ms) SELECT `audits`.* FROM `audits` ORDER BY version LIMIT 50 OFFSET 0
289370
+ User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` IN (1)
289371
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_event.html.erb (2.4ms)
289372
+  (0.4ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `audits` LIMIT 50 OFFSET 0) subquery_for_count
289373
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.7ms)
289374
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (0.9ms)
289375
+ Completed 200 OK in 26ms (Views: 13.2ms | ActiveRecord: 2.4ms)
289376
+ Processing by Sunrise::DashboardController#index as HTML
289377
+ Completed 401 Unauthorized in 1ms
289378
+ Processing by Sunrise::DashboardController#index as HTML
289379
+ Completed 401 Unauthorized in 1ms
289380
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
289381
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
289382
+  (38.7ms) TRUNCATE TABLE `assets`;
289383
+  (43.8ms) TRUNCATE TABLE `audits`;
289384
+  (44.2ms) TRUNCATE TABLE `headers`;
289385
+  (44.0ms) TRUNCATE TABLE `page_parts`;
289386
+  (44.1ms) TRUNCATE TABLE `posts`;
289387
+  (44.0ms) TRUNCATE TABLE `roles`;
289388
+  (44.2ms) TRUNCATE TABLE `settings`;
289389
+  (43.8ms) TRUNCATE TABLE `structures`;
289390
+  (44.1ms) TRUNCATE TABLE `users`;
289391
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
289392
+  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS
289393
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
289394
+  (102.0ms) TRUNCATE TABLE `assets`;
289395
+  (76.5ms) TRUNCATE TABLE `audits`;
289396
+  (44.1ms) TRUNCATE TABLE `headers`;
289397
+  (44.0ms) TRUNCATE TABLE `page_parts`;
289398
+  (43.9ms) TRUNCATE TABLE `posts`;
289399
+  (44.2ms) TRUNCATE TABLE `roles`;
289400
+  (44.0ms) TRUNCATE TABLE `settings`;
289401
+  (44.0ms) TRUNCATE TABLE `structures`;
289402
+  (44.0ms) TRUNCATE TABLE `users`;
289403
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1