sunrise-cms 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,40 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ date_hash = {
4
+ :abbr_day_names => lambda { |key, options|
5
+ if options[:format] && options[:format] =~ Sunrise::LOCALIZE_STANDALONE_ABBR_DAY_NAMES_MATCH
6
+ :'date.common_abbr_day_names'
7
+ else
8
+ :'date.standalone_abbr_day_names'
9
+ end
10
+ },
11
+ :day_names => lambda { |key, options|
12
+ if options[:format] && options[:format] =~ Sunrise::LOCALIZE_STANDALONE_DAY_NAMES_MATCH
13
+ :'date.standalone_day_names'
14
+ else
15
+ :'date.common_day_names'
16
+ end
17
+ },
18
+ :abbr_month_names => lambda { |key, options|
19
+ if options[:format] && options[:format] =~ Sunrise::LOCALIZE_ABBR_MONTH_NAMES_MATCH
20
+ :'date.common_abbr_month_names'
21
+ else
22
+ :'date.standalone_abbr_month_names'
23
+ end
24
+ },
25
+ :month_names => lambda { |key, options|
26
+ if options[:format] && options[:format] =~ Sunrise::LOCALIZE_MONTH_NAMES_MATCH
27
+ :'date.common_month_names'
28
+ else
29
+ :'date.standalone_month_names'
30
+ end
31
+ }
32
+ }
33
+
34
+ # Context-based month name and day name switching for Russian
35
+ #
36
+ # Названия месяцев и дней недели в зависимости от контекста ("1 декабря", но "Декабрь 1985")
37
+ {
38
+ :uk => { :date => date_hash },
39
+ :ru => { :date => date_hash }
40
+ }
@@ -17,7 +17,7 @@ ru:
17
17
  short: "%d %b"
18
18
  long: "%d %B %Y"
19
19
 
20
- day_names:
20
+ standalone_day_names:
21
21
  - воскресенье
22
22
  - понедельник
23
23
  - вторник
@@ -25,7 +25,7 @@ ru:
25
25
  - четверг
26
26
  - пятница
27
27
  - суббота
28
- abbr_day_names:
28
+ standalone_abbr_day_names:
29
29
  - Вс
30
30
  - Пн
31
31
  - Вт
@@ -34,22 +34,23 @@ ru:
34
34
  - Пт
35
35
  - Сб
36
36
 
37
- month_names:
37
+ standalone_month_names:
38
38
  - ~
39
- - января
40
- - февраля
41
- - марта
42
- - апреля
43
- - мая
44
- - июня
45
- - июля
46
- - августа
47
- - сентября
48
- - октября
49
- - ноября
50
- - декабря
39
+ - Январь
40
+ - Февраль
41
+ - Март
42
+ - Апрель
43
+ - Май
44
+ - Июнь
45
+ - Июль
46
+ - Август
47
+ - Сентябрь
48
+ - Октябрь
49
+ - Ноябрь
50
+ - Декабрь
51
+
51
52
  # see russian gem for info on "standalone" day names
52
- abbr_month_names:
53
+ standalone_abbr_month_names:
53
54
  - ~
54
55
  - янв.
55
56
  - февр.
@@ -63,6 +64,22 @@ ru:
63
64
  - окт.
64
65
  - нояб.
65
66
  - дек.
67
+
68
+ common_month_names:
69
+ - ~
70
+ - января
71
+ - февраля
72
+ - марта
73
+ - апреля
74
+ - мая
75
+ - июня
76
+ - июля
77
+ - августа
78
+ - сентября
79
+ - октября
80
+ - ноября
81
+ - декабря
82
+
66
83
  order:
67
84
  - :day
68
85
  - :month
@@ -245,7 +245,7 @@ uk:
245
245
  short: "%d %b"
246
246
  long: "%d %B %Y"
247
247
 
248
- day_names:
248
+ standalone_day_names:
249
249
  - неділя
250
250
  - понеділок
251
251
  - вівторок
@@ -253,7 +253,7 @@ uk:
253
253
  - четвер
254
254
  - "п'ятниця"
255
255
  - субота
256
- abbr_day_names:
256
+ standalone_abbr_day_names:
257
257
  - нд.
258
258
  - пн.
259
259
  - вт.
@@ -263,7 +263,7 @@ uk:
263
263
  - сб.
264
264
 
265
265
  # Don't forget the nil at the beginning; there's no such thing as a 0th month
266
- month_names:
266
+ standalone_month_names:
267
267
  - ~
268
268
  - Січень
269
269
  - Лютий
@@ -277,7 +277,8 @@ uk:
277
277
  - Жовтень
278
278
  - Листопад
279
279
  - Грудень
280
- abbr_month_names:
280
+
281
+ standalone_abbr_month_names:
281
282
  - ~
282
283
  - січ.
283
284
  - лют.
@@ -291,6 +292,22 @@ uk:
291
292
  - жовт.
292
293
  - лист.
293
294
  - груд.
295
+
296
+ common_month_names:
297
+ - ~
298
+ - січня
299
+ - лютого
300
+ - березня
301
+ - квітня
302
+ - травня
303
+ - червня
304
+ - липня
305
+ - серпня
306
+ - вересня
307
+ - жовтня
308
+ - листопада
309
+ - грудня
310
+
294
311
  # Used in date_select and datime_select.
295
312
  order:
296
313
  - :day
data/lib/sunrise.rb CHANGED
@@ -43,6 +43,12 @@ module Sunrise
43
43
  autoload :FriendlyId, 'sunrise/hooks/friendly_id'
44
44
  end
45
45
 
46
+ # Regexp machers for context-based russian month names and day names translation
47
+ LOCALIZE_ABBR_MONTH_NAMES_MATCH = /(%[-\d]?d|%e)(.*)(%b)/
48
+ LOCALIZE_MONTH_NAMES_MATCH = /(%[-\d]?d|%e)(.*)(%B)/
49
+ LOCALIZE_STANDALONE_ABBR_DAY_NAMES_MATCH = /^%a/
50
+ LOCALIZE_STANDALONE_DAY_NAMES_MATCH = /^%A/
51
+
46
52
  def self.root_path
47
53
  @root_path ||= Pathname.new( File.dirname(File.expand_path('../', __FILE__)) )
48
54
  end
@@ -21,7 +21,8 @@ module Sunrise
21
21
  config.i18n.load_path += Dir[Sunrise.root_path.join('config/locales/**', '*.{rb,yml}')]
22
22
 
23
23
  initializer "sunrise.setup" do
24
- I18n.backend = Sunrise::Utils::I18nBackend.new
24
+ I18n::Backend::Simple.send(:include, I18n::Backend::Pluralization)
25
+ I18n::Backend::Simple.send(:include, I18n::Backend::Transliterator)
25
26
 
26
27
  ActiveSupport.on_load :active_record do
27
28
  ActiveRecord::Base.send :include, Sunrise::CarrierWave::Glue
@@ -102,6 +102,8 @@ module Sunrise
102
102
  def uploader_create(params, request = nil)
103
103
  if uploader_can?(:create, request)
104
104
  self.user = request.env['warden'].user
105
+ params[:assetable_type] = "Noname" if params[:assetable_type].blank?
106
+ params[:assetable_id] = 0 if params[:assetable_id].blank?
105
107
  super
106
108
  else
107
109
  errors.add(:id, :access_denied)
data/lib/sunrise/utils.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  module Sunrise
2
2
  module Utils
3
3
  autoload :Transliteration, 'sunrise/utils/transliteration'
4
- autoload :I18nBackend, 'sunrise/utils/i18n_backend'
5
4
  autoload :Mysql, 'sunrise/utils/mysql'
6
5
  autoload :EvalHelpers, 'sunrise/utils/eval_helpers'
7
6
  autoload :CsvDocument, 'sunrise/utils/csv_document'
@@ -1,3 +1,3 @@
1
1
  module Sunrise
2
- VERSION = "0.3.2".freeze
2
+ VERSION = "0.3.3".freeze
3
3
  end
@@ -289401,3 +289401,2763 @@ Completed 401 Unauthorized in 1ms
289401
289401
   (44.0ms) TRUNCATE TABLE `structures`;
289402
289402
   (44.0ms) TRUNCATE TABLE `users`;
289403
289403
   (0.2ms) SET FOREIGN_KEY_CHECKS = 1
