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.
- data/config/locales/defaults/datetime.rb +40 -0
- data/config/locales/defaults/ru.yml +33 -16
- data/config/locales/defaults/uk.yml +21 -4
- data/lib/sunrise.rb +6 -0
- data/lib/sunrise/engine.rb +2 -1
- data/lib/sunrise/models/asset.rb +2 -0
- data/lib/sunrise/utils.rb +0 -1
- data/lib/sunrise/version.rb +1 -1
- data/spec/dummy/log/test.log +2760 -0
- data/spec/models/i18n_backend.rb +30 -0
- metadata +49 -47
- data/lib/sunrise/utils/i18n_backend.rb +0 -87
@@ -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
|
-
|
20
|
+
standalone_day_names:
|
21
21
|
- воскресенье
|
22
22
|
- понедельник
|
23
23
|
- вторник
|
@@ -25,7 +25,7 @@ ru:
|
|
25
25
|
- четверг
|
26
26
|
- пятница
|
27
27
|
- суббота
|
28
|
-
|
28
|
+
standalone_abbr_day_names:
|
29
29
|
- Вс
|
30
30
|
- Пн
|
31
31
|
- Вт
|
@@ -34,22 +34,23 @@ ru:
|
|
34
34
|
- Пт
|
35
35
|
- Сб
|
36
36
|
|
37
|
-
|
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
|
-
|
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
|
-
|
248
|
+
standalone_day_names:
|
249
249
|
- неділя
|
250
250
|
- понеділок
|
251
251
|
- вівторок
|
@@ -253,7 +253,7 @@ uk:
|
|
253
253
|
- четвер
|
254
254
|
- "п'ятниця"
|
255
255
|
- субота
|
256
|
-
|
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
|
-
|
266
|
+
standalone_month_names:
|
267
267
|
- ~
|
268
268
|
- Січень
|
269
269
|
- Лютий
|
@@ -277,7 +277,8 @@ uk:
|
|
277
277
|
- Жовтень
|
278
278
|
- Листопад
|
279
279
|
- Грудень
|
280
|
-
|
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
|
data/lib/sunrise/engine.rb
CHANGED
@@ -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.
|
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
|
data/lib/sunrise/models/asset.rb
CHANGED
@@ -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'
|
data/lib/sunrise/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -289401,3 +289401,2763 @@ Completed 401 Unauthorized in 1ms
|
|
289401
289401
|
[1m[35m (44.0ms)[0m TRUNCATE TABLE `structures`;
|
289402
289402
|
[1m[36m (44.0ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
289403
289403
|
[1m[35m (0.2ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
289404
|
+
[1m[36m (0.3ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
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
|
+
[1m[35m (0.2ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
|
289411
|
+
Migrating to InstallActsAsAudited (20111227111941)
|
289412
|
+
Migrating to CreatePageParts (20111227143901)
|
289413
|
+
Migrating to CreatePosts (20111228152051)
|
289414
|
+
[1m[36m (0.3ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
289415
|
+
[1m[35m (0.2ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
289416
|
+
[1m[36m (0.2ms)[0m [1mSELECT DATABASE() as db[0m
|
289417
|
+
[1m[35m (0.8ms)[0m select table_name from information_schema.views where table_schema = 'sunrise_dummy_test'
|
289418
|
+
[1m[36m (64.5ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
289419
|
+
[1m[35m (55.0ms)[0m TRUNCATE TABLE `audits`;
|
289420
|
+
[1m[36m (55.2ms)[0m [1mTRUNCATE TABLE `headers`;[0m
|
289421
|
+
[1m[35m (55.0ms)[0m TRUNCATE TABLE `page_parts`;
|
289422
|
+
[1m[36m (54.8ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
289423
|
+
[1m[35m (99.3ms)[0m TRUNCATE TABLE `roles`;
|
289424
|
+
[1m[36m (54.8ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
289425
|
+
[1m[35m (55.1ms)[0m TRUNCATE TABLE `structures`;
|
289426
|
+
[1m[36m (55.2ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
289427
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
289428
|
+
[1m[36m (0.1ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
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
|
+
[1m[35m (0.1ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
|
289435
|
+
Migrating to InstallActsAsAudited (20111227111941)
|
289436
|
+
Migrating to CreatePageParts (20111227143901)
|
289437
|
+
Migrating to CreatePosts (20111228152051)
|
289438
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
289439
|
+
[1m[35mUser Exists (0.5ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing1@example.com' LIMIT 1
|
289440
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
289441
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (61.9ms)[0m [1mCOMMIT[0m
|
289443
|
+
[1m[35m (0.2ms)[0m BEGIN
|
289444
|
+
[1m[36mUser Exists (0.5ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing2@example.com' LIMIT 1[0m
|
289445
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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)[0m
|
289447
|
+
[1m[35m (55.1ms)[0m COMMIT
|
289448
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
289449
|
+
[1m[35mStructure Load (69.0ms)[0m SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
|
289450
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE[0m
|
289451
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-26 14:52:26', 0, 1, 1, 1, NULL, 2, NULL, 2, 'structure', 'Structure', '2012-06-26 14:52:26')
|
289452
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
289453
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
|
289454
|
+
[1m[36m (74.0ms)[0m [1mCOMMIT[0m
|
289455
|
+
[1m[35m (0.2ms)[0m BEGIN
|
289456
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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')[0m
|
289457
|
+
[1m[35m (37.9ms)[0m COMMIT
|
289458
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
289459
|
+
[1m[35m (20.7ms)[0m SELECT MAX(`audits`.`version`) AS max_id FROM `audits` WHERE `audits`.`auditable_id` = 1 AND `audits`.`auditable_type` = 'Post'
|
289460
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `audits` (`action`, `associated_id`, `associated_type`, `auditable_id`, `auditable_type`, `audited_changes`, `comment`, `created_at`, `remote_address`, `user_id`, `user_type`, `username`, `version`) VALUES ('create', NULL, NULL, 1, 'Post', '---\n:title: Updated\n', NULL, '2012-06-26 14:52:26', NULL, 2, 'User', NULL, 1)[0m
|
289461
|
+
[1m[35m (50.1ms)[0m COMMIT
|
289462
|
+
|
289463
|
+
|
289464
|
+
Started GET "/manage/" for 127.0.0.1 at 2012-06-26 17:52:27 +0300
|
289465
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
289466
|
+
[1m[35m (0.1ms)[0m COMMIT
|
289467
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
289468
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (44.0ms)[0m [1mCOMMIT[0m
|
289470
|
+
Processing by Sunrise::DashboardController#index as HTML
|
289471
|
+
[1m[35mRole Load (0.6ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
289472
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
289473
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
289474
|
+
[1m[36mAudited::Adapters::ActiveRecord::Audit Load (0.5ms)[0m [1mSELECT `audits`.* FROM `audits` ORDER BY version LIMIT 50 OFFSET 0[0m
|
289475
|
+
[1m[35mUser Load (0.6ms)[0m 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
|
+
[1m[36m (19.9ms)[0m [1mSELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `audits` LIMIT 50 OFFSET 0) subquery_for_count [0m
|
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
|
+
[1m[35m (0.9ms)[0m BEGIN
|
289486
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
289487
|
+
[1m[35m (0.1ms)[0m BEGIN
|
289488
|
+
[1m[36m (0.3ms)[0m [1mUPDATE `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[0m
|
289489
|
+
[1m[35m (60.3ms)[0m COMMIT
|
289490
|
+
Processing by Sunrise::DashboardController#index as HTML
|
289491
|
+
[1m[36mRole Load (0.2ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
289492
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
289493
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
289494
|
+
[1m[35mAudited::Adapters::ActiveRecord::Audit Load (0.2ms)[0m SELECT `audits`.* FROM `audits` ORDER BY version LIMIT 50 OFFSET 0
|
289495
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` IN (2)[0m
|
289496
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_event.html.erb (2.2ms)
|
289497
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
289513
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
289514
|
+
[1m[36m (0.1ms)[0m [1mSELECT DATABASE() as db[0m
|
289515
|
+
[1m[35m (0.9ms)[0m select table_name from information_schema.views where table_schema = 'sunrise_dummy_test'
|
289516
|
+
[1m[36m (47.0ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
289517
|
+
[1m[35m (44.0ms)[0m TRUNCATE TABLE `audits`;
|
289518
|
+
[1m[36m (44.0ms)[0m [1mTRUNCATE TABLE `headers`;[0m
|
289519
|
+
[1m[35m (44.0ms)[0m TRUNCATE TABLE `page_parts`;
|
289520
|
+
[1m[36m (44.1ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
289521
|
+
[1m[35m (43.9ms)[0m TRUNCATE TABLE `roles`;
|
289522
|
+
[1m[36m (44.1ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
289523
|
+
[1m[35m (44.1ms)[0m TRUNCATE TABLE `structures`;
|
289524
|
+
[1m[36m (44.2ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
289525
|
+
[1m[35m (0.2ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
289526
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
289527
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing3@example.com' LIMIT 1
|
289528
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
289529
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (42.0ms)[0m [1mCOMMIT[0m
|
289531
|
+
[1m[35m (0.1ms)[0m BEGIN
|
289532
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1[0m
|
289533
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
|
289534
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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')[0m
|
289535
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
289536
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`[0m
|
289537
|
+
[1m[35m (37.2ms)[0m COMMIT
|
289538
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
289539
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
|
289540
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE[0m
|
289541
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1[0m
|
289543
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
289544
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`[0m
|
289545
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
|
289546
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
289547
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
289548
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`[0m
|
289549
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
289550
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft[0m
|
289551
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
289552
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
289553
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
289554
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`[0m
|
289555
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
289556
|
+
[1m[36m (35.4ms)[0m [1mCOMMIT[0m
|
289557
|
+
|
289558
|
+
|
289559
|
+
Started GET "/manage/services.json" for 127.0.0.1 at 2012-06-26 17:52:28 +0300
|
289560
|
+
[1m[35m (0.1ms)[0m BEGIN
|
289561
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
289562
|
+
[1m[35m (0.0ms)[0m BEGIN
|
289563
|
+
[1m[36m (0.3ms)[0m [1mUPDATE `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[0m
|
289564
|
+
[1m[35m (38.3ms)[0m COMMIT
|
289565
|
+
Processing by Sunrise::SharedController#services as JSON
|
289566
|
+
[1m[36mRole Load (0.5ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
289567
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
289568
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
289569
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE `structures`.`depth` = 1
|
289570
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`depth` = 1[0m
|
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
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
289578
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
289579
|
+
[1m[35m (70.1ms)[0m TRUNCATE TABLE `assets`;
|
289580
|
+
[1m[36m (44.0ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
289581
|
+
[1m[35m (55.0ms)[0m TRUNCATE TABLE `headers`;
|
289582
|
+
[1m[36m (77.4ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
289583
|
+
[1m[35m (207.2ms)[0m TRUNCATE TABLE `posts`;
|
289584
|
+
[1m[36m (355.5ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
289585
|
+
[1m[35m (55.0ms)[0m TRUNCATE TABLE `settings`;
|
289586
|
+
[1m[36m (55.2ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
289587
|
+
[1m[35m (54.9ms)[0m TRUNCATE TABLE `users`;
|
289588
|
+
[1m[36m (0.2ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
289589
|
+
[1m[35m (0.1ms)[0m BEGIN
|
289590
|
+
[1m[36mUser Exists (0.3ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing4@example.com' LIMIT 1[0m
|
289591
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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)[0m
|
289593
|
+
[1m[35m (78.7ms)[0m COMMIT
|
289594
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
289595
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
|
289596
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE[0m
|
289597
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
289599
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
|
289600
|
+
[1m[36m (104.1ms)[0m [1mCOMMIT[0m
|
289601
|
+
[1m[35m (0.2ms)[0m BEGIN
|
289602
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1[0m
|
289603
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
|
289604
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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')[0m
|
289605
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
|
289606
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
289607
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`
|
289608
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE[0m
|
289609
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
289610
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
289611
|
+
[1m[35mSQL (0.2ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
|
289612
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
289613
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
|
289614
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
289615
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
289616
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
289617
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
|
289618
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
289619
|
+
[1m[35m (62.9ms)[0m COMMIT
|
289620
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
289621
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (40.4ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35m (0.2ms)[0m BEGIN
|
289627
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
289628
|
+
[1m[35m (0.1ms)[0m BEGIN
|
289629
|
+
[1m[36m (0.5ms)[0m [1mUPDATE `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[0m
|
289630
|
+
[1m[35m (46.1ms)[0m COMMIT
|
289631
|
+
Processing by Sunrise::ManagerController#index as HTML
|
289632
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
289633
|
+
[1m[36mRole Load (0.4ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
289634
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
289635
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
289636
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
289637
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
289638
|
+
[1m[35mPost Load (0.6ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2[0m
|
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
|
+
[1m[35m (0.1ms)[0m BEGIN
|
289650
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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')[0m
|
289651
|
+
[1m[35m (53.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
289656
|
+
[1m[35m (0.1ms)[0m COMMIT
|
289657
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
289658
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (37.2ms)[0m [1mCOMMIT[0m
|
289660
|
+
Processing by Sunrise::ManagerController#index as HTML
|
289661
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
289662
|
+
[1m[35mRole Load (0.3ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
289663
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
289664
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
289665
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1[0m
|
289666
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
289667
|
+
[1m[36mPost Load (0.5ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0[0m
|
289668
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (6.3ms)
|
289669
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
289684
|
+
[1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
289685
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
289686
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
289687
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1[0m
|
289688
|
+
[1m[35mStructure Load (0.1ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
289689
|
+
[1m[36mPost Load (0.4ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`title` = 'Aimbulance' AND `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0[0m
|
289690
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (3.1ms)
|
289691
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
289704
|
+
[1m[35m (0.1ms)[0m COMMIT
|
289705
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
289706
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (38.4ms)[0m [1mCOMMIT[0m
|
289708
|
+
Processing by Sunrise::ManagerController#index as HTML
|
289709
|
+
Parameters: {"parent_id"=>"1", "parent_type"=>"Structure", "model_name"=>"posts"}
|
289710
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
289711
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
289712
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
289713
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '1' LIMIT 1[0m
|
289714
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
289715
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 1 LIMIT 25 OFFSET 0[0m
|
289716
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (0.0ms)
|
289717
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
289727
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
289728
|
+
[1m[36m (42.0ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
289729
|
+
[1m[35m (43.9ms)[0m TRUNCATE TABLE `audits`;
|
289730
|
+
[1m[36m (44.0ms)[0m [1mTRUNCATE TABLE `headers`;[0m
|
289731
|
+
[1m[35m (44.2ms)[0m TRUNCATE TABLE `page_parts`;
|
289732
|
+
[1m[36m (43.9ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
289733
|
+
[1m[35m (44.0ms)[0m TRUNCATE TABLE `roles`;
|
289734
|
+
[1m[36m (44.1ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
289735
|
+
[1m[35m (43.9ms)[0m TRUNCATE TABLE `structures`;
|
289736
|
+
[1m[36m (43.9ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
289737
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
289738
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
289739
|
+
[1m[35mUser Exists (0.3ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing5@example.com' LIMIT 1
|
289740
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
289741
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (36.9ms)[0m [1mCOMMIT[0m
|
289743
|
+
[1m[35m (0.1ms)[0m BEGIN
|
289744
|
+
[1m[36mStructure Load (0.7ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1[0m
|
289745
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
|
289746
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-26 14:52:31', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-26 14:52:31')[0m
|
289747
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
289748
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`[0m
|
289749
|
+
[1m[35m (91.1ms)[0m COMMIT
|
289750
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
289751
|
+
[1m[35mStructure Load (0.6ms)[0m SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
|
289752
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE[0m
|
289753
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1[0m
|
289755
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
289756
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`[0m
|
289757
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
|
289758
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
289759
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
289760
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`[0m
|
289761
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
289762
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft[0m
|
289763
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
289764
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
289765
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
289766
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`[0m
|
289767
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
289768
|
+
[1m[36m (50.4ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35m (0.2ms)[0m BEGIN
|
289773
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
289774
|
+
[1m[35m (0.1ms)[0m BEGIN
|
289775
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `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[0m
|
289776
|
+
[1m[35m (43.3ms)[0m COMMIT
|
289777
|
+
Processing by Sunrise::ManagerController#new as HTML
|
289778
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
289779
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1[0m
|
289780
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
289781
|
+
[1m[36mRole Load (0.3ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
289782
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
289783
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.4ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
289796
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1[0m
|
289797
|
+
[1m[35mStructure Load (0.1ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
289798
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
289799
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
289800
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
289801
|
+
[1m[35mRole Load (0.3ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
|
289802
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
289803
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (52.4ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
289813
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
289814
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
289815
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
289816
|
+
[1m[35mStructure Load (0.1ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
289817
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
289818
|
+
[1m[35mPost Load (0.4ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2[0m
|
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
|
+
[1m[35mPost Load (0.4ms)[0m SELECT `posts`.* FROM `posts` ORDER BY `posts`.`id` DESC LIMIT 1
|
289830
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
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
|
+
[1m[35m (0.2ms)[0m BEGIN
|
289835
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
289836
|
+
[1m[35m (0.1ms)[0m BEGIN
|
289837
|
+
[1m[36m (0.3ms)[0m [1mUPDATE `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[0m
|
289838
|
+
[1m[35m (53.8ms)[0m COMMIT
|
289839
|
+
Processing by Sunrise::ManagerController#new as HTML
|
289840
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
289841
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1[0m
|
289842
|
+
[1m[35mStructure Load (0.1ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
289843
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
289844
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
289845
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.6ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
289858
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1[0m
|
289859
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
289860
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
289861
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
289862
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
289863
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
|
289864
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
289865
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (39.4ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
289875
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
289876
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
289877
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
289878
|
+
[1m[35mStructure Load (0.1ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
289879
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
289880
|
+
[1m[35mPost Load (0.4ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2[0m
|
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
|
+
[1m[35mPost Load (0.5ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
289905
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
289906
|
+
[1m[36m (44.3ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
289907
|
+
[1m[35m (44.0ms)[0m TRUNCATE TABLE `audits`;
|
289908
|
+
[1m[36m (44.0ms)[0m [1mTRUNCATE TABLE `headers`;[0m
|
289909
|
+
[1m[35m (44.1ms)[0m TRUNCATE TABLE `page_parts`;
|
289910
|
+
[1m[36m (44.1ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
289911
|
+
[1m[35m (44.1ms)[0m TRUNCATE TABLE `roles`;
|
289912
|
+
[1m[36m (44.0ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
289913
|
+
[1m[35m (44.1ms)[0m TRUNCATE TABLE `structures`;
|
289914
|
+
[1m[36m (55.0ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
289915
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
289916
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
289917
|
+
[1m[35mUser Exists (0.3ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing6@example.com' LIMIT 1
|
289918
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
289919
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (48.0ms)[0m [1mCOMMIT[0m
|
289921
|
+
[1m[35m (0.1ms)[0m BEGIN
|
289922
|
+
[1m[36mStructure Load (0.6ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1[0m
|
289923
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
|
289924
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-26 14:52:33', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-26 14:52:33')[0m
|
289925
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
289926
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`[0m
|
289927
|
+
[1m[35m (47.1ms)[0m COMMIT
|
289928
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
289929
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
|
289930
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE[0m
|
289931
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-26 14:52:33', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-26 14:52:33')
|
289932
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1[0m
|
289933
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
289934
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`[0m
|
289935
|
+
[1m[35mStructure Load (0.1ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
|
289936
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
289937
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
289938
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`[0m
|
289939
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
289940
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft[0m
|
289941
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
289942
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
289943
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
289944
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`[0m
|
289945
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
289946
|
+
[1m[36m (47.0ms)[0m [1mCOMMIT[0m
|
289947
|
+
[1m[35m (0.1ms)[0m BEGIN
|
289948
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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')[0m
|
289949
|
+
[1m[35m (52.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
289954
|
+
[1m[35m (0.1ms)[0m COMMIT
|
289955
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
289956
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (49.2ms)[0m [1mCOMMIT[0m
|
289958
|
+
Processing by Sunrise::ManagerController#index as HTML
|
289959
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
289960
|
+
[1m[35mRole Load (0.5ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
289961
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
289962
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
289963
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1[0m
|
289964
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
289965
|
+
[1m[36mPost Load (0.3ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0[0m
|
289966
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (4.2ms)
|
289967
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
289982
|
+
[1m[35mPost Load (0.3ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
|
289983
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
289984
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
289985
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
289986
|
+
[1m[35m (0.1ms)[0m BEGIN
|
289987
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM `posts` WHERE `posts`.`id` = 1[0m
|
289988
|
+
[1m[35m (74.0ms)[0m COMMIT
|
289989
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1[0m
|
289990
|
+
[1m[35mStructure Load (0.2ms)[0m 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
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
289999
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290000
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290001
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290002
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1[0m
|
290003
|
+
[1m[35mStructure Load (0.1ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
290004
|
+
[1m[36mPost Load (0.3ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0[0m
|
290005
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (0.0ms)
|
290006
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36mPost Load (0.4ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1[0m
|
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
|
+
[1m[35m (0.3ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
290029
|
+
[1m[36m (0.2ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
290030
|
+
[1m[35m (55.4ms)[0m TRUNCATE TABLE `assets`;
|
290031
|
+
[1m[36m (55.1ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
290032
|
+
[1m[35m (55.1ms)[0m TRUNCATE TABLE `headers`;
|
290033
|
+
[1m[36m (54.9ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
290034
|
+
[1m[35m (55.0ms)[0m TRUNCATE TABLE `posts`;
|
290035
|
+
[1m[36m (55.4ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
290036
|
+
[1m[35m (55.0ms)[0m TRUNCATE TABLE `settings`;
|
290037
|
+
[1m[36m (55.0ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
290038
|
+
[1m[35m (66.2ms)[0m TRUNCATE TABLE `users`;
|
290039
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
290040
|
+
[1m[35m (0.1ms)[0m BEGIN
|
290041
|
+
[1m[36mUser Exists (0.5ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing7@example.com' LIMIT 1[0m
|
290042
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT 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)[0m
|
290044
|
+
[1m[35m (111.9ms)[0m COMMIT
|
290045
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
290046
|
+
[1m[35mStructure Load (0.6ms)[0m SELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
|
290047
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE[0m
|
290048
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
290050
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
|
290051
|
+
[1m[36m (48.6ms)[0m [1mCOMMIT[0m
|
290052
|
+
[1m[35m (0.1ms)[0m BEGIN
|
290053
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1[0m
|
290054
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
|
290055
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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')[0m
|
290056
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
|
290057
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
290058
|
+
[1m[35mSQL (0.4ms)[0m UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`
|
290059
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE[0m
|
290060
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
290061
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
290062
|
+
[1m[35mSQL (0.2ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
|
290063
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
290064
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
|
290065
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
290066
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
290067
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
290068
|
+
[1m[35mSQL (0.1ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
|
290069
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
290070
|
+
[1m[35m (67.4ms)[0m COMMIT
|
290071
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
290072
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (97.9ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35m (0.2ms)[0m BEGIN
|
290078
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
290079
|
+
[1m[35m (0.1ms)[0m BEGIN
|
290080
|
+
[1m[36m (0.5ms)[0m [1mUPDATE `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[0m
|
290081
|
+
[1m[35m (80.5ms)[0m COMMIT
|
290082
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
290083
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
|
290084
|
+
[1m[36mPost Load (0.5ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1[0m
|
290085
|
+
[1m[35mRole Load (0.3ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290086
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290087
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
290098
|
+
[1m[35m (0.1ms)[0m COMMIT
|
290099
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
290100
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (59.7ms)[0m [1mCOMMIT[0m
|
290102
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
290103
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
|
290104
|
+
[1m[35mPost Load (0.1ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
|
290105
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290106
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290107
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
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
|
+
[1m[35m (0.3ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
290127
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
290128
|
+
[1m[35m (49.9ms)[0m TRUNCATE TABLE `assets`;
|
290129
|
+
[1m[36m (55.1ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
290130
|
+
[1m[35m (54.8ms)[0m TRUNCATE TABLE `headers`;
|
290131
|
+
[1m[36m (55.2ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
290132
|
+
[1m[35m (57.1ms)[0m TRUNCATE TABLE `posts`;
|
290133
|
+
[1m[36m (44.0ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
290134
|
+
[1m[35m (44.3ms)[0m TRUNCATE TABLE `settings`;
|
290135
|
+
[1m[36m (44.0ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
290136
|
+
[1m[35m (44.0ms)[0m TRUNCATE TABLE `users`;
|
290137
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
290138
|
+
[1m[35m (0.1ms)[0m BEGIN
|
290139
|
+
[1m[36mUser Exists (0.4ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing8@example.com' LIMIT 1[0m
|
290140
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT 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)[0m
|
290142
|
+
[1m[35m (46.2ms)[0m COMMIT
|
290143
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
290144
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
|
290145
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE[0m
|
290146
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
290148
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
|
290149
|
+
[1m[36m (37.3ms)[0m [1mCOMMIT[0m
|
290150
|
+
[1m[35m (0.1ms)[0m BEGIN
|
290151
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1[0m
|
290152
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
|
290153
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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')[0m
|
290154
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
|
290155
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
290156
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`
|
290157
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE[0m
|
290158
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
290159
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
290160
|
+
[1m[35mSQL (0.2ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
|
290161
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
290162
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
|
290163
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
290164
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
290165
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
290166
|
+
[1m[35mSQL (0.2ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
|
290167
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
290168
|
+
[1m[35m (38.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
290173
|
+
[1m[35m (0.1ms)[0m COMMIT
|
290174
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
290175
|
+
[1m[35m (1.2ms)[0m 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
|
+
[1m[36m (57.4ms)[0m [1mCOMMIT[0m
|
290177
|
+
Processing by Sunrise::ManagerController#new as HTML
|
290178
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
290179
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
290180
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
290181
|
+
[1m[35mRole Load (0.3ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290182
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290183
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
290194
|
+
[1m[35m (0.1ms)[0m COMMIT
|
290195
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
290196
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (44.8ms)[0m [1mCOMMIT[0m
|
290198
|
+
Processing by Sunrise::ManagerController#new as HTML
|
290199
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
290200
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
290201
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
290202
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290203
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290204
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
290215
|
+
[1m[35m (0.1ms)[0m COMMIT
|
290216
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
290217
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (80.7ms)[0m [1mCOMMIT[0m
|
290219
|
+
Processing by Sunrise::ManagerController#new as HTML
|
290220
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
290221
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
290222
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
290223
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290224
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290225
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
290233
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
290234
|
+
[1m[36m (39.1ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
290235
|
+
[1m[35m (44.1ms)[0m TRUNCATE TABLE `audits`;
|
290236
|
+
[1m[36m (44.0ms)[0m [1mTRUNCATE TABLE `headers`;[0m
|
290237
|
+
[1m[35m (44.2ms)[0m TRUNCATE TABLE `page_parts`;
|
290238
|
+
[1m[36m (43.8ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
290239
|
+
[1m[35m (44.2ms)[0m TRUNCATE TABLE `roles`;
|
290240
|
+
[1m[36m (43.9ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
290241
|
+
[1m[35m (44.0ms)[0m TRUNCATE TABLE `structures`;
|
290242
|
+
[1m[36m (44.1ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
290243
|
+
[1m[35m (0.2ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
290244
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
290245
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing9@example.com' LIMIT 1
|
290246
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
290247
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (46.3ms)[0m [1mCOMMIT[0m
|
290249
|
+
[1m[35m (0.1ms)[0m BEGIN
|
290250
|
+
[1m[36mStructure Load (0.6ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1[0m
|
290251
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
|
290252
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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')[0m
|
290253
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
290254
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`[0m
|
290255
|
+
[1m[35m (38.1ms)[0m COMMIT
|
290256
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
290257
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
|
290258
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE[0m
|
290259
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1[0m
|
290261
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
290262
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`[0m
|
290263
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
|
290264
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
290265
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
290266
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`[0m
|
290267
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
290268
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft[0m
|
290269
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
290270
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
290271
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
290272
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`[0m
|
290273
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
290274
|
+
[1m[36m (37.0ms)[0m [1mCOMMIT[0m
|
290275
|
+
[1m[35m (0.1ms)[0m BEGIN
|
290276
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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')[0m
|
290277
|
+
[1m[35m (41.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
290282
|
+
[1m[35m (0.1ms)[0m COMMIT
|
290283
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
290284
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (36.6ms)[0m [1mCOMMIT[0m
|
290286
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
290287
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
|
290288
|
+
[1m[35mPost Load (0.4ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
|
290289
|
+
[1m[36mRole Load (0.5ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290290
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290291
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.4ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
290304
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1[0m
|
290305
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290306
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290307
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290308
|
+
[1m[36mRole Load (0.3ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1[0m
|
290309
|
+
[1m[35m (0.1ms)[0m BEGIN
|
290310
|
+
[1m[36m (0.3ms)[0m [1mUPDATE `posts` SET `title` = 'Aimbulance updated', `content` = 'Tra la la', `is_visible` = 0, `updated_at` = '2012-06-26 14:52:36' WHERE `posts`.`id` = 1[0m
|
290311
|
+
[1m[35m (64.2ms)[0m COMMIT
|
290312
|
+
[1m[36mStructure Load (0.6ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1[0m
|
290313
|
+
[1m[35mStructure Load (0.4ms)[0m 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
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
290322
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290323
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290324
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290325
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1[0m
|
290326
|
+
[1m[35mStructure Load (0.1ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
290327
|
+
[1m[36mPost Load (0.4ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0[0m
|
290328
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (3.2ms)
|
290329
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36mPost Load (0.4ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1[0m
|
290339
|
+
[1m[35mStructure Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
290344
|
+
[1m[35m (0.1ms)[0m COMMIT
|
290345
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
290346
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (183.4ms)[0m [1mCOMMIT[0m
|
290348
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
290349
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
|
290350
|
+
[1m[35mPost Load (0.3ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
|
290351
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290352
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290353
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.5ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
290366
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1[0m
|
290367
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290368
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290369
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290370
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1[0m
|
290371
|
+
[1m[35m (0.1ms)[0m BEGIN
|
290372
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
290373
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
290374
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
290383
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290384
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290385
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290386
|
+
[1m[35mStructure Load (0.1ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
290387
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
290388
|
+
[1m[35mPost Load (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2[0m
|
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
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
290412
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
290413
|
+
[1m[35m (152.2ms)[0m TRUNCATE TABLE `assets`;
|
290414
|
+
[1m[36m (43.8ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
290415
|
+
[1m[35m (44.1ms)[0m TRUNCATE TABLE `headers`;
|
290416
|
+
[1m[36m (55.1ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
290417
|
+
[1m[35m (110.5ms)[0m TRUNCATE TABLE `posts`;
|
290418
|
+
[1m[36m (55.2ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
290419
|
+
[1m[35m (54.8ms)[0m TRUNCATE TABLE `settings`;
|
290420
|
+
[1m[36m (55.4ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
290421
|
+
[1m[35m (88.2ms)[0m TRUNCATE TABLE `users`;
|
290422
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
290423
|
+
[1m[35m (0.1ms)[0m BEGIN
|
290424
|
+
[1m[36mUser Exists (0.3ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing10@example.com' LIMIT 1[0m
|
290425
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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)[0m
|
290427
|
+
[1m[35m (113.9ms)[0m COMMIT
|
290428
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
290429
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
|
290430
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE[0m
|
290431
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-26 14:52:37', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-26 14:52:37')
|
290432
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
290433
|
+
[1m[35mSQL (0.2ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
|
290434
|
+
[1m[36m (105.3ms)[0m [1mCOMMIT[0m
|
290435
|
+
[1m[35m (0.1ms)[0m BEGIN
|
290436
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1[0m
|
290437
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
|
290438
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-26 14:52:37', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-26 14:52:37')[0m
|
290439
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
|
290440
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
290441
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`
|
290442
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE[0m
|
290443
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
290444
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
290445
|
+
[1m[35mSQL (0.2ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
|
290446
|
+
[1m[36m (64.8ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
290447
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
|
290448
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
290449
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
290450
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
290451
|
+
[1m[35mSQL (0.2ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
|
290452
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
290453
|
+
[1m[35m (60.6ms)[0m COMMIT
|
290454
|
+
|
290455
|
+
|
290456
|
+
Started GET "/manage/" for 127.0.0.1 at 2012-06-26 17:52:37 +0300
|
290457
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
290458
|
+
[1m[35m (0.1ms)[0m COMMIT
|
290459
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
290460
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (54.0ms)[0m [1mCOMMIT[0m
|
290462
|
+
Processing by Sunrise::DashboardController#index as HTML
|
290463
|
+
[1m[35mRole Load (0.4ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290464
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290465
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290466
|
+
[1m[36mAudited::Adapters::ActiveRecord::Audit Load (0.4ms)[0m [1mSELECT `audits`.* FROM `audits` ORDER BY version LIMIT 50 OFFSET 0[0m
|
290467
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_event.html.erb (0.0ms)
|
290468
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
290476
|
+
[1m[35m (0.1ms)[0m COMMIT
|
290477
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
290478
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (49.3ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35m (0.1ms)[0m BEGIN
|
290487
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
290488
|
+
[1m[35m (0.1ms)[0m BEGIN
|
290489
|
+
[1m[36m (0.3ms)[0m [1mUPDATE `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[0m
|
290490
|
+
[1m[35m (55.3ms)[0m COMMIT
|
290491
|
+
Processing by Sunrise::ManagerController#index as HTML
|
290492
|
+
Parameters: {"model_name"=>"structures"}
|
290493
|
+
[1m[36mStructure Load (0.6ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `lft`[0m
|
290494
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 4) ORDER BY `lft`
|
290495
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290496
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290497
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290498
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `lft`
|
290499
|
+
[1m[36mStructure Load (0.6ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft[0m
|
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
|
+
[1m[35m (0.1ms)[0m BEGIN
|
290511
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
290512
|
+
[1m[35m (0.1ms)[0m BEGIN
|
290513
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `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[0m
|
290514
|
+
[1m[35m (56.9ms)[0m COMMIT
|
290515
|
+
Processing by Sunrise::ManagerController#index as HTML
|
290516
|
+
Parameters: {"model_name"=>"users"}
|
290517
|
+
[1m[36mRole Load (0.2ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290518
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290519
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290520
|
+
[1m[35mUser Load (0.6ms)[0m SELECT `users`.* FROM `users` LIMIT 25 OFFSET 0
|
290521
|
+
[1m[36mAvatar Load (0.4ms)[0m [1mSELECT `assets`.* FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`assetable_type` = 'User' AND `assets`.`assetable_id` IN (1) ORDER BY `assets`.sort_order[0m
|
290522
|
+
Rendered sunrise/manager/users/thumbs/_record.html.erb (3.1ms)
|
290523
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
290536
|
+
[1m[35m (0.2ms)[0m COMMIT
|
290537
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
290538
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (90.7ms)[0m [1mCOMMIT[0m
|
290540
|
+
Processing by Sunrise::ManagerController#index as HTML
|
290541
|
+
Parameters: {"model_name"=>"pages"}
|
290542
|
+
[1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290543
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290544
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
290559
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
290560
|
+
[1m[36m (56.0ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
290561
|
+
[1m[35m (54.8ms)[0m TRUNCATE TABLE `audits`;
|
290562
|
+
[1m[36m (55.1ms)[0m [1mTRUNCATE TABLE `headers`;[0m
|
290563
|
+
[1m[35m (54.9ms)[0m TRUNCATE TABLE `page_parts`;
|
290564
|
+
[1m[36m (68.0ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
290565
|
+
[1m[35m (44.0ms)[0m TRUNCATE TABLE `roles`;
|
290566
|
+
[1m[36m (44.1ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
290567
|
+
[1m[35m (44.1ms)[0m TRUNCATE TABLE `structures`;
|
290568
|
+
[1m[36m (66.2ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
290569
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
290570
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
290571
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing11@example.com' LIMIT 1
|
290572
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
290573
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (81.4ms)[0m [1mCOMMIT[0m
|
290575
|
+
|
290576
|
+
|
290577
|
+
Started GET "/manage/structures/new" for 127.0.0.1 at 2012-06-26 17:52:39 +0300
|
290578
|
+
[1m[35m (0.2ms)[0m BEGIN
|
290579
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
290580
|
+
[1m[35m (0.1ms)[0m BEGIN
|
290581
|
+
[1m[36m (0.6ms)[0m [1mUPDATE `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[0m
|
290582
|
+
[1m[35m (58.4ms)[0m COMMIT
|
290583
|
+
Processing by Sunrise::ManagerController#new as HTML
|
290584
|
+
Parameters: {"model_name"=>"structures"}
|
290585
|
+
[1m[36mRole Load (0.5ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290586
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290587
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.4ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
290600
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290601
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290602
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290603
|
+
[1m[35mRole Load (0.3ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
|
290604
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
290605
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE (`slug` = 'aimbulance' OR `slug` LIKE 'aimbulance--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
|
290606
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE[0m
|
290607
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
290609
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
|
290610
|
+
[1m[36m (55.5ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35mUser Load (0.1ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
290619
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290620
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290621
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290622
|
+
[1m[35mStructure Load (0.4ms)[0m 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
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`id` DESC LIMIT 1[0m
|
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
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
290643
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
290644
|
+
[1m[35m (56.2ms)[0m TRUNCATE TABLE `assets`;
|
290645
|
+
[1m[36m (54.9ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
290646
|
+
[1m[35m (44.2ms)[0m TRUNCATE TABLE `headers`;
|
290647
|
+
[1m[36m (44.1ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
290648
|
+
[1m[35m (44.0ms)[0m TRUNCATE TABLE `posts`;
|
290649
|
+
[1m[36m (44.0ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
290650
|
+
[1m[35m (44.0ms)[0m TRUNCATE TABLE `settings`;
|
290651
|
+
[1m[36m (88.5ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
290652
|
+
[1m[35m (43.9ms)[0m TRUNCATE TABLE `users`;
|
290653
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
290654
|
+
[1m[35m (0.2ms)[0m BEGIN
|
290655
|
+
[1m[36mUser Exists (0.4ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing12@example.com' LIMIT 1[0m
|
290656
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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)[0m
|
290658
|
+
[1m[35m (89.8ms)[0m COMMIT
|
290659
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
290660
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
|
290661
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE[0m
|
290662
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
290664
|
+
[1m[35mSQL (0.2ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
|
290665
|
+
[1m[36m (69.6ms)[0m [1mCOMMIT[0m
|
290666
|
+
[1m[35m (0.1ms)[0m BEGIN
|
290667
|
+
[1m[36mStructure Load (0.6ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1[0m
|
290668
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
|
290669
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-26 14:52:39', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-26 14:52:39')[0m
|
290670
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
|
290671
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
290672
|
+
[1m[35mSQL (0.6ms)[0m UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`
|
290673
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE[0m
|
290674
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
290675
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
290676
|
+
[1m[35mSQL (0.2ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
|
290677
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
290678
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
|
290679
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
290680
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
290681
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
290682
|
+
[1m[35mSQL (0.1ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
|
290683
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
290684
|
+
[1m[35m (36.9ms)[0m COMMIT
|
290685
|
+
|
290686
|
+
|
290687
|
+
Started GET "/manage/users/export.xlsx" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
|
290688
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
290689
|
+
[1m[35m (0.0ms)[0m COMMIT
|
290690
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
290691
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mCOMMIT[0m
|
290693
|
+
Processing by Sunrise::ManagerController#export as XLSX
|
290694
|
+
Parameters: {"model_name"=>"users"}
|
290695
|
+
[1m[35mRole Load (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290696
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290697
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT `users`.* FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000 OFFSET 0[0m
|
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
|
+
[1m[35m (0.0ms)[0m BEGIN
|
290706
|
+
[1m[36m (0.0ms)[0m [1mCOMMIT[0m
|
290707
|
+
[1m[35m (0.0ms)[0m BEGIN
|
290708
|
+
[1m[36m (0.0ms)[0m [1mUPDATE `users` SET `sign_in_count` = 2 WHERE `users`.`id` = 1[0m
|
290709
|
+
[1m[35m (0.0ms)[0m COMMIT
|
290710
|
+
Processing by Sunrise::ManagerController#export as CSV
|
290711
|
+
Parameters: {"model_name"=>"users"}
|
290712
|
+
[1m[36mRole Load (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290713
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290714
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290715
|
+
Scoped order and limit are ignored, it's forced to be batch order and batch size
|
290716
|
+
[1m[35mUser Load (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
290723
|
+
[1m[35m (0.0ms)[0m COMMIT
|
290724
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
290725
|
+
[1m[35m (0.0ms)[0m UPDATE `users` SET `sign_in_count` = 3 WHERE `users`.`id` = 1
|
290726
|
+
[1m[36m (0.0ms)[0m [1mCOMMIT[0m
|
290727
|
+
Processing by Sunrise::ManagerController#export as JSON
|
290728
|
+
Parameters: {"model_name"=>"users"}
|
290729
|
+
[1m[35mRole Load (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290730
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290731
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290732
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT `users`.* FROM `users` LIMIT 25 OFFSET 0[0m
|
290733
|
+
Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
|
290734
|
+
[1m[35m (0.0ms)[0m BEGIN
|
290735
|
+
[1m[36mSQL (0.0ms)[0m [1mINSERT 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')[0m
|
290736
|
+
[1m[35m (0.0ms)[0m COMMIT
|
290737
|
+
|
290738
|
+
|
290739
|
+
Started GET "/manage/posts/export.csv" for 127.0.0.1 at 2012-01-01 16:00:00 UTC
|
290740
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
290741
|
+
[1m[35m (0.0ms)[0m COMMIT
|
290742
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
290743
|
+
[1m[35m (0.0ms)[0m UPDATE `users` SET `sign_in_count` = 4 WHERE `users`.`id` = 1
|
290744
|
+
[1m[36m (0.0ms)[0m [1mCOMMIT[0m
|
290745
|
+
Processing by Sunrise::ManagerController#export as CSV
|
290746
|
+
Parameters: {"model_name"=>"posts"}
|
290747
|
+
[1m[35mRole Load (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290748
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290749
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36mPost Load (0.0ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (`posts`.`id` >= 0) ORDER BY `posts`.`id` ASC LIMIT 1000 OFFSET 0[0m
|
290752
|
+
[1m[35mStructure Load (0.0ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
290759
|
+
[1m[35m (0.0ms)[0m COMMIT
|
290760
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
290761
|
+
[1m[35m (0.0ms)[0m UPDATE `users` SET `sign_in_count` = 5 WHERE `users`.`id` = 1
|
290762
|
+
[1m[36m (0.0ms)[0m [1mCOMMIT[0m
|
290763
|
+
Processing by Sunrise::ManagerController#export as XLSX
|
290764
|
+
Parameters: {"model_name"=>"structures"}
|
290765
|
+
[1m[35mRole Load (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290766
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290767
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36mStructure Load (0.0ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`structures`.`id` >= 0) ORDER BY `structures`.`id` ASC LIMIT 1000 OFFSET 0[0m
|
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
|
+
[1m[35m (0.0ms)[0m BEGIN
|
290776
|
+
[1m[36m (0.0ms)[0m [1mCOMMIT[0m
|
290777
|
+
[1m[35m (0.0ms)[0m BEGIN
|
290778
|
+
[1m[36m (0.0ms)[0m [1mUPDATE `users` SET `sign_in_count` = 6 WHERE `users`.`id` = 1[0m
|
290779
|
+
[1m[35m (0.0ms)[0m COMMIT
|
290780
|
+
Processing by Sunrise::ManagerController#export as XML
|
290781
|
+
Parameters: {"model_name"=>"structures"}
|
290782
|
+
[1m[36mRole Load (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290783
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290784
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290785
|
+
[1m[35mStructure Load (0.0ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
290794
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
290795
|
+
[1m[36m (40.8ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
290796
|
+
[1m[35m (155.3ms)[0m TRUNCATE TABLE `audits`;
|
290797
|
+
[1m[36m (99.2ms)[0m [1mTRUNCATE TABLE `headers`;[0m
|
290798
|
+
[1m[35m (309.0ms)[0m TRUNCATE TABLE `page_parts`;
|
290799
|
+
[1m[36m (232.6ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
290800
|
+
[1m[35m (55.0ms)[0m TRUNCATE TABLE `roles`;
|
290801
|
+
[1m[36m (55.2ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
290802
|
+
[1m[35m (55.1ms)[0m TRUNCATE TABLE `structures`;
|
290803
|
+
[1m[36m (69.1ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
290804
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
290805
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
290806
|
+
[1m[35mUser Exists (0.5ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing13@example.com' LIMIT 1
|
290807
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
290808
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (62.7ms)[0m [1mCOMMIT[0m
|
290810
|
+
[1m[35m (0.2ms)[0m BEGIN
|
290811
|
+
[1m[36mStructure Load (0.6ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1[0m
|
290812
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
|
290813
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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')[0m
|
290814
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
290815
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`[0m
|
290816
|
+
[1m[35m (55.1ms)[0m COMMIT
|
290817
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
290818
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
|
290819
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE[0m
|
290820
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-26 14:52:42', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-26 14:52:42')
|
290821
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1[0m
|
290822
|
+
[1m[35mStructure Load (0.1ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
290823
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`[0m
|
290824
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
|
290825
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
290826
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
290827
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`[0m
|
290828
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
290829
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft[0m
|
290830
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
290831
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
290832
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
290833
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`[0m
|
290834
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
290835
|
+
[1m[36m (48.3ms)[0m [1mCOMMIT[0m
|
290836
|
+
|
290837
|
+
|
290838
|
+
Started GET "/manage/structures/2" for 127.0.0.1 at 2012-06-26 17:52:42 +0300
|
290839
|
+
[1m[35m (0.1ms)[0m BEGIN
|
290840
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
290841
|
+
[1m[35m (0.0ms)[0m BEGIN
|
290842
|
+
[1m[36m (0.3ms)[0m [1mUPDATE `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[0m
|
290843
|
+
[1m[35m (49.2ms)[0m COMMIT
|
290844
|
+
Processing by Sunrise::ManagerController#show as HTML
|
290845
|
+
Parameters: {"model_name"=>"structures", "id"=>"2"}
|
290846
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1[0m
|
290847
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
290848
|
+
[1m[36mRole Load (0.3ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290849
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290850
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
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
|
+
[1m[35m (0.2ms)[0m BEGIN
|
290860
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
290861
|
+
[1m[35m (0.1ms)[0m BEGIN
|
290862
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `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[0m
|
290863
|
+
[1m[35m (64.9ms)[0m COMMIT
|
290864
|
+
Processing by Sunrise::ManagerController#show as HTML
|
290865
|
+
Parameters: {"model_name"=>"structures", "id"=>"2"}
|
290866
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1[0m
|
290867
|
+
[1m[35mStructure Load (0.1ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
290868
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290869
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290870
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
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
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
290889
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
290890
|
+
[1m[35m (67.9ms)[0m TRUNCATE TABLE `assets`;
|
290891
|
+
[1m[36m (55.1ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
290892
|
+
[1m[35m (55.1ms)[0m TRUNCATE TABLE `headers`;
|
290893
|
+
[1m[36m (55.2ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
290894
|
+
[1m[35m (55.0ms)[0m TRUNCATE TABLE `posts`;
|
290895
|
+
[1m[36m (99.3ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
290896
|
+
[1m[35m (54.9ms)[0m TRUNCATE TABLE `settings`;
|
290897
|
+
[1m[36m (54.9ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
290898
|
+
[1m[35m (55.2ms)[0m TRUNCATE TABLE `users`;
|
290899
|
+
[1m[36m (0.2ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
290900
|
+
[1m[35m (0.1ms)[0m BEGIN
|
290901
|
+
[1m[36mUser Exists (0.4ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing14@example.com' LIMIT 1[0m
|
290902
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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)[0m
|
290904
|
+
[1m[35m (47.3ms)[0m COMMIT
|
290905
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
290906
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
|
290907
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE[0m
|
290908
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-26 14:52:43', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-26 14:52:43')
|
290909
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
290910
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
|
290911
|
+
[1m[36m (35.7ms)[0m [1mCOMMIT[0m
|
290912
|
+
[1m[35m (0.1ms)[0m BEGIN
|
290913
|
+
[1m[36mStructure Load (0.6ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1[0m
|
290914
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
|
290915
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-26 14:52:43', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-26 14:52:43')[0m
|
290916
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
|
290917
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
290918
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`
|
290919
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE[0m
|
290920
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
290921
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
290922
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
|
290923
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
290924
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
|
290925
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
290926
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
290927
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
290928
|
+
[1m[35mSQL (0.1ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
|
290929
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
290930
|
+
[1m[35m (45.8ms)[0m COMMIT
|
290931
|
+
|
290932
|
+
|
290933
|
+
Started GET "/manage/structures" for 127.0.0.1 at 2012-06-26 17:52:43 +0300
|
290934
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
290935
|
+
[1m[35m (0.2ms)[0m COMMIT
|
290936
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
290937
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (41.9ms)[0m [1mCOMMIT[0m
|
290939
|
+
Processing by Sunrise::ManagerController#index as HTML
|
290940
|
+
Parameters: {"model_name"=>"structures"}
|
290941
|
+
[1m[35mRole Load (0.6ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290942
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290943
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290944
|
+
[1m[36mStructure Load (0.6ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `lft`[0m
|
290945
|
+
[1m[35mStructure Load (0.6ms)[0m 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
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
290959
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
290960
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
290961
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290962
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290963
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290964
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
290965
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
290966
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT id FROM `structures` WHERE (`lft` >= 2) FOR UPDATE[0m
|
290967
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM `structures` WHERE (`lft` > 2 AND `rgt` < 3)
|
290968
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `structures` SET `lft` = (`lft` - 2) WHERE (`lft` > 3) ORDER BY `lft`[0m
|
290969
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `rgt` = (`rgt` - 2) WHERE (`rgt` > 3) ORDER BY `lft`
|
290970
|
+
[1m[36mPagePart Load (0.4ms)[0m [1mSELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'[0m
|
290971
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM `posts` WHERE `posts`.`structure_id` = 2
|
290972
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM `structures` WHERE `structures`.`id` = 2[0m
|
290973
|
+
[1m[35m (36.5ms)[0m 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
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
290982
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290983
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
290984
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
290985
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `lft`[0m
|
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
|
+
[1m[35mStructure Load (0.5ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
291006
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
291007
|
+
[1m[36m (68.6ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
291008
|
+
[1m[35m (98.6ms)[0m TRUNCATE TABLE `audits`;
|
291009
|
+
[1m[36m (44.3ms)[0m [1mTRUNCATE TABLE `headers`;[0m
|
291010
|
+
[1m[35m (43.8ms)[0m TRUNCATE TABLE `page_parts`;
|
291011
|
+
[1m[36m (44.0ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
291012
|
+
[1m[35m (44.4ms)[0m TRUNCATE TABLE `roles`;
|
291013
|
+
[1m[36m (44.0ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
291014
|
+
[1m[35m (88.3ms)[0m TRUNCATE TABLE `structures`;
|
291015
|
+
[1m[36m (43.9ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
291016
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
291017
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291018
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing15@example.com' LIMIT 1
|
291019
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
291020
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (35.2ms)[0m [1mCOMMIT[0m
|
291022
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291023
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1[0m
|
291024
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
|
291025
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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')[0m
|
291026
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
291027
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`[0m
|
291028
|
+
[1m[35m (49.4ms)[0m COMMIT
|
291029
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291030
|
+
[1m[35mStructure Load (0.6ms)[0m SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
|
291031
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE[0m
|
291032
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-26 14:52:44', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-26 14:52:44')
|
291033
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1[0m
|
291034
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
291035
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`[0m
|
291036
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
|
291037
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
291038
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
291039
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`[0m
|
291040
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
291041
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft[0m
|
291042
|
+
[1m[35mStructure Load (0.1ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
291043
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
291044
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
291045
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`[0m
|
291046
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
291047
|
+
[1m[36m (38.8ms)[0m [1mCOMMIT[0m
|
291048
|
+
|
291049
|
+
|
291050
|
+
Started GET "/manage/whatever/2/edit" for 127.0.0.1 at 2012-06-26 17:52:44 +0300
|
291051
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291052
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
291053
|
+
[1m[35m (0.0ms)[0m BEGIN
|
291054
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `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[0m
|
291055
|
+
[1m[35m (43.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291063
|
+
[1m[35m (0.1ms)[0m COMMIT
|
291064
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
291065
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (35.4ms)[0m [1mCOMMIT[0m
|
291067
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
291068
|
+
Parameters: {"model_name"=>"structures", "id"=>"2"}
|
291069
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
291070
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
291071
|
+
[1m[35mRole Load (0.3ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
291072
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
291073
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
291084
|
+
[1m[35m (0.1ms)[0m COMMIT
|
291085
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291086
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (44.7ms)[0m [1mCOMMIT[0m
|
291088
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
291089
|
+
Parameters: {"model_name"=>"structures", "id"=>"2"}
|
291090
|
+
[1m[35mStructure Load (0.1ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
291091
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
291092
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
291093
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
291094
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291105
|
+
[1m[35m (0.1ms)[0m COMMIT
|
291106
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291107
|
+
[1m[35m (0.5ms)[0m 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
|
+
[1m[36m (43.9ms)[0m [1mCOMMIT[0m
|
291109
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
291110
|
+
Parameters: {"model_name"=>"pages", "id"=>"2"}
|
291111
|
+
[1m[35mStructure Load (0.1ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
291112
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
291113
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
291114
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
291115
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36mPagePart Load (0.7ms)[0m [1mSELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'[0m
|
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
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291127
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
291128
|
+
[1m[35m (0.0ms)[0m BEGIN
|
291129
|
+
[1m[36m (0.3ms)[0m [1mUPDATE `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[0m
|
291130
|
+
[1m[35m (54.8ms)[0m COMMIT
|
291131
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
291132
|
+
Parameters: {"model_name"=>"pages", "id"=>"2"}
|
291133
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1[0m
|
291134
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
291135
|
+
[1m[36mRole Load (0.2ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
291136
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
291137
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
291138
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
|
291139
|
+
[1m[35mPagePart Load (0.2ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
291158
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
291159
|
+
[1m[36m (39.1ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
291160
|
+
[1m[35m (44.2ms)[0m TRUNCATE TABLE `audits`;
|
291161
|
+
[1m[36m (43.9ms)[0m [1mTRUNCATE TABLE `headers`;[0m
|
291162
|
+
[1m[35m (44.0ms)[0m TRUNCATE TABLE `page_parts`;
|
291163
|
+
[1m[36m (44.0ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
291164
|
+
[1m[35m (43.9ms)[0m TRUNCATE TABLE `roles`;
|
291165
|
+
[1m[36m (44.0ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
291166
|
+
[1m[35m (44.0ms)[0m TRUNCATE TABLE `structures`;
|
291167
|
+
[1m[36m (43.9ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
291168
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
291169
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
291170
|
+
[1m[35mUser Exists (0.5ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing16@example.com' LIMIT 1
|
291171
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
291172
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (44.9ms)[0m [1mCOMMIT[0m
|
291174
|
+
|
291175
|
+
|
291176
|
+
Started GET "/manage/whatever/new" for 127.0.0.1 at 2012-06-26 17:52:45 +0300
|
291177
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291178
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
291179
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291180
|
+
[1m[36m (0.3ms)[0m [1mUPDATE `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[0m
|
291181
|
+
[1m[35m (38.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291189
|
+
[1m[35m (0.1ms)[0m COMMIT
|
291190
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291191
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (35.6ms)[0m [1mCOMMIT[0m
|
291193
|
+
Processing by Sunrise::ManagerController#new as HTML
|
291194
|
+
Parameters: {"model_name"=>"structures"}
|
291195
|
+
[1m[35mRole Load (0.6ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
291196
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
291197
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291208
|
+
[1m[35m (0.1ms)[0m COMMIT
|
291209
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
291210
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (36.5ms)[0m [1mCOMMIT[0m
|
291212
|
+
Processing by Sunrise::ManagerController#new as HTML
|
291213
|
+
Parameters: {"model_name"=>"structures"}
|
291214
|
+
[1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
291215
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
291216
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
291236
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
291237
|
+
[1m[36m (42.2ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
291238
|
+
[1m[35m (55.1ms)[0m TRUNCATE TABLE `audits`;
|
291239
|
+
[1m[36m (101.2ms)[0m [1mTRUNCATE TABLE `headers`;[0m
|
291240
|
+
[1m[35m (86.3ms)[0m TRUNCATE TABLE `page_parts`;
|
291241
|
+
[1m[36m (55.2ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
291242
|
+
[1m[35m (54.8ms)[0m TRUNCATE TABLE `roles`;
|
291243
|
+
[1m[36m (55.2ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
291244
|
+
[1m[35m (55.1ms)[0m TRUNCATE TABLE `structures`;
|
291245
|
+
[1m[36m (55.2ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
291246
|
+
[1m[35m (0.2ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
291247
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291248
|
+
[1m[35mUser Exists (0.3ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing17@example.com' LIMIT 1
|
291249
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
291250
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (47.0ms)[0m [1mCOMMIT[0m
|
291252
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291253
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1[0m
|
291254
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
|
291255
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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')[0m
|
291256
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
291257
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`[0m
|
291258
|
+
[1m[35m (47.0ms)[0m COMMIT
|
291259
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291260
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
|
291261
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE[0m
|
291262
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1[0m
|
291264
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
291265
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`[0m
|
291266
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
|
291267
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
291268
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
291269
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`[0m
|
291270
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
291271
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft[0m
|
291272
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
291273
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
291274
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
291275
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`[0m
|
291276
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
291277
|
+
[1m[36m (49.1ms)[0m [1mCOMMIT[0m
|
291278
|
+
|
291279
|
+
|
291280
|
+
Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2012-06-26 17:52:46 +0300
|
291281
|
+
[1m[35m (0.2ms)[0m BEGIN
|
291282
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
291283
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291284
|
+
[1m[36m (0.5ms)[0m [1mUPDATE `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[0m
|
291285
|
+
[1m[35m (60.6ms)[0m COMMIT
|
291286
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
291287
|
+
Parameters: {"model_name"=>"structures", "id"=>"2"}
|
291288
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1[0m
|
291289
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
291290
|
+
[1m[36mRole Load (0.4ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
291291
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
291292
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.7ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
291305
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1[0m
|
291306
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
291307
|
+
[1m[36mRole Load (0.2ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
291308
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
291309
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
291310
|
+
[1m[35mRole Load (0.3ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
|
291311
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291312
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
291314
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
291315
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`[0m
|
291316
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
291317
|
+
[1m[36m (68.2ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
291326
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
291327
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
291328
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
291329
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `lft`
|
291330
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft[0m
|
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
|
+
[1m[35mStructure Load (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291343
|
+
[1m[35m (0.1ms)[0m COMMIT
|
291344
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291345
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (53.4ms)[0m [1mCOMMIT[0m
|
291347
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
291348
|
+
Parameters: {"model_name"=>"structures", "id"=>"2"}
|
291349
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
291350
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
291351
|
+
[1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
291352
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
291353
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36mUser Load (0.6ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
291366
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
291367
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
291368
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
291369
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
291370
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
291371
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1[0m
|
291372
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291373
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
291374
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
291375
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`[0m
|
291376
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
291377
|
+
[1m[36m (70.6ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
291386
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
291387
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
291388
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
291389
|
+
[1m[35mStructure Load (0.1ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `lft`
|
291390
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft[0m
|
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
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291399
|
+
[1m[36mPagePart Load (0.5ms)[0m [1mSELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'[0m
|
291400
|
+
[1m[35mPagePart Exists (0.4ms)[0m SELECT 1 FROM `page_parts` WHERE (`page_parts`.`key` = BINARY 'main' AND `page_parts`.`partable_type` = 'Structure' AND `page_parts`.`partable_id` = 2) LIMIT 1
|
291401
|
+
[1m[36mPagePart Exists (0.2ms)[0m [1mSELECT 1 FROM `page_parts` WHERE (`page_parts`.`key` = BINARY 'sidebar' AND `page_parts`.`partable_type` = 'Structure' AND `page_parts`.`partable_id` = 2) LIMIT 1[0m
|
291402
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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')[0m
|
291404
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
291405
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
291406
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
|
291407
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
291408
|
+
[1m[35m (47.8ms)[0m COMMIT
|
291409
|
+
|
291410
|
+
|
291411
|
+
Started GET "/manage/pages/2/edit" for 127.0.0.1 at 2012-06-26 17:52:47 +0300
|
291412
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291413
|
+
[1m[35m (0.1ms)[0m COMMIT
|
291414
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291415
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (92.9ms)[0m [1mCOMMIT[0m
|
291417
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
291418
|
+
Parameters: {"model_name"=>"pages", "id"=>"2"}
|
291419
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1
|
291420
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
291421
|
+
[1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
291422
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
291423
|
+
[1m[35mCACHE (0.0ms)[0m 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
|
+
[1m[36mPagePart Load (0.6ms)[0m [1mSELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'[0m
|
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
|
+
[1m[35mUser Load (0.5ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
291437
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = '2' LIMIT 1[0m
|
291438
|
+
[1m[35mStructure Load (0.1ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
291439
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
291440
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
291441
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
291442
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1
|
291443
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
291444
|
+
[1m[35mPagePart Load (0.3ms)[0m SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
|
291445
|
+
[1m[36mPagePart Exists (0.3ms)[0m [1mSELECT 1 FROM `page_parts` WHERE (`page_parts`.`key` = BINARY 'main' AND `page_parts`.`id` != 1 AND `page_parts`.`partable_type` = 'Structure' AND `page_parts`.`partable_id` = 2) LIMIT 1[0m
|
291446
|
+
[1m[35mPagePart Exists (0.2ms)[0m SELECT 1 FROM `page_parts` WHERE (`page_parts`.`key` = BINARY 'sidebar' AND `page_parts`.`id` != 2 AND `page_parts`.`partable_type` = 'Structure' AND `page_parts`.`partable_id` = 2) LIMIT 1
|
291447
|
+
[1m[36m (0.3ms)[0m [1mUPDATE `page_parts` SET `content` = 'Main updated', `updated_at` = '2012-06-26 14:52:47' WHERE `page_parts`.`id` = 1[0m
|
291448
|
+
[1m[35m (0.2ms)[0m UPDATE `page_parts` SET `content` = 'Sidebar updated', `updated_at` = '2012-06-26 14:52:47' WHERE `page_parts`.`id` = 2
|
291449
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
291450
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
291451
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`[0m
|
291452
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
291453
|
+
[1m[36m (54.2ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
291462
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
291463
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
291464
|
+
[1m[36mCACHE (0.0ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
291465
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `lft`
|
291466
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft[0m
|
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
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
291475
|
+
[1m[36mPagePart Load (0.5ms)[0m [1mSELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'[0m
|
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
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
291489
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
291490
|
+
[1m[35m (64.6ms)[0m TRUNCATE TABLE `assets`;
|
291491
|
+
[1m[36m (55.2ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
291492
|
+
[1m[35m (44.1ms)[0m TRUNCATE TABLE `headers`;
|
291493
|
+
[1m[36m (44.0ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
291494
|
+
[1m[35m (44.1ms)[0m TRUNCATE TABLE `posts`;
|
291495
|
+
[1m[36m (44.0ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
291496
|
+
[1m[35m (43.9ms)[0m TRUNCATE TABLE `settings`;
|
291497
|
+
[1m[36m (44.1ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
291498
|
+
[1m[35m (44.0ms)[0m TRUNCATE TABLE `users`;
|
291499
|
+
[1m[36m (0.2ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
291500
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
291501
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
291502
|
+
[1m[35m (290.7ms)[0m TRUNCATE TABLE `assets`;
|
291503
|
+
[1m[36m (198.9ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
291504
|
+
[1m[35m (43.9ms)[0m TRUNCATE TABLE `headers`;
|
291505
|
+
[1m[36m (44.2ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
291506
|
+
[1m[35m (44.0ms)[0m TRUNCATE TABLE `posts`;
|
291507
|
+
[1m[36m (44.0ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
291508
|
+
[1m[35m (43.9ms)[0m TRUNCATE TABLE `settings`;
|
291509
|
+
[1m[36m (44.1ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
291510
|
+
[1m[35m (43.9ms)[0m TRUNCATE TABLE `users`;
|
291511
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
291512
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291513
|
+
[1m[36mUser Exists (0.4ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing18@example.com' LIMIT 1[0m
|
291514
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT 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)[0m
|
291516
|
+
[1m[35m (61.1ms)[0m COMMIT
|
291517
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
291518
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (1, 'User', '2012-06-26 14:52:49', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-26 14:52:49', NULL, 50)
|
291519
|
+
[1m[36m (50.4ms)[0m [1mCOMMIT[0m
|
291520
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291521
|
+
[1m[36mUser Exists (0.5ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing19@example.com' LIMIT 1[0m
|
291522
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT 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)[0m
|
291524
|
+
[1m[35m (57.3ms)[0m COMMIT
|
291525
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
291526
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing20@example.com' LIMIT 1
|
291527
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
291528
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (79.6ms)[0m [1mCOMMIT[0m
|
291530
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291531
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (3, 'User', '2012-06-26 14:52:51', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-26 14:52:51', NULL, 50)[0m
|
291532
|
+
[1m[35m (60.6ms)[0m COMMIT
|
291533
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
291534
|
+
[1m[35mUser Exists (0.5ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing21@example.com' LIMIT 1
|
291535
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
291536
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (58.8ms)[0m [1mCOMMIT[0m
|
291538
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291539
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (4, 'User', '2012-06-26 14:52:51', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-26 14:52:51', NULL, 50)[0m
|
291540
|
+
[1m[35m (48.0ms)[0m COMMIT
|
291541
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291542
|
+
[1m[35mUser Exists (0.3ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing22@example.com' LIMIT 1
|
291543
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
291544
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (68.2ms)[0m [1mCOMMIT[0m
|
291546
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291547
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (5, 'User', '2012-06-26 14:52:52', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-26 14:52:52', NULL, 50)[0m
|
291548
|
+
[1m[35m (78.8ms)[0m COMMIT
|
291549
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291550
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing23@example.com' LIMIT 1
|
291551
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
291552
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (50.9ms)[0m [1mCOMMIT[0m
|
291554
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291555
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (6, 'User', '2012-06-26 14:52:52', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-26 14:52:52', NULL, 50)[0m
|
291556
|
+
[1m[35m (46.6ms)[0m COMMIT
|
291557
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291558
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing24@example.com' LIMIT 1
|
291559
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
291560
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (63.0ms)[0m [1mCOMMIT[0m
|
291562
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291563
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (7, 'User', '2012-06-26 14:52:53', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-26 14:52:53', NULL, 50)[0m
|
291564
|
+
[1m[35m (50.0ms)[0m COMMIT
|
291565
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291566
|
+
[1m[35mUser Exists (0.3ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing25@example.com' LIMIT 1
|
291567
|
+
[1m[36mSQL (67.5ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
291568
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (99.7ms)[0m [1mCOMMIT[0m
|
291570
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291571
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (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)[0m
|
291572
|
+
[1m[35m (56.4ms)[0m COMMIT
|
291573
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
291574
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing26@example.com' LIMIT 1
|
291575
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
291576
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (63.4ms)[0m [1mCOMMIT[0m
|
291578
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291579
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (9, 'User', '2012-06-26 14:52:53', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-26 14:52:53', NULL, 50)[0m
|
291580
|
+
[1m[35m (60.3ms)[0m COMMIT
|
291581
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
291582
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing27@example.com' LIMIT 1
|
291583
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
291584
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (55.6ms)[0m [1mCOMMIT[0m
|
291586
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291587
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (10, 'User', '2012-06-26 14:52:54', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-26 14:52:54', NULL, 50)[0m
|
291588
|
+
[1m[35m (87.4ms)[0m COMMIT
|
291589
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291590
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing28@example.com' LIMIT 1
|
291591
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
291592
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (65.0ms)[0m [1mCOMMIT[0m
|
291594
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291595
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (11, 'User', '2012-06-26 14:52:54', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-26 14:52:54', NULL, 50)[0m
|
291596
|
+
[1m[35m (48.2ms)[0m COMMIT
|
291597
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
291598
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing29@example.com' LIMIT 1
|
291599
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
291600
|
+
[1m[35mSQL (57.8ms)[0m 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
|
+
[1m[36m (63.0ms)[0m [1mCOMMIT[0m
|
291602
|
+
[1m[35m (0.2ms)[0m BEGIN
|
291603
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (12, 'User', '2012-06-26 14:52:55', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-26 14:52:55', NULL, 50)[0m
|
291604
|
+
[1m[35m (56.2ms)[0m COMMIT
|
291605
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
291606
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
291607
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291608
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing30@example.com' LIMIT 1
|
291609
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
291610
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (50.7ms)[0m [1mCOMMIT[0m
|
291612
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291613
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (13, 'User', '2012-06-26 14:52:55', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-26 14:52:55', NULL, 50)[0m
|
291614
|
+
[1m[35m (38.4ms)[0m COMMIT
|
291615
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291616
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing31@example.com' LIMIT 1
|
291617
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
291618
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (54.8ms)[0m [1mCOMMIT[0m
|
291620
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291621
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (14, 'User', '2012-06-26 14:52:56', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-26 14:52:56', NULL, 50)[0m
|
291622
|
+
[1m[35m (64.6ms)[0m COMMIT
|
291623
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291624
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing32@example.com' LIMIT 1
|
291625
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
291626
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (55.6ms)[0m [1mCOMMIT[0m
|
291628
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291629
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `assets` (`assetable_id`, `assetable_type`, `created_at`, `data_content_type`, `data_file_name`, `data_file_size`, `guid`, `height`, `locale`, `sort_order`, `type`, `updated_at`, `user_id`, `width`) VALUES (15, 'User', '2012-06-26 14:52:56', 'image/png', 'rails.png', 6428, NULL, 64, 0, 0, 'Avatar', '2012-06-26 14:52:56', NULL, 50)[0m
|
291630
|
+
[1m[35m (68.4ms)[0m COMMIT
|
291631
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
291632
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
291633
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
291634
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
291635
|
+
[1m[36m (55.9ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
291636
|
+
[1m[35m (55.1ms)[0m TRUNCATE TABLE `audits`;
|
291637
|
+
[1m[36m (55.4ms)[0m [1mTRUNCATE TABLE `headers`;[0m
|
291638
|
+
[1m[35m (55.0ms)[0m TRUNCATE TABLE `page_parts`;
|
291639
|
+
[1m[36m (54.9ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
291640
|
+
[1m[35m (55.2ms)[0m TRUNCATE TABLE `roles`;
|
291641
|
+
[1m[36m (55.2ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
291642
|
+
[1m[35m (55.0ms)[0m TRUNCATE TABLE `structures`;
|
291643
|
+
[1m[36m (55.2ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
291644
|
+
[1m[35m (0.2ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
291645
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
291646
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
291647
|
+
[1m[36m (103.5ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
291648
|
+
[1m[35m (87.9ms)[0m TRUNCATE TABLE `audits`;
|
291649
|
+
[1m[36m (44.2ms)[0m [1mTRUNCATE TABLE `headers`;[0m
|
291650
|
+
[1m[35m (44.0ms)[0m TRUNCATE TABLE `page_parts`;
|
291651
|
+
[1m[36m (43.9ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
291652
|
+
[1m[35m (43.9ms)[0m TRUNCATE TABLE `roles`;
|
291653
|
+
[1m[36m (44.4ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
291654
|
+
[1m[35m (44.0ms)[0m TRUNCATE TABLE `structures`;
|
291655
|
+
[1m[36m (44.2ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
291656
|
+
[1m[35m (0.2ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
291657
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291658
|
+
[1m[35mUser Exists (0.3ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing33@example.com' LIMIT 1
|
291659
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
291660
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (46.0ms)[0m [1mCOMMIT[0m
|
291662
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291663
|
+
[1m[36mUser Exists (0.4ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing34@example.com' LIMIT 1[0m
|
291664
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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)[0m
|
291666
|
+
[1m[35m (51.2ms)[0m COMMIT
|
291667
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291668
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing35@example.com' LIMIT 1
|
291669
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
291670
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (64.9ms)[0m [1mCOMMIT[0m
|
291672
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291673
|
+
[1m[36mUser Exists (0.4ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing36@example.com' LIMIT 1[0m
|
291674
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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)[0m
|
291676
|
+
[1m[35m (83.0ms)[0m COMMIT
|
291677
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291678
|
+
[1m[35mUser Exists (0.5ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing37@example.com' LIMIT 1
|
291679
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
291680
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (71.3ms)[0m [1mCOMMIT[0m
|
291682
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
291683
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
291684
|
+
[1m[35m (121.7ms)[0m TRUNCATE TABLE `assets`;
|
291685
|
+
[1m[36m (57.7ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
291686
|
+
[1m[35m (55.2ms)[0m TRUNCATE TABLE `headers`;
|
291687
|
+
[1m[36m (54.8ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
291688
|
+
[1m[35m (55.3ms)[0m TRUNCATE TABLE `posts`;
|
291689
|
+
[1m[36m (66.0ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
291690
|
+
[1m[35m (43.9ms)[0m TRUNCATE TABLE `settings`;
|
291691
|
+
[1m[36m (44.2ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
291692
|
+
[1m[35m (44.1ms)[0m TRUNCATE TABLE `users`;
|
291693
|
+
[1m[36m (0.2ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
291694
|
+
[1m[35m (0.3ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
291695
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
291696
|
+
[1m[35m (44.6ms)[0m TRUNCATE TABLE `assets`;
|
291697
|
+
[1m[36m (43.9ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
291698
|
+
[1m[35m (43.8ms)[0m TRUNCATE TABLE `headers`;
|
291699
|
+
[1m[36m (43.8ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
291700
|
+
[1m[35m (44.1ms)[0m TRUNCATE TABLE `posts`;
|
291701
|
+
[1m[36m (44.2ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
291702
|
+
[1m[35m (43.8ms)[0m TRUNCATE TABLE `settings`;
|
291703
|
+
[1m[36m (44.2ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
291704
|
+
[1m[35m (44.2ms)[0m TRUNCATE TABLE `users`;
|
291705
|
+
[1m[36m (0.3ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
291706
|
+
[1m[35m (0.2ms)[0m BEGIN
|
291707
|
+
[1m[36mUser Exists (0.5ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing38@example.com' LIMIT 1[0m
|
291708
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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)[0m
|
291710
|
+
[1m[35m (38.5ms)[0m COMMIT
|
291711
|
+
[1m[36mUser Exists (0.4ms)[0m [1mSELECT 1 FROM `users` WHERE (`users`.`email` = BINARY 'wrong' AND `users`.`id` != 1) LIMIT 1[0m
|
291712
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 FROM `users` WHERE (`users`.`email` = BINARY 'wrong' AND `users`.`id` != 1) LIMIT 1
|
291713
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291714
|
+
[1m[35mUser Exists (0.5ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing39@example.com' LIMIT 1
|
291715
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
291716
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (84.3ms)[0m [1mCOMMIT[0m
|
291718
|
+
[1m[35mUser Load (44.3ms)[0m SELECT `users`.* FROM `users` WHERE (email LIKE 'testing39%') LIMIT 1
|
291719
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291720
|
+
[1m[35mUser Exists (0.3ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing40@example.com' LIMIT 1
|
291721
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
291722
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (67.5ms)[0m [1mCOMMIT[0m
|
291724
|
+
[1m[35mUser Load (0.6ms)[0m SELECT `users`.* FROM `users` INNER JOIN `roles` ON `roles`.`user_id` = `users`.`id` WHERE `roles`.`role_type` = 1
|
291725
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291726
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing41@example.com' LIMIT 1
|
291727
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
291728
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (40.8ms)[0m [1mCOMMIT[0m
|
291730
|
+
Scoped order and limit are ignored, it's forced to be batch order and batch size
|
291731
|
+
[1m[35mUser Load (0.7ms)[0m SELECT id, email, name, current_sign_in_ip FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000
|
291732
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291733
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing42@example.com' LIMIT 1
|
291734
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
291735
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (45.9ms)[0m [1mCOMMIT[0m
|
291737
|
+
Scoped order and limit are ignored, it's forced to be batch order and batch size
|
291738
|
+
[1m[35mUser Load (0.6ms)[0m SELECT id, email, confirmed_at, created_at FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000
|
291739
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291740
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing43@example.com' LIMIT 1
|
291741
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
291742
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (39.8ms)[0m [1mCOMMIT[0m
|
291744
|
+
[1m[35mRole Load (0.4ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 6 LIMIT 1
|
291745
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 6 LIMIT 1[0m
|
291746
|
+
[1m[35mRole Load (0.2ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 6
|
291747
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291748
|
+
[1m[35mUser Exists (0.5ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing44@example.com' LIMIT 1
|
291749
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
291750
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (40.2ms)[0m [1mCOMMIT[0m
|
291752
|
+
[1m[35mAvatar Load (0.5ms)[0m SELECT `assets`.* FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`assetable_id` = 7 AND `assets`.`assetable_type` = 'User' ORDER BY `assets`.sort_order LIMIT 1
|
291753
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
291754
|
+
[1m[35mUser Exists (0.5ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing45@example.com' LIMIT 1
|
291755
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
291756
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (39.7ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35m (0.2ms)[0m BEGIN
|
291780
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `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[0m
|
291781
|
+
[1m[35m (37.0ms)[0m COMMIT
|
291782
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
291783
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
291784
|
+
[1m[36m (42.5ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
291785
|
+
[1m[35m (44.0ms)[0m TRUNCATE TABLE `audits`;
|
291786
|
+
[1m[36m (44.1ms)[0m [1mTRUNCATE TABLE `headers`;[0m
|
291787
|
+
[1m[35m (116.8ms)[0m TRUNCATE TABLE `page_parts`;
|
291788
|
+
[1m[36m (83.9ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
291789
|
+
[1m[35m (55.0ms)[0m TRUNCATE TABLE `roles`;
|
291790
|
+
[1m[36m (55.4ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
291791
|
+
[1m[35m (55.0ms)[0m TRUNCATE TABLE `structures`;
|
291792
|
+
[1m[36m (55.0ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
291793
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
291794
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291795
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
|
291796
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE[0m
|
291797
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
291799
|
+
[1m[35mSQL (0.2ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
|
291800
|
+
[1m[36m (48.4ms)[0m [1mCOMMIT[0m
|
291801
|
+
[1m[35m (0.2ms)[0m BEGIN
|
291802
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1[0m
|
291803
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
|
291804
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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')[0m
|
291805
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
|
291806
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
291807
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`
|
291808
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE[0m
|
291809
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
291810
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
291811
|
+
[1m[35mSQL (0.2ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
|
291812
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
291813
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft
|
291814
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
291815
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
291816
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
291817
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
|
291818
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
291819
|
+
[1m[35m (56.5ms)[0m COMMIT
|
291820
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291821
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
291822
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
291823
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
291824
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
291825
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291826
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
291827
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
291828
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`[0m
|
291829
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
291830
|
+
[1m[36m (47.3ms)[0m [1mCOMMIT[0m
|
291831
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
291832
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
291833
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
291834
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291835
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
291836
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
291837
|
+
[1m[35mSQL (0.4ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
|
291838
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
291839
|
+
[1m[35m (56.1ms)[0m COMMIT
|
291840
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
291841
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
291842
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
291843
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
291844
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
291845
|
+
[1m[35mSQL (0.4ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
|
291846
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
291847
|
+
[1m[35m (51.4ms)[0m COMMIT
|
291848
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
291849
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
291850
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
291851
|
+
[1m[35mStructure Load (19.7ms)[0m SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
|
291852
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE[0m
|
291853
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 ORDER BY `lft` LIMIT 1[0m
|
291855
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1 FOR UPDATE
|
291856
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 6 - 4 WHEN `lft` BETWEEN 5 AND 6 THEN `lft` + 3 - 5 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 6 - 4 WHEN `rgt` BETWEEN 5 AND 6 THEN `rgt` + 3 - 5 ELSE `rgt` END, `parent_id` = CASE WHEN id = 3 THEN 2 ELSE `parent_id` END ORDER BY `lft`[0m
|
291857
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
291858
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1[0m
|
291859
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
|
291860
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE `structures` SET `depth` = 2 WHERE `structures`.`id` = 3 ORDER BY `lft`[0m
|
291861
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
|
291862
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 3 ORDER BY lft[0m
|
291863
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1 FOR UPDATE
|
291864
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 3 LIMIT 1[0m
|
291865
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
|
291866
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 2 WHERE `structures`.`id` = 3 ORDER BY `lft`[0m
|
291867
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 3 AND `structures`.`rgt` >= 4) AND (`structures`.id != 3)
|
291868
|
+
[1m[36m (67.9ms)[0m [1mCOMMIT[0m
|
291869
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291870
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
291871
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
|
291872
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`[0m
|
291873
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
|
291874
|
+
[1m[36m (49.3ms)[0m [1mCOMMIT[0m
|
291875
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
291876
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
291877
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `lft`
|
291878
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 6) ORDER BY `lft`[0m
|
291879
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291880
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`slug` = 'some-super-title' OR `slug` LIKE 'some-super-title--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1[0m
|
291881
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
|
291882
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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')[0m
|
291883
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1
|
291884
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1 FOR UPDATE[0m
|
291885
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE[0m
|
291887
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1
|
291888
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)[0m
|
291889
|
+
[1m[35mSQL (0.4ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 4 ORDER BY `lft`
|
291890
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)[0m
|
291891
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 4 ORDER BY lft
|
291892
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1 FOR UPDATE[0m
|
291893
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1
|
291894
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)[0m
|
291895
|
+
[1m[35mSQL (0.2ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 4 ORDER BY `lft`
|
291896
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)[0m
|
291897
|
+
[1m[35m (74.6ms)[0m COMMIT
|
291898
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
291899
|
+
[1m[35m (0.4ms)[0m UPDATE `structures` SET `title` = 'Other big title', `updated_at` = '2012-06-26 14:53:03' WHERE `structures`.`id` = 4
|
291900
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 4 LIMIT 1[0m
|
291901
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
|
291902
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 4 ORDER BY `lft`[0m
|
291903
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 6 AND `structures`.`rgt` >= 7) AND (`structures`.id != 4)
|
291904
|
+
[1m[36m (72.1ms)[0m [1mCOMMIT[0m
|
291905
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291906
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
291907
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
|
291908
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`[0m
|
291909
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
|
291910
|
+
[1m[36m (49.4ms)[0m [1mCOMMIT[0m
|
291911
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
291912
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = 'structure' LIMIT 1[0m
|
291913
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291914
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
291915
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
|
291916
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`[0m
|
291917
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)
|
291918
|
+
[1m[36m (50.7ms)[0m [1mCOMMIT[0m
|
291919
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1340722383 LIMIT 1
|
291920
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291921
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
291922
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)[0m
|
291923
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`
|
291924
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 5) AND (`structures`.id != 2)[0m
|
291925
|
+
[1m[35m (57.3ms)[0m COMMIT
|
291926
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = 'wrong' LIMIT 1[0m
|
291927
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 0 LIMIT 1
|
291928
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`slug` = 'structure' LIMIT 1[0m
|
291929
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
291930
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
291931
|
+
[1m[35m (56.8ms)[0m TRUNCATE TABLE `assets`;
|
291932
|
+
[1m[36m (284.7ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
291933
|
+
[1m[35m (445.1ms)[0m TRUNCATE TABLE `headers`;
|
291934
|
+
[1m[36m (131.0ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
291935
|
+
[1m[35m (99.5ms)[0m TRUNCATE TABLE `posts`;
|
291936
|
+
[1m[36m (55.3ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
291937
|
+
[1m[35m (54.9ms)[0m TRUNCATE TABLE `settings`;
|
291938
|
+
[1m[36m (44.1ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
291939
|
+
[1m[35m (44.0ms)[0m TRUNCATE TABLE `users`;
|
291940
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
291941
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291942
|
+
[1m[36mStructure Load (0.6ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1[0m
|
291943
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
|
291944
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-26 14:53:05', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-26 14:53:05')[0m
|
291945
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
291946
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`[0m
|
291947
|
+
[1m[35m (36.5ms)[0m COMMIT
|
291948
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291949
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
|
291950
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE[0m
|
291951
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1[0m
|
291953
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
291954
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`[0m
|
291955
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
|
291956
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
291957
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
291958
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`[0m
|
291959
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
291960
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft[0m
|
291961
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
291962
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
291963
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
291964
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`[0m
|
291965
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
291966
|
+
[1m[36m (45.0ms)[0m [1mCOMMIT[0m
|
291967
|
+
[1m[35m (0.1ms)[0m BEGIN
|
291968
|
+
[1m[36mUser Exists (0.4ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing46@example.com' LIMIT 1[0m
|
291969
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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)[0m
|
291971
|
+
[1m[35m (37.8ms)[0m COMMIT
|
291972
|
+
Processing by Sunrise::SharedController#services as JSON
|
291973
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
291974
|
+
[1m[35mRole Load (0.4ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
291975
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
291976
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
291977
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE `structures`.`depth` = 1[0m
|
291978
|
+
[1m[35mStructure Load (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
291985
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
291986
|
+
[1m[36m (54.8ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
291987
|
+
[1m[35m (44.0ms)[0m TRUNCATE TABLE `audits`;
|
291988
|
+
[1m[36m (44.0ms)[0m [1mTRUNCATE TABLE `headers`;[0m
|
291989
|
+
[1m[35m (43.9ms)[0m TRUNCATE TABLE `page_parts`;
|
291990
|
+
[1m[36m (112.9ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
291991
|
+
[1m[35m (74.9ms)[0m TRUNCATE TABLE `roles`;
|
291992
|
+
[1m[36m (44.1ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
291993
|
+
[1m[35m (43.8ms)[0m TRUNCATE TABLE `structures`;
|
291994
|
+
[1m[36m (44.2ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
291995
|
+
[1m[35m (0.2ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
291996
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
291997
|
+
[1m[35mUser Exists (0.3ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing47@example.com' LIMIT 1
|
291998
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
291999
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (39.0ms)[0m [1mCOMMIT[0m
|
292001
|
+
[1m[35m (0.1ms)[0m BEGIN
|
292002
|
+
[1m[36mStructure Load (0.6ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`slug` = 'main-page' OR `slug` LIKE 'main-page--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1[0m
|
292003
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE
|
292004
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-26 14:53:05', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2012-06-26 14:53:05')[0m
|
292005
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
292006
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`[0m
|
292007
|
+
[1m[35m (46.4ms)[0m COMMIT
|
292008
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
292009
|
+
[1m[35mStructure Load (0.6ms)[0m SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
|
292010
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE[0m
|
292011
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-26 14:53:05', 0, 1, 1, 3, 1, 2, NULL, 4, 'structure', 'Structure', '2012-06-26 14:53:05')
|
292012
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `lft` LIMIT 1[0m
|
292013
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
292014
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `lft`[0m
|
292015
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
|
292016
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
292017
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
292018
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`[0m
|
292019
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
292020
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 2 ORDER BY lft[0m
|
292021
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `lft`, `rgt`, `parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
292022
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
292023
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
292024
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `lft`[0m
|
292025
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
292026
|
+
[1m[36m (68.1ms)[0m [1mCOMMIT[0m
|
292027
|
+
Processing by Sunrise::ManagerController#index as HTML
|
292028
|
+
Parameters: {"model_name"=>"structures"}
|
292029
|
+
[1m[35mUser Load (0.4ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
292030
|
+
[1m[36mRole Load (0.4ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
292031
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
292032
|
+
[1m[36mRole Load (0.2ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
292033
|
+
Completed 200 OK in 8ms (Views: 1.2ms | ActiveRecord: 1.2ms)
|
292034
|
+
[1m[35mStructure Load (0.5ms)[0m 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
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
292038
|
+
Completed 500 Internal Server Error in 3ms
|
292039
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
292040
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
292041
|
+
[1m[35m (39.9ms)[0m TRUNCATE TABLE `assets`;
|
292042
|
+
[1m[36m (88.0ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
292043
|
+
[1m[35m (55.3ms)[0m TRUNCATE TABLE `headers`;
|
292044
|
+
[1m[36m (77.0ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
292045
|
+
[1m[35m (55.2ms)[0m TRUNCATE TABLE `posts`;
|
292046
|
+
[1m[36m (43.9ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
292047
|
+
[1m[35m (44.2ms)[0m TRUNCATE TABLE `settings`;
|
292048
|
+
[1m[36m (55.2ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
292049
|
+
[1m[35m (128.4ms)[0m TRUNCATE TABLE `users`;
|
292050
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
292051
|
+
[1m[35m (0.1ms)[0m BEGIN
|
292052
|
+
[1m[36mUser Exists (0.3ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing48@example.com' LIMIT 1[0m
|
292053
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT 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)[0m
|
292055
|
+
[1m[35m (96.4ms)[0m COMMIT
|
292056
|
+
Processing by Sunrise::SettingsController#edit as HTML
|
292057
|
+
[1m[36mUser Load (0.7ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
292058
|
+
[1m[35mRole Load (0.5ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
292059
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
292060
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
292061
|
+
[1m[36mSettings Load (0.3ms)[0m [1mSELECT var, value FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL[0m
|
292062
|
+
[1m[35mSettings Load (0.4ms)[0m SELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL AND `settings`.`var` = 'to_key' LIMIT 1
|
292063
|
+
[1m[36mSettings Load (0.2ms)[0m [1mSELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL AND `settings`.`var` = 'some_setting' LIMIT 1[0m
|
292064
|
+
[1m[35mSettings Load (0.2ms)[0m SELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL AND `settings`.`var` = 'some_setting2' LIMIT 1
|
292065
|
+
[1m[36mSettings Load (0.2ms)[0m [1mSELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL AND `settings`.`var` = 'persisted?' LIMIT 1[0m
|
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
|
+
[1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
292073
|
+
[1m[36mRole Load (0.2ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
292074
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1
|
292075
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 1 LIMIT 1[0m
|
292076
|
+
[1m[35mSettings Load (0.3ms)[0m SELECT `settings`.* FROM `settings` WHERE `settings`.`target_id` IS NULL AND `settings`.`target_type` IS NULL AND `settings`.`var` = 'some_setting' LIMIT 1
|
292077
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
292078
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (54.6ms)[0m [1mCOMMIT[0m
|
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
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
292089
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
292090
|
+
[1m[35m (62.5ms)[0m TRUNCATE TABLE `assets`;
|
292091
|
+
[1m[36m (54.9ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
292092
|
+
[1m[35m (55.1ms)[0m TRUNCATE TABLE `headers`;
|
292093
|
+
[1m[36m (54.8ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
292094
|
+
[1m[35m (77.4ms)[0m TRUNCATE TABLE `posts`;
|
292095
|
+
[1m[36m (132.7ms)[0m [1mTRUNCATE TABLE `roles`;[0m
|
292096
|
+
[1m[35m (54.8ms)[0m TRUNCATE TABLE `settings`;
|
292097
|
+
[1m[36m (132.7ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
292098
|
+
[1m[35m (110.3ms)[0m TRUNCATE TABLE `users`;
|
292099
|
+
[1m[36m (0.2ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
292100
|
+
[1m[35m (0.1ms)[0m BEGIN
|
292101
|
+
[1m[36mUser Exists (0.5ms)[0m [1mSELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing49@example.com' LIMIT 1[0m
|
292102
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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)[0m
|
292104
|
+
[1m[35m (57.3ms)[0m COMMIT
|
292105
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
292106
|
+
[1m[35mStructure Load (0.6ms)[0m SELECT `structures`.* FROM `structures` WHERE (`slug` = 'structure' OR `slug` LIKE 'structure--%') ORDER BY LENGTH(`slug`) DESC, `slug` DESC LIMIT 1
|
292107
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `rgt` desc LIMIT 1 FOR UPDATE[0m
|
292108
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2012-06-26 14:53:07', 0, 1, 1, 1, NULL, 2, NULL, 2, 'structure', 'Structure', '2012-06-26 14:53:07')
|
292109
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
292110
|
+
[1m[35mSQL (0.2ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `lft`
|
292111
|
+
[1m[36m (54.3ms)[0m [1mCOMMIT[0m
|
292112
|
+
[1m[35m (0.2ms)[0m BEGIN
|
292113
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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')[0m
|
292114
|
+
[1m[35m (74.5ms)[0m COMMIT
|
292115
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
292116
|
+
[1m[35m (0.4ms)[0m SELECT MAX(`audits`.`version`) AS max_id FROM `audits` WHERE `audits`.`auditable_id` = 1 AND `audits`.`auditable_type` = 'Post'
|
292117
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `audits` (`action`, `associated_id`, `associated_type`, `auditable_id`, `auditable_type`, `audited_changes`, `comment`, `created_at`, `remote_address`, `user_id`, `user_type`, `username`, `version`) VALUES ('create', NULL, NULL, 1, 'Post', '---\n:title: Updated\n', NULL, '2012-06-26 14:53:07', NULL, 1, 'User', NULL, 1)[0m
|
292118
|
+
[1m[35m (51.5ms)[0m COMMIT
|
292119
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
292120
|
+
[1m[35mUser Exists (0.3ms)[0m SELECT 1 FROM `users` WHERE `users`.`email` = BINARY 'testing50@example.com' LIMIT 1
|
292121
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2012-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')[0m
|
292122
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (60.5ms)[0m [1mCOMMIT[0m
|
292124
|
+
Processing by Sunrise::DashboardController#index as HTML
|
292125
|
+
[1m[35mUser Load (0.6ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 2 LIMIT 1
|
292126
|
+
[1m[36mRole Load (0.5ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 2 LIMIT 1[0m
|
292127
|
+
[1m[35mRole Load (0.1ms)[0m SELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 2 LIMIT 1
|
292128
|
+
[1m[36mRole Load (0.1ms)[0m [1mSELECT `roles`.* FROM `roles` WHERE `roles`.`user_id` = 2 LIMIT 1[0m
|
292129
|
+
[1m[35mAudited::Adapters::ActiveRecord::Audit Load (0.4ms)[0m SELECT `audits`.* FROM `audits` ORDER BY version LIMIT 50 OFFSET 0
|
292130
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` IN (1)[0m
|
292131
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_event.html.erb (2.7ms)
|
292132
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
292141
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
292142
|
+
[1m[36m (48.2ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
292143
|
+
[1m[35m (66.1ms)[0m TRUNCATE TABLE `audits`;
|
292144
|
+
[1m[36m (77.1ms)[0m [1mTRUNCATE TABLE `headers`;[0m
|
292145
|
+
[1m[35m (55.0ms)[0m TRUNCATE TABLE `page_parts`;
|
292146
|
+
[1m[36m (77.4ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
292147
|
+
[1m[35m (55.1ms)[0m TRUNCATE TABLE `roles`;
|
292148
|
+
[1m[36m (139.3ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
292149
|
+
[1m[35m (103.9ms)[0m TRUNCATE TABLE `structures`;
|
292150
|
+
[1m[36m (54.9ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
292151
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
292152
|
+
[1m[36m (0.3ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
292153
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
292154
|
+
[1m[36m (47.5ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
292155
|
+
[1m[35m (110.1ms)[0m TRUNCATE TABLE `audits`;
|
292156
|
+
[1m[36m (55.4ms)[0m [1mTRUNCATE TABLE `headers`;[0m
|
292157
|
+
[1m[35m (66.1ms)[0m TRUNCATE TABLE `page_parts`;
|
292158
|
+
[1m[36m (55.0ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
292159
|
+
[1m[35m (77.1ms)[0m TRUNCATE TABLE `roles`;
|
292160
|
+
[1m[36m (110.4ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
292161
|
+
[1m[35m (55.1ms)[0m TRUNCATE TABLE `structures`;
|
292162
|
+
[1m[36m (165.4ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
292163
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|