289404
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
289405
+ Migrating to CreateAssets (20111216144515)
289406
+ Migrating to CreateRoles (20111216144815)
289407
+ Migrating to CreateStructures (20111216144915)
289408
+ Migrating to CreateUsers (20111216145015)
289409
+ Migrating to CreateSettings (20120611095315)
289410
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
289411
+ Migrating to InstallActsAsAudited (20111227111941)
289412
+ Migrating to CreatePageParts (20111227143901)
289413
+ Migrating to CreatePosts (20111228152051)
289414
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
289415
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
289416
+  (0.2ms) SELECT DATABASE() as db
289417
+  (0.8ms) select table_name from information_schema.views where table_schema = 'sunrise_dummy_test'
289418
+  (64.5ms) TRUNCATE TABLE `assets`;
289419
+  (55.0ms) TRUNCATE TABLE `audits`;
289420
+  (55.2ms) TRUNCATE TABLE `headers`;
289421
+  (55.0ms) TRUNCATE TABLE `page_parts`;
289422
+  (54.8ms) TRUNCATE TABLE `posts`;
289423
+  (99.3ms) TRUNCATE TABLE `roles`;
289424
+  (54.8ms) TRUNCATE TABLE `settings`;
289425
+  (55.1ms) TRUNCATE TABLE `structures`;
289426
+  (55.2ms) TRUNCATE TABLE `users`;
289427
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
289428
+  (0.1ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
289429
+ Migrating to CreateAssets (20111216144515)
289430
+ Migrating to CreateRoles (20111216144815)
289431
+ Migrating to CreateStructures (20111216144915)
289432
+ Migrating to CreateUsers (20111216145015)
289433
+ Migrating to CreateSettings (20120611095315)
289434
+  (0.1ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
289435
+ Migrating to InstallActsAsAudited (20111227111941)
289436
+ Migrating to CreatePageParts (20111227143901)
289437
+ Migrating to CreatePosts (20111228152051)
289438
+  (0.2ms) BEGIN
289439
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing1@example.com' LIMIT 1
289440
+ 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-26 14:52:26', '2012-06-26 14:52:26', NULL, NULL, 'testing1@example.com', '82b2e84cb7de9cec06e8ea9483ce7b93921e5347209cdf922d1e2f535090a084f9308aa0deb0b75a88b2b2146fec4650e685498942f4b37c74b230ee461dc120', 0, NULL, NULL, NULL, 'Admin', 'HjcR6wo3s2Pv3rj44tsp', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:26')
289441
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:26', 4, '2012-06-26 14:52:26', 1)
289442
+  (61.9ms) COMMIT
289443
+  (0.2ms) BEGIN
289444
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing2@example.com' LIMIT 1
289445
+ 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-26 14:52:26', '2012-06-26 14:52:26', NULL, NULL, 'testing2@example.com', 'bf7ba8fa1242a30dad63f1dcee40f3bceb2a138239b670ed3a8a95c320b41f69ceb9837746c2d5f470a487b901fce505d138dbb43ab87b428eced9c52c288f58', 0, NULL, NULL, NULL, 'Test', 'sbYRMg3LMkqdsN5wtaKL', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:26')
289446
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:26', 1, '2012-06-26 14:52:26', 2)
289447
+  (55.1ms) COMMIT
289448
+  (0.1ms) BEGIN
289449
+ Structure Load (69.0ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
289450
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
289451
+ 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-26 14:52:26', 0, 1, 1, 1, NULL, 2, NULL, 2, 'structure', 'Structure', '2012-06-26 14:52:26')
289452
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
289453
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
289454
+  (74.0ms) COMMIT
289455
+  (0.2ms) BEGIN
289456
+ SQL (0.3ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2012-06-26 14:52:26', 1, 1, 'Default title', '2012-06-26 14:52:26')
289457
+  (37.9ms) COMMIT
289458
+  (0.1ms) BEGIN
289459
+  (20.7ms) SELECT MAX(`audits`.`version`) AS max_id FROM `audits` WHERE `audits`.`auditable_id` = 1 AND `audits`.`auditable_type` = 'Post'
289460
+ SQL (0.3ms) 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-26 14:52:26', NULL, 2, 'User', NULL, 1)
289461
+  (50.1ms) COMMIT
289462
+
289463
+
289464
+ Started GET "/manage/" for 127.0.0.1 at 2012-06-26 17:52:27 +0300
289465
+  (0.2ms) BEGIN
289466
+  (0.1ms) COMMIT
289467
+  (0.1ms) BEGIN
289468
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-26 14:52:27', `current_sign_in_at` = '2012-06-26 14:52:27', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-26 14:52:27' WHERE `users`.`id` = 1
289469
+  (44.0ms) COMMIT
289470
+ Processing by Sunrise::DashboardController#index as HTML
289471
+ Role Load (0.6ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289472
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289473
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289474
+ Audited::Adapters::ActiveRecord::Audit Load (0.5ms) SELECT `audits`.* FROM `audits` ORDER BY version LIMIT 50 OFFSET 0
289475
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` IN (2)
289476
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_event.html.erb (3.0ms)
289477
+  (19.9ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `audits` LIMIT 50 OFFSET 0) subquery_for_count 
289478
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/index.html.erb within layouts/sunrise/application (222.4ms)
289479
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (64.8ms)
289480
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (3.4ms)
289481
+ Completed 200 OK in 516ms (Views: 434.3ms | ActiveRecord: 21.6ms)
289482
+
289483
+
289484
+ Started GET "/manage/" for 127.0.0.1 at 2012-06-26 17:52:27 +0300
289485
+  (0.9ms) BEGIN
289486
+  (0.1ms) COMMIT
289487
+  (0.1ms) BEGIN
289488
+  (0.3ms) UPDATE `users` SET `current_sign_in_at` = '2012-06-26 14:52:27', `sign_in_count` = 2, `updated_at` = '2012-06-26 14:52:27' WHERE `users`.`id` = 1
289489
+  (60.3ms) COMMIT
289490
+ Processing by Sunrise::DashboardController#index as HTML
289491
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289492
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289493
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289494
+ Audited::Adapters::ActiveRecord::Audit Load (0.2ms) SELECT `audits`.* FROM `audits` ORDER BY version LIMIT 50 OFFSET 0
289495
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` IN (2)
289496
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_event.html.erb (2.2ms)
289497
+  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `audits` LIMIT 50 OFFSET 0) subquery_for_count
289498
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.7ms)
289499
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (0.9ms)
289500
+ Completed 200 OK in 21ms (Views: 13.4ms | ActiveRecord: 1.1ms)
289501
+
289502
+
289503
+ Started GET "/manage/" for 127.0.0.1 at 2012-06-26 17:52:28 +0300
289504
+ Processing by Sunrise::DashboardController#index as HTML
289505
+ Completed 401 Unauthorized in 0ms
289506
+
289507
+
289508
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-06-26 17:52:28 +0300
289509
+ Processing by Devise::SessionsController#new as HTML
289510
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/app/views/devise/shared/_links.erb (3.1ms)
289511
+ Completed 200 OK in 42ms (Views: 40.2ms | ActiveRecord: 0.0ms)
289512
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
289513
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
289514
+  (0.1ms) SELECT DATABASE() as db
289515
+  (0.9ms) select table_name from information_schema.views where table_schema = 'sunrise_dummy_test'
289516
+  (47.0ms) TRUNCATE TABLE `assets`;
289517
+  (44.0ms) TRUNCATE TABLE `audits`;
289518
+  (44.0ms) TRUNCATE TABLE `headers`;
289519
+  (44.0ms) TRUNCATE TABLE `page_parts`;
289520
+  (44.1ms) TRUNCATE TABLE `posts`;
289521
+  (43.9ms) TRUNCATE TABLE `roles`;
289522
+  (44.1ms) TRUNCATE TABLE `settings`;
289523
+  (44.1ms) TRUNCATE TABLE `structures`;
289524
+  (44.2ms) TRUNCATE TABLE `users`;
289525
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
289526
+  (0.1ms) BEGIN
289527
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing3@example.com' LIMIT 1
289528
+ 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-26 14:52:28', '2012-06-26 14:52:28', NULL, NULL, 'testing3@example.com', 'f36d071f858a41ad5f31206a2bab6986d6ac8480210c6aa3299fe2c292ba8f8f34adabef19d8f94a16cea5dccf2fbb60c249f804b97961440ff4dc979cc25c5d', 0, NULL, NULL, NULL, 'Admin', 'YT6Qyx9FY7pxwfHjtvzX', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:28')
289529
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:28', 4, '2012-06-26 14:52:28', 1)
289530
+  (42.0ms) COMMIT
289531
+  (0.1ms) BEGIN
289532
+ 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
289533
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
289534
+ 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-26 14:52:28', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-26 14:52:28')
289535
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
289536
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
289537
+  (37.2ms) COMMIT
289538
+  (0.1ms) BEGIN
289539
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
289540
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
289541
+ 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-26 14:52:28', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-26 14:52:28')
289542
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
289543
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
289544
+ 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`
289545
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
289546
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289547
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289548
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
289549
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289550
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
289551
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
289552
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289553
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289554
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
289555
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289556
+  (35.4ms) COMMIT
289557
+
289558
+
289559
+ Started GET "/manage/services.json" for 127.0.0.1 at 2012-06-26 17:52:28 +0300
289560
+  (0.1ms) BEGIN
289561
+  (0.1ms) COMMIT
289562
+  (0.0ms) BEGIN
289563
+  (0.3ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-26 14:52:28', `current_sign_in_at` = '2012-06-26 14:52:28', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-26 14:52:28' WHERE `users`.`id` = 1
289564
+  (38.3ms) COMMIT
289565
+ Processing by Sunrise::SharedController#services as JSON
289566
+ Role Load (0.5ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289567
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289568
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289569
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE `structures`.`depth` = 1
289570
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`depth` = 1
289571
+ Completed 200 OK in 23ms (Views: 13.1ms | ActiveRecord: 1.2ms)
289572
+
289573
+
289574
+ Started GET "/manage/services.json" for 127.0.0.1 at 2012-06-26 17:52:28 +0300
289575
+ Processing by Sunrise::SharedController#services as JSON
289576
+ Completed 401 Unauthorized in 0ms
289577
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
289578
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
289579
+  (70.1ms) TRUNCATE TABLE `assets`;
289580
+  (44.0ms) TRUNCATE TABLE `audits`;
289581
+  (55.0ms) TRUNCATE TABLE `headers`;
289582
+  (77.4ms) TRUNCATE TABLE `page_parts`;
289583
+  (207.2ms) TRUNCATE TABLE `posts`;
289584
+  (355.5ms) TRUNCATE TABLE `roles`;
289585
+  (55.0ms) TRUNCATE TABLE `settings`;
289586
+  (55.2ms) TRUNCATE TABLE `structures`;
289587
+  (54.9ms) TRUNCATE TABLE `users`;
289588
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
289589
+  (0.1ms) BEGIN
289590
+ User Exists (0.3ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing4@example.com' LIMIT 1
289591
+ 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-26 14:52:29', '2012-06-26 14:52:29', NULL, NULL, 'testing4@example.com', '0009c479e1cf8ab71b824dc5abaa3bc906f2d00af14aacc3d9dcdeb026ac7620d0e7045ec6579df297491c11845d609133c15d363aa61a7bd398c20fedbbd730', 0, NULL, NULL, NULL, 'Admin', 'fVpdjjszJBRKqzdp1K81', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:29')
289592
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:29', 4, '2012-06-26 14:52:29', 1)
289593
+  (78.7ms) COMMIT
289594
+  (0.1ms) BEGIN
289595
+ 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
289596
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
289597
+ 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-26 14:52:29', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-26 14:52:29')
289598
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
289599
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
289600
+  (104.1ms) COMMIT
289601
+  (0.2ms) BEGIN
289602
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
289603
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
289604
+ 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-26 14:52:29', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-26 14:52:29')
289605
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
289606
+ Structure Load (0.1ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
289607
+ 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`
289608
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
289609
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289610
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289611
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
289612
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289613
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
289614
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
289615
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289616
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289617
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
289618
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289619
+  (62.9ms) COMMIT
289620
+  (0.2ms) BEGIN
289621
+ SQL (0.2ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2012-06-26 14:52:29', 1, 2, 'Default title', '2012-06-26 14:52:29')
289622
+  (40.4ms) COMMIT
289623
+
289624
+
289625
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-26 17:52:30 +0300
289626
+  (0.2ms) BEGIN
289627
+  (0.2ms) COMMIT
289628
+  (0.1ms) BEGIN
289629
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-26 14:52:30', `current_sign_in_at` = '2012-06-26 14:52:30', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-26 14:52:30' WHERE `users`.`id` = 1
289630
+  (46.1ms) COMMIT
289631
+ Processing by Sunrise::ManagerController#index as HTML
289632
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
289633
+ Role Load (0.4ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289634
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289635
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289636
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
289637
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289638
+ Post Load (0.6ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
289639
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (63.7ms)
289640
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
289641
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
289642
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.8ms)
289643
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
289644
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (486.3ms)
289645
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (518.8ms)
289646
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (3.6ms)
289647
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (548.4ms)
289648
+ Completed 200 OK in 701ms (Views: 669.8ms | ActiveRecord: 2.1ms)
289649
+  (0.1ms) BEGIN
289650
+ SQL (0.4ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2012-06-26 14:52:30', 1, 2, 'Aimbulance', '2012-06-26 14:52:30')
289651
+  (53.3ms) COMMIT
289652
+
289653
+
289654
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-26 17:52:30 +0300
289655
+  (0.1ms) BEGIN
289656
+  (0.1ms) COMMIT
289657
+  (0.1ms) BEGIN
289658
+  (0.3ms) UPDATE `users` SET `current_sign_in_at` = '2012-06-26 14:52:30', `sign_in_count` = 2, `updated_at` = '2012-06-26 14:52:30' WHERE `users`.`id` = 1
289659
+  (37.2ms) COMMIT
289660
+ Processing by Sunrise::ManagerController#index as HTML
289661
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
289662
+ Role Load (0.3ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289663
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289664
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289665
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
289666
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289667
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
289668
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (6.3ms)
289669
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
289670
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.9ms)
289671
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
289672
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
289673
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (66.6ms)
289674
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (70.0ms)
289675
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (2.3ms)
289676
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (72.8ms)
289677
+ Completed 200 OK in 97ms (Views: 88.1ms | ActiveRecord: 1.6ms)
289678
+
289679
+
289680
+ 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-26 17:52:31 +0300
289681
+ Processing by Sunrise::ManagerController#index as HTML
289682
+ Parameters: {"utf8"=>"✓", "parent_id"=>"2", "parent_type"=>"Structure", "search"=>{"title"=>"Aimbulance", "structure_id"=>""}, "commit"=>"Search", "model_name"=>"posts"}
289683
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
289684
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289685
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289686
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289687
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
289688
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289689
+ Post Load (0.4ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`title` = 'Aimbulance' AND `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
289690
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (3.1ms)
289691
+  (0.5ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`title` = 'Aimbulance' AND `posts`.`structure_id` = 2
289692
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
289693
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
289694
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
289695
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.9ms)
289696
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.8ms)
289697
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (2.2ms)
289698
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (13.5ms)
289699
+ Completed 200 OK in 35ms (Views: 26.5ms | ActiveRecord: 1.8ms)
289700
+
289701
+
289702
+ Started GET "/manage/posts?parent_id=1&parent_type=Structure" for 127.0.0.1 at 2012-06-26 17:52:31 +0300
289703
+  (0.1ms) BEGIN
289704
+  (0.1ms) COMMIT
289705
+  (0.1ms) BEGIN
289706
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-26 14:52:30', `current_sign_in_at` = '2012-06-26 14:52:31', `sign_in_count` = 3, `updated_at` = '2012-06-26 14:52:31' WHERE `users`.`id` = 1
289707
+  (38.4ms) COMMIT
289708
+ Processing by Sunrise::ManagerController#index as HTML
289709
+ Parameters: {"parent_id"=>"1", "parent_type"=>"Structure", "model_name"=>"posts"}
289710
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289711
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289712
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289713
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '1' LIMIT 1
289714
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
289715
+ Post Load (0.2ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 1 LIMIT 25 OFFSET 0
289716
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (0.0ms)
289717
+  (0.2ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 1
289718
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.9ms)
289719
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
289720
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
289721
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (3.4ms)
289722
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (6.6ms)
289723
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (2.1ms)
289724
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (9.0ms)
289725
+ Completed 200 OK in 26ms (Views: 18.6ms | ActiveRecord: 1.2ms)
289726
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
289727
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
289728
+  (42.0ms) TRUNCATE TABLE `assets`;
289729
+  (43.9ms) TRUNCATE TABLE `audits`;
289730
+  (44.0ms) TRUNCATE TABLE `headers`;
289731
+  (44.2ms) TRUNCATE TABLE `page_parts`;
289732
+  (43.9ms) TRUNCATE TABLE `posts`;
289733
+  (44.0ms) TRUNCATE TABLE `roles`;
289734
+  (44.1ms) TRUNCATE TABLE `settings`;
289735
+  (43.9ms) TRUNCATE TABLE `structures`;
289736
+  (43.9ms) TRUNCATE TABLE `users`;
289737
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
289738
+  (0.1ms) BEGIN
289739
+ User Exists (0.3ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing5@example.com' LIMIT 1
289740
+ 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-26 14:52:31', '2012-06-26 14:52:31', NULL, NULL, 'testing5@example.com', '4e94430034b127ebafcfacebc732520e125b057fbb3ebaed556f8aa58d274bdbd9ab4ce537659c0d85ddf1fd9b4a9319de7e6159cdf25a13406d46fadae46ce7', 0, NULL, NULL, NULL, 'Admin', 'a5donczoGonKLXHfp7nN', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:31')
289741
+ SQL (0.1ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:31', 4, '2012-06-26 14:52:31', 1)
289742
+  (36.9ms) COMMIT
289743
+  (0.1ms) BEGIN
289744
+ 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
289745
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
289746
+ 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-26 14:52:31', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-26 14:52:31')
289747
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
289748
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
289749
+  (91.1ms) COMMIT
289750
+  (0.1ms) BEGIN
289751
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
289752
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
289753
+ 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-26 14:52:31', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-26 14:52:31')
289754
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
289755
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
289756
+ 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`
289757
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
289758
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289759
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289760
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
289761
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289762
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
289763
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
289764
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289765
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289766
+ SQL (0.1ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
289767
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289768
+  (50.4ms) COMMIT
289769
+
289770
+
289771
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-26 17:52:31 +0300
289772
+  (0.2ms) BEGIN
289773
+  (0.1ms) COMMIT
289774
+  (0.1ms) BEGIN
289775
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-26 14:52:31', `current_sign_in_at` = '2012-06-26 14:52:31', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-26 14:52:31' WHERE `users`.`id` = 1
289776
+  (43.3ms) COMMIT
289777
+ Processing by Sunrise::ManagerController#new as HTML
289778
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
289779
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
289780
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289781
+ Role Load (0.3ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289782
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289783
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289784
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
289785
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (76.9ms)
289786
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (86.1ms)
289787
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.1ms)
289788
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.9ms)
289789
+ Completed 200 OK in 133ms (Views: 111.8ms | ActiveRecord: 0.9ms)
289790
+
289791
+
289792
+ Started POST "/manage/posts/new" for 127.0.0.1 at 2012-06-26 17:52:31 +0300
289793
+ Processing by Sunrise::ManagerController#create as HTML
289794
+ 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"}
289795
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
289796
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
289797
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289798
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289799
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289800
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289801
+ Role Load (0.3ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
289802
+  (0.0ms) BEGIN
289803
+ SQL (0.2ms) 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-26 14:52:31', 1, 2, 'Aimbulance', '2012-06-26 14:52:31')
289804
+  (52.4ms) COMMIT
289805
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
289806
+ Completed 302 Found in 145ms (ActiveRecord: 0.0ms)
289807
+
289808
+
289809
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-26 17:52:32 +0300
289810
+ Processing by Sunrise::ManagerController#index as HTML
289811
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
289812
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
289813
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289814
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289815
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289816
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
289817
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289818
+ Post Load (0.4ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
289819
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (3.1ms)
289820
+  (0.3ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
289821
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.9ms)
289822
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
289823
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
289824
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.1ms)
289825
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (9.7ms)
289826
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (2.8ms)
289827
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (13.0ms)
289828
+ Completed 200 OK in 31ms (Views: 24.3ms | ActiveRecord: 1.1ms)
289829
+ Post Load (0.4ms) SELECT `posts`.* FROM `posts` ORDER BY `posts`.`id` DESC LIMIT 1
289830
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289831
+
289832
+
289833
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-26 17:52:32 +0300
289834
+  (0.2ms) BEGIN
289835
+  (0.1ms) COMMIT
289836
+  (0.1ms) BEGIN
289837
+  (0.3ms) UPDATE `users` SET `current_sign_in_at` = '2012-06-26 14:52:32', `sign_in_count` = 2, `updated_at` = '2012-06-26 14:52:32' WHERE `users`.`id` = 1
289838
+  (53.8ms) COMMIT
289839
+ Processing by Sunrise::ManagerController#new as HTML
289840
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
289841
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
289842
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289843
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289844
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289845
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289846
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
289847
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (5.5ms)
289848
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (8.2ms)
289849
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
289850
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.5ms)
289851
+ Completed 200 OK in 21ms (Views: 15.7ms | ActiveRecord: 0.4ms)
289852
+
289853
+
289854
+ Started POST "/manage/posts/new" for 127.0.0.1 at 2012-06-26 17:52:32 +0300
289855
+ Processing by Sunrise::ManagerController#create as HTML
289856
+ 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"}
289857
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
289858
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
289859
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289860
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289861
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289862
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289863
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
289864
+  (0.1ms) BEGIN
289865
+ SQL (0.3ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long text', '2012-06-26 14:52:32', 1, 2, 'Aimbulance', '2012-06-26 14:52:32')
289866
+  (39.4ms) COMMIT
289867
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
289868
+ Completed 302 Found in 53ms (ActiveRecord: 0.0ms)
289869
+
289870
+
289871
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-26 17:52:32 +0300
289872
+ Processing by Sunrise::ManagerController#index as HTML
289873
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
289874
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
289875
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289876
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289877
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289878
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
289879
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289880
+ Post Load (0.4ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
289881
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (5.4ms)
289882
+  (0.4ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
289883
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.8ms)
289884
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
289885
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
289886
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (3.9ms)
289887
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (8.2ms)
289888
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (2.2ms)
289889
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (10.9ms)
289890
+ Completed 200 OK in 31ms (Views: 24.4ms | ActiveRecord: 1.2ms)
289891
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` ORDER BY `posts`.`id` DESC LIMIT 1
289892
+
289893
+
289894
+ Started GET "/manage/posts/new" for 127.0.0.1 at 2012-06-26 17:52:32 +0300
289895
+ Processing by Sunrise::ManagerController#new as HTML
289896
+ Parameters: {"model_name"=>"posts"}
289897
+ Completed 401 Unauthorized in 0ms
289898
+
289899
+
289900
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-06-26 17:52:32 +0300
289901
+ Processing by Devise::SessionsController#new as HTML
289902
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/app/views/devise/shared/_links.erb (1.9ms)
289903
+ Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms)
289904
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
289905
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
289906
+  (44.3ms) TRUNCATE TABLE `assets`;
289907
+  (44.0ms) TRUNCATE TABLE `audits`;
289908
+  (44.0ms) TRUNCATE TABLE `headers`;
289909
+  (44.1ms) TRUNCATE TABLE `page_parts`;
289910
+  (44.1ms) TRUNCATE TABLE `posts`;
289911
+  (44.1ms) TRUNCATE TABLE `roles`;
289912
+  (44.0ms) TRUNCATE TABLE `settings`;
289913
+  (44.1ms) TRUNCATE TABLE `structures`;
289914
+  (55.0ms) TRUNCATE TABLE `users`;
289915
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
289916
+  (0.1ms) BEGIN
289917
+ User Exists (0.3ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing6@example.com' LIMIT 1
289918
+ 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-26 14:52:32', '2012-06-26 14:52:32', NULL, NULL, 'testing6@example.com', '2ef3ebde31b33c1757abb50158a1b7f3aeac80dcc00847e06999fa0ecab466f8de87d04a91253833ea8bd89b2f344096355171aaad86992d5f3ddc467a72996b', 0, NULL, NULL, NULL, 'Admin', 'gzz2DoZJqc3UkibHqT4u', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:32')
289919
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:32', 4, '2012-06-26 14:52:32', 1)
289920
+  (48.0ms) COMMIT
289921
+  (0.1ms) BEGIN
289922
+ 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
289923
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
289924
+ 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-26 14:52:33', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-26 14:52:33')
289925
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
289926
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
289927
+  (47.1ms) COMMIT
289928
+  (0.1ms) BEGIN
289929
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
289930
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
289931
+ 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-26 14:52:33', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-26 14:52:33')
289932
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
289933
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
289934
+ 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`
289935
+ Structure Load (0.1ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
289936
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289937
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289938
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
289939
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289940
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
289941
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
289942
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289943
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289944
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
289945
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
289946
+  (47.0ms) COMMIT
289947
+  (0.1ms) BEGIN
289948
+ SQL (0.2ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2012-06-26 14:52:33', 1, 2, 'Default title', '2012-06-26 14:52:33')
289949
+  (52.1ms) COMMIT
289950
+
289951
+
289952
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-26 17:52:33 +0300
289953
+  (0.1ms) BEGIN
289954
+  (0.1ms) COMMIT
289955
+  (0.0ms) BEGIN
289956
+  (0.3ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-26 14:52:33', `current_sign_in_at` = '2012-06-26 14:52:33', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-26 14:52:33' WHERE `users`.`id` = 1
289957
+  (49.2ms) COMMIT
289958
+ Processing by Sunrise::ManagerController#index as HTML
289959
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
289960
+ Role Load (0.5ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289961
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289962
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289963
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
289964
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289965
+ Post Load (0.3ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
289966
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (4.2ms)
289967
+  (0.3ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
289968
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.7ms)
289969
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
289970
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
289971
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (3.3ms)
289972
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (6.4ms)
289973
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (2.0ms)
289974
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (8.8ms)
289975
+ Completed 200 OK in 32ms (Views: 24.0ms | ActiveRecord: 1.7ms)
289976
+
289977
+
289978
+ Started DELETE "/manage/posts/1/delete?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-26 17:52:33 +0300
289979
+ Processing by Sunrise::ManagerController#destroy as HTML
289980
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
289981
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
289982
+ Post Load (0.3ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
289983
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289984
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289985
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
289986
+  (0.1ms) BEGIN
289987
+ SQL (0.3ms) DELETE FROM `posts` WHERE `posts`.`id` = 1
289988
+  (74.0ms) COMMIT
289989
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
289990
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
289991
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
289992
+ Completed 302 Found in 93ms (ActiveRecord: 0.0ms)
289993
+
289994
+
289995
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-26 17:52:33 +0300
289996
+ Processing by Sunrise::ManagerController#index as HTML
289997
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
289998
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
289999
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290000
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290001
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290002
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
290003
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
290004
+ Post Load (0.3ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
290005
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (0.0ms)
290006
+  (0.2ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
290007
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (65.0ms)
290008
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
290009
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
290010
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (3.7ms)
290011
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (8.1ms)
290012
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (2.2ms)
290013
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (10.8ms)
290014
+ Completed 200 OK in 87ms (Views: 80.7ms | ActiveRecord: 1.1ms)
290015
+ Post Load (0.4ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
290016
+
290017
+
290018
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-26 17:52:33 +0300
290019
+ Processing by Sunrise::ManagerController#index as HTML
290020
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
290021
+ Completed 401 Unauthorized in 0ms
290022
+
290023
+
290024
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-06-26 17:52:33 +0300
290025
+ Processing by Devise::SessionsController#new as HTML
290026
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/app/views/devise/shared/_links.erb (0.7ms)
290027
+ Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.0ms)
290028
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
290029
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
290030
+  (55.4ms) TRUNCATE TABLE `assets`;
290031
+  (55.1ms) TRUNCATE TABLE `audits`;
290032
+  (55.1ms) TRUNCATE TABLE `headers`;
290033
+  (54.9ms) TRUNCATE TABLE `page_parts`;
290034
+  (55.0ms) TRUNCATE TABLE `posts`;
290035
+  (55.4ms) TRUNCATE TABLE `roles`;
290036
+  (55.0ms) TRUNCATE TABLE `settings`;
290037
+  (55.0ms) TRUNCATE TABLE `structures`;
290038
+  (66.2ms) TRUNCATE TABLE `users`;
290039
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
290040
+  (0.1ms) BEGIN
290041
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing7@example.com' LIMIT 1
290042
+ 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-26 14:52:34', '2012-06-26 14:52:34', NULL, NULL, 'testing7@example.com', '1d9387a0e263e53c24daf8b5ee51bb7409056b5576db96d0bdc6fae647ec60bc2e6c79881a8d6c6fdd0b9bd41e4a5d5b31bdabbeeb869aa06610a21a93284aaa', 0, NULL, NULL, NULL, 'Admin', 'DYf73cp233b71tGEm3px', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:34')
290043
+ SQL (0.1ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:34', 4, '2012-06-26 14:52:34', 1)
290044
+  (111.9ms) COMMIT
290045
+  (0.2ms) BEGIN
290046
+ 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
290047
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
290048
+ 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-26 14:52:34', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-26 14:52:34')
290049
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
290050
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
290051
+  (48.6ms) COMMIT
290052
+  (0.1ms) BEGIN
290053
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
290054
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
290055
+ 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-26 14:52:34', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-26 14:52:34')
290056
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
290057
+ Structure Load (0.1ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
290058
+ 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`
290059
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
290060
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
290061
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
290062
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
290063
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
290064
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
290065
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
290066
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
290067
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
290068
+ SQL (0.1ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
290069
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
290070
+  (67.4ms) COMMIT
290071
+  (0.1ms) BEGIN
290072
+ SQL (0.2ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2012-06-26 14:52:34', 1, 2, 'Default title', '2012-06-26 14:52:34')
290073
+  (97.9ms) COMMIT
290074
+
290075
+
290076
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-26 17:52:34 +0300
290077
+  (0.2ms) BEGIN
290078
+  (0.1ms) COMMIT
290079
+  (0.1ms) BEGIN
290080
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-26 14:52:34', `current_sign_in_at` = '2012-06-26 14:52:34', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-26 14:52:34' WHERE `users`.`id` = 1
290081
+  (80.5ms) COMMIT
290082
+ Processing by Sunrise::ManagerController#edit as HTML
290083
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
290084
+ Post Load (0.5ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
290085
+ Role Load (0.3ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290086
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290087
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290088
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
290089
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.3ms)
290090
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (10.3ms)
290091
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.7ms)
290092
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.8ms)
290093
+ Completed 200 OK in 46ms (Views: 19.7ms | ActiveRecord: 0.8ms)
290094
+
290095
+
290096
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-26 17:52:34 +0300
290097
+  (0.2ms) BEGIN
290098
+  (0.1ms) COMMIT
290099
+  (0.1ms) BEGIN
290100
+  (0.4ms) UPDATE `users` SET `current_sign_in_at` = '2012-06-26 14:52:34', `sign_in_count` = 2, `updated_at` = '2012-06-26 14:52:34' WHERE `users`.`id` = 1
290101
+  (59.7ms) COMMIT
290102
+ Processing by Sunrise::ManagerController#edit as HTML
290103
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
290104
+ Post Load (0.1ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
290105
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290106
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290107
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290108
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
290109
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (4.2ms)
290110
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (6.4ms)
290111
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.7ms)
290112
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.3ms)
290113
+ Completed 200 OK in 16ms (Views: 11.8ms | ActiveRecord: 0.2ms)
290114
+
290115
+
290116
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-26 17:52:34 +0300
290117
+ Processing by Sunrise::ManagerController#edit as HTML
290118
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
290119
+ Completed 401 Unauthorized in 0ms
290120
+
290121
+
290122
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-06-26 17:52:34 +0300
290123
+ Processing by Devise::SessionsController#new as HTML
290124
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/app/views/devise/shared/_links.erb (0.7ms)
290125
+ Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms)
290126
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
290127
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
290128
+  (49.9ms) TRUNCATE TABLE `assets`;
290129
+  (55.1ms) TRUNCATE TABLE `audits`;
290130
+  (54.8ms) TRUNCATE TABLE `headers`;
290131
+  (55.2ms) TRUNCATE TABLE `page_parts`;
290132
+  (57.1ms) TRUNCATE TABLE `posts`;
290133
+  (44.0ms) TRUNCATE TABLE `roles`;
290134
+  (44.3ms) TRUNCATE TABLE `settings`;
290135
+  (44.0ms) TRUNCATE TABLE `structures`;
290136
+  (44.0ms) TRUNCATE TABLE `users`;
290137
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
290138
+  (0.1ms) BEGIN
290139
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing8@example.com' LIMIT 1
290140
+ SQL (0.2ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-26 14:52:35', '2012-06-26 14:52:35', NULL, NULL, 'testing8@example.com', '32d6bad7f9dfc03bef3c13043a1f91f230ed7caa1b47cf4f7c8828965854132487fd1a2b620a0f8a40a6c4920186ce42a4ea579f4205c270e5c334c787f76944', 0, NULL, NULL, NULL, 'Admin', 'SeKhXoqtdyney49M7sMA', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:35')
290141
+ SQL (0.1ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:35', 4, '2012-06-26 14:52:35', 1)
290142
+  (46.2ms) COMMIT
290143
+  (0.1ms) BEGIN
290144
+ 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
290145
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
290146
+ 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-26 14:52:35', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-26 14:52:35')
290147
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
290148
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
290149
+  (37.3ms) COMMIT
290150
+  (0.1ms) BEGIN
290151
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
290152
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
290153
+ 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-26 14:52:35', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-26 14:52:35')
290154
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
290155
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
290156
+ 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`
290157
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
290158
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
290159
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
290160
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
290161
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
290162
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
290163
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
290164
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
290165
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
290166
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
290167
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
290168
+  (38.5ms) COMMIT
290169
+
290170
+
290171
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-26 17:52:35 +0300
290172
+  (0.1ms) BEGIN
290173
+  (0.1ms) COMMIT
290174
+  (0.1ms) BEGIN
290175
+  (1.2ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-26 14:52:35', `current_sign_in_at` = '2012-06-26 14:52:35', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-26 14:52:35' WHERE `users`.`id` = 1
290176
+  (57.4ms) COMMIT
290177
+ Processing by Sunrise::ManagerController#new as HTML
290178
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
290179
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
290180
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
290181
+ Role Load (0.3ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290182
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290183
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290184
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
290185
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (5.6ms)
290186
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (8.4ms)
290187
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.7ms)
290188
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.3ms)
290189
+ Completed 200 OK in 21ms (Views: 14.3ms | ActiveRecord: 0.9ms)
290190
+
290191
+
290192
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-26 17:52:35 +0300
290193
+  (0.1ms) BEGIN
290194
+  (0.1ms) COMMIT
290195
+  (0.1ms) BEGIN
290196
+  (0.3ms) UPDATE `users` SET `current_sign_in_at` = '2012-06-26 14:52:35', `sign_in_count` = 2, `updated_at` = '2012-06-26 14:52:35' WHERE `users`.`id` = 1
290197
+  (44.8ms) COMMIT
290198
+ Processing by Sunrise::ManagerController#new as HTML
290199
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
290200
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
290201
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
290202
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290203
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290204
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290205
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
290206
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (3.9ms)
290207
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (5.9ms)
290208
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.8ms)
290209
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.3ms)
290210
+ Completed 200 OK in 16ms (Views: 11.3ms | ActiveRecord: 0.4ms)
290211
+
290212
+
290213
+ Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-26 17:52:35 +0300
290214
+  (0.1ms) BEGIN
290215
+  (0.1ms) COMMIT
290216
+  (0.1ms) BEGIN
290217
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-26 14:52:35', `current_sign_in_at` = '2012-06-26 14:52:35', `sign_in_count` = 3, `updated_at` = '2012-06-26 14:52:35' WHERE `users`.`id` = 1
290218
+  (80.7ms) COMMIT
290219
+ Processing by Sunrise::ManagerController#new as HTML
290220
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
290221
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
290222
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
290223
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290224
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290225
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290226
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
290227
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (4.1ms)
290228
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (6.1ms)
290229
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.1ms)
290230
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.3ms)
290231
+ Completed 200 OK in 18ms (Views: 12.2ms | ActiveRecord: 0.4ms)
290232
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
290233
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
290234
+  (39.1ms) TRUNCATE TABLE `assets`;
290235
+  (44.1ms) TRUNCATE TABLE `audits`;
290236
+  (44.0ms) TRUNCATE TABLE `headers`;
290237
+  (44.2ms) TRUNCATE TABLE `page_parts`;
290238
+  (43.8ms) TRUNCATE TABLE `posts`;
290239
+  (44.2ms) TRUNCATE TABLE `roles`;
290240
+  (43.9ms) TRUNCATE TABLE `settings`;
290241
+  (44.0ms) TRUNCATE TABLE `structures`;
290242
+  (44.1ms) TRUNCATE TABLE `users`;
290243
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
290244
+  (0.1ms) BEGIN
290245
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing9@example.com' LIMIT 1
290246
+ 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-26 14:52:35', '2012-06-26 14:52:35', NULL, NULL, 'testing9@example.com', 'b6ef2967b327f54afdc2f5370efbc1f93a660b696290ff93aacfbd53847de8f33a6c6fa565b841536c3a4ff8eb462ccf1604d42e061f0e765809b2250f625d2c', 0, NULL, NULL, NULL, 'Admin', 'SVCdmRPBNURsyGouCpfx', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:35')
290247
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:35', 4, '2012-06-26 14:52:35', 1)
290248
+  (46.3ms) COMMIT
290249
+  (0.1ms) BEGIN
290250
+ 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
290251
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
290252
+ 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-26 14:52:36', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-26 14:52:36')
290253
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
290254
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
290255
+  (38.1ms) COMMIT
290256
+  (0.1ms) BEGIN
290257
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
290258
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
290259
+ 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-26 14:52:36', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-26 14:52:36')
290260
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
290261
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
290262
+ 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`
290263
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
290264
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
290265
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
290266
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
290267
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
290268
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
290269
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
290270
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
290271
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
290272
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
290273
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
290274
+  (37.0ms) COMMIT
290275
+  (0.1ms) BEGIN
290276
+ SQL (0.3ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2012-06-26 14:52:36', 1, 2, 'Default title', '2012-06-26 14:52:36')
290277
+  (41.1ms) COMMIT
290278
+
290279
+
290280
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-26 17:52:36 +0300
290281
+  (0.1ms) BEGIN
290282
+  (0.1ms) COMMIT
290283
+  (0.1ms) BEGIN
290284
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-26 14:52:36', `current_sign_in_at` = '2012-06-26 14:52:36', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-26 14:52:36' WHERE `users`.`id` = 1
290285
+  (36.6ms) COMMIT
290286
+ Processing by Sunrise::ManagerController#edit as HTML
290287
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
290288
+ Post Load (0.4ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
290289
+ Role Load (0.5ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290290
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290291
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290292
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
290293
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (4.0ms)
290294
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (6.2ms)
290295
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.6ms)
290296
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.3ms)
290297
+ Completed 200 OK in 18ms (Views: 11.5ms | ActiveRecord: 0.9ms)
290298
+
290299
+
290300
+ Started PUT "/manage/posts/1/edit" for 127.0.0.1 at 2012-06-26 17:52:36 +0300
290301
+ Processing by Sunrise::ManagerController#update as HTML
290302
+ 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"}
290303
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
290304
+ Post Load (0.1ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
290305
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290306
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290307
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290308
+ Role Load (0.3ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
290309
+  (0.1ms) BEGIN
290310
+  (0.3ms) UPDATE `posts` SET `title` = 'Aimbulance updated', `content` = 'Tra la la', `is_visible` = 0, `updated_at` = '2012-06-26 14:52:36' WHERE `posts`.`id` = 1
290311
+  (64.2ms) COMMIT
290312
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
290313
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
290314
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
290315
+ Completed 302 Found in 85ms (ActiveRecord: 0.0ms)
290316
+
290317
+
290318
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-26 17:52:36 +0300
290319
+ Processing by Sunrise::ManagerController#index as HTML
290320
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
290321
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
290322
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290323
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290324
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290325
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
290326
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
290327
+ Post Load (0.4ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
290328
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (3.2ms)
290329
+  (0.4ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
290330
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.1ms)
290331
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
290332
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
290333
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.6ms)
290334
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (9.2ms)
290335
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (2.5ms)
290336
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (12.2ms)
290337
+ Completed 200 OK in 31ms (Views: 24.1ms | ActiveRecord: 1.5ms)
290338
+ Post Load (0.4ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
290339
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
290340
+
290341
+
290342
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-26 17:52:36 +0300
290343
+  (0.1ms) BEGIN
290344
+  (0.1ms) COMMIT
290345
+  (0.1ms) BEGIN
290346
+  (0.3ms) UPDATE `users` SET `current_sign_in_at` = '2012-06-26 14:52:36', `sign_in_count` = 2, `updated_at` = '2012-06-26 14:52:36' WHERE `users`.`id` = 1
290347
+  (183.4ms) COMMIT
290348
+ Processing by Sunrise::ManagerController#edit as HTML
290349
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
290350
+ Post Load (0.3ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
290351
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290352
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290353
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290354
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
290355
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (4.4ms)
290356
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (6.4ms)
290357
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.6ms)
290358
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.3ms)
290359
+ Completed 200 OK in 16ms (Views: 11.5ms | ActiveRecord: 0.4ms)
290360
+
290361
+
290362
+ Started PUT "/manage/posts/1/edit" for 127.0.0.1 at 2012-06-26 17:52:36 +0300
290363
+ Processing by Sunrise::ManagerController#update as HTML
290364
+ 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"}
290365
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
290366
+ Post Load (0.2ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
290367
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290368
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290369
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290370
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
290371
+  (0.1ms) BEGIN
290372
+  (0.2ms) COMMIT
290373
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
290374
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
290375
+ Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
290376
+ Completed 302 Found in 13ms (ActiveRecord: 0.0ms)
290377
+
290378
+
290379
+ Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-26 17:52:36 +0300
290380
+ Processing by Sunrise::ManagerController#index as HTML
290381
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
290382
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
290383
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290384
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290385
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290386
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
290387
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
290388
+ Post Load (0.1ms) SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
290389
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (2.8ms)
290390
+  (0.3ms) SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
290391
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.1ms)
290392
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
290393
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
290394
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (4.4ms)
290395
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (8.6ms)
290396
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (2.7ms)
290397
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (11.8ms)
290398
+ Completed 200 OK in 30ms (Views: 24.5ms | ActiveRecord: 0.7ms)
290399
+
290400
+
290401
+ Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2012-06-26 17:52:36 +0300
290402
+ Processing by Sunrise::ManagerController#edit as HTML
290403
+ Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
290404
+ Completed 401 Unauthorized in 0ms
290405
+
290406
+
290407
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-06-26 17:52:36 +0300
290408
+ Processing by Devise::SessionsController#new as HTML
290409
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/app/views/devise/shared/_links.erb (0.7ms)
290410
+ Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms)
290411
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
290412
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
290413
+  (152.2ms) TRUNCATE TABLE `assets`;
290414
+  (43.8ms) TRUNCATE TABLE `audits`;
290415
+  (44.1ms) TRUNCATE TABLE `headers`;
290416
+  (55.1ms) TRUNCATE TABLE `page_parts`;
290417
+  (110.5ms) TRUNCATE TABLE `posts`;
290418
+  (55.2ms) TRUNCATE TABLE `roles`;
290419
+  (54.8ms) TRUNCATE TABLE `settings`;
290420
+  (55.4ms) TRUNCATE TABLE `structures`;
290421
+  (88.2ms) TRUNCATE TABLE `users`;
290422
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
290423
+  (0.1ms) BEGIN
290424
+ User Exists (0.3ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing10@example.com' LIMIT 1
290425
+ 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-26 14:52:37', '2012-06-26 14:52:37', NULL, NULL, 'testing10@example.com', 'c56676bd0ecd593ec5ea4d17499a55df15ee5264233553ec493b1ee00cb5c78173e125d5721f30117ba8abdab8fe60386d382dea41926fa9616792098dcf529e', 0, NULL, NULL, NULL, 'Admin', 'Vd1mdEmAZyM77wNxeHEe', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:37')
290426
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:37', 4, '2012-06-26 14:52:37', 1)
290427
+  (113.9ms) COMMIT
290428
+  (0.1ms) BEGIN
290429
+ 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
290430
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
290431
+ 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-26 14:52:37', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-26 14:52:37')
290432
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
290433
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
290434
+  (105.3ms) COMMIT
290435
+  (0.1ms) BEGIN
290436
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
290437
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
290438
+ 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-26 14:52:37', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-26 14:52:37')
290439
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
290440
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
290441
+ 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`
290442
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
290443
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
290444
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
290445
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
290446
+  (64.8ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
290447
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
290448
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
290449
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
290450
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
290451
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
290452
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
290453
+  (60.6ms) COMMIT
290454
+
290455
+
290456
+ Started GET "/manage/" for 127.0.0.1 at 2012-06-26 17:52:37 +0300
290457
+  (0.2ms) BEGIN
290458
+  (0.1ms) COMMIT
290459
+  (0.1ms) BEGIN
290460
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-26 14:52:37', `current_sign_in_at` = '2012-06-26 14:52:37', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-26 14:52:37' WHERE `users`.`id` = 1
290461
+  (54.0ms) COMMIT
290462
+ Processing by Sunrise::DashboardController#index as HTML
290463
+ Role Load (0.4ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290464
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290465
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290466
+ Audited::Adapters::ActiveRecord::Audit Load (0.4ms) SELECT `audits`.* FROM `audits` ORDER BY version LIMIT 50 OFFSET 0
290467
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_event.html.erb (0.0ms)
290468
+  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `audits` LIMIT 50 OFFSET 0) subquery_for_count
290469
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.9ms)
290470
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (1.0ms)
290471
+ Completed 200 OK in 19ms (Views: 9.6ms | ActiveRecord: 1.1ms)
290472
+
290473
+
290474
+ Started GET "/manage/whatever" for 127.0.0.1 at 2012-06-26 17:52:37 +0300
290475
+  (0.2ms) BEGIN
290476
+  (0.1ms) COMMIT
290477
+  (0.1ms) BEGIN
290478
+  (0.4ms) UPDATE `users` SET `current_sign_in_at` = '2012-06-26 14:52:37', `sign_in_count` = 2, `updated_at` = '2012-06-26 14:52:37' WHERE `users`.`id` = 1
290479
+  (49.3ms) COMMIT
290480
+ Processing by Sunrise::ManagerController#index as HTML
290481
+ Parameters: {"model_name"=>"whatever"}
290482
+ Completed 500 Internal Server Error in 7ms
290483
+
290484
+
290485
+ Started GET "/manage/structures" for 127.0.0.1 at 2012-06-26 17:52:37 +0300
290486
+  (0.1ms) BEGIN
290487
+  (0.1ms) COMMIT
290488
+  (0.1ms) BEGIN
290489
+  (0.3ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-26 14:52:37', `current_sign_in_at` = '2012-06-26 14:52:37', `sign_in_count` = 3, `updated_at` = '2012-06-26 14:52:37' WHERE `users`.`id` = 1
290490
+  (55.3ms) COMMIT
290491
+ Processing by Sunrise::ManagerController#index as HTML
290492
+ Parameters: {"model_name"=>"structures"}
290493
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `lft`
290494
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 4) ORDER BY `lft`
290495
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290496
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290497
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290498
+ CACHE (0.0ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `lft`
290499
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
290500
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (1.4ms)
290501
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (6.3ms)
290502
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.7ms)
290503
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
290504
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.3ms)
290505
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (2.6ms)
290506
+ Completed 200 OK in 57ms (Views: 35.4ms | ActiveRecord: 1.8ms)
290507
+
290508
+
290509
+ Started GET "/manage/users" for 127.0.0.1 at 2012-06-26 17:52:38 +0300
290510
+  (0.1ms) BEGIN
290511
+  (0.1ms) COMMIT
290512
+  (0.1ms) BEGIN
290513
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-26 14:52:37', `current_sign_in_at` = '2012-06-26 14:52:38', `sign_in_count` = 4, `updated_at` = '2012-06-26 14:52:38' WHERE `users`.`id` = 1
290514
+  (56.9ms) COMMIT
290515
+ Processing by Sunrise::ManagerController#index as HTML
290516
+ Parameters: {"model_name"=>"users"}
290517
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290518
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290519
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290520
+ User Load (0.6ms) SELECT `users`.* FROM `users` LIMIT 25 OFFSET 0
290521
+ 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
290522
+ Rendered sunrise/manager/users/thumbs/_record.html.erb (3.1ms)
290523
+  (0.4ms) SELECT COUNT(*) FROM `users`
290524
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.1ms)
290525
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
290526
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
290527
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (8.5ms)
290528
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (16.8ms)
290529
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (2.1ms)
290530
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (19.4ms)
290531
+ Completed 200 OK in 174ms (Views: 158.1ms | ActiveRecord: 3.1ms)
290532
+
290533
+
290534
+ Started GET "/manage/pages" for 127.0.0.1 at 2012-06-26 17:52:38 +0300
290535
+  (0.1ms) BEGIN
290536
+  (0.2ms) COMMIT
290537
+  (0.2ms) BEGIN
290538
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-26 14:52:38', `current_sign_in_at` = '2012-06-26 14:52:38', `sign_in_count` = 5, `updated_at` = '2012-06-26 14:52:38' WHERE `users`.`id` = 1
290539
+  (90.7ms) COMMIT
290540
+ Processing by Sunrise::ManagerController#index as HTML
290541
+ Parameters: {"model_name"=>"pages"}
290542
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290543
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290544
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290545
+ Completed 500 Internal Server Error in 61ms
290546
+
290547
+
290548
+ Started GET "/manage/structures" for 127.0.0.1 at 2012-06-26 17:52:38 +0300
290549
+ Processing by Sunrise::ManagerController#index as HTML
290550
+ Parameters: {"model_name"=>"structures"}
290551
+ Completed 401 Unauthorized in 0ms
290552
+
290553
+
290554
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-06-26 17:52:38 +0300
290555
+ Processing by Devise::SessionsController#new as HTML
290556
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/app/views/devise/shared/_links.erb (0.8ms)
290557
+ Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms)
290558
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
290559
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
290560
+  (56.0ms) TRUNCATE TABLE `assets`;
290561
+  (54.8ms) TRUNCATE TABLE `audits`;
290562
+  (55.1ms) TRUNCATE TABLE `headers`;
290563
+  (54.9ms) TRUNCATE TABLE `page_parts`;
290564
+  (68.0ms) TRUNCATE TABLE `posts`;
290565
+  (44.0ms) TRUNCATE TABLE `roles`;
290566
+  (44.1ms) TRUNCATE TABLE `settings`;
290567
+  (44.1ms) TRUNCATE TABLE `structures`;
290568
+  (66.2ms) TRUNCATE TABLE `users`;
290569
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
290570
+  (0.1ms) BEGIN
290571
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing11@example.com' LIMIT 1
290572
+ 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-26 14:52:38', '2012-06-26 14:52:38', NULL, NULL, 'testing11@example.com', 'f09f31c9f6fb7472d50012c3de78c4761afe564c93627b8e7b257f8121e1672ba5ad3eedbf35d2f9ce7ce431ffc10a62c46310411809aa11cbae1f1c4a6255d5', 0, NULL, NULL, NULL, 'Admin', 'ZydURqB6yfsycRarDG7Y', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:38')
290573
+ SQL (0.1ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:38', 4, '2012-06-26 14:52:38', 1)
290574
+  (81.4ms) COMMIT
290575
+
290576
+
290577
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2012-06-26 17:52:39 +0300
290578
+  (0.2ms) BEGIN
290579
+  (0.1ms) COMMIT
290580
+  (0.1ms) BEGIN
290581
+  (0.6ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-26 14:52:39', `current_sign_in_at` = '2012-06-26 14:52:39', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-26 14:52:39' WHERE `users`.`id` = 1
290582
+  (58.4ms) COMMIT
290583
+ Processing by Sunrise::ManagerController#new as HTML
290584
+ Parameters: {"model_name"=>"structures"}
290585
+ Role Load (0.5ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290586
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290587
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290588
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
290589
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (18.9ms)
290590
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (21.2ms)
290591
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.7ms)
290592
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.4ms)
290593
+ Completed 200 OK in 34ms (Views: 26.8ms | ActiveRecord: 0.5ms)
290594
+
290595
+
290596
+ Started POST "/manage/structures/new" for 127.0.0.1 at 2012-06-26 17:52:39 +0300
290597
+ Processing by Sunrise::ManagerController#create as HTML
290598
+ 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"}
290599
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
290600
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290601
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290602
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290603
+ Role Load (0.3ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
290604
+  (0.1ms) BEGIN
290605
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'aimbulance' OR `slug` LIKE 'aimbulance--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
290606
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
290607
+ 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-26 14:52:39', 0, 1, 1, 1, NULL, 2, '', 2, 'aimbulance', 'Aimbulance', '2012-06-26 14:52:39')
290608
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
290609
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
290610
+  (55.5ms) COMMIT
290611
+ Redirected to http://www.example.com/manage/structures
290612
+ Completed 302 Found in 67ms (ActiveRecord: 0.0ms)
290613
+
290614
+
290615
+ Started GET "/manage/structures" for 127.0.0.1 at 2012-06-26 17:52:39 +0300
290616
+ Processing by Sunrise::ManagerController#index as HTML
290617
+ Parameters: {"model_name"=>"structures"}
290618
+ User Load (0.1ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
290619
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290620
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290621
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290622
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `lft`
290623
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (1.3ms)
290624
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.4ms)
290625
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
290626
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (1.8ms)
290627
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (2.1ms)
290628
+ Completed 200 OK in 13ms (Views: 8.8ms | ActiveRecord: 0.6ms)
290629
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `structures`.`id` DESC LIMIT 1
290630
+
290631
+
290632
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2012-06-26 17:52:39 +0300
290633
+ Processing by Sunrise::ManagerController#new as HTML
290634
+ Parameters: {"model_name"=>"structures"}
290635
+ Completed 401 Unauthorized in 0ms
290636
+
290637
+
290638
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-06-26 17:52:39 +0300
290639
+ Processing by Devise::SessionsController#new as HTML
290640
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/app/views/devise/shared/_links.erb (1.3ms)
290641
+ Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms)
290642
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
290643
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
290644
+  (56.2ms) TRUNCATE TABLE `assets`;
290645
+  (54.9ms) TRUNCATE TABLE `audits`;
290646
+  (44.2ms) TRUNCATE TABLE `headers`;
290647
+  (44.1ms) TRUNCATE TABLE `page_parts`;
290648
+  (44.0ms) TRUNCATE TABLE `posts`;
290649
+  (44.0ms) TRUNCATE TABLE `roles`;
290650
+  (44.0ms) TRUNCATE TABLE `settings`;
290651
+  (88.5ms) TRUNCATE TABLE `structures`;
290652
+  (43.9ms) TRUNCATE TABLE `users`;
290653
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
290654
+  (0.2ms) BEGIN
290655
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing12@example.com' LIMIT 1
290656
+ 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-26 14:52:39', '2012-06-26 14:52:39', NULL, NULL, 'testing12@example.com', '16c5d054e81cb978d9d01b7e5e6ca324475f6beb1be9766dbc1ad18586ec594b6789457e61a3c55170adf1b1e90868a6502f583b6590dddcbdb06f1b7c40fbb7', 0, NULL, NULL, NULL, 'Admin', 'ZyGDHSnD1BYgjwKKiJWC', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:39')
290657
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:39', 4, '2012-06-26 14:52:39', 1)
290658
+  (89.8ms) COMMIT
290659
+  (0.2ms) BEGIN
290660
+ 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
290661
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
290662
+ 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-26 14:52:39', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-26 14:52:39')
290663
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
290664
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
290665
+  (69.6ms) COMMIT
290666
+  (0.1ms) BEGIN
290667
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
290668
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
290669
+ 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-26 14:52:39', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-26 14:52:39')
290670
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
290671
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
290672
+ 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`
290673
+ Structure Load (0.4ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
290674
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
290675
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
290676
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
290677
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
290678
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
290679
+ Structure Load (0.1ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
290680
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
290681
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
290682
+ SQL (0.1ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
290683
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
290684
+  (36.9ms) COMMIT
290685
+
290686
+
290687
+ Started GET "/manage/users/export.xlsx" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
290688
+  (0.0ms) BEGIN
290689
+  (0.0ms) COMMIT
290690
+  (0.0ms) BEGIN
290691
+  (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
290692
+  (0.0ms) COMMIT
290693
+ Processing by Sunrise::ManagerController#export as XLSX
290694
+ Parameters: {"model_name"=>"users"}
290695
+ Role Load (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290696
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290697
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290698
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
290699
+ User Load (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000 OFFSET 0
290700
+ Sent data users_2012-01-01_16h00m00.xls (0.0ms)
290701
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
290702
+
290703
+
290704
+ Started GET "/manage/users/export.csv" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
290705
+  (0.0ms) BEGIN
290706
+  (0.0ms) COMMIT
290707
+  (0.0ms) BEGIN
290708
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 2 WHERE `users`.`id` = 1
290709
+  (0.0ms) COMMIT
290710
+ Processing by Sunrise::ManagerController#export as CSV
290711
+ Parameters: {"model_name"=>"users"}
290712
+ Role Load (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290713
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290714
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290715
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
290716
+ User Load (0.0ms) SELECT `users`.* FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000 OFFSET 0
290717
+ Sent data users_2012-01-01_16h00m00.csv (0.0ms)
290718
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
290719
+
290720
+
290721
+ Started GET "/manage/users/export.json" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
290722
+  (0.0ms) BEGIN
290723
+  (0.0ms) COMMIT
290724
+  (0.0ms) BEGIN
290725
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 3 WHERE `users`.`id` = 1
290726
+  (0.0ms) COMMIT
290727
+ Processing by Sunrise::ManagerController#export as JSON
290728
+ Parameters: {"model_name"=>"users"}
290729
+ Role Load (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290730
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290731
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290732
+ User Load (0.0ms) SELECT `users`.* FROM `users` LIMIT 25 OFFSET 0
290733
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
290734
+  (0.0ms) BEGIN
290735
+ 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')
290736
+  (0.0ms) COMMIT
290737
+
290738
+
290739
+ Started GET "/manage/posts/export.csv" for 127.0.0.1 at 2012-01-01 16:00:00 UTC
290740
+  (0.0ms) BEGIN
290741
+  (0.0ms) COMMIT
290742
+  (0.0ms) BEGIN
290743
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 4 WHERE `users`.`id` = 1
290744
+  (0.0ms) COMMIT
290745
+ Processing by Sunrise::ManagerController#export as CSV
290746
+ Parameters: {"model_name"=>"posts"}
290747
+ Role Load (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290748
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290749
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290750
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
290751
+ Post Load (0.0ms) SELECT `posts`.* FROM `posts` WHERE (`posts`.`id` >= 0) ORDER BY `posts`.`id` ASC LIMIT 1000 OFFSET 0
290752
+ Structure Load (0.0ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` IN (2)
290753
+ Sent data posts_2012-01-01_16h00m00.csv (0.0ms)
290754
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
290755
+
290756
+
290757
+ Started GET "/manage/structures/export.xlsx" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
290758
+  (0.0ms) BEGIN
290759
+  (0.0ms) COMMIT
290760
+  (0.0ms) BEGIN
290761
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 5 WHERE `users`.`id` = 1
290762
+  (0.0ms) COMMIT
290763
+ Processing by Sunrise::ManagerController#export as XLSX
290764
+ Parameters: {"model_name"=>"structures"}
290765
+ Role Load (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290766
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290767
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290768
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
290769
+ Structure Load (0.0ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`id` >= 0) ORDER BY `structures`.`id` ASC LIMIT 1000 OFFSET 0
290770
+ Sent data structures_2012-01-01_16h00m00.xls (0.0ms)
290771
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
290772
+
290773
+
290774
+ Started GET "/manage/structures/export.xml" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
290775
+  (0.0ms) BEGIN
290776
+  (0.0ms) COMMIT
290777
+  (0.0ms) BEGIN
290778
+  (0.0ms) UPDATE `users` SET `sign_in_count` = 6 WHERE `users`.`id` = 1
290779
+  (0.0ms) COMMIT
290780
+ Processing by Sunrise::ManagerController#export as XML
290781
+ Parameters: {"model_name"=>"structures"}
290782
+ Role Load (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290783
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290784
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290785
+ Structure Load (0.0ms) SELECT `structures`.* FROM `structures` LIMIT 25 OFFSET 0
290786
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
290787
+
290788
+
290789
+ Started GET "/manage/users/export.xlsx" for 127.0.0.1 at 2012-06-26 17:52:41 +0300
290790
+ Processing by Sunrise::ManagerController#export as XLSX
290791
+ Parameters: {"model_name"=>"users"}
290792
+ Completed 401 Unauthorized in 0ms
290793
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
290794
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
290795
+  (40.8ms) TRUNCATE TABLE `assets`;
290796
+  (155.3ms) TRUNCATE TABLE `audits`;
290797
+  (99.2ms) TRUNCATE TABLE `headers`;
290798
+  (309.0ms) TRUNCATE TABLE `page_parts`;
290799
+  (232.6ms) TRUNCATE TABLE `posts`;
290800
+  (55.0ms) TRUNCATE TABLE `roles`;
290801
+  (55.2ms) TRUNCATE TABLE `settings`;
290802
+  (55.1ms) TRUNCATE TABLE `structures`;
290803
+  (69.1ms) TRUNCATE TABLE `users`;
290804
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
290805
+  (0.1ms) BEGIN
290806
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing13@example.com' LIMIT 1
290807
+ 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-26 14:52:42', '2012-06-26 14:52:42', NULL, NULL, 'testing13@example.com', '95b3ac041121a0772148eedba0d3fcb8e5bca5e9a3c0393b335000eb65aa86f01831cf2941d4e25a8b0d9f45e97427d2f38f24165030ae1002d88c2192d2ecd4', 0, NULL, NULL, NULL, 'Admin', 'fxVqc5qNwxzbCu9yArgy', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:42')
290808
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:42', 4, '2012-06-26 14:52:42', 1)
290809
+  (62.7ms) COMMIT
290810
+  (0.2ms) BEGIN
290811
+ 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
290812
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
290813
+ 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-26 14:52:42', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-26 14:52:42')
290814
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
290815
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
290816
+  (55.1ms) COMMIT
290817
+  (0.1ms) BEGIN
290818
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
290819
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
290820
+ 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-26 14:52:42', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-26 14:52:42')
290821
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
290822
+ Structure Load (0.1ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
290823
+ 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`
290824
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
290825
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
290826
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
290827
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
290828
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
290829
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
290830
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
290831
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
290832
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
290833
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
290834
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
290835
+  (48.3ms) COMMIT
290836
+
290837
+
290838
+ Started GET "/manage/structures/2" for 127.0.0.1 at 2012-06-26 17:52:42 +0300
290839
+  (0.1ms) BEGIN
290840
+  (0.1ms) COMMIT
290841
+  (0.0ms) BEGIN
290842
+  (0.3ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-26 14:52:42', `current_sign_in_at` = '2012-06-26 14:52:42', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-26 14:52:42' WHERE `users`.`id` = 1
290843
+  (49.2ms) COMMIT
290844
+ Processing by Sunrise::ManagerController#show as HTML
290845
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
290846
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
290847
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
290848
+ Role Load (0.3ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290849
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290850
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290851
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.1ms)
290852
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
290853
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.2ms)
290854
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (2.5ms)
290855
+ Completed 200 OK in 95ms (Views: 67.5ms | ActiveRecord: 0.8ms)
290856
+
290857
+
290858
+ Started GET "/manage/structures/2" for 127.0.0.1 at 2012-06-26 17:52:42 +0300
290859
+  (0.2ms) BEGIN
290860
+  (0.1ms) COMMIT
290861
+  (0.1ms) BEGIN
290862
+  (0.4ms) UPDATE `users` SET `current_sign_in_at` = '2012-06-26 14:52:42', `sign_in_count` = 2, `updated_at` = '2012-06-26 14:52:42' WHERE `users`.`id` = 1
290863
+  (64.9ms) COMMIT
290864
+ Processing by Sunrise::ManagerController#show as HTML
290865
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
290866
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
290867
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
290868
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290869
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290870
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290871
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.3ms)
290872
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
290873
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (3.0ms)
290874
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.4ms)
290875
+ Completed 200 OK in 17ms (Views: 10.8ms | ActiveRecord: 0.5ms)
290876
+
290877
+
290878
+ Started GET "/manage/structures/2" for 127.0.0.1 at 2012-06-26 17:52:42 +0300
290879
+ Processing by Sunrise::ManagerController#show as HTML
290880
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
290881
+ Completed 401 Unauthorized in 0ms
290882
+
290883
+
290884
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-06-26 17:52:42 +0300
290885
+ Processing by Devise::SessionsController#new as HTML
290886
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/app/views/devise/shared/_links.erb (0.7ms)
290887
+ Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.0ms)
290888
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
290889
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
290890
+  (67.9ms) TRUNCATE TABLE `assets`;
290891
+  (55.1ms) TRUNCATE TABLE `audits`;
290892
+  (55.1ms) TRUNCATE TABLE `headers`;
290893
+  (55.2ms) TRUNCATE TABLE `page_parts`;
290894
+  (55.0ms) TRUNCATE TABLE `posts`;
290895
+  (99.3ms) TRUNCATE TABLE `roles`;
290896
+  (54.9ms) TRUNCATE TABLE `settings`;
290897
+  (54.9ms) TRUNCATE TABLE `structures`;
290898
+  (55.2ms) TRUNCATE TABLE `users`;
290899
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
290900
+  (0.1ms) BEGIN
290901
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing14@example.com' LIMIT 1
290902
+ 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-26 14:52:43', '2012-06-26 14:52:43', NULL, NULL, 'testing14@example.com', '32a113e8e287d20acf010305a53062685df39598c6e8050b2acf1fbae51d131e076117191e1b1722dca198445f1ff8af7ccf2e8cec5020271c80ec43567f415b', 0, NULL, NULL, NULL, 'Admin', 'j6XFAXPiwGCsLCzAaWYq', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:43')
290903
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:43', 4, '2012-06-26 14:52:43', 1)
290904
+  (47.3ms) COMMIT
290905
+  (0.1ms) BEGIN
290906
+ 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
290907
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
290908
+ 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-26 14:52:43', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-26 14:52:43')
290909
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
290910
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
290911
+  (35.7ms) COMMIT
290912
+  (0.1ms) BEGIN
290913
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
290914
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
290915
+ 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-26 14:52:43', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-26 14:52:43')
290916
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
290917
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
290918
+ 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`
290919
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
290920
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
290921
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
290922
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
290923
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
290924
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
290925
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
290926
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
290927
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
290928
+ SQL (0.1ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
290929
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
290930
+  (45.8ms) COMMIT
290931
+
290932
+
290933
+ Started GET "/manage/structures" for 127.0.0.1 at 2012-06-26 17:52:43 +0300
290934
+  (0.2ms) BEGIN
290935
+  (0.2ms) COMMIT
290936
+  (0.2ms) BEGIN
290937
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-26 14:52:43', `current_sign_in_at` = '2012-06-26 14:52:43', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-26 14:52:43' WHERE `users`.`id` = 1
290938
+  (41.9ms) COMMIT
290939
+ Processing by Sunrise::ManagerController#index as HTML
290940
+ Parameters: {"model_name"=>"structures"}
290941
+ Role Load (0.6ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290942
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290943
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290944
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `lft`
290945
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
290946
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (1.6ms)
290947
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (6.7ms)
290948
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.5ms)
290949
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
290950
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.6ms)
290951
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (2.9ms)
290952
+ Completed 200 OK in 25ms (Views: 18.4ms | ActiveRecord: 1.7ms)
290953
+
290954
+
290955
+ Started DELETE "/manage/structures/2/delete" for 127.0.0.1 at 2012-06-26 17:52:43 +0300
290956
+ Processing by Sunrise::ManagerController#destroy as HTML
290957
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
290958
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
290959
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
290960
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
290961
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290962
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290963
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290964
+  (0.1ms) BEGIN
290965
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
290966
+ Structure Load (0.2ms) SELECT id FROM `structures` WHERE (`lft` >= 2) FOR UPDATE
290967
+ SQL (0.2ms) DELETE FROM `structures` WHERE (`lft` > 2 AND `rgt` < 3)
290968
+ SQL (0.2ms) UPDATE `structures` SET `lft` = (`lft` - 2) WHERE (`lft` > 3) ORDER BY `lft`
290969
+ SQL (0.3ms) UPDATE `structures` SET `rgt` = (`rgt` - 2) WHERE (`rgt` > 3) ORDER BY `lft`
290970
+ PagePart Load (0.4ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
290971
+ SQL (0.2ms) DELETE FROM `posts` WHERE `posts`.`structure_id` = 2
290972
+ SQL (0.2ms) DELETE FROM `structures` WHERE `structures`.`id` = 2
290973
+  (36.5ms) COMMIT
290974
+ Redirected to http://www.example.com/manage/structures
290975
+ Completed 302 Found in 59ms (ActiveRecord: 0.0ms)
290976
+
290977
+
290978
+ Started GET "/manage/structures" for 127.0.0.1 at 2012-06-26 17:52:43 +0300
290979
+ Processing by Sunrise::ManagerController#index as HTML
290980
+ Parameters: {"model_name"=>"structures"}
290981
+ User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
290982
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290983
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290984
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
290985
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `lft`
290986
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (65.0ms)
290987
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.8ms)
290988
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
290989
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.0ms)
290990
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (2.2ms)
290991
+ Completed 200 OK in 79ms (Views: 73.7ms | ActiveRecord: 0.9ms)
290992
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
290993
+
290994
+
290995
+ Started GET "/manage/structures" for 127.0.0.1 at 2012-06-26 17:52:43 +0300
290996
+ Processing by Sunrise::ManagerController#index as HTML
290997
+ Parameters: {"model_name"=>"structures"}
290998
+ Completed 401 Unauthorized in 0ms
290999
+
291000
+
291001
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-06-26 17:52:43 +0300
291002
+ Processing by Devise::SessionsController#new as HTML
291003
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/app/views/devise/shared/_links.erb (0.8ms)
291004
+ Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms)
291005
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
291006
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
291007
+  (68.6ms) TRUNCATE TABLE `assets`;
291008
+  (98.6ms) TRUNCATE TABLE `audits`;
291009
+  (44.3ms) TRUNCATE TABLE `headers`;
291010
+  (43.8ms) TRUNCATE TABLE `page_parts`;
291011
+  (44.0ms) TRUNCATE TABLE `posts`;
291012
+  (44.4ms) TRUNCATE TABLE `roles`;
291013
+  (44.0ms) TRUNCATE TABLE `settings`;
291014
+  (88.3ms) TRUNCATE TABLE `structures`;
291015
+  (43.9ms) TRUNCATE TABLE `users`;
291016
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
291017
+  (0.1ms) BEGIN
291018
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing15@example.com' LIMIT 1
291019
+ 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-26 14:52:44', '2012-06-26 14:52:44', NULL, NULL, 'testing15@example.com', 'ab23f4e4dbaab656d3716abeeff2cec05e729daf4b32c48f1df23f5b2d475f42574d89353567bc40f29878eebb952cfb99dc1c330fe225492b748de5ef3e95df', 0, NULL, NULL, NULL, 'Admin', '2kiYSMvs1TDrz6qGyzXD', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:44')
291020
+ SQL (0.1ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:44', 4, '2012-06-26 14:52:44', 1)
291021
+  (35.2ms) COMMIT
291022
+  (0.1ms) BEGIN
291023
+ 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
291024
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
291025
+ 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-26 14:52:44', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-26 14:52:44')
291026
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
291027
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
291028
+  (49.4ms) COMMIT
291029
+  (0.1ms) BEGIN
291030
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
291031
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
291032
+ 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-26 14:52:44', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-26 14:52:44')
291033
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
291034
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
291035
+ 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`
291036
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
291037
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291038
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291039
+ SQL (0.1ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
291040
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291041
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
291042
+ Structure Load (0.1ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
291043
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291044
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291045
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
291046
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291047
+  (38.8ms) COMMIT
291048
+
291049
+
291050
+ Started GET "/manage/whatever/2/edit" for 127.0.0.1 at 2012-06-26 17:52:44 +0300
291051
+  (0.1ms) BEGIN
291052
+  (0.1ms) COMMIT
291053
+  (0.0ms) BEGIN
291054
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-26 14:52:44', `current_sign_in_at` = '2012-06-26 14:52:44', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-26 14:52:44' WHERE `users`.`id` = 1
291055
+  (43.4ms) COMMIT
291056
+ Processing by Sunrise::ManagerController#edit as HTML
291057
+ Parameters: {"model_name"=>"whatever", "id"=>"2"}
291058
+ Completed 500 Internal Server Error in 5ms
291059
+
291060
+
291061
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2012-06-26 17:52:44 +0300
291062
+  (0.1ms) BEGIN
291063
+  (0.1ms) COMMIT
291064
+  (0.0ms) BEGIN
291065
+  (0.3ms) UPDATE `users` SET `current_sign_in_at` = '2012-06-26 14:52:44', `sign_in_count` = 2, `updated_at` = '2012-06-26 14:52:44' WHERE `users`.`id` = 1
291066
+  (35.4ms) COMMIT
291067
+ Processing by Sunrise::ManagerController#edit as HTML
291068
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
291069
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
291070
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291071
+ Role Load (0.3ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291072
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291073
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291074
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
291075
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (12.7ms)
291076
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (15.5ms)
291077
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.7ms)
291078
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.3ms)
291079
+ Completed 200 OK in 28ms (Views: 21.3ms | ActiveRecord: 1.0ms)
291080
+
291081
+
291082
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2012-06-26 17:52:44 +0300
291083
+  (0.2ms) BEGIN
291084
+  (0.1ms) COMMIT
291085
+  (0.1ms) BEGIN
291086
+  (0.4ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-26 14:52:44', `current_sign_in_at` = '2012-06-26 14:52:44', `sign_in_count` = 3, `updated_at` = '2012-06-26 14:52:44' WHERE `users`.`id` = 1
291087
+  (44.7ms) COMMIT
291088
+ Processing by Sunrise::ManagerController#edit as HTML
291089
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
291090
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
291091
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291092
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291093
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291094
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291095
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
291096
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (9.0ms)
291097
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (11.3ms)
291098
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.7ms)
291099
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.3ms)
291100
+ Completed 200 OK in 21ms (Views: 16.7ms | ActiveRecord: 0.3ms)
291101
+
291102
+
291103
+ Started GET "/manage/pages/2/edit" for 127.0.0.1 at 2012-06-26 17:52:44 +0300
291104
+  (0.1ms) BEGIN
291105
+  (0.1ms) COMMIT
291106
+  (0.1ms) BEGIN
291107
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-26 14:52:44', `current_sign_in_at` = '2012-06-26 14:52:44', `sign_in_count` = 4, `updated_at` = '2012-06-26 14:52:44' WHERE `users`.`id` = 1
291108
+  (43.9ms) COMMIT
291109
+ Processing by Sunrise::ManagerController#edit as HTML
291110
+ Parameters: {"model_name"=>"pages", "id"=>"2"}
291111
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
291112
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291113
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291114
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291115
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291116
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
291117
+ PagePart Load (0.7ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
291118
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (84.7ms)
291119
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (87.2ms)
291120
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.7ms)
291121
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.3ms)
291122
+ Completed 200 OK in 97ms (Views: 91.9ms | ActiveRecord: 1.0ms)
291123
+
291124
+
291125
+ Started GET "/manage/pages/2/edit" for 127.0.0.1 at 2012-06-26 17:52:44 +0300
291126
+  (0.1ms) BEGIN
291127
+  (0.1ms) COMMIT
291128
+  (0.0ms) BEGIN
291129
+  (0.3ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-26 14:52:44', `current_sign_in_at` = '2012-06-26 14:52:44', `sign_in_count` = 5, `updated_at` = '2012-06-26 14:52:44' WHERE `users`.`id` = 1
291130
+  (54.8ms) COMMIT
291131
+ Processing by Sunrise::ManagerController#edit as HTML
291132
+ Parameters: {"model_name"=>"pages", "id"=>"2"}
291133
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
291134
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291135
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291136
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291137
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291138
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
291139
+ PagePart Load (0.2ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
291140
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (7.9ms)
291141
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (11.2ms)
291142
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (7.6ms)
291143
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.9ms)
291144
+ Completed 200 OK in 31ms (Views: 23.0ms | ActiveRecord: 0.8ms)
291145
+
291146
+
291147
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2012-06-26 17:52:44 +0300
291148
+ Processing by Sunrise::ManagerController#edit as HTML
291149
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
291150
+ Completed 401 Unauthorized in 0ms
291151
+
291152
+
291153
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-06-26 17:52:44 +0300
291154
+ Processing by Devise::SessionsController#new as HTML
291155
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/app/views/devise/shared/_links.erb (0.9ms)
291156
+ Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms)
291157
+  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS
291158
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
291159
+  (39.1ms) TRUNCATE TABLE `assets`;
291160
+  (44.2ms) TRUNCATE TABLE `audits`;
291161
+  (43.9ms) TRUNCATE TABLE `headers`;
291162
+  (44.0ms) TRUNCATE TABLE `page_parts`;
291163
+  (44.0ms) TRUNCATE TABLE `posts`;
291164
+  (43.9ms) TRUNCATE TABLE `roles`;
291165
+  (44.0ms) TRUNCATE TABLE `settings`;
291166
+  (44.0ms) TRUNCATE TABLE `structures`;
291167
+  (43.9ms) TRUNCATE TABLE `users`;
291168
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
291169
+  (0.2ms) BEGIN
291170
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing16@example.com' LIMIT 1
291171
+ 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-26 14:52:45', '2012-06-26 14:52:45', NULL, NULL, 'testing16@example.com', '10cd2b85fba92241026d4b2d8f44310be790ed0bfc8cfdbb6c4b0a3cace33cd432a0a2243618f9f5f81de521aee59d6b21bdfced70eeaf4d8031665f94e2cf2c', 0, NULL, NULL, NULL, 'Admin', 'puTX7i9mojdjHsXeVFVf', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:45')
291172
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:45', 4, '2012-06-26 14:52:45', 1)
291173
+  (44.9ms) COMMIT
291174
+
291175
+
291176
+ Started GET "/manage/whatever/new" for 127.0.0.1 at 2012-06-26 17:52:45 +0300
291177
+  (0.1ms) BEGIN
291178
+  (0.1ms) COMMIT
291179
+  (0.1ms) BEGIN
291180
+  (0.3ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-26 14:52:45', `current_sign_in_at` = '2012-06-26 14:52:45', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-26 14:52:45' WHERE `users`.`id` = 1
291181
+  (38.4ms) COMMIT
291182
+ Processing by Sunrise::ManagerController#new as HTML
291183
+ Parameters: {"model_name"=>"whatever"}
291184
+ Completed 500 Internal Server Error in 3ms
291185
+
291186
+
291187
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2012-06-26 17:52:45 +0300
291188
+  (0.1ms) BEGIN
291189
+  (0.1ms) COMMIT
291190
+  (0.1ms) BEGIN
291191
+  (0.4ms) UPDATE `users` SET `current_sign_in_at` = '2012-06-26 14:52:45', `sign_in_count` = 2, `updated_at` = '2012-06-26 14:52:45' WHERE `users`.`id` = 1
291192
+  (35.6ms) COMMIT
291193
+ Processing by Sunrise::ManagerController#new as HTML
291194
+ Parameters: {"model_name"=>"structures"}
291195
+ Role Load (0.6ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291196
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291197
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291198
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
291199
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (9.1ms)
291200
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (12.3ms)
291201
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.6ms)
291202
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.3ms)
291203
+ Completed 200 OK in 26ms (Views: 19.1ms | ActiveRecord: 0.6ms)
291204
+
291205
+
291206
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2012-06-26 17:52:45 +0300
291207
+  (0.1ms) BEGIN
291208
+  (0.1ms) COMMIT
291209
+  (0.0ms) BEGIN
291210
+  (0.3ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-26 14:52:45', `current_sign_in_at` = '2012-06-26 14:52:45', `sign_in_count` = 3, `updated_at` = '2012-06-26 14:52:45' WHERE `users`.`id` = 1
291211
+  (36.5ms) COMMIT
291212
+ Processing by Sunrise::ManagerController#new as HTML
291213
+ Parameters: {"model_name"=>"structures"}
291214
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291215
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291216
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291217
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
291218
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (75.5ms)
291219
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (78.3ms)
291220
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.1ms)
291221
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.3ms)
291222
+ Completed 200 OK in 89ms (Views: 85.0ms | ActiveRecord: 0.2ms)
291223
+
291224
+
291225
+ Started GET "/manage/structures/new" for 127.0.0.1 at 2012-06-26 17:52:45 +0300
291226
+ Processing by Sunrise::ManagerController#new as HTML
291227
+ Parameters: {"model_name"=>"structures"}
291228
+ Completed 401 Unauthorized in 0ms
291229
+
291230
+
291231
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-06-26 17:52:45 +0300
291232
+ Processing by Devise::SessionsController#new as HTML
291233
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/app/views/devise/shared/_links.erb (0.7ms)
291234
+ Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms)
291235
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
291236
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
291237
+  (42.2ms) TRUNCATE TABLE `assets`;
291238
+  (55.1ms) TRUNCATE TABLE `audits`;
291239
+  (101.2ms) TRUNCATE TABLE `headers`;
291240
+  (86.3ms) TRUNCATE TABLE `page_parts`;
291241
+  (55.2ms) TRUNCATE TABLE `posts`;
291242
+  (54.8ms) TRUNCATE TABLE `roles`;
291243
+  (55.2ms) TRUNCATE TABLE `settings`;
291244
+  (55.1ms) TRUNCATE TABLE `structures`;
291245
+  (55.2ms) TRUNCATE TABLE `users`;
291246
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
291247
+  (0.1ms) BEGIN
291248
+ User Exists (0.3ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing17@example.com' LIMIT 1
291249
+ 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-26 14:52:46', '2012-06-26 14:52:46', NULL, NULL, 'testing17@example.com', '9e5dc783e36ee652df66d195ac6563222e6d7ba7b72d337bae494ada235cef801fa915298294c6b7937f1dbf51a5c223aa796dd6c546be5f51dd9698714a4fe1', 0, NULL, NULL, NULL, 'Admin', '6gPPyZBeGLdSMQSzBpGi', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:46')
291250
+ SQL (0.1ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:46', 4, '2012-06-26 14:52:46', 1)
291251
+  (47.0ms) COMMIT
291252
+  (0.1ms) BEGIN
291253
+ 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
291254
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
291255
+ 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-26 14:52:46', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-26 14:52:46')
291256
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
291257
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
291258
+  (47.0ms) COMMIT
291259
+  (0.1ms) BEGIN
291260
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
291261
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
291262
+ 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-26 14:52:46', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-26 14:52:46')
291263
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
291264
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
291265
+ 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`
291266
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
291267
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291268
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291269
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
291270
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291271
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
291272
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
291273
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291274
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291275
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
291276
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291277
+  (49.1ms) COMMIT
291278
+
291279
+
291280
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2012-06-26 17:52:46 +0300
291281
+  (0.2ms) BEGIN
291282
+  (0.1ms) COMMIT
291283
+  (0.1ms) BEGIN
291284
+  (0.5ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-26 14:52:46', `current_sign_in_at` = '2012-06-26 14:52:46', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2012-06-26 14:52:46' WHERE `users`.`id` = 1
291285
+  (60.6ms) COMMIT
291286
+ Processing by Sunrise::ManagerController#edit as HTML
291287
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
291288
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
291289
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291290
+ Role Load (0.4ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291291
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291292
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291293
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
291294
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (11.3ms)
291295
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (14.0ms)
291296
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.7ms)
291297
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.3ms)
291298
+ Completed 200 OK in 27ms (Views: 19.9ms | ActiveRecord: 1.3ms)
291299
+
291300
+
291301
+ Started PUT "/manage/structures/2/edit" for 127.0.0.1 at 2012-06-26 17:52:46 +0300
291302
+ Processing by Sunrise::ManagerController#update as HTML
291303
+ 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"}
291304
+ User Load (0.7ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
291305
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
291306
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291307
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291308
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291309
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291310
+ Role Load (0.3ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
291311
+  (0.1ms) BEGIN
291312
+  (0.4ms) UPDATE `structures` SET `title` = 'Aimbulance updated', `redirect_url` = '', `kind` = 2, `position` = 1, `is_visible` = 0, `updated_at` = '2012-06-26 14:52:46' WHERE `structures`.`id` = 2
291313
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291314
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291315
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
291316
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291317
+  (68.2ms) COMMIT
291318
+ Redirected to http://www.example.com/manage/structures
291319
+ Completed 302 Found in 85ms (ActiveRecord: 0.0ms)
291320
+
291321
+
291322
+ Started GET "/manage/structures" for 127.0.0.1 at 2012-06-26 17:52:46 +0300
291323
+ Processing by Sunrise::ManagerController#index as HTML
291324
+ Parameters: {"model_name"=>"structures"}
291325
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
291326
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291327
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291328
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291329
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `lft`
291330
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
291331
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (1.2ms)
291332
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (4.2ms)
291333
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.4ms)
291334
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.2ms)
291335
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (1.8ms)
291336
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (2.1ms)
291337
+ Completed 200 OK in 17ms (Views: 11.6ms | ActiveRecord: 1.2ms)
291338
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291339
+
291340
+
291341
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2012-06-26 17:52:46 +0300
291342
+  (0.1ms) BEGIN
291343
+  (0.1ms) COMMIT
291344
+  (0.1ms) BEGIN
291345
+  (0.3ms) UPDATE `users` SET `current_sign_in_at` = '2012-06-26 14:52:46', `sign_in_count` = 2, `updated_at` = '2012-06-26 14:52:46' WHERE `users`.`id` = 1
291346
+  (53.4ms) COMMIT
291347
+ Processing by Sunrise::ManagerController#edit as HTML
291348
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
291349
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
291350
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291351
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291352
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291353
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291354
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
291355
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (79.2ms)
291356
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (81.7ms)
291357
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.7ms)
291358
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.3ms)
291359
+ Completed 200 OK in 94ms (Views: 87.2ms | ActiveRecord: 0.6ms)
291360
+
291361
+
291362
+ Started PUT "/manage/structures/2/edit" for 127.0.0.1 at 2012-06-26 17:52:46 +0300
291363
+ Processing by Sunrise::ManagerController#update as HTML
291364
+ 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"}
291365
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
291366
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
291367
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291368
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291369
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291370
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291371
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
291372
+  (0.1ms) BEGIN
291373
+ CACHE (0.0ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291374
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291375
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
291376
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291377
+  (70.6ms) COMMIT
291378
+ Redirected to http://www.example.com/manage/structures
291379
+ Completed 302 Found in 84ms (ActiveRecord: 0.0ms)
291380
+
291381
+
291382
+ Started GET "/manage/structures" for 127.0.0.1 at 2012-06-26 17:52:46 +0300
291383
+ Processing by Sunrise::ManagerController#index as HTML
291384
+ Parameters: {"model_name"=>"structures"}
291385
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
291386
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291387
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291388
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291389
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `lft`
291390
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
291391
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (1.1ms)
291392
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (3.3ms)
291393
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.4ms)
291394
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
291395
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.6ms)
291396
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (2.9ms)
291397
+ Completed 200 OK in 18ms (Views: 12.8ms | ActiveRecord: 0.5ms)
291398
+  (0.1ms) BEGIN
291399
+ PagePart Load (0.5ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
291400
+ 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
291401
+ PagePart Exists (0.2ms) 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
291402
+ SQL (0.3ms) INSERT INTO `page_parts` (`content`, `created_at`, `key`, `partable_id`, `partable_type`, `updated_at`) VALUES ('Main', '2012-06-26 14:52:46', 'main', 2, 'Structure', '2012-06-26 14:52:46')
291403
+ SQL (0.3ms) INSERT INTO `page_parts` (`content`, `created_at`, `key`, `partable_id`, `partable_type`, `updated_at`) VALUES ('Sidebar', '2012-06-26 14:52:46', 'sidebar', 2, 'Structure', '2012-06-26 14:52:46')
291404
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291405
+  (0.1ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291406
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
291407
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291408
+  (47.8ms) COMMIT
291409
+
291410
+
291411
+ Started GET "/manage/pages/2/edit" for 127.0.0.1 at 2012-06-26 17:52:47 +0300
291412
+  (0.1ms) BEGIN
291413
+  (0.1ms) COMMIT
291414
+  (0.1ms) BEGIN
291415
+  (0.3ms) UPDATE `users` SET `last_sign_in_at` = '2012-06-26 14:52:46', `current_sign_in_at` = '2012-06-26 14:52:47', `sign_in_count` = 3, `updated_at` = '2012-06-26 14:52:47' WHERE `users`.`id` = 1
291416
+  (92.9ms) COMMIT
291417
+ Processing by Sunrise::ManagerController#edit as HTML
291418
+ Parameters: {"model_name"=>"pages", "id"=>"2"}
291419
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
291420
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291421
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291422
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291423
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291424
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
291425
+ PagePart Load (0.6ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
291426
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (5.6ms)
291427
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (8.4ms)
291428
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.6ms)
291429
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.3ms)
291430
+ Completed 200 OK in 20ms (Views: 13.3ms | ActiveRecord: 1.1ms)
291431
+
291432
+
291433
+ Started PUT "/manage/pages/2/edit" for 127.0.0.1 at 2012-06-26 17:52:47 +0300
291434
+ Processing by Sunrise::ManagerController#update as HTML
291435
+ Parameters: {"utf8"=>"✓", "parent_id"=>"", "parent_type"=>"", "structure"=>{"main"=>"Main updated", "sidebar"=>"Sidebar updated"}, "commit"=>"Update Structure", "model_name"=>"pages", "id"=>"2"}
291436
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
291437
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
291438
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291439
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291440
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291441
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291442
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
291443
+  (0.0ms) BEGIN
291444
+ PagePart Load (0.3ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
291445
+ PagePart Exists (0.3ms) 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
291446
+ 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
291447
+  (0.3ms) UPDATE `page_parts` SET `content` = 'Main updated', `updated_at` = '2012-06-26 14:52:47' WHERE `page_parts`.`id` = 1
291448
+  (0.2ms) UPDATE `page_parts` SET `content` = 'Sidebar updated', `updated_at` = '2012-06-26 14:52:47' WHERE `page_parts`.`id` = 2
291449
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291450
+  (0.1ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291451
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
291452
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291453
+  (54.2ms) COMMIT
291454
+ Redirected to http://www.example.com/manage/structures
291455
+ Completed 302 Found in 74ms (ActiveRecord: 0.0ms)
291456
+
291457
+
291458
+ Started GET "/manage/structures" for 127.0.0.1 at 2012-06-26 17:52:47 +0300
291459
+ Processing by Sunrise::ManagerController#index as HTML
291460
+ Parameters: {"model_name"=>"structures"}
291461
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
291462
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291463
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291464
+ CACHE (0.0ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291465
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `lft`
291466
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
291467
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (1.6ms)
291468
+ Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (4.3ms)
291469
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.4ms)
291470
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
291471
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.6ms)
291472
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (2.9ms)
291473
+ Completed 200 OK in 21ms (Views: 14.8ms | ActiveRecord: 0.7ms)
291474
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291475
+ PagePart Load (0.5ms) SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
291476
+
291477
+
291478
+ Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2012-06-26 17:52:47 +0300
291479
+ Processing by Sunrise::ManagerController#edit as HTML
291480
+ Parameters: {"model_name"=>"structures", "id"=>"2"}
291481
+ Completed 401 Unauthorized in 1ms
291482
+
291483
+
291484
+ Started GET "/users/sign_in" for 127.0.0.1 at 2012-06-26 17:52:47 +0300
291485
+ Processing by Devise::SessionsController#new as HTML
291486
+ Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.1.0/app/views/devise/shared/_links.erb (1.0ms)
291487
+ Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms)
291488
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
291489
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
291490
+  (64.6ms) TRUNCATE TABLE `assets`;
291491
+  (55.2ms) TRUNCATE TABLE `audits`;
291492
+  (44.1ms) TRUNCATE TABLE `headers`;
291493
+  (44.0ms) TRUNCATE TABLE `page_parts`;
291494
+  (44.1ms) TRUNCATE TABLE `posts`;
291495
+  (44.0ms) TRUNCATE TABLE `roles`;
291496
+  (43.9ms) TRUNCATE TABLE `settings`;
291497
+  (44.1ms) TRUNCATE TABLE `structures`;
291498
+  (44.0ms) TRUNCATE TABLE `users`;
291499
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
291500
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
291501
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
291502
+  (290.7ms) TRUNCATE TABLE `assets`;
291503
+  (198.9ms) TRUNCATE TABLE `audits`;
291504
+  (43.9ms) TRUNCATE TABLE `headers`;
291505
+  (44.2ms) TRUNCATE TABLE `page_parts`;
291506
+  (44.0ms) TRUNCATE TABLE `posts`;
291507
+  (44.0ms) TRUNCATE TABLE `roles`;
291508
+  (43.9ms) TRUNCATE TABLE `settings`;
291509
+  (44.1ms) TRUNCATE TABLE `structures`;
291510
+  (43.9ms) TRUNCATE TABLE `users`;
291511
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
291512
+  (0.1ms) BEGIN
291513
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing18@example.com' LIMIT 1
291514
+ SQL (0.2ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-26 14:52:49', '2012-06-26 14:52:49', NULL, NULL, 'testing18@example.com', '48a64ca43b3fad1aa7da78c665425c4541f20402032081c8a32666294785d547d924399122ce7e771ae57b3d14ebc2df9a79e759bc3e69ff2f2a20ce98ec4be3', 0, NULL, NULL, NULL, 'Test', 'ZQGTVjkWmaQ2yv3iyNFv', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:49')
291515
+ SQL (0.1ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:49', 1, '2012-06-26 14:52:49', 1)
291516
+  (61.1ms) COMMIT
291517
+  (0.2ms) BEGIN
291518
+ SQL (0.6ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (1, 'User', '2012-06-26 14:52:49', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-26 14:52:49', NULL, 50)
291519
+  (50.4ms) COMMIT
291520
+  (0.1ms) BEGIN
291521
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing19@example.com' LIMIT 1
291522
+ SQL (0.2ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-26 14:52:51', '2012-06-26 14:52:51', NULL, NULL, 'testing19@example.com', 'f43b1b441b1b809721443a38b0749aee99e32afd02a2917eceb7d2e2ca34e7d20b7901b3db0007aae7378bc1bb116ffc4988f55e772bdc999da87dc76ee2557c', 0, NULL, NULL, NULL, 'Test', 'nKp6Fsx5qSN6AkDuTwuu', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:51')
291523
+ SQL (0.1ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:51', 1, '2012-06-26 14:52:51', 2)
291524
+  (57.3ms) COMMIT
291525
+  (0.2ms) BEGIN
291526
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing20@example.com' LIMIT 1
291527
+ 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-26 14:52:51', '2012-06-26 14:52:51', NULL, NULL, 'testing20@example.com', '097a29a7898b432bb307a04066d963a7cf06bec6108b849791c0068e3bd2923b224c351bd503675764380c37c90a53fa3440ccb1fd14fe6beb504990e2f1a3a7', 0, NULL, NULL, NULL, 'Test', '2Vx4nmj3qLzYW28xhhqz', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:51')
291528
+ SQL (0.1ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:51', 1, '2012-06-26 14:52:51', 3)
291529
+  (79.6ms) COMMIT
291530
+  (0.1ms) BEGIN
291531
+ SQL (0.3ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (3, 'User', '2012-06-26 14:52:51', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-26 14:52:51', NULL, 50)
291532
+  (60.6ms) COMMIT
291533
+  (0.2ms) BEGIN
291534
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing21@example.com' LIMIT 1
291535
+ 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-26 14:52:51', '2012-06-26 14:52:51', NULL, NULL, 'testing21@example.com', 'd0f3d39613fda70663667d363fd1d53fc3dd8ccae7a78112ea5d424e42b2d7bc35fc414d4c42497a183958491b1ecbd14122b8d985f7e33fe7f1df66bc8c2861', 0, NULL, NULL, NULL, 'Test', 'RzsjePpAEetWowXPvayk', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:51')
291536
+ SQL (0.1ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:51', 1, '2012-06-26 14:52:51', 4)
291537
+  (58.8ms) COMMIT
291538
+  (0.1ms) BEGIN
291539
+ 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 (4, 'User', '2012-06-26 14:52:51', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-26 14:52:51', NULL, 50)
291540
+  (48.0ms) COMMIT
291541
+  (0.1ms) BEGIN
291542
+ User Exists (0.3ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing22@example.com' LIMIT 1
291543
+ 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-26 14:52:52', '2012-06-26 14:52:52', NULL, NULL, 'testing22@example.com', '33dbb66842b570cef5d37220fa1a9e36f50d38feaa7bfde365a65b309ee28a337b989ab87e148a917a2ec09d8e4ec6dbc8f8b6256a771fbc17340d580681dfdd', 0, NULL, NULL, NULL, 'Test', 'T1dkdyyZ2wLzRgB9iMPp', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:52')
291544
+ SQL (0.1ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:52', 1, '2012-06-26 14:52:52', 5)
291545
+  (68.2ms) COMMIT
291546
+  (0.1ms) BEGIN
291547
+ SQL (0.3ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (5, 'User', '2012-06-26 14:52:52', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-26 14:52:52', NULL, 50)
291548
+  (78.8ms) COMMIT
291549
+  (0.1ms) BEGIN
291550
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing23@example.com' LIMIT 1
291551
+ 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-26 14:52:52', '2012-06-26 14:52:52', NULL, NULL, 'testing23@example.com', '782de98f695c2541f59e2f6f44d45aeb939bf69ec2ae4bdb1550721479a30b8f8462fffd8e12d6366edc81316a7b0ab6aff93d7048f96c6f20cd166461d89970', 0, NULL, NULL, NULL, 'Test', 'haSRPFTkvr7LPFMdNzvu', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:52')
291552
+ SQL (0.1ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:52', 1, '2012-06-26 14:52:52', 6)
291553
+  (50.9ms) COMMIT
291554
+  (0.1ms) BEGIN
291555
+ 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-26 14:52:52', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-26 14:52:52', NULL, 50)
291556
+  (46.6ms) COMMIT
291557
+  (0.1ms) BEGIN
291558
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing24@example.com' LIMIT 1
291559
+ 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-26 14:52:53', '2012-06-26 14:52:53', NULL, NULL, 'testing24@example.com', '5b86cb5852e6551122a181e612c9c3427c088431f0d08e8ea47a23e6f3e4df5fe84738067cfe22437e83769ab96ac1007a8159aa4b4cd087aa732096f67c075c', 0, NULL, NULL, NULL, 'Test', 'abx58G9HRd2aa1kp6qzZ', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:53')
291560
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:53', 1, '2012-06-26 14:52:53', 7)
291561
+  (63.0ms) COMMIT
291562
+  (0.1ms) BEGIN
291563
+ SQL (0.3ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (7, 'User', '2012-06-26 14:52:53', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-26 14:52:53', NULL, 50)
291564
+  (50.0ms) COMMIT
291565
+  (0.1ms) BEGIN
291566
+ User Exists (0.3ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing25@example.com' LIMIT 1
291567
+ SQL (67.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-26 14:52:53', '2012-06-26 14:52:53', NULL, NULL, 'testing25@example.com', '4205c1af0ea5ecfb0e6783e3b6ef6012fb44c75001fd65a2621eb098c7ff551dc05141a4ee43e23b2891b81f73693503ff88f5aaf6c8ca4e5a05bd77f8ca8557', 0, NULL, NULL, NULL, 'Test', 'uQxyc1b5hE84zdGyyn5K', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:53')
291568
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:53', 1, '2012-06-26 14:52:53', 8)
291569
+  (99.7ms) COMMIT
291570
+  (0.1ms) BEGIN
291571
+ SQL (0.4ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (8, 'User', '2012-06-26 14:52:53', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-26 14:52:53', NULL, 50)
291572
+  (56.4ms) COMMIT
291573
+  (0.2ms) BEGIN
291574
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing26@example.com' LIMIT 1
291575
+ 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-26 14:52:53', '2012-06-26 14:52:53', NULL, NULL, 'testing26@example.com', 'a51b2fb5e965667103dff03e2b5bc39452436415ea548a649e30d9b851bc2f483060a1f6add3eb4ffb24019a944c74090ec188f94db7fc50ab9ec37737099495', 0, NULL, NULL, NULL, 'Test', 'ePuHDiswKeBFeYHQXGev', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:53')
291576
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:53', 1, '2012-06-26 14:52:53', 9)
291577
+  (63.4ms) COMMIT
291578
+  (0.1ms) BEGIN
291579
+ 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-26 14:52:53', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-26 14:52:53', NULL, 50)
291580
+  (60.3ms) COMMIT
291581
+  (0.2ms) BEGIN
291582
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing27@example.com' LIMIT 1
291583
+ 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-26 14:52:54', '2012-06-26 14:52:54', NULL, NULL, 'testing27@example.com', '5e9d3873aeecec53bddb20e6647c7ae8b0553820a3bb70624037e699dca53ec1751812288398f9268c3c62ac09f91f022f0e49900c83801ab2d381db52456059', 0, NULL, NULL, NULL, 'Test', 'UDdukckuWahMDXb1znqz', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:54')
291584
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:54', 1, '2012-06-26 14:52:54', 10)
291585
+  (55.6ms) COMMIT
291586
+  (0.1ms) BEGIN
291587
+ SQL (0.4ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (10, 'User', '2012-06-26 14:52:54', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-26 14:52:54', NULL, 50)
291588
+  (87.4ms) COMMIT
291589
+  (0.1ms) BEGIN
291590
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing28@example.com' LIMIT 1
291591
+ 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-26 14:52:54', '2012-06-26 14:52:54', NULL, NULL, 'testing28@example.com', '9789c2831cf727726b794e7884c8a537a5b4c567e6da61f769e4cc5604bc057df7fe5b86a4cbb4ce07a4bb7f2a363f79cb01d18cc8ab58f29330a45012bdba20', 0, NULL, NULL, NULL, 'Test', 'GVy4LiJYNaBP2yPvaveX', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:54')
291592
+ SQL (0.1ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:54', 1, '2012-06-26 14:52:54', 11)
291593
+  (65.0ms) COMMIT
291594
+  (0.1ms) BEGIN
291595
+ 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-26 14:52:54', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-26 14:52:54', NULL, 50)
291596
+  (48.2ms) COMMIT
291597
+  (0.2ms) BEGIN
291598
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing29@example.com' LIMIT 1
291599
+ 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-26 14:52:55', '2012-06-26 14:52:55', NULL, NULL, 'testing29@example.com', '809f98b7f97070e0cea17f92d4188ba44dcb4e648bcce6567aead8eb8b387ce83032d2b2bcb29747a089238aac0c554211c23c728dc67de538dde500fe9e50f2', 0, NULL, NULL, NULL, 'Test', 'bB4oygzXg8iYEGZ99jFi', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:55')
291600
+ SQL (57.8ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:55', 1, '2012-06-26 14:52:55', 12)
291601
+  (63.0ms) COMMIT
291602
+  (0.2ms) BEGIN
291603
+ 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-26 14:52:55', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-26 14:52:55', NULL, 50)
291604
+  (56.2ms) COMMIT
291605
+  (0.2ms) BEGIN
291606
+  (0.1ms) ROLLBACK
291607
+  (0.1ms) BEGIN
291608
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing30@example.com' LIMIT 1
291609
+ 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-26 14:52:55', '2012-06-26 14:52:55', NULL, NULL, 'testing30@example.com', '837c7e48747b7cd386a8f4d620481816d3ac8418a270c8e935ba96ed858d48b11d0bd13739507c6d8e48ee08a7ccc2cc8ff6614aa6842e5ce60a5a5b9085df41', 0, NULL, NULL, NULL, 'Test', 'wy2rWuC2Xz3wdc7QXeeU', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:55')
291610
+ SQL (0.1ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:55', 1, '2012-06-26 14:52:55', 13)
291611
+  (50.7ms) COMMIT
291612
+  (0.1ms) BEGIN
291613
+ SQL (0.3ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (13, 'User', '2012-06-26 14:52:55', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-26 14:52:55', NULL, 50)
291614
+  (38.4ms) COMMIT
291615
+  (0.1ms) BEGIN
291616
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing31@example.com' LIMIT 1
291617
+ SQL (0.2ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-26 14:52:56', '2012-06-26 14:52:56', NULL, NULL, 'testing31@example.com', 'd3cb1ee3f76bfc6ce64d130698aa1129ca1ec47cb6a0302a461eb955fc4d97ee14c9dd2cfa6661e17f729c0739274e6c87cb807c1b4facb39fb4a16eda1c3a29', 0, NULL, NULL, NULL, 'Test', '9g1hMWzmANdapCDC5Dxv', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:56')
291618
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:56', 1, '2012-06-26 14:52:56', 14)
291619
+  (54.8ms) COMMIT
291620
+  (0.1ms) BEGIN
291621
+ SQL (0.3ms) INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (14, 'User', '2012-06-26 14:52:56', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-26 14:52:56', NULL, 50)
291622
+  (64.6ms) COMMIT
291623
+  (0.1ms) BEGIN
291624
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing32@example.com' LIMIT 1
291625
+ SQL (0.2ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-26 14:52:56', '2012-06-26 14:52:56', NULL, NULL, 'testing32@example.com', '3a1790735d36d587d65c0d0d115197cd8f2713c905aff7b2853e0d00aa90b738fae87dd4928c88a3f95dc9ed0509b3b322b7c972f30268a915c50dfb8bc55bad', 0, NULL, NULL, NULL, 'Test', 'VddP64XbMXp8Wh3AMpkz', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:56')
291626
+ SQL (0.1ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:56', 1, '2012-06-26 14:52:56', 15)
291627
+  (55.6ms) COMMIT
291628
+  (0.1ms) BEGIN
291629
+ 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-26 14:52:56', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-26 14:52:56', NULL, 50)
291630
+  (68.4ms) COMMIT
291631
+  (0.2ms) BEGIN
291632
+  (0.1ms) ROLLBACK
291633
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
291634
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
291635
+  (55.9ms) TRUNCATE TABLE `assets`;
291636
+  (55.1ms) TRUNCATE TABLE `audits`;
291637
+  (55.4ms) TRUNCATE TABLE `headers`;
291638
+  (55.0ms) TRUNCATE TABLE `page_parts`;
291639
+  (54.9ms) TRUNCATE TABLE `posts`;
291640
+  (55.2ms) TRUNCATE TABLE `roles`;
291641
+  (55.2ms) TRUNCATE TABLE `settings`;
291642
+  (55.0ms) TRUNCATE TABLE `structures`;
291643
+  (55.2ms) TRUNCATE TABLE `users`;
291644
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
291645
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
291646
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
291647
+  (103.5ms) TRUNCATE TABLE `assets`;
291648
+  (87.9ms) TRUNCATE TABLE `audits`;
291649
+  (44.2ms) TRUNCATE TABLE `headers`;
291650
+  (44.0ms) TRUNCATE TABLE `page_parts`;
291651
+  (43.9ms) TRUNCATE TABLE `posts`;
291652
+  (43.9ms) TRUNCATE TABLE `roles`;
291653
+  (44.4ms) TRUNCATE TABLE `settings`;
291654
+  (44.0ms) TRUNCATE TABLE `structures`;
291655
+  (44.2ms) TRUNCATE TABLE `users`;
291656
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
291657
+  (0.1ms) BEGIN
291658
+ User Exists (0.3ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing33@example.com' LIMIT 1
291659
+ 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-26 14:52:57', '2012-06-26 14:52:57', NULL, NULL, 'testing33@example.com', 'c8162320f4beba1c44785c14567905944e2aa45402ad4f17cdc01809fef71657e92da284de937f332d900559efab1cab844c52710e5a5d173c0b526ed85a2e26', 0, NULL, NULL, NULL, 'Test', 'Q9gWD3LVWjqnsBWt7Y5A', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:57')
291660
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:57', 1, '2012-06-26 14:52:57', 1)
291661
+  (46.0ms) COMMIT
291662
+  (0.1ms) BEGIN
291663
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing34@example.com' LIMIT 1
291664
+ 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-26 14:52:58', '2012-06-26 14:52:58', NULL, NULL, 'testing34@example.com', '9d0b63b610105d533f04fd0234888b3b208091359e9d471b4ee9e5f62ba921f5578619d5a5539f5478d964da358ad8ab5a41ea1729392c539a8e76344c49e27b', 0, NULL, NULL, NULL, 'Test', 'zzSHxRHxTPfvtBKSTwL8', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:58')
291665
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:58', 1, '2012-06-26 14:52:58', 2)
291666
+  (51.2ms) COMMIT
291667
+  (0.1ms) BEGIN
291668
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing35@example.com' LIMIT 1
291669
+ 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-26 14:52:58', '2012-06-26 14:52:58', NULL, NULL, 'testing35@example.com', 'c67384d22ea68f14f1f94d0f570780f0371726fc3f36c18b58d73c16465e5e99b7318e8973aa3f011b1b31e0e5edd6d0fbb4ede0b47f94d38e4fbcf4c94ab45c', 0, NULL, NULL, NULL, 'Test', 'x4LowabYyY28epFh5ibJ', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:58')
291670
+ SQL (0.1ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:58', 1, '2012-06-26 14:52:58', 3)
291671
+  (64.9ms) COMMIT
291672
+  (0.1ms) BEGIN
291673
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing36@example.com' LIMIT 1
291674
+ 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-26 14:52:59', '2012-06-26 14:52:59', NULL, NULL, 'testing36@example.com', 'b745f538f62ae5873481813b89a7612ab2024f20c2ceadf7cadede6c4b567b3a671624e439feecfb744620e1ec55959d2ff3399267ecdd9680a60a876bf98aec', 0, NULL, NULL, NULL, 'Test', 'DEZ9M8qdYvKkwXoQycza', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:59')
291675
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:59', 1, '2012-06-26 14:52:59', 4)
291676
+  (83.0ms) COMMIT
291677
+  (0.1ms) BEGIN
291678
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing37@example.com' LIMIT 1
291679
+ 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-26 14:52:59', '2012-06-26 14:52:59', NULL, NULL, 'testing37@example.com', 'f47c47e78bf314e76318f64d824d14c2baae275b7e8556d6ecc2699636827af0bb4363af2bc1a441d2f4e59a328bc64d7fd91b9ff4374c15ef85f5e699fdb2ce', 0, NULL, NULL, NULL, 'Test', 'iFSCr4G2GHpqw119HHh1', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:52:59')
291680
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:52:59', 1, '2012-06-26 14:52:59', 5)
291681
+  (71.3ms) COMMIT
291682
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
291683
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
291684
+  (121.7ms) TRUNCATE TABLE `assets`;
291685
+  (57.7ms) TRUNCATE TABLE `audits`;
291686
+  (55.2ms) TRUNCATE TABLE `headers`;
291687
+  (54.8ms) TRUNCATE TABLE `page_parts`;
291688
+  (55.3ms) TRUNCATE TABLE `posts`;
291689
+  (66.0ms) TRUNCATE TABLE `roles`;
291690
+  (43.9ms) TRUNCATE TABLE `settings`;
291691
+  (44.2ms) TRUNCATE TABLE `structures`;
291692
+  (44.1ms) TRUNCATE TABLE `users`;
291693
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
291694
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
291695
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
291696
+  (44.6ms) TRUNCATE TABLE `assets`;
291697
+  (43.9ms) TRUNCATE TABLE `audits`;
291698
+  (43.8ms) TRUNCATE TABLE `headers`;
291699
+  (43.8ms) TRUNCATE TABLE `page_parts`;
291700
+  (44.1ms) TRUNCATE TABLE `posts`;
291701
+  (44.2ms) TRUNCATE TABLE `roles`;
291702
+  (43.8ms) TRUNCATE TABLE `settings`;
291703
+  (44.2ms) TRUNCATE TABLE `structures`;
291704
+  (44.2ms) TRUNCATE TABLE `users`;
291705
+  (0.3ms) SET FOREIGN_KEY_CHECKS = 1
291706
+  (0.2ms) BEGIN
291707
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing38@example.com' LIMIT 1
291708
+ 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-26 14:53:01', '2012-06-26 14:53:01', NULL, NULL, 'testing38@example.com', '5a598b3081ac05373d542969dad31597d88d17308e71023d84782066da3592479e4ea4c05d01ec7ad9e86f2c5f7626da3f693946e4aa311b5be66ed06934f537', 0, NULL, NULL, NULL, 'Test', 'r22dqZUDpoLgxANJSSMz', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:53:01')
291709
+ SQL (0.3ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:53:01', 1, '2012-06-26 14:53:01', 1)
291710
+  (38.5ms) COMMIT
291711
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE (`users`.`email` = BINARY 'wrong' AND `users`.`id` != 1) LIMIT 1
291712
+ User Exists (0.1ms) SELECT 1 FROM `users` WHERE (`users`.`email` = BINARY 'wrong' AND `users`.`id` != 1) LIMIT 1
291713
+  (0.1ms) BEGIN
291714
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing39@example.com' LIMIT 1
291715
+ 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-26 14:53:01', '2012-06-26 14:53:01', NULL, NULL, 'testing39@example.com', '95c75d21eb814119b3399a4fa6c36d928a360c967eeea136fefcaddde3ee5cf3e0d753512725eea54e1cb17d4cfe93838247a4f3e4fbd7ee14c4f69629731f9c', 0, NULL, NULL, NULL, 'Test', 'x7yXTopvFo6XANLsYLkt', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:53:01')
291716
+ SQL (0.1ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:53:01', 1, '2012-06-26 14:53:01', 2)
291717
+  (84.3ms) COMMIT
291718
+ User Load (44.3ms) SELECT `users`.* FROM `users` WHERE (email LIKE 'testing39%') LIMIT 1
291719
+  (0.1ms) BEGIN
291720
+ User Exists (0.3ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing40@example.com' LIMIT 1
291721
+ 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-26 14:53:01', '2012-06-26 14:53:01', NULL, NULL, 'testing40@example.com', '87cc80e340d8427d3b57e3509ae9196e764491235d41569f87a33b0ecbc78d6028f51fa16012b1d0984f57e2ff7d9328687626b335075bb55849ea42760840b0', 0, NULL, NULL, NULL, 'Test', 'iaAmC3gzNnMFkHaBuNNw', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:53:01')
291722
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:53:01', 1, '2012-06-26 14:53:01', 3)
291723
+  (67.5ms) COMMIT
291724
+ User Load (0.6ms) SELECT `users`.* FROM `users` INNER JOIN `roles` ON `roles`.`user_id` = `users`.`id` WHERE `roles`.`role_type` = 1
291725
+  (0.1ms) BEGIN
291726
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing41@example.com' LIMIT 1
291727
+ 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-26 14:53:01', '2012-06-26 14:53:01', NULL, NULL, 'testing41@example.com', '3b814d88c2502e822dcd2ab882b8e0a960c1b0b82aa26f34f084c4d5c12b6cc1f4937b5be61a08f07b294e926374a4ab75ae56aab487fb7e76df2296d7673458', 0, NULL, NULL, NULL, 'Test', 'YnBAu9XLZuoUwWtEwpz4', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:53:01')
291728
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:53:01', 1, '2012-06-26 14:53:01', 4)
291729
+  (40.8ms) COMMIT
291730
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
291731
+ User Load (0.7ms) SELECT id, email, name, current_sign_in_ip FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000
291732
+  (0.1ms) BEGIN
291733
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing42@example.com' LIMIT 1
291734
+ 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-26 14:53:01', '2012-06-26 14:53:01', NULL, NULL, 'testing42@example.com', 'e853bc7d263f5fd0e6a3037fa26f415b6e0def3e4bea56cade6f0464e75d2a0c60569140b4669828138eaec489084e146ba4f1da8c75af46f9249c34817bcb45', 0, NULL, NULL, NULL, 'Test', 'zviziSEDokqX5CjBbwSx', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:53:01')
291735
+ SQL (0.1ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:53:01', 1, '2012-06-26 14:53:01', 5)
291736
+  (45.9ms) COMMIT
291737
+ Scoped order and limit are ignored, it's forced to be batch order and batch size
291738
+ User Load (0.6ms) SELECT id, email, confirmed_at, created_at FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000
291739
+  (0.1ms) BEGIN
291740
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing43@example.com' LIMIT 1
291741
+ 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-26 14:53:01', '2012-06-26 14:53:01', NULL, NULL, 'testing43@example.com', 'f977fbd3bb0bd144720a34e0463344df7b4a6d5232ac3a4f0ec9a0b4a60df5c4cfacbcbc2d59a373b29b9bc0f6aa4d68be0e18f15bc3860e684cdcb3c0888167', 0, NULL, NULL, NULL, 'Test', '7pptpM38NdZPC1esgsAz', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:53:01')
291742
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:53:01', 1, '2012-06-26 14:53:01', 6)
291743
+  (39.8ms) COMMIT
291744
+ Role Load (0.4ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 6 LIMIT 1
291745
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 6 LIMIT 1
291746
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 6
291747
+  (0.1ms) BEGIN
291748
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing44@example.com' LIMIT 1
291749
+ 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-26 14:53:01', '2012-06-26 14:53:01', NULL, NULL, 'testing44@example.com', 'b82089c59d5ee5543748d38b36c052b72e4701019f3f60a8cf1b2e57654eda354930b3ec9ce41c0c10065d99adb50d7b899620e224fde856341dae30c89cf823', 0, NULL, NULL, NULL, 'Test', 'vg5YxST6FiRdcnbfKw3Y', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:53:01')
291750
+ SQL (0.1ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:53:01', 1, '2012-06-26 14:53:01', 7)
291751
+  (40.2ms) COMMIT
291752
+ Avatar Load (0.5ms) 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
291753
+  (0.2ms) BEGIN
291754
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing45@example.com' LIMIT 1
291755
+ 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-26 14:53:01', '2012-06-26 14:53:01', NULL, NULL, 'testing45@example.com', '1e75cad00a12828f63e5b4348345a5dfd236f869f53363a2cdb1f4a51b336ff584b7d102b7cd97504a630ceaa5fca07f10905d259b69d7e83b674c9c8baacad2', 0, NULL, NULL, NULL, 'Test', 'XzezSQQSzydjyZCKiSip', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:53:01')
291756
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:53:01', 1, '2012-06-26 14:53:01', 8)
291757
+  (39.7ms) COMMIT
291758
+
291759
+ Sent mail to testing45@example.com (127ms)
291760
+ Date: Tue, 26 Jun 2012 17:53:02 +0300
291761
+ From: please-change-me-at-config-initializers-devise@example.com
291762
+ Reply-To: please-change-me-at-config-initializers-devise@example.com
291763
+ To: testing45@example.com
291764
+ Message-ID: <4fe9ccce46eaf_7d7644040082693@mario.mail>
291765
+ Subject: Unlock Instructions
291766
+ Mime-Version: 1.0
291767
+ Content-Type: text/html;
291768
+ charset=UTF-8
291769
+ Content-Transfer-Encoding: 7bit
291770
+
291771
+ <p>Hello testing45@example.com!</p>
291772
+
291773
+ <p>Your account has been locked due to an excessive amount of unsuccessful sign in attempts.</p>
291774
+
291775
+ <p>Click the link below to unlock your account:</p>
291776
+
291777
+ <p><a href="http://test.com/users/unlock?unlock_token=CJPsUPzyTKaCd4XKis9B">Unlock my account</a></p>
291778
+
291779
+  (0.2ms) BEGIN
291780
+  (0.4ms) UPDATE `users` SET `confirmed_at` = NULL, `locked_at` = '2012-06-26 14:53:02', `unlock_token` = 'CJPsUPzyTKaCd4XKis9B', `updated_at` = '2012-06-26 14:53:02' WHERE `users`.`id` = 8
291781
+  (37.0ms) COMMIT
291782
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
291783
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
291784
+  (42.5ms) TRUNCATE TABLE `assets`;
291785
+  (44.0ms) TRUNCATE TABLE `audits`;
291786
+  (44.1ms) TRUNCATE TABLE `headers`;
291787
+  (116.8ms) TRUNCATE TABLE `page_parts`;
291788
+  (83.9ms) TRUNCATE TABLE `posts`;
291789
+  (55.0ms) TRUNCATE TABLE `roles`;
291790
+  (55.4ms) TRUNCATE TABLE `settings`;
291791
+  (55.0ms) TRUNCATE TABLE `structures`;
291792
+  (55.0ms) TRUNCATE TABLE `users`;
291793
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
291794
+  (0.1ms) BEGIN
291795
+ 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
291796
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
291797
+ 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-26 14:53:02', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-26 14:53:02')
291798
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
291799
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
291800
+  (48.4ms) COMMIT
291801
+  (0.2ms) BEGIN
291802
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
291803
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
291804
+ 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-26 14:53:03', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-26 14:53:03')
291805
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
291806
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
291807
+ 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`
291808
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
291809
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291810
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291811
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
291812
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291813
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
291814
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
291815
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291816
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291817
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
291818
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291819
+  (56.5ms) COMMIT
291820
+  (0.1ms) BEGIN
291821
+  (0.2ms) ROLLBACK
291822
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291823
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
291824
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291825
+  (0.1ms) BEGIN
291826
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291827
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291828
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
291829
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291830
+  (47.3ms) COMMIT
291831
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291832
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
291833
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
291834
+  (0.1ms) BEGIN
291835
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291836
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291837
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
291838
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291839
+  (56.1ms) COMMIT
291840
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291841
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
291842
+  (0.2ms) BEGIN
291843
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291844
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291845
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
291846
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291847
+  (51.4ms) COMMIT
291848
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291849
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
291850
+  (0.2ms) BEGIN
291851
+ Structure Load (19.7ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
291852
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
291853
+ SQL (0.5ms) INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-26 14:53:03', 0, 1, 1, 5, 2, 2, NULL, 6, 'structure--2', 'Structure', '2012-06-26 14:53:03')
291854
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 ORDER BY `lft` LIMIT 1
291855
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1 FOR UPDATE
291856
+ SQL (0.5ms) UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 6 - 4 WHEN `lft` BETWEEN 5 AND 6 THEN `lft` + 3 - 5 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 6 - 4 WHEN `rgt` BETWEEN 5 AND 6 THEN `rgt` + 3 - 5 ELSE `rgt` END, `parent_id` = CASE WHEN id = 3 THEN 2 ELSE `parent_id` END ORDER BY `lft`
291857
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
291858
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1
291859
+  (0.6ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
291860
+ SQL (0.5ms) UPDATE `structures` SET `depth` = 2 WHERE `structures`.`id` = 3 ORDER BY `lft`
291861
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
291862
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 3 ORDER BY lft
291863
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1 FOR UPDATE
291864
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1
291865
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
291866
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 2 WHERE `structures`.`id` = 3 ORDER BY `lft`
291867
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
291868
+  (67.9ms) COMMIT
291869
+  (0.1ms) BEGIN
291870
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291871
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
291872
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
291873
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
291874
+  (49.3ms) COMMIT
291875
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291876
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
291877
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `lft`
291878
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 6) ORDER BY `lft`
291879
+  (0.1ms) BEGIN
291880
+ 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
291881
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
291882
+ 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-26 14:53:03', 0, 1, 1, 7, 1, 2, NULL, 8, 'some-super-title', 'Some super title', '2012-06-26 14:53:03')
291883
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
291884
+ Structure Load (0.1ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1 FOR UPDATE
291885
+ SQL (0.4ms) 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`
291886
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
291887
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1
291888
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
291889
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 4 ORDER BY `lft`
291890
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
291891
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 4 ORDER BY lft
291892
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1 FOR UPDATE
291893
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1
291894
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
291895
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 4 ORDER BY `lft`
291896
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
291897
+  (74.6ms) COMMIT
291898
+  (0.2ms) BEGIN
291899
+  (0.4ms) UPDATE `structures` SET `title` = 'Other big title', `updated_at` = '2012-06-26 14:53:03' WHERE `structures`.`id` = 4
291900
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1
291901
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
291902
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 4 ORDER BY `lft`
291903
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
291904
+  (72.1ms) COMMIT
291905
+  (0.1ms) BEGIN
291906
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291907
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
291908
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
291909
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
291910
+  (49.4ms) COMMIT
291911
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291912
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = 'structure' LIMIT 1
291913
+  (0.1ms) BEGIN
291914
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291915
+  (0.1ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
291916
+ SQL (0.4ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
291917
+  (0.4ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
291918
+  (50.7ms) COMMIT
291919
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1340722383 LIMIT 1
291920
+  (0.1ms) BEGIN
291921
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291922
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
291923
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
291924
+  (0.5ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
291925
+  (57.3ms) COMMIT
291926
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = 'wrong' LIMIT 1
291927
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 0 LIMIT 1
291928
+ Structure Load (0.1ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = 'structure' LIMIT 1
291929
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
291930
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
291931
+  (56.8ms) TRUNCATE TABLE `assets`;
291932
+  (284.7ms) TRUNCATE TABLE `audits`;
291933
+  (445.1ms) TRUNCATE TABLE `headers`;
291934
+  (131.0ms) TRUNCATE TABLE `page_parts`;
291935
+  (99.5ms) TRUNCATE TABLE `posts`;
291936
+  (55.3ms) TRUNCATE TABLE `roles`;
291937
+  (54.9ms) TRUNCATE TABLE `settings`;
291938
+  (44.1ms) TRUNCATE TABLE `structures`;
291939
+  (44.0ms) TRUNCATE TABLE `users`;
291940
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
291941
+  (0.1ms) BEGIN
291942
+ 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
291943
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
291944
+ 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-26 14:53:05', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-26 14:53:05')
291945
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
291946
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
291947
+  (36.5ms) COMMIT
291948
+  (0.1ms) BEGIN
291949
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
291950
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
291951
+ 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-26 14:53:05', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-26 14:53:05')
291952
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
291953
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
291954
+ 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`
291955
+ Structure Load (0.4ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
291956
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291957
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291958
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
291959
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291960
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
291961
+ Structure Load (0.2ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
291962
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
291963
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291964
+ SQL (0.1ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
291965
+  (0.2ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
291966
+  (45.0ms) COMMIT
291967
+  (0.1ms) BEGIN
291968
+ User Exists (0.4ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing46@example.com' LIMIT 1
291969
+ 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-26 14:53:05', '2012-06-26 14:53:05', NULL, NULL, 'testing46@example.com', '2e5ac97a4b51f574b8cc12de63a45c90e3f4549849c97920b94d4dd7985aabfea8a8fd4c556a3ddc78802ef9244ce00ae4193adb1b761f59c1f5080765b3cb01', 0, NULL, NULL, NULL, 'Admin', 'BpApEqMSpqpKQmyqfBAx', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:53:05')
291970
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:53:05', 4, '2012-06-26 14:53:05', 1)
291971
+  (37.8ms) COMMIT
291972
+ Processing by Sunrise::SharedController#services as JSON
291973
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
291974
+ Role Load (0.4ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291975
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291976
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
291977
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE `structures`.`depth` = 1
291978
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`depth` = 1
291979
+ Completed 200 OK in 12ms (Views: 2.4ms | ActiveRecord: 1.5ms)
291980
+ Processing by Sunrise::SharedController#services as JSON
291981
+ Completed 401 Unauthorized in 0ms
291982
+ Processing by Sunrise::SharedController#services as HTML
291983
+ Completed 401 Unauthorized in 0ms
291984
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
291985
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
291986
+  (54.8ms) TRUNCATE TABLE `assets`;
291987
+  (44.0ms) TRUNCATE TABLE `audits`;
291988
+  (44.0ms) TRUNCATE TABLE `headers`;
291989
+  (43.9ms) TRUNCATE TABLE `page_parts`;
291990
+  (112.9ms) TRUNCATE TABLE `posts`;
291991
+  (74.9ms) TRUNCATE TABLE `roles`;
291992
+  (44.1ms) TRUNCATE TABLE `settings`;
291993
+  (43.8ms) TRUNCATE TABLE `structures`;
291994
+  (44.2ms) TRUNCATE TABLE `users`;
291995
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
291996
+  (0.1ms) BEGIN
291997
+ User Exists (0.3ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing47@example.com' LIMIT 1
291998
+ SQL (0.2ms) INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-06-26 14:53:05', '2012-06-26 14:53:05', NULL, NULL, 'testing47@example.com', '7295188d6e52fdebeb56e13b4fc9c4795480760adf357eb498bc11931ee5e00fc87d53a5ca82e5d5624a1de5ded6e7106ca300d88cb4afaff44d0f65750a2359', 0, NULL, NULL, NULL, 'Admin', 'xUizWFUwGLQPPYRLz3RS', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:53:05')
291999
+ SQL (0.1ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:53:05', 4, '2012-06-26 14:53:05', 1)
292000
+  (39.0ms) COMMIT
292001
+  (0.1ms) BEGIN
292002
+ 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
292003
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
292004
+ 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-26 14:53:05', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-26 14:53:05')
292005
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
292006
+ SQL (0.3ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
292007
+  (46.4ms) COMMIT
292008
+  (0.1ms) BEGIN
292009
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
292010
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
292011
+ 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-26 14:53:05', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-26 14:53:05')
292012
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
292013
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
292014
+ 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`
292015
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
292016
+ Structure Load (0.2ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
292017
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
292018
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
292019
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
292020
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
292021
+ Structure Load (0.3ms) SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
292022
+ Structure Load (0.3ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
292023
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
292024
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
292025
+  (0.3ms) SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
292026
+  (68.1ms) COMMIT
292027
+ Processing by Sunrise::ManagerController#index as HTML
292028
+ Parameters: {"model_name"=>"structures"}
292029
+ User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
292030
+ Role Load (0.4ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
292031
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
292032
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
292033
+ Completed 200 OK in 8ms (Views: 1.2ms | ActiveRecord: 1.2ms)
292034
+ Structure Load (0.5ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `lft`
292035
+ Processing by Sunrise::ManagerController#index as HTML
292036
+ Parameters: {"model_name"=>"wrong"}
292037
+ User Load (0.1ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
292038
+ Completed 500 Internal Server Error in 3ms
292039
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
292040
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
292041
+  (39.9ms) TRUNCATE TABLE `assets`;
292042
+  (88.0ms) TRUNCATE TABLE `audits`;
292043
+  (55.3ms) TRUNCATE TABLE `headers`;
292044
+  (77.0ms) TRUNCATE TABLE `page_parts`;
292045
+  (55.2ms) TRUNCATE TABLE `posts`;
292046
+  (43.9ms) TRUNCATE TABLE `roles`;
292047
+  (44.2ms) TRUNCATE TABLE `settings`;
292048
+  (55.2ms) TRUNCATE TABLE `structures`;
292049
+  (128.4ms) TRUNCATE TABLE `users`;
292050
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
292051
+  (0.1ms) BEGIN
292052
+ User Exists (0.3ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing48@example.com' LIMIT 1
292053
+ 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-26 14:53:06', '2012-06-26 14:53:06', NULL, NULL, 'testing48@example.com', '61fd52bd24a1cca9e58a6226b34d194cc3b0a8e60b34e247f528d63c725732ac48023777c17d48d1146a496a43580a364cb05ba3bd8ae04eb7013c7f38de8de5', 0, NULL, NULL, NULL, 'Admin', 'aJTpyxzxyxM1T3fYUH47', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:53:06')
292054
+ SQL (0.1ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:53:06', 4, '2012-06-26 14:53:06', 1)
292055
+  (96.4ms) COMMIT
292056
+ Processing by Sunrise::SettingsController#edit as HTML
292057
+ User Load (0.7ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
292058
+ Role Load (0.5ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
292059
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
292060
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
292061
+ Settings Load (0.3ms) SELECT var, value FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL
292062
+ Settings Load (0.4ms) SELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL AND `settings`.`var` = 'to_key' LIMIT 1
292063
+ 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
292064
+ Settings Load (0.2ms) SELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL AND `settings`.`var` = 'some_setting2' LIMIT 1
292065
+ Settings Load (0.2ms) SELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL AND `settings`.`var` = 'persisted?' LIMIT 1
292066
+ Rendered /var/www/gems/sunrise/app/views/sunrise/settings/_form.html.erb (9.7ms)
292067
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.0ms)
292068
+ Rendered /var/www/gems/sunrise/app/views/sunrise/settings/_header_edit.html.erb (0.9ms)
292069
+ Completed 200 OK in 127ms (Views: 110.4ms | ActiveRecord: 4.1ms)
292070
+ Processing by Sunrise::SettingsController#update as HTML
292071
+ Parameters: {"settings"=>{"some_setting"=>"blablabla"}}
292072
+ User Load (0.2ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
292073
+ Role Load (0.2ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
292074
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
292075
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
292076
+ Settings Load (0.3ms) SELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL AND `settings`.`var` = 'some_setting' LIMIT 1
292077
+  (0.2ms) BEGIN
292078
+ SQL (0.3ms) INSERT INTO `settings` (`created_at`, `target_id`, `target_type`, `updated_at`, `value`, `var`) VALUES ('2012-06-26 14:53:06', NULL, NULL, '2012-06-26 14:53:06', '--- blablabla\n...\n', 'some_setting')
292079
+  (54.6ms) COMMIT
292080
+ Redirected to http://test.host/manage/
292081
+ Completed 302 Found in 81ms (ActiveRecord: 55.9ms)
292082
+ Processing by Sunrise::SettingsController#update as HTML
292083
+ Completed 401 Unauthorized in 0ms
292084
+ Processing by Sunrise::SettingsController#edit as HTML
292085
+ Completed 401 Unauthorized in 0ms
292086
+ Processing by Sunrise::SettingsController#edit as HTML
292087
+ Completed 401 Unauthorized in 0ms
292088
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
292089
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
292090
+  (62.5ms) TRUNCATE TABLE `assets`;
292091
+  (54.9ms) TRUNCATE TABLE `audits`;
292092
+  (55.1ms) TRUNCATE TABLE `headers`;
292093
+  (54.8ms) TRUNCATE TABLE `page_parts`;
292094
+  (77.4ms) TRUNCATE TABLE `posts`;
292095
+  (132.7ms) TRUNCATE TABLE `roles`;
292096
+  (54.8ms) TRUNCATE TABLE `settings`;
292097
+  (132.7ms) TRUNCATE TABLE `structures`;
292098
+  (110.3ms) TRUNCATE TABLE `users`;
292099
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
292100
+  (0.1ms) BEGIN
292101
+ User Exists (0.5ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing49@example.com' LIMIT 1
292102
+ 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-26 14:53:07', '2012-06-26 14:53:07', NULL, NULL, 'testing49@example.com', '8abdb66dcd2a25de076f2699922ff3f5dd9156ceabee5899b651b27e64550fabb98093cc58db3e5c739b0f1ce1aa11cecd5aaec4f4ab3e14094d0f6963017240', 0, NULL, NULL, NULL, 'Test', 's9vU2pDnSYfzjxyvqR9p', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:53:07')
292103
+ SQL (0.2ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:53:07', 1, '2012-06-26 14:53:07', 1)
292104
+  (57.3ms) COMMIT
292105
+  (0.1ms) BEGIN
292106
+ Structure Load (0.6ms) SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
292107
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
292108
+ 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-26 14:53:07', 0, 1, 1, 1, NULL, 2, NULL, 2, 'structure', 'Structure', '2012-06-26 14:53:07')
292109
+ Structure Load (0.4ms) SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
292110
+ SQL (0.2ms) UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
292111
+  (54.3ms) COMMIT
292112
+  (0.2ms) BEGIN
292113
+ SQL (0.3ms) INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2012-06-26 14:53:07', 1, 1, 'Default title', '2012-06-26 14:53:07')
292114
+  (74.5ms) COMMIT
292115
+  (0.1ms) BEGIN
292116
+  (0.4ms) SELECT MAX(`audits`.`version`) AS max_id FROM `audits` WHERE `audits`.`auditable_id` = 1 AND `audits`.`auditable_type` = 'Post'
292117
+ SQL (0.3ms) 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-26 14:53:07', NULL, 1, 'User', NULL, 1)
292118
+  (51.5ms) COMMIT
292119
+  (0.1ms) BEGIN
292120
+ User Exists (0.3ms) SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing50@example.com' LIMIT 1
292121
+ 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-26 14:53:08', '2012-06-26 14:53:08', NULL, NULL, 'testing50@example.com', 'c95f84fcec6721c8f7d61c6e6d8f969743e100144953c762e82306e48b7b780f5ed0bfd408644a844fee6f849e470bdc62ee28a216209307d8628a448109df15', 0, NULL, NULL, NULL, 'Admin', 'VAxBVSgSEvpHr1dhEeiD', NULL, NULL, NULL, 0, NULL, '2012-06-26 14:53:08')
292122
+ SQL (0.1ms) INSERT INTO `roles` (`created_at`, `role_type`, `updated_at`, `user_id`) VALUES ('2012-06-26 14:53:08', 4, '2012-06-26 14:53:08', 2)
292123
+  (60.5ms) COMMIT
292124
+ Processing by Sunrise::DashboardController#index as HTML
292125
+ User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1
292126
+ Role Load (0.5ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 2 LIMIT 1
292127
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 2 LIMIT 1
292128
+ Role Load (0.1ms) SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 2 LIMIT 1
292129
+ Audited::Adapters::ActiveRecord::Audit Load (0.4ms) SELECT `audits`.* FROM `audits` ORDER BY version LIMIT 50 OFFSET 0
292130
+ User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` IN (1)
292131
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_event.html.erb (2.7ms)
292132
+  (0.4ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `audits` LIMIT 50 OFFSET 0) subquery_for_count
292133
+ Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (2.7ms)
292134
+ Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (0.9ms)
292135
+ Completed 200 OK in 26ms (Views: 14.6ms | ActiveRecord: 2.5ms)
292136
+ Processing by Sunrise::DashboardController#index as HTML
292137
+ Completed 401 Unauthorized in 0ms
292138
+ Processing by Sunrise::DashboardController#index as HTML
292139
+ Completed 401 Unauthorized in 0ms
292140
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
292141
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
292142
+  (48.2ms) TRUNCATE TABLE `assets`;
292143
+  (66.1ms) TRUNCATE TABLE `audits`;
292144
+  (77.1ms) TRUNCATE TABLE `headers`;
292145
+  (55.0ms) TRUNCATE TABLE `page_parts`;
292146
+  (77.4ms) TRUNCATE TABLE `posts`;
292147
+  (55.1ms) TRUNCATE TABLE `roles`;
292148
+  (139.3ms) TRUNCATE TABLE `settings`;
292149
+  (103.9ms) TRUNCATE TABLE `structures`;
292150
+  (54.9ms) TRUNCATE TABLE `users`;
292151
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
292152
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
292153
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
292154
+  (47.5ms) TRUNCATE TABLE `assets`;
292155
+  (110.1ms) TRUNCATE TABLE `audits`;
292156
+  (55.4ms) TRUNCATE TABLE `headers`;
292157
+  (66.1ms) TRUNCATE TABLE `page_parts`;
292158
+  (55.0ms) TRUNCATE TABLE `posts`;
292159
+  (77.1ms) TRUNCATE TABLE `roles`;
292160
+  (110.4ms) TRUNCATE TABLE `settings`;
292161
+  (55.1ms) TRUNCATE TABLE `structures`;
292162
+  (165.4ms) TRUNCATE TABLE `users`;
292163
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1