sunrise-cms 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/app/helpers/sunrise/structure_helper.rb +9 -0
- data/app/views/sunrise/manager/table/_record.html.erb +1 -1
- data/app/views/sunrise/manager/thumbs/_record.html.erb +1 -1
- data/app/views/sunrise/manager/tree/_record.html.erb +1 -1
- data/lib/sunrise/version.rb +1 -1
- data/spec/controllers/sunrise/manager_controller_spec.rb +14 -0
- data/spec/dummy/log/test.log +1867 -0
- metadata +1 -1
@@ -10,5 +10,14 @@ module Sunrise
|
|
10
10
|
else edit_path(:model_name => "structures", :id => record.id)
|
11
11
|
end
|
12
12
|
end
|
13
|
+
|
14
|
+
def show_model_path(abstract_model, record)
|
15
|
+
model_name = abstract_model.scoped_path
|
16
|
+
|
17
|
+
case model_name
|
18
|
+
when :some_collection then index_path(:model_name => :stores, :parent_type => :some_collection, :parent_id => record.id)
|
19
|
+
else show_path(:id => record.id)
|
20
|
+
end
|
21
|
+
end
|
13
22
|
end
|
14
23
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<%= content_tag(:tr, :id => dom_id(record)) do -%>
|
2
2
|
<td class="check-block"><%= check_box_tag dom_id(record, :editable), record.id, false, :name => :editable %></td>
|
3
|
-
<td><%= link_to record.send(abstract_model.config.object_label_method),
|
3
|
+
<td><%= link_to record.send(abstract_model.config.object_label_method), show_model_path(abstract_model, record), :class=>"title" %></td>
|
4
4
|
|
5
5
|
<% abstract_model.list.fields.each do |field| -%>
|
6
6
|
<td><%= manage_render_field(field, record)%></td>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<%= manage_date_tag(record.created_at)%>
|
9
9
|
<!--<a href="#" class="grey-but">Активировать</a>-->
|
10
10
|
</div>
|
11
|
-
<%= link_to record.send(abstract_model.config.object_label_method),
|
11
|
+
<%= link_to record.send(abstract_model.config.object_label_method), show_model_path(abstract_model, record), :class=>"item-title" %>
|
12
12
|
|
13
13
|
<div class="bot-info-bl">
|
14
14
|
<% abstract_model.list.fields.each do |field| -%>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<%= content_tag :li, :id => dom_id(record) do %>
|
2
2
|
<div>
|
3
|
-
<%= link_to record.send(abstract_model.config.object_label_method),
|
3
|
+
<%= link_to record.send(abstract_model.config.object_label_method), show_model_path(abstract_model, record) %>
|
4
4
|
</div>
|
5
5
|
|
6
6
|
<% unless record.descendants_count.zero? %>
|
data/lib/sunrise/version.rb
CHANGED
@@ -46,5 +46,19 @@ describe Sunrise::ManagerController do
|
|
46
46
|
delete :destroy, :model_name => "structures", :id => @root.id
|
47
47
|
end
|
48
48
|
end
|
49
|
+
|
50
|
+
context "posts" do
|
51
|
+
before(:all) do
|
52
|
+
@post = FactoryGirl.create(:post)
|
53
|
+
end
|
54
|
+
|
55
|
+
it "should respond successfully" do
|
56
|
+
get :index, :model_name => "posts"
|
57
|
+
|
58
|
+
assigns(:records).should include(@post)
|
59
|
+
|
60
|
+
response.should render_template('index')
|
61
|
+
end
|
62
|
+
end
|
49
63
|
end
|
50
64
|
end
|
data/spec/dummy/log/test.log
CHANGED
@@ -77281,3 +77281,1870 @@ Completed 401 Unauthorized in 0ms
|
|
77281
77281
|
[1m[36m (341.1ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
77282
77282
|
[1m[35m (481.1ms)[0m TRUNCATE TABLE `users`;
|
77283
77283
|
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
77284
|
+
Connecting to database specified by database.yml
|
77285
|
+
[1m[36m (83.8ms)[0m [1mSELECT `schema_migrations`.`version` FROM `schema_migrations` [0m
|
77286
|
+
Migrating to InstallActsAsAudited (20111227111941)
|
77287
|
+
Migrating to CreatePageParts (20111227143901)
|
77288
|
+
Migrating to CreatePosts (20111228152051)
|
77289
|
+
Migrating to CreateMetaTags (20120105114018)
|
77290
|
+
[1m[35m (0.1ms)[0m SELECT `schema_migrations`.`version` FROM `schema_migrations`
|
77291
|
+
Migrating to CreateAssets (20111216144515)
|
77292
|
+
Migrating to CreateStructures (20111216144915)
|
77293
|
+
Migrating to CreateUsers (20111216145015)
|
77294
|
+
Migrating to CreateSettings (20120611095315)
|
77295
|
+
[1m[36m (31.1ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
77296
|
+
[1m[35m (0.2ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
77297
|
+
[1m[36m (28.2ms)[0m [1mSELECT DATABASE() as db[0m
|
77298
|
+
[1m[35m (61.2ms)[0m select table_name from information_schema.views where table_schema = 'sunrise_dummy_test'
|
77299
|
+
[1m[36m (968.8ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
77300
|
+
[1m[35m (514.1ms)[0m TRUNCATE TABLE `audits`;
|
77301
|
+
[1m[36m (517.5ms)[0m [1mTRUNCATE TABLE `meta_tags`;[0m
|
77302
|
+
[1m[35m (506.4ms)[0m TRUNCATE TABLE `page_parts`;
|
77303
|
+
[1m[36m (360.9ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
77304
|
+
[1m[35m (471.5ms)[0m TRUNCATE TABLE `settings`;
|
77305
|
+
[1m[36m (411.3ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
77306
|
+
[1m[35m (636.2ms)[0m TRUNCATE TABLE `users`;
|
77307
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
77308
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
77309
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
77310
|
+
[1m[35m (433.3ms)[0m TRUNCATE TABLE `assets`;
|
77311
|
+
[1m[36m (448.8ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
77312
|
+
[1m[35m (417.8ms)[0m TRUNCATE TABLE `meta_tags`;
|
77313
|
+
[1m[36m (217.8ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
77314
|
+
[1m[35m (316.4ms)[0m TRUNCATE TABLE `posts`;
|
77315
|
+
[1m[36m (205.6ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
77316
|
+
[1m[35m (383.1ms)[0m TRUNCATE TABLE `structures`;
|
77317
|
+
[1m[36m (465.5ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
77318
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
77319
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
77320
|
+
[1m[35mUser Exists (28.0ms)[0m SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY '1359992923@gmail.com' LIMIT 1
|
77321
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `failed_attempts`, `last_sign_in_at`, `last_sign_in_ip`, `locked_at`, `name`, `password_salt`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:48:44', '2013-02-04 15:48:44', NULL, NULL, '1359992923@gmail.com', '0233f1ff24120d120b7442f8c0b8d81ca62cb7413d7a5da7f0f7315e016ead28eaa034d640b8b401c35d6aaf5e66182cb1492e63a483830149cee82f2d4f89b3', 0, NULL, NULL, NULL, 'Admin', 'd4wxZ3PtE5u3mf2yUjB1', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:48:44')[0m
|
77322
|
+
[1m[35m (40.7ms)[0m COMMIT
|
77323
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
77324
|
+
[1m[35mUser Exists (0.6ms)[0m SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing1@example.com' LIMIT 1
|
77325
|
+
[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`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:48:44', '2013-02-04 15:48:44', NULL, NULL, 'testing1@example.com', 'd3202bd56419d802dcfd84690f57cac683fa0a4b1e68f175a9cbf13081289de62c9b951859dccbd53bcb5cafdc9a7855b754fb29c315a216118f142bda810678', 0, NULL, NULL, NULL, 'Test', 'Rkgj1RfU9WvZSLGmq6Yj', NULL, NULL, NULL, 1, 0, NULL, '2013-02-04 15:48:44')[0m
|
77326
|
+
[1m[35m (54.7ms)[0m COMMIT
|
77327
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
77328
|
+
[1m[35mStructure Load (0.7ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
77329
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:48:44', 0, 1, 1, 1, NULL, 2, NULL, 2, 'slug1', 'Structure', '2013-02-04 15:48:44')[0m
|
77330
|
+
[1m[35mStructure Load (5.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
77331
|
+
[1m[36mSQL (13.1ms)[0m [1mUPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`[0m
|
77332
|
+
[1m[35m (44.5ms)[0m COMMIT
|
77333
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
77334
|
+
[1m[35mSQL (43.9ms)[0m INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-02-04 15:48:45', 1, 1, 'Default title', '2013-02-04 15:48:45')
|
77335
|
+
[1m[36m (46.1ms)[0m [1mCOMMIT[0m
|
77336
|
+
[1m[35m (0.1ms)[0m BEGIN
|
77337
|
+
[1m[36m (35.2ms)[0m [1mSELECT MAX(`audits`.`version`) AS max_id FROM `audits` WHERE `audits`.`auditable_id` = 1 AND `audits`.`auditable_type` = 'Post'[0m
|
77338
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO `audits` (`action`, `associated_id`, `associated_type`, `auditable_id`, `auditable_type`, `audited_changes`, `comment`, `created_at`, `remote_address`, `user_id`, `user_type`, `username`, `version`) VALUES ('create', NULL, NULL, 1, 'Post', '---\n:title: Updated\n', NULL, '2013-02-04 15:48:45', NULL, 2, 'User', NULL, 1)
|
77339
|
+
[1m[36m (44.1ms)[0m [1mCOMMIT[0m
|
77340
|
+
Started GET "/manage/" for 127.0.0.1 at 2013-02-04 17:48:45 +0200
|
77341
|
+
[1m[35m (0.2ms)[0m BEGIN
|
77342
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
77343
|
+
[1m[35m (0.1ms)[0m BEGIN
|
77344
|
+
[1m[36m (25.6ms)[0m [1mUPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:48:45', `current_sign_in_at` = '2013-02-04 15:48:45', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:48:45' WHERE `users`.`id` = 1[0m
|
77345
|
+
[1m[35m (33.2ms)[0m COMMIT
|
77346
|
+
Processing by Sunrise::DashboardController#index as HTML
|
77347
|
+
[1m[36mAudited::Adapters::ActiveRecord::Audit Load (0.6ms)[0m [1mSELECT `audits`.* FROM `audits` ORDER BY version, audits.id desc LIMIT 50 OFFSET 0[0m
|
77348
|
+
[1m[35mUser Load (27.4ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` IN (2)
|
77349
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_event.html.erb (5.4ms)
|
77350
|
+
[1m[36m (22.4ms)[0m [1mSELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `audits` LIMIT 50 OFFSET 0) subquery_for_count [0m
|
77351
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/index.html.erb within layouts/sunrise/application (702.0ms)
|
77352
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (108.6ms)
|
77353
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (63.0ms)
|
77354
|
+
Completed 200 OK in 1197ms (Views: 1113.9ms | ActiveRecord: 50.5ms)
|
77355
|
+
Started GET "/manage/" for 127.0.0.1 at 2013-02-04 17:48:47 +0200
|
77356
|
+
[1m[35m (0.1ms)[0m BEGIN
|
77357
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
77358
|
+
[1m[35m (0.1ms)[0m BEGIN
|
77359
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `users` SET `current_sign_in_at` = '2013-02-04 15:48:47', `sign_in_count` = 2, `updated_at` = '2013-02-04 15:48:47' WHERE `users`.`id` = 1[0m
|
77360
|
+
[1m[35m (198.9ms)[0m COMMIT
|
77361
|
+
Processing by Sunrise::DashboardController#index as HTML
|
77362
|
+
[1m[36mAudited::Adapters::ActiveRecord::Audit Load (0.2ms)[0m [1mSELECT `audits`.* FROM `audits` ORDER BY version, audits.id desc LIMIT 50 OFFSET 0[0m
|
77363
|
+
[1m[35mUser Load (0.5ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` IN (2)
|
77364
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_event.html.erb (3.5ms)
|
77365
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `audits` LIMIT 50 OFFSET 0) subquery_for_count [0m
|
77366
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
|
77367
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (1.2ms)
|
77368
|
+
Completed 200 OK in 30ms (Views: 19.2ms | ActiveRecord: 0.8ms)
|
77369
|
+
Started GET "/manage/" for 127.0.0.1 at 2013-02-04 17:48:48 +0200
|
77370
|
+
Processing by Sunrise::DashboardController#index as HTML
|
77371
|
+
Completed 401 Unauthorized in 0ms
|
77372
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 17:48:48 +0200
|
77373
|
+
Processing by Devise::SessionsController#new as HTML
|
77374
|
+
Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (3.6ms)
|
77375
|
+
Completed 200 OK in 189ms (Views: 187.0ms | ActiveRecord: 0.0ms)
|
77376
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
77377
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
77378
|
+
[1m[35m (1033.2ms)[0m TRUNCATE TABLE `assets`;
|
77379
|
+
[1m[36m (402.7ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
77380
|
+
[1m[35m (206.7ms)[0m TRUNCATE TABLE `meta_tags`;
|
77381
|
+
[1m[36m (240.8ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
77382
|
+
[1m[35m (350.2ms)[0m TRUNCATE TABLE `posts`;
|
77383
|
+
[1m[36m (117.1ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
77384
|
+
[1m[35m (318.9ms)[0m TRUNCATE TABLE `structures`;
|
77385
|
+
[1m[36m (376.5ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
77386
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
77387
|
+
[1m[36m (0.1ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
77388
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
77389
|
+
[1m[36m (350.2ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
77390
|
+
[1m[35m (357.7ms)[0m TRUNCATE TABLE `audits`;
|
77391
|
+
[1m[36m (168.8ms)[0m [1mTRUNCATE TABLE `meta_tags`;[0m
|
77392
|
+
[1m[35m (262.7ms)[0m TRUNCATE TABLE `page_parts`;
|
77393
|
+
[1m[36m (294.7ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
77394
|
+
[1m[35m (161.3ms)[0m TRUNCATE TABLE `settings`;
|
77395
|
+
[1m[36m (329.6ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
77396
|
+
[1m[35m (387.8ms)[0m TRUNCATE TABLE `users`;
|
77397
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
77398
|
+
[1m[35m (0.1ms)[0m BEGIN
|
77399
|
+
[1m[36mUser Exists (0.5ms)[0m [1mSELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing2@example.com' LIMIT 1[0m
|
77400
|
+
[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`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:48:53', '2013-02-04 15:48:53', NULL, NULL, 'testing2@example.com', '2831a2061c1af8b7855402a3cc13e82fb0814d3a12dc499daeab25295e246f578d93f348a7ff737bbebfda4305ad9776a8921d3ea15ddfcf2ec26159e539eb8d', 0, NULL, NULL, NULL, 'Admin', '8qmfKPYyVsUpGFLkvcsV', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:48:53')
|
77401
|
+
[1m[36m (36.0ms)[0m [1mCOMMIT[0m
|
77402
|
+
[1m[35m (0.1ms)[0m BEGIN
|
77403
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
77404
|
+
[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 ('2013-02-04 15:48:53', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 15:48:53')
|
77405
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
77406
|
+
[1m[35mSQL (40.1ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
|
77407
|
+
[1m[36m (40.3ms)[0m [1mCOMMIT[0m
|
77408
|
+
[1m[35m (0.1ms)[0m BEGIN
|
77409
|
+
[1m[36mStructure Load (0.6ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
77410
|
+
[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 ('2013-02-04 15:48:53', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug2', 'Structure', '2013-02-04 15:48:53')
|
77411
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1[0m
|
77412
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
77413
|
+
[1m[36mSQL (25.1ms)[0m [1mUPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`[0m
|
77414
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
|
77415
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
77416
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
77417
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
77418
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
77419
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`[0m
|
77420
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
77421
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
77422
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
77423
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
77424
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
77425
|
+
[1m[36m (41.1ms)[0m [1mCOMMIT[0m
|
77426
|
+
Started GET "/manage/structures/2" for 127.0.0.1 at 2013-02-04 17:48:53 +0200
|
77427
|
+
[1m[35m (0.1ms)[0m BEGIN
|
77428
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
77429
|
+
[1m[35m (0.1ms)[0m BEGIN
|
77430
|
+
[1m[36m (1.1ms)[0m [1mUPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:48:53', `current_sign_in_at` = '2013-02-04 15:48:53', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:48:53' WHERE `users`.`id` = 1[0m
|
77431
|
+
[1m[35m (24.1ms)[0m COMMIT
|
77432
|
+
Processing by Sunrise::ManagerController#show as HTML
|
77433
|
+
Parameters: {"model_name"=>"structures", "id"=>"2"}
|
77434
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
77435
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
|
77436
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (1.0ms)
|
77437
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (11.2ms)
|
77438
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (68.3ms)
|
77439
|
+
Completed 200 OK in 139ms (Views: 92.3ms | ActiveRecord: 0.5ms)
|
77440
|
+
Started GET "/manage/structures/2" for 127.0.0.1 at 2013-02-04 17:48:54 +0200
|
77441
|
+
[1m[35m (0.1ms)[0m BEGIN
|
77442
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
77443
|
+
[1m[35m (0.1ms)[0m BEGIN
|
77444
|
+
[1m[36m (29.6ms)[0m [1mUPDATE `users` SET `current_sign_in_at` = '2013-02-04 15:48:54', `sign_in_count` = 2, `updated_at` = '2013-02-04 15:48:54' WHERE `users`.`id` = 1[0m
|
77445
|
+
[1m[35m (37.2ms)[0m COMMIT
|
77446
|
+
Processing by Sunrise::ManagerController#show as HTML
|
77447
|
+
Parameters: {"model_name"=>"structures", "id"=>"2"}
|
77448
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
77449
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.3ms)
|
77450
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
|
77451
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.8ms)
|
77452
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.3ms)
|
77453
|
+
Completed 200 OK in 17ms (Views: 12.1ms | ActiveRecord: 0.2ms)
|
77454
|
+
Started GET "/manage/structures/2" for 127.0.0.1 at 2013-02-04 17:48:54 +0200
|
77455
|
+
Processing by Sunrise::ManagerController#show as HTML
|
77456
|
+
Parameters: {"model_name"=>"structures", "id"=>"2"}
|
77457
|
+
Completed 401 Unauthorized in 0ms
|
77458
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 17:48:54 +0200
|
77459
|
+
Processing by Devise::SessionsController#new as HTML
|
77460
|
+
Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.0ms)
|
77461
|
+
Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.0ms)
|
77462
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
77463
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
77464
|
+
[1m[35m (212.9ms)[0m TRUNCATE TABLE `assets`;
|
77465
|
+
[1m[36m (286.1ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
77466
|
+
[1m[35m (317.0ms)[0m TRUNCATE TABLE `meta_tags`;
|
77467
|
+
[1m[36m (162.2ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
77468
|
+
[1m[35m (271.0ms)[0m TRUNCATE TABLE `posts`;
|
77469
|
+
[1m[36m (161.3ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
77470
|
+
[1m[35m (261.2ms)[0m TRUNCATE TABLE `structures`;
|
77471
|
+
[1m[36m (354.3ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
77472
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
77473
|
+
[1m[36m (0.1ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
77474
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
77475
|
+
[1m[36m (306.3ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
77476
|
+
[1m[35m (341.5ms)[0m TRUNCATE TABLE `audits`;
|
77477
|
+
[1m[36m (162.2ms)[0m [1mTRUNCATE TABLE `meta_tags`;[0m
|
77478
|
+
[1m[35m (259.7ms)[0m TRUNCATE TABLE `page_parts`;
|
77479
|
+
[1m[36m (297.7ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
77480
|
+
[1m[35m (127.4ms)[0m TRUNCATE TABLE `settings`;
|
77481
|
+
[1m[36m (296.5ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
77482
|
+
[1m[35m (477.0ms)[0m TRUNCATE TABLE `users`;
|
77483
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
77484
|
+
[1m[35m (0.1ms)[0m BEGIN
|
77485
|
+
[1m[36mUser Exists (0.5ms)[0m [1mSELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing3@example.com' LIMIT 1[0m
|
77486
|
+
[1m[35mSQL (34.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`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:48:58', '2013-02-04 15:48:58', NULL, NULL, 'testing3@example.com', 'c26d0d24e87f2075f0b82182718a24a0885475d0f6308a8fe3ff3c97b19e15fa0aeae05a493ab05407042a907204a6b12ea82206469673e4e9b7d774c63edeb3', 0, NULL, NULL, NULL, 'Admin', 'AVSYQbpMNC2jjVhcyGHN', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:48:58')
|
77487
|
+
[1m[36m (46.8ms)[0m [1mCOMMIT[0m
|
77488
|
+
[1m[35m (0.1ms)[0m BEGIN
|
77489
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
77490
|
+
[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 ('2013-02-04 15:48:58', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 15:48:58')
|
77491
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
77492
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
|
77493
|
+
[1m[36m (36.7ms)[0m [1mCOMMIT[0m
|
77494
|
+
[1m[35m (0.1ms)[0m BEGIN
|
77495
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
77496
|
+
[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 ('2013-02-04 15:48:58', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug3', 'Structure', '2013-02-04 15:48:58')
|
77497
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1[0m
|
77498
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
77499
|
+
[1m[36mSQL (25.9ms)[0m [1mUPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`[0m
|
77500
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
|
77501
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
77502
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
77503
|
+
[1m[36mSQL (1.7ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
77504
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
77505
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`[0m
|
77506
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
77507
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
77508
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
77509
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
77510
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
77511
|
+
[1m[36m (48.4ms)[0m [1mCOMMIT[0m
|
77512
|
+
Started GET "/manage/structures" for 127.0.0.1 at 2013-02-04 17:48:58 +0200
|
77513
|
+
[1m[35m (0.1ms)[0m BEGIN
|
77514
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
77515
|
+
[1m[35m (0.1ms)[0m BEGIN
|
77516
|
+
[1m[36m (0.5ms)[0m [1mUPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:48:58', `current_sign_in_at` = '2013-02-04 15:48:58', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:48:58' WHERE `users`.`id` = 1[0m
|
77517
|
+
[1m[35m (36.3ms)[0m COMMIT
|
77518
|
+
Processing by Sunrise::ManagerController#index as HTML
|
77519
|
+
Parameters: {"model_name"=>"structures"}
|
77520
|
+
[1m[36mStructure Load (0.6ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`[0m
|
77521
|
+
[1m[35mStructure Load (0.6ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
|
77522
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (2.6ms)
|
77523
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (178.4ms)
|
77524
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.7ms)
|
77525
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (63.1ms)
|
77526
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (66.0ms)
|
77527
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (66.5ms)
|
77528
|
+
Completed 200 OK in 291ms (Views: 280.5ms | ActiveRecord: 1.3ms)
|
77529
|
+
Started DELETE "/manage/structures/2/delete" for 127.0.0.1 at 2013-02-04 17:48:59 +0200
|
77530
|
+
Processing by Sunrise::ManagerController#destroy as HTML
|
77531
|
+
Parameters: {"model_name"=>"structures", "id"=>"2"}
|
77532
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
77533
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
77534
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
77535
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
77536
|
+
[1m[36mSQL (20.7ms)[0m [1mDELETE FROM `structures` WHERE (`lft` > 2 AND `rgt` < 3)[0m
|
77537
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `lft` = (`lft` - 2) WHERE (`structures`.`lft` > 3) ORDER BY `structures`.`lft`
|
77538
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `rgt` = (`rgt` - 2) WHERE (`structures`.`rgt` > 3) ORDER BY `structures`.`lft`[0m
|
77539
|
+
[1m[35mPagePart Load (0.4ms)[0m SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
|
77540
|
+
[1m[36mMetaTag Load (0.4ms)[0m [1mSELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'[0m
|
77541
|
+
[1m[35mPost Load (0.4ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2
|
77542
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM `structures` WHERE `structures`.`id` = 2[0m
|
77543
|
+
[1m[35m (104.1ms)[0m COMMIT
|
77544
|
+
Redirected to http://www.example.com/manage/structures
|
77545
|
+
Completed 302 Found in 376ms (ActiveRecord: 0.0ms)
|
77546
|
+
Started GET "/manage/structures" for 127.0.0.1 at 2013-02-04 17:48:59 +0200
|
77547
|
+
Processing by Sunrise::ManagerController#index as HTML
|
77548
|
+
Parameters: {"model_name"=>"structures"}
|
77549
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
77550
|
+
[1m[35mStructure Load (0.6ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
|
77551
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (1.5ms)
|
77552
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.9ms)
|
77553
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
|
77554
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.9ms)
|
77555
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.3ms)
|
77556
|
+
Completed 200 OK in 21ms (Views: 14.7ms | ActiveRecord: 0.8ms)
|
77557
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
77558
|
+
Started GET "/manage/structures" for 127.0.0.1 at 2013-02-04 17:48:59 +0200
|
77559
|
+
Processing by Sunrise::ManagerController#index as HTML
|
77560
|
+
Parameters: {"model_name"=>"structures"}
|
77561
|
+
Completed 401 Unauthorized in 0ms
|
77562
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 17:48:59 +0200
|
77563
|
+
Processing by Devise::SessionsController#new as HTML
|
77564
|
+
Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.1ms)
|
77565
|
+
Completed 200 OK in 73ms (Views: 72.1ms | ActiveRecord: 0.0ms)
|
77566
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
77567
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
77568
|
+
[1m[35m (792.7ms)[0m TRUNCATE TABLE `assets`;
|
77569
|
+
[1m[36m (411.0ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
77570
|
+
[1m[35m (428.1ms)[0m TRUNCATE TABLE `meta_tags`;
|
77571
|
+
[1m[36m (217.9ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
77572
|
+
[1m[35m (283.7ms)[0m TRUNCATE TABLE `posts`;
|
77573
|
+
[1m[36m (194.3ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
77574
|
+
[1m[35m (305.9ms)[0m TRUNCATE TABLE `structures`;
|
77575
|
+
[1m[36m (377.0ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
77576
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
77577
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
77578
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
77579
|
+
[1m[36m (317.4ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
77580
|
+
[1m[35m (363.9ms)[0m TRUNCATE TABLE `audits`;
|
77581
|
+
[1m[36m (162.4ms)[0m [1mTRUNCATE TABLE `meta_tags`;[0m
|
77582
|
+
[1m[35m (239.2ms)[0m TRUNCATE TABLE `page_parts`;
|
77583
|
+
[1m[36m (505.5ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
77584
|
+
[1m[35m (128.2ms)[0m TRUNCATE TABLE `settings`;
|
77585
|
+
[1m[36m (351.1ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
77586
|
+
[1m[35m (364.7ms)[0m TRUNCATE TABLE `users`;
|
77587
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
77588
|
+
[1m[35m (0.1ms)[0m BEGIN
|
77589
|
+
[1m[36mUser Exists (0.5ms)[0m [1mSELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing4@example.com' LIMIT 1[0m
|
77590
|
+
[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`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:49:05', '2013-02-04 15:49:05', NULL, NULL, 'testing4@example.com', 'd1e2dcf37bc0f632473f99875da02ea85d16a48b827758fbd30e832cfafb66519cddbac6e2d309047de5d42c0819b2b5b22410d4adcff481a8fbe6fcc7b68f43', 0, NULL, NULL, NULL, 'Admin', 'xyCdiCsDEozH4PT6oDgQ', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:49:05')
|
77591
|
+
[1m[36m (36.2ms)[0m [1mCOMMIT[0m
|
77592
|
+
[1m[35m (0.1ms)[0m BEGIN
|
77593
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
77594
|
+
[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 ('2013-02-04 15:49:05', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 15:49:05')
|
77595
|
+
[1m[36mStructure Load (34.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
77596
|
+
[1m[35mSQL (7.8ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
|
77597
|
+
[1m[36m (50.2ms)[0m [1mCOMMIT[0m
|
77598
|
+
[1m[35m (0.1ms)[0m BEGIN
|
77599
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
77600
|
+
[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 ('2013-02-04 15:49:05', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug4', 'Structure', '2013-02-04 15:49:05')
|
77601
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1[0m
|
77602
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
77603
|
+
[1m[36mSQL (52.0ms)[0m [1mUPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`[0m
|
77604
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
|
77605
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
77606
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
77607
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
77608
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
77609
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`[0m
|
77610
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
77611
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
77612
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
77613
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
77614
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
77615
|
+
[1m[36m (56.1ms)[0m [1mCOMMIT[0m
|
77616
|
+
Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-02-04 17:49:05 +0200
|
77617
|
+
[1m[35m (0.2ms)[0m BEGIN
|
77618
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
77619
|
+
[1m[35m (0.1ms)[0m BEGIN
|
77620
|
+
[1m[36m (53.8ms)[0m [1mUPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:49:05', `current_sign_in_at` = '2013-02-04 15:49:05', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:49:05' WHERE `users`.`id` = 1[0m
|
77621
|
+
[1m[35m (49.1ms)[0m COMMIT
|
77622
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
77623
|
+
Parameters: {"model_name"=>"structures", "id"=>"2"}
|
77624
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
77625
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
|
77626
|
+
[1m[35mStructure Load (0.6ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
|
77627
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 4) ORDER BY `structures`.`lft`[0m
|
77628
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (86.8ms)
|
77629
|
+
[1m[35mMetaTag Load (0.5ms)[0m SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
|
77630
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (8.7ms)
|
77631
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (597.2ms)
|
77632
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.9ms)
|
77633
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (1.3ms)
|
77634
|
+
Completed 200 OK in 645ms (Views: 613.2ms | ActiveRecord: 2.1ms)
|
77635
|
+
Started PUT "/manage/structures/2/edit" for 127.0.0.1 at 2013-02-04 17:49:06 +0200
|
77636
|
+
Processing by Sunrise::ManagerController#update as HTML
|
77637
|
+
Parameters: {"utf8"=>"✓", "parent_id"=>"", "parent_type"=>"", "structure"=>{"title"=>"Title updated", "redirect_url"=>"", "slug"=>"slug4", "parent_id"=>"1", "kind"=>"2", "position"=>"1", "is_visible"=>"0", "tag_title"=>"", "tag_keywords"=>"", "tag_description"=>""}, "commit"=>"Update Structure", "model_name"=>"structures", "id"=>"2"}
|
77638
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
77639
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
77640
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
77641
|
+
[1m[35mMetaTag Load (0.6ms)[0m SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
|
77642
|
+
[1m[36m (0.5ms)[0m [1mUPDATE `structures` SET `title` = 'Title updated', `redirect_url` = '', `kind` = 2, `position` = 1, `is_visible` = 0, `updated_at` = '2013-02-04 15:49:06' WHERE `structures`.`id` = 2[0m
|
77643
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
77644
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
77645
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
77646
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
77647
|
+
[1m[35m (37.2ms)[0m COMMIT
|
77648
|
+
Redirected to http://www.example.com/manage/structures
|
77649
|
+
Completed 302 Found in 71ms (ActiveRecord: 0.0ms)
|
77650
|
+
Started GET "/manage/structures" for 127.0.0.1 at 2013-02-04 17:49:06 +0200
|
77651
|
+
Processing by Sunrise::ManagerController#index as HTML
|
77652
|
+
Parameters: {"model_name"=>"structures"}
|
77653
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
77654
|
+
[1m[35mStructure Load (0.7ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
|
77655
|
+
[1m[36mStructure Load (0.6ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft[0m
|
77656
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (2.2ms)
|
77657
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (6.6ms)
|
77658
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.7ms)
|
77659
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
|
77660
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.8ms)
|
77661
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.3ms)
|
77662
|
+
Completed 200 OK in 24ms (Views: 18.5ms | ActiveRecord: 1.5ms)
|
77663
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
77664
|
+
Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-02-04 17:49:06 +0200
|
77665
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
77666
|
+
[1m[35m (0.1ms)[0m COMMIT
|
77667
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
77668
|
+
[1m[35m (26.0ms)[0m UPDATE `users` SET `current_sign_in_at` = '2013-02-04 15:49:06', `sign_in_count` = 2, `updated_at` = '2013-02-04 15:49:06' WHERE `users`.`id` = 1
|
77669
|
+
[1m[36m (42.3ms)[0m [1mCOMMIT[0m
|
77670
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
77671
|
+
Parameters: {"model_name"=>"structures", "id"=>"2"}
|
77672
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
77673
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
|
77674
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`[0m
|
77675
|
+
[1m[35mStructure Load (0.6ms)[0m SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 4) ORDER BY `structures`.`lft`
|
77676
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (17.3ms)
|
77677
|
+
[1m[36mMetaTag Load (0.2ms)[0m [1mSELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'[0m
|
77678
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (7.6ms)
|
77679
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (28.5ms)
|
77680
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.9ms)
|
77681
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
|
77682
|
+
Completed 200 OK in 40ms (Views: 35.8ms | ActiveRecord: 1.1ms)
|
77683
|
+
Started PUT "/manage/structures/2/edit" for 127.0.0.1 at 2013-02-04 17:49:06 +0200
|
77684
|
+
Processing by Sunrise::ManagerController#update as HTML
|
77685
|
+
Parameters: {"utf8"=>"✓", "parent_id"=>"", "parent_type"=>"", "structure"=>{"title"=>"Title updated", "redirect_url"=>"", "slug"=>"slug4", "parent_id"=>"1", "kind"=>"2", "position"=>"1", "is_visible"=>"0", "tag_title"=>"", "tag_keywords"=>"", "tag_description"=>""}, "commit"=>"Update Structure", "model_name"=>"structures", "id"=>"2"}
|
77686
|
+
[1m[35mUser Load (0.5ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
77687
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
77688
|
+
[1m[35m (0.1ms)[0m BEGIN
|
77689
|
+
[1m[36mMetaTag Load (0.2ms)[0m [1mSELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'[0m
|
77690
|
+
[1m[35mCACHE (0.0ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
77691
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
77692
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
77693
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
77694
|
+
[1m[35m (14.8ms)[0m COMMIT
|
77695
|
+
Redirected to http://www.example.com/manage/structures
|
77696
|
+
Completed 302 Found in 32ms (ActiveRecord: 0.0ms)
|
77697
|
+
Started GET "/manage/structures" for 127.0.0.1 at 2013-02-04 17:49:06 +0200
|
77698
|
+
Processing by Sunrise::ManagerController#index as HTML
|
77699
|
+
Parameters: {"model_name"=>"structures"}
|
77700
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
77701
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
|
77702
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft[0m
|
77703
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (2.2ms)
|
77704
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (5.2ms)
|
77705
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.5ms)
|
77706
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
|
77707
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.6ms)
|
77708
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.0ms)
|
77709
|
+
Completed 200 OK in 20ms (Views: 16.4ms | ActiveRecord: 0.5ms)
|
77710
|
+
[1m[35m (0.1ms)[0m BEGIN
|
77711
|
+
[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
|
77712
|
+
[1m[35mPagePart Exists (0.6ms)[0m SELECT 1 AS one FROM `page_parts` WHERE (`page_parts`.`key` = BINARY 'main' AND `page_parts`.`partable_type` = 'Structure' AND `page_parts`.`partable_id` = 2) LIMIT 1
|
77713
|
+
[1m[36mPagePart Exists (0.4ms)[0m [1mSELECT 1 AS one FROM `page_parts` WHERE (`page_parts`.`key` = BINARY 'sidebar' AND `page_parts`.`partable_type` = 'Structure' AND `page_parts`.`partable_id` = 2) LIMIT 1[0m
|
77714
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO `page_parts` (`content`, `created_at`, `key`, `partable_id`, `partable_type`, `updated_at`) VALUES ('Main', '2013-02-04 15:49:06', 'main', 2, 'Structure', '2013-02-04 15:49:06')
|
77715
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO `page_parts` (`content`, `created_at`, `key`, `partable_id`, `partable_type`, `updated_at`) VALUES ('Sidebar', '2013-02-04 15:49:06', 'sidebar', 2, 'Structure', '2013-02-04 15:49:06')[0m
|
77716
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
77717
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
77718
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
77719
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
77720
|
+
[1m[35m (37.3ms)[0m COMMIT
|
77721
|
+
Started GET "/manage/pages/2/edit" for 127.0.0.1 at 2013-02-04 17:49:06 +0200
|
77722
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
77723
|
+
[1m[35m (0.1ms)[0m COMMIT
|
77724
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
77725
|
+
[1m[35m (0.4ms)[0m UPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:49:06', `sign_in_count` = 3, `updated_at` = '2013-02-04 15:49:06' WHERE `users`.`id` = 1
|
77726
|
+
[1m[36m (25.1ms)[0m [1mCOMMIT[0m
|
77727
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
77728
|
+
Parameters: {"model_name"=>"pages", "id"=>"2"}
|
77729
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
77730
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
|
77731
|
+
[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
|
77732
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (25.0ms)
|
77733
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (28.5ms)
|
77734
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
|
77735
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
|
77736
|
+
Completed 200 OK in 59ms (Views: 36.1ms | ActiveRecord: 0.8ms)
|
77737
|
+
Started PUT "/manage/pages/2/edit" for 127.0.0.1 at 2013-02-04 17:49:06 +0200
|
77738
|
+
Processing by Sunrise::ManagerController#update as HTML
|
77739
|
+
Parameters: {"utf8"=>"✓", "parent_id"=>"", "parent_type"=>"", "structure"=>{"main"=>"Main updated", "sidebar"=>"Sidebar updated"}, "commit"=>"Update Structure", "model_name"=>"pages", "id"=>"2"}
|
77740
|
+
[1m[35mUser Load (0.5ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
77741
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
77742
|
+
[1m[35m (0.1ms)[0m BEGIN
|
77743
|
+
[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
|
77744
|
+
[1m[35mPagePart Exists (0.6ms)[0m SELECT 1 AS one 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
|
77745
|
+
[1m[36mPagePart Exists (0.5ms)[0m [1mSELECT 1 AS one 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[0m
|
77746
|
+
[1m[35m (0.4ms)[0m UPDATE `page_parts` SET `content` = 'Main updated', `updated_at` = '2013-02-04 15:49:06' WHERE `page_parts`.`id` = 1
|
77747
|
+
[1m[36m (25.3ms)[0m [1mUPDATE `page_parts` SET `content` = 'Sidebar updated', `updated_at` = '2013-02-04 15:49:06' WHERE `page_parts`.`id` = 2[0m
|
77748
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
77749
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
77750
|
+
[1m[35mSQL (0.4ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
77751
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
77752
|
+
[1m[35m (40.1ms)[0m COMMIT
|
77753
|
+
Redirected to http://www.example.com/manage/structures
|
77754
|
+
Completed 302 Found in 95ms (ActiveRecord: 0.0ms)
|
77755
|
+
Started GET "/manage/structures" for 127.0.0.1 at 2013-02-04 17:49:07 +0200
|
77756
|
+
Processing by Sunrise::ManagerController#index as HTML
|
77757
|
+
Parameters: {"model_name"=>"structures"}
|
77758
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
77759
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
|
77760
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft[0m
|
77761
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (2.1ms)
|
77762
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (5.4ms)
|
77763
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.6ms)
|
77764
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
|
77765
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.7ms)
|
77766
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.2ms)
|
77767
|
+
Completed 200 OK in 22ms (Views: 17.2ms | ActiveRecord: 0.5ms)
|
77768
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
77769
|
+
[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
|
77770
|
+
Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-02-04 17:49:07 +0200
|
77771
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
77772
|
+
Parameters: {"model_name"=>"structures", "id"=>"2"}
|
77773
|
+
Completed 401 Unauthorized in 0ms
|
77774
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 17:49:07 +0200
|
77775
|
+
Processing by Devise::SessionsController#new as HTML
|
77776
|
+
Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.0ms)
|
77777
|
+
Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms)
|
77778
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
77779
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
77780
|
+
[1m[35m (218.2ms)[0m TRUNCATE TABLE `assets`;
|
77781
|
+
[1m[36m (364.2ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
77782
|
+
[1m[35m (283.6ms)[0m TRUNCATE TABLE `meta_tags`;
|
77783
|
+
[1m[36m (206.6ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
77784
|
+
[1m[35m (248.4ms)[0m TRUNCATE TABLE `posts`;
|
77785
|
+
[1m[36m (139.1ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
77786
|
+
[1m[35m (283.9ms)[0m TRUNCATE TABLE `structures`;
|
77787
|
+
[1m[36m (431.1ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
77788
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
77789
|
+
[1m[36m (0.1ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
77790
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
77791
|
+
[1m[36m (329.5ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
77792
|
+
[1m[35m (365.3ms)[0m TRUNCATE TABLE `audits`;
|
77793
|
+
[1m[36m (162.2ms)[0m [1mTRUNCATE TABLE `meta_tags`;[0m
|
77794
|
+
[1m[35m (282.8ms)[0m TRUNCATE TABLE `page_parts`;
|
77795
|
+
[1m[36m (309.0ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
77796
|
+
[1m[35m (147.6ms)[0m TRUNCATE TABLE `settings`;
|
77797
|
+
[1m[36m (329.9ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
77798
|
+
[1m[35m (366.2ms)[0m TRUNCATE TABLE `users`;
|
77799
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
77800
|
+
[1m[35m (0.1ms)[0m BEGIN
|
77801
|
+
[1m[36mUser Exists (0.4ms)[0m [1mSELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing5@example.com' LIMIT 1[0m
|
77802
|
+
[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`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:49:11', '2013-02-04 15:49:11', NULL, NULL, 'testing5@example.com', 'dc7c903a2c889551557ecf7e3408cf636fd3621b19c0aee0b537b53c577dd84ba2b5e7b0d84addd4151bd3ed8755be1364d7764d71cc15e51b39e493414fd117', 0, NULL, NULL, NULL, 'Admin', '5HqsY4fmVa9rL6NnCZ8m', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:49:11')
|
77803
|
+
[1m[36m (42.3ms)[0m [1mCOMMIT[0m
|
77804
|
+
Started GET "/manage/whatever/new" for 127.0.0.1 at 2013-02-04 17:49:11 +0200
|
77805
|
+
[1m[35m (0.1ms)[0m BEGIN
|
77806
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
77807
|
+
[1m[35m (0.1ms)[0m BEGIN
|
77808
|
+
[1m[36m (0.5ms)[0m [1mUPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:49:11', `current_sign_in_at` = '2013-02-04 15:49:11', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:49:11' WHERE `users`.`id` = 1[0m
|
77809
|
+
[1m[35m (30.4ms)[0m COMMIT
|
77810
|
+
Processing by Sunrise::ManagerController#new as HTML
|
77811
|
+
Parameters: {"model_name"=>"whatever"}
|
77812
|
+
Completed 404 Not Found in 12ms
|
77813
|
+
Started GET "/manage/structures/new" for 127.0.0.1 at 2013-02-04 17:49:11 +0200
|
77814
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
77815
|
+
[1m[35m (0.1ms)[0m COMMIT
|
77816
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
77817
|
+
[1m[35m (0.4ms)[0m UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-02-04 15:49:11' WHERE `users`.`id` = 1
|
77818
|
+
[1m[36m (31.6ms)[0m [1mCOMMIT[0m
|
77819
|
+
Processing by Sunrise::ManagerController#new as HTML
|
77820
|
+
Parameters: {"model_name"=>"structures"}
|
77821
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
|
77822
|
+
[1m[35mStructure Load (0.7ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
|
77823
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (16.2ms)
|
77824
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.3ms)
|
77825
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (26.3ms)
|
77826
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
|
77827
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (1.3ms)
|
77828
|
+
Completed 200 OK in 61ms (Views: 40.3ms | ActiveRecord: 0.7ms)
|
77829
|
+
Started GET "/manage/structures/new" for 127.0.0.1 at 2013-02-04 17:49:11 +0200
|
77830
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
77831
|
+
[1m[35m (0.1ms)[0m COMMIT
|
77832
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
77833
|
+
[1m[35m (0.5ms)[0m UPDATE `users` SET `sign_in_count` = 3, `updated_at` = '2013-02-04 15:49:11' WHERE `users`.`id` = 1
|
77834
|
+
[1m[36m (64.6ms)[0m [1mCOMMIT[0m
|
77835
|
+
Processing by Sunrise::ManagerController#new as HTML
|
77836
|
+
Parameters: {"model_name"=>"structures"}
|
77837
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
|
77838
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
|
77839
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (14.9ms)
|
77840
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.1ms)
|
77841
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (24.5ms)
|
77842
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
|
77843
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.6ms)
|
77844
|
+
Completed 200 OK in 35ms (Views: 32.3ms | ActiveRecord: 0.2ms)
|
77845
|
+
Started GET "/manage/structures/new" for 127.0.0.1 at 2013-02-04 17:49:12 +0200
|
77846
|
+
Processing by Sunrise::ManagerController#new as HTML
|
77847
|
+
Parameters: {"model_name"=>"structures"}
|
77848
|
+
Completed 401 Unauthorized in 0ms
|
77849
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 17:49:12 +0200
|
77850
|
+
Processing by Devise::SessionsController#new as HTML
|
77851
|
+
Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.0ms)
|
77852
|
+
Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.0ms)
|
77853
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
77854
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
77855
|
+
[1m[36m (164.9ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
77856
|
+
[1m[35m (319.6ms)[0m TRUNCATE TABLE `audits`;
|
77857
|
+
[1m[36m (386.1ms)[0m [1mTRUNCATE TABLE `meta_tags`;[0m
|
77858
|
+
[1m[35m (295.5ms)[0m TRUNCATE TABLE `page_parts`;
|
77859
|
+
[1m[36m (161.3ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
77860
|
+
[1m[35m (308.4ms)[0m TRUNCATE TABLE `settings`;
|
77861
|
+
[1m[36m (374.1ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
77862
|
+
[1m[35m (387.0ms)[0m TRUNCATE TABLE `users`;
|
77863
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
77864
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
77865
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
77866
|
+
[1m[35m (341.4ms)[0m TRUNCATE TABLE `assets`;
|
77867
|
+
[1m[36m (1455.2ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
77868
|
+
[1m[35m (296.0ms)[0m TRUNCATE TABLE `meta_tags`;
|
77869
|
+
[1m[36m (140.1ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
77870
|
+
[1m[35m (249.6ms)[0m TRUNCATE TABLE `posts`;
|
77871
|
+
[1m[36m (138.9ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
77872
|
+
[1m[35m (283.9ms)[0m TRUNCATE TABLE `structures`;
|
77873
|
+
[1m[36m (431.1ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
77874
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
77875
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
77876
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing6@example.com' LIMIT 1
|
77877
|
+
[1m[36mSQL (7.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`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:49:17', '2013-02-04 15:49:17', NULL, NULL, 'testing6@example.com', '1ac638d4c39129391bfafc0a3fab9b2647e61b79379a8a370d2701df836e73a61b32d43c25c3efc29da16f98b40766c50c1a6e7753c6e5b48794a98adcbd235b', 0, NULL, NULL, NULL, 'Admin', '94q2yhZ6nox8f2BJ4Zt5', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:49:17')[0m
|
77878
|
+
[1m[35m (108.3ms)[0m COMMIT
|
77879
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
77880
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
77881
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:49:17', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 15:49:17')[0m
|
77882
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
77883
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`[0m
|
77884
|
+
[1m[35m (118.8ms)[0m COMMIT
|
77885
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
77886
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
77887
|
+
[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 ('2013-02-04 15:49:18', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug5', 'Structure', '2013-02-04 15:49:18')[0m
|
77888
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
|
77889
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
77890
|
+
[1m[35mSQL (0.5ms)[0m UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
|
77891
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE[0m
|
77892
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
77893
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
77894
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
77895
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
77896
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
|
77897
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
77898
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
77899
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
77900
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
77901
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
77902
|
+
[1m[35m (32.3ms)[0m COMMIT
|
77903
|
+
Started GET "/manage/users/export.xlsx" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
|
77904
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
77905
|
+
[1m[35m (0.0ms)[0m COMMIT
|
77906
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
77907
|
+
[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
|
77908
|
+
[1m[36m (0.0ms)[0m [1mCOMMIT[0m
|
77909
|
+
Processing by Sunrise::ManagerController#export as XLSX
|
77910
|
+
Parameters: {"model_name"=>"users"}
|
77911
|
+
Scoped order and limit are ignored, it's forced to be batch order and batch size
|
77912
|
+
[1m[35mUser Load (0.0ms)[0m SELECT `users`.* FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000 OFFSET 0
|
77913
|
+
Sent data users_2012-01-01_16h00m00.xls (0.0ms)
|
77914
|
+
Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
|
77915
|
+
Started GET "/manage/users/export.csv" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
|
77916
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
77917
|
+
[1m[35m (0.0ms)[0m COMMIT
|
77918
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
77919
|
+
[1m[35m (0.0ms)[0m UPDATE `users` SET `sign_in_count` = 2 WHERE `users`.`id` = 1
|
77920
|
+
[1m[36m (0.0ms)[0m [1mCOMMIT[0m
|
77921
|
+
Processing by Sunrise::ManagerController#export as CSV
|
77922
|
+
Parameters: {"model_name"=>"users"}
|
77923
|
+
Scoped order and limit are ignored, it's forced to be batch order and batch size
|
77924
|
+
[1m[35mUser Load (0.0ms)[0m SELECT `users`.* FROM `users` WHERE (`users`.`id` >= 0) ORDER BY `users`.`id` ASC LIMIT 1000 OFFSET 0
|
77925
|
+
Sent data users_2012-01-01_16h00m00.csv (0.0ms)
|
77926
|
+
Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
|
77927
|
+
Started GET "/manage/users/export.json" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
|
77928
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
77929
|
+
[1m[35m (0.0ms)[0m COMMIT
|
77930
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
77931
|
+
[1m[35m (0.0ms)[0m UPDATE `users` SET `sign_in_count` = 3 WHERE `users`.`id` = 1
|
77932
|
+
[1m[36m (0.0ms)[0m [1mCOMMIT[0m
|
77933
|
+
Processing by Sunrise::ManagerController#export as JSON
|
77934
|
+
Parameters: {"model_name"=>"users"}
|
77935
|
+
[1m[35mUser Load (0.0ms)[0m SELECT `users`.* FROM `users` LIMIT 25 OFFSET 0
|
77936
|
+
Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
|
77937
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
77938
|
+
[1m[35mSQL (0.0ms)[0m INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES (NULL, '2012-01-01 16:00:00', 1, 2, 'Some title', '2012-01-01 16:00:00')
|
77939
|
+
[1m[36m (0.0ms)[0m [1mCOMMIT[0m
|
77940
|
+
Started GET "/manage/posts/export.csv" for 127.0.0.1 at 2012-01-01 16:00:00 UTC
|
77941
|
+
[1m[35m (0.0ms)[0m BEGIN
|
77942
|
+
[1m[36m (0.0ms)[0m [1mCOMMIT[0m
|
77943
|
+
[1m[35m (0.0ms)[0m BEGIN
|
77944
|
+
[1m[36m (0.0ms)[0m [1mUPDATE `users` SET `sign_in_count` = 4 WHERE `users`.`id` = 1[0m
|
77945
|
+
[1m[35m (0.0ms)[0m COMMIT
|
77946
|
+
Processing by Sunrise::ManagerController#export as CSV
|
77947
|
+
Parameters: {"model_name"=>"posts"}
|
77948
|
+
Scoped order and limit are ignored, it's forced to be batch order and batch size
|
77949
|
+
[1m[36mPost Load (0.0ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE (`posts`.`id` >= 0) ORDER BY `posts`.`id` ASC LIMIT 1000 OFFSET 0[0m
|
77950
|
+
[1m[35mStructure Load (0.0ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` IN (2)
|
77951
|
+
Sent data posts_2012-01-01_16h00m00.csv (0.0ms)
|
77952
|
+
Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
|
77953
|
+
Started GET "/manage/structures/export.xlsx" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
|
77954
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
77955
|
+
[1m[35m (0.0ms)[0m COMMIT
|
77956
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
77957
|
+
[1m[35m (0.0ms)[0m UPDATE `users` SET `sign_in_count` = 5 WHERE `users`.`id` = 1
|
77958
|
+
[1m[36m (0.0ms)[0m [1mCOMMIT[0m
|
77959
|
+
Processing by Sunrise::ManagerController#export as XLSX
|
77960
|
+
Parameters: {"model_name"=>"structures"}
|
77961
|
+
Scoped order and limit are ignored, it's forced to be batch order and batch size
|
77962
|
+
[1m[35mStructure Load (0.0ms)[0m SELECT `structures`.* FROM `structures` WHERE (`structures`.`id` >= 0) ORDER BY `structures`.`id` ASC LIMIT 1000 OFFSET 0
|
77963
|
+
Sent data structures_2012-01-01_16h00m00.xls (0.0ms)
|
77964
|
+
Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
|
77965
|
+
Started GET "/manage/structures/export.xml" for 127.0.0.1 at 2012-01-01 18:00:00 +0200
|
77966
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
77967
|
+
[1m[35m (0.0ms)[0m COMMIT
|
77968
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
77969
|
+
[1m[35m (0.0ms)[0m UPDATE `users` SET `sign_in_count` = 6 WHERE `users`.`id` = 1
|
77970
|
+
[1m[36m (0.0ms)[0m [1mCOMMIT[0m
|
77971
|
+
Processing by Sunrise::ManagerController#export as XML
|
77972
|
+
Parameters: {"model_name"=>"structures"}
|
77973
|
+
[1m[35mStructure Load (0.0ms)[0m SELECT `structures`.* FROM `structures` LIMIT 25 OFFSET 0
|
77974
|
+
Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
|
77975
|
+
Started GET "/manage/users/export.xlsx" for 127.0.0.1 at 2013-02-04 17:49:19 +0200
|
77976
|
+
Processing by Sunrise::ManagerController#export as XLSX
|
77977
|
+
Parameters: {"model_name"=>"users"}
|
77978
|
+
Completed 401 Unauthorized in 0ms
|
77979
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
77980
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
77981
|
+
[1m[36m (189.4ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
77982
|
+
[1m[35m (297.3ms)[0m TRUNCATE TABLE `audits`;
|
77983
|
+
[1m[36m (306.0ms)[0m [1mTRUNCATE TABLE `meta_tags`;[0m
|
77984
|
+
[1m[35m (162.3ms)[0m TRUNCATE TABLE `page_parts`;
|
77985
|
+
[1m[36m (272.1ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
77986
|
+
[1m[35m (341.2ms)[0m TRUNCATE TABLE `settings`;
|
77987
|
+
[1m[36m (274.7ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
77988
|
+
[1m[35m (329.9ms)[0m TRUNCATE TABLE `users`;
|
77989
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
77990
|
+
[1m[35m (0.1ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
77991
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
77992
|
+
[1m[35m (230.3ms)[0m TRUNCATE TABLE `assets`;
|
77993
|
+
[1m[36m (287.1ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
77994
|
+
[1m[35m (305.4ms)[0m TRUNCATE TABLE `meta_tags`;
|
77995
|
+
[1m[36m (173.3ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
77996
|
+
[1m[35m (215.2ms)[0m TRUNCATE TABLE `posts`;
|
77997
|
+
[1m[36m (183.8ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
77998
|
+
[1m[35m (253.9ms)[0m TRUNCATE TABLE `structures`;
|
77999
|
+
[1m[36m (608.7ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
78000
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
78001
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78002
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing7@example.com' LIMIT 1
|
78003
|
+
[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`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:49:24', '2013-02-04 15:49:24', NULL, NULL, 'testing7@example.com', '7645d6f314012673364df658e7c59f85ffeac1c44e951c40b6463ce88d0aeef40b047576a84dfd52cab99e52e82c02ed297f4b06b0842b649b1e1a9397990781', 0, NULL, NULL, NULL, 'Admin', 'fa1969TCCGi5v1W8MtqH', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:49:24')[0m
|
78004
|
+
[1m[35m (59.3ms)[0m COMMIT
|
78005
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78006
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
78007
|
+
[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 ('2013-02-04 15:49:24', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 15:49:24')[0m
|
78008
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
78009
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`[0m
|
78010
|
+
[1m[35m (35.9ms)[0m COMMIT
|
78011
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78012
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
78013
|
+
[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 ('2013-02-04 15:49:24', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug6', 'Structure', '2013-02-04 15:49:24')[0m
|
78014
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
|
78015
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
78016
|
+
[1m[35mSQL (0.4ms)[0m UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
|
78017
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE[0m
|
78018
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
78019
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
78020
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
78021
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
78022
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
|
78023
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
78024
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
78025
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
78026
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
78027
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
78028
|
+
[1m[35m (42.1ms)[0m COMMIT
|
78029
|
+
Started GET "/manage/" for 127.0.0.1 at 2013-02-04 17:49:24 +0200
|
78030
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78031
|
+
[1m[35m (0.1ms)[0m COMMIT
|
78032
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78033
|
+
[1m[35m (0.5ms)[0m UPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:49:24', `current_sign_in_at` = '2013-02-04 15:49:24', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:49:24' WHERE `users`.`id` = 1
|
78034
|
+
[1m[36m (47.4ms)[0m [1mCOMMIT[0m
|
78035
|
+
Processing by Sunrise::DashboardController#index as HTML
|
78036
|
+
[1m[35mAudited::Adapters::ActiveRecord::Audit Load (0.5ms)[0m SELECT `audits`.* FROM `audits` ORDER BY version, audits.id desc LIMIT 50 OFFSET 0
|
78037
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_event.html.erb (0.0ms)
|
78038
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM `audits` LIMIT 50 OFFSET 0) subquery_for_count [0m
|
78039
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.9ms)
|
78040
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/dashboard/_header.html.erb (1.2ms)
|
78041
|
+
Completed 200 OK in 25ms (Views: 13.1ms | ActiveRecord: 0.9ms)
|
78042
|
+
Started GET "/manage/whatever" for 127.0.0.1 at 2013-02-04 17:49:24 +0200
|
78043
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78044
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
78045
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78046
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-02-04 15:49:24' WHERE `users`.`id` = 1[0m
|
78047
|
+
[1m[35m (63.5ms)[0m COMMIT
|
78048
|
+
Processing by Sunrise::ManagerController#index as HTML
|
78049
|
+
Parameters: {"model_name"=>"whatever"}
|
78050
|
+
Completed 404 Not Found in 10ms
|
78051
|
+
Started GET "/manage/structures" for 127.0.0.1 at 2013-02-04 17:49:24 +0200
|
78052
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78053
|
+
[1m[35m (0.1ms)[0m COMMIT
|
78054
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78055
|
+
[1m[35m (0.4ms)[0m UPDATE `users` SET `sign_in_count` = 3, `updated_at` = '2013-02-04 15:49:24' WHERE `users`.`id` = 1
|
78056
|
+
[1m[36m (67.2ms)[0m [1mCOMMIT[0m
|
78057
|
+
Processing by Sunrise::ManagerController#index as HTML
|
78058
|
+
Parameters: {"model_name"=>"structures"}
|
78059
|
+
[1m[35mStructure Load (0.6ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
|
78060
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft[0m
|
78061
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (2.1ms)
|
78062
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (6.0ms)
|
78063
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.7ms)
|
78064
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
|
78065
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.7ms)
|
78066
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.2ms)
|
78067
|
+
Completed 200 OK in 22ms (Views: 18.0ms | ActiveRecord: 1.1ms)
|
78068
|
+
Started GET "/manage/users" for 127.0.0.1 at 2013-02-04 17:49:24 +0200
|
78069
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78070
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
78071
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78072
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `users` SET `sign_in_count` = 4, `updated_at` = '2013-02-04 15:49:24' WHERE `users`.`id` = 1[0m
|
78073
|
+
[1m[35m (142.2ms)[0m COMMIT
|
78074
|
+
Processing by Sunrise::ManagerController#index as HTML
|
78075
|
+
Parameters: {"model_name"=>"users"}
|
78076
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT `users`.* FROM `users` LIMIT 25 OFFSET 0[0m
|
78077
|
+
[1m[35mAvatar Load (0.6ms)[0m SELECT `assets`.* FROM `assets` WHERE `assets`.`type` IN ('Avatar') AND `assets`.`assetable_type` = 'User' AND `assets`.`assetable_id` IN (1) ORDER BY `assets`.sort_order
|
78078
|
+
Rendered sunrise/manager/users/thumbs/_record.html.erb (4.4ms)
|
78079
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `users` [0m
|
78080
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
|
78081
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
|
78082
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
|
78083
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (39.9ms)
|
78084
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (55.9ms)
|
78085
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (1.7ms)
|
78086
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (1.5ms)
|
78087
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (1.5ms)
|
78088
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (2.0ms)
|
78089
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_export.html.erb (1.4ms)
|
78090
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (25.4ms)
|
78091
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (94.0ms)
|
78092
|
+
Completed 200 OK in 307ms (Views: 286.7ms | ActiveRecord: 3.5ms)
|
78093
|
+
Started GET "/manage/pages" for 127.0.0.1 at 2013-02-04 17:49:25 +0200
|
78094
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78095
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
78096
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78097
|
+
[1m[36m (0.5ms)[0m [1mUPDATE `users` SET `current_sign_in_at` = '2013-02-04 15:49:25', `sign_in_count` = 5, `updated_at` = '2013-02-04 15:49:25' WHERE `users`.`id` = 1[0m
|
78098
|
+
[1m[35m (45.0ms)[0m COMMIT
|
78099
|
+
Processing by Sunrise::ManagerController#index as HTML
|
78100
|
+
Parameters: {"model_name"=>"pages"}
|
78101
|
+
Completed 404 Not Found in 2ms
|
78102
|
+
Started GET "/manage/structures" for 127.0.0.1 at 2013-02-04 17:49:25 +0200
|
78103
|
+
Processing by Sunrise::ManagerController#index as HTML
|
78104
|
+
Parameters: {"model_name"=>"structures"}
|
78105
|
+
Completed 401 Unauthorized in 0ms
|
78106
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 17:49:25 +0200
|
78107
|
+
Processing by Devise::SessionsController#new as HTML
|
78108
|
+
Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.0ms)
|
78109
|
+
Completed 200 OK in 79ms (Views: 77.6ms | ActiveRecord: 0.0ms)
|
78110
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
78111
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
78112
|
+
[1m[36m (184.6ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
78113
|
+
[1m[35m (297.5ms)[0m TRUNCATE TABLE `audits`;
|
78114
|
+
[1m[36m (283.8ms)[0m [1mTRUNCATE TABLE `meta_tags`;[0m
|
78115
|
+
[1m[35m (162.1ms)[0m TRUNCATE TABLE `page_parts`;
|
78116
|
+
[1m[36m (238.0ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
78117
|
+
[1m[35m (150.1ms)[0m TRUNCATE TABLE `settings`;
|
78118
|
+
[1m[36m (327.7ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
78119
|
+
[1m[35m (455.8ms)[0m TRUNCATE TABLE `users`;
|
78120
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
78121
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
78122
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
78123
|
+
[1m[35m (372.1ms)[0m TRUNCATE TABLE `assets`;
|
78124
|
+
[1m[36m (330.3ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
78125
|
+
[1m[35m (162.1ms)[0m TRUNCATE TABLE `meta_tags`;
|
78126
|
+
[1m[36m (900.6ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
78127
|
+
[1m[35m (406.9ms)[0m TRUNCATE TABLE `posts`;
|
78128
|
+
[1m[36m (503.5ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
78129
|
+
[1m[35m (207.6ms)[0m TRUNCATE TABLE `structures`;
|
78130
|
+
[1m[36m (318.8ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
78131
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
78132
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78133
|
+
[1m[35mUser Exists (0.5ms)[0m SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing8@example.com' LIMIT 1
|
78134
|
+
[1m[36mSQL (17.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`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:49:30', '2013-02-04 15:49:30', NULL, NULL, 'testing8@example.com', 'aa73d5f9a87c150cf86d32d3385b7f2e5036e01e8a7453daea6f26a13ba1b7e12afb0b2ca95c87df7ce4180d570b7bda118352378f2e54144e85ee4b044506b0', 0, NULL, NULL, NULL, 'Admin', 'pzHp3trgjjUzRLyu9yqS', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:49:30')[0m
|
78135
|
+
[1m[35m (52.6ms)[0m COMMIT
|
78136
|
+
Started GET "/manage/structures/new" for 127.0.0.1 at 2013-02-04 17:49:30 +0200
|
78137
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78138
|
+
[1m[35m (0.1ms)[0m COMMIT
|
78139
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78140
|
+
[1m[35m (0.5ms)[0m UPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:49:30', `current_sign_in_at` = '2013-02-04 15:49:30', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:49:30' WHERE `users`.`id` = 1
|
78141
|
+
[1m[36m (69.4ms)[0m [1mCOMMIT[0m
|
78142
|
+
Processing by Sunrise::ManagerController#new as HTML
|
78143
|
+
Parameters: {"model_name"=>"structures"}
|
78144
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
|
78145
|
+
[1m[35mStructure Load (0.6ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
|
78146
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (16.0ms)
|
78147
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.4ms)
|
78148
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (26.0ms)
|
78149
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.7ms)
|
78150
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.5ms)
|
78151
|
+
Completed 200 OK in 36ms (Views: 33.3ms | ActiveRecord: 0.6ms)
|
78152
|
+
Started POST "/manage/structures/new" for 127.0.0.1 at 2013-02-04 17:49:30 +0200
|
78153
|
+
Processing by Sunrise::ManagerController#create as HTML
|
78154
|
+
Parameters: {"utf8"=>"✓", "parent_id"=>"", "parent_type"=>"", "structure"=>{"title"=>"Good day", "redirect_url"=>"", "slug"=>"", "parent_id"=>"", "kind"=>"1", "position"=>"2", "is_visible"=>"1", "tag_title"=>"", "tag_keywords"=>"", "tag_description"=>""}, "commit"=>"Create Structure", "model_name"=>"structures"}
|
78155
|
+
[1m[36mUser Load (0.6ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
78156
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78157
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
78158
|
+
[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 ('2013-02-04 15:49:31', 0, 1, 1, 1, NULL, 2, '', 2, 'good-day', 'Good day', '2013-02-04 15:49:31')
|
78159
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
78160
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
|
78161
|
+
[1m[36m (46.4ms)[0m [1mCOMMIT[0m
|
78162
|
+
Redirected to http://www.example.com/manage/structures
|
78163
|
+
Completed 302 Found in 523ms (ActiveRecord: 0.0ms)
|
78164
|
+
Started GET "/manage/structures" for 127.0.0.1 at 2013-02-04 17:49:31 +0200
|
78165
|
+
Processing by Sunrise::ManagerController#index as HTML
|
78166
|
+
Parameters: {"model_name"=>"structures"}
|
78167
|
+
[1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
78168
|
+
[1m[36mStructure Load (0.6ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`[0m
|
78169
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/structures/tree/_record.html.erb (1.4ms)
|
78170
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
|
78171
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
|
78172
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (2.8ms)
|
78173
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (3.2ms)
|
78174
|
+
Completed 200 OK in 20ms (Views: 14.0ms | ActiveRecord: 0.8ms)
|
78175
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`id` DESC LIMIT 1
|
78176
|
+
Started GET "/manage/structures/new" for 127.0.0.1 at 2013-02-04 17:49:31 +0200
|
78177
|
+
Processing by Sunrise::ManagerController#new as HTML
|
78178
|
+
Parameters: {"model_name"=>"structures"}
|
78179
|
+
Completed 401 Unauthorized in 0ms
|
78180
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 17:49:31 +0200
|
78181
|
+
Processing by Devise::SessionsController#new as HTML
|
78182
|
+
Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.0ms)
|
78183
|
+
Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.0ms)
|
78184
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
78185
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
78186
|
+
[1m[36m (166.7ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
78187
|
+
[1m[35m (330.8ms)[0m TRUNCATE TABLE `audits`;
|
78188
|
+
[1m[36m (317.4ms)[0m [1mTRUNCATE TABLE `meta_tags`;[0m
|
78189
|
+
[1m[35m (173.2ms)[0m TRUNCATE TABLE `page_parts`;
|
78190
|
+
[1m[36m (226.2ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
78191
|
+
[1m[35m (138.9ms)[0m TRUNCATE TABLE `settings`;
|
78192
|
+
[1m[36m (284.0ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
78193
|
+
[1m[35m (398.8ms)[0m TRUNCATE TABLE `users`;
|
78194
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
78195
|
+
[1m[35m (0.1ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
78196
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
78197
|
+
[1m[35m (308.3ms)[0m TRUNCATE TABLE `assets`;
|
78198
|
+
[1m[36m (319.9ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
78199
|
+
[1m[35m (312.9ms)[0m TRUNCATE TABLE `meta_tags`;
|
78200
|
+
[1m[36m (155.9ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
78201
|
+
[1m[35m (293.2ms)[0m TRUNCATE TABLE `posts`;
|
78202
|
+
[1m[36m (128.0ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
78203
|
+
[1m[35m (319.4ms)[0m TRUNCATE TABLE `structures`;
|
78204
|
+
[1m[36m (442.9ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
78205
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
78206
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78207
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing9@example.com' LIMIT 1
|
78208
|
+
[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`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:49:35', '2013-02-04 15:49:35', NULL, NULL, 'testing9@example.com', 'ff87c3ea2a4f49190f9528c296d962791dd6d10e4849f778f09ab3f970d49f5c73eb95329050c0d5248479e29f60c8b536272a50161f87c58705127e52ae9fe8', 0, NULL, NULL, NULL, 'Admin', 'U3cbVDpikqDJHyuxqm1B', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:49:35')[0m
|
78209
|
+
[1m[35m (36.5ms)[0m COMMIT
|
78210
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78211
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
78212
|
+
[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 ('2013-02-04 15:49:35', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 15:49:35')[0m
|
78213
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
78214
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`[0m
|
78215
|
+
[1m[35m (36.5ms)[0m COMMIT
|
78216
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78217
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
78218
|
+
[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 ('2013-02-04 15:49:35', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug7', 'Structure', '2013-02-04 15:49:35')[0m
|
78219
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
|
78220
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
78221
|
+
[1m[35mSQL (0.5ms)[0m UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
|
78222
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE[0m
|
78223
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
78224
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
78225
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
78226
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
78227
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
|
78228
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
78229
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
78230
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
78231
|
+
[1m[35mSQL (0.2ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
78232
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
78233
|
+
[1m[35m (37.7ms)[0m COMMIT
|
78234
|
+
Started GET "/manage/whatever/2/edit" for 127.0.0.1 at 2013-02-04 17:49:35 +0200
|
78235
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78236
|
+
[1m[35m (0.1ms)[0m COMMIT
|
78237
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78238
|
+
[1m[35m (0.5ms)[0m UPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:49:35', `current_sign_in_at` = '2013-02-04 15:49:35', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:49:35' WHERE `users`.`id` = 1
|
78239
|
+
[1m[36m (34.1ms)[0m [1mCOMMIT[0m
|
78240
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
78241
|
+
Parameters: {"model_name"=>"whatever", "id"=>"2"}
|
78242
|
+
Completed 404 Not Found in 10ms
|
78243
|
+
Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-02-04 17:49:35 +0200
|
78244
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78245
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
78246
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78247
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-02-04 15:49:35' WHERE `users`.`id` = 1[0m
|
78248
|
+
[1m[35m (43.9ms)[0m COMMIT
|
78249
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
78250
|
+
Parameters: {"model_name"=>"structures", "id"=>"2"}
|
78251
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
78252
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
|
78253
|
+
[1m[35mStructure Load (0.6ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`
|
78254
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 4) ORDER BY `structures`.`lft`[0m
|
78255
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (18.2ms)
|
78256
|
+
[1m[35mMetaTag Load (0.5ms)[0m SELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'
|
78257
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (8.3ms)
|
78258
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (30.4ms)
|
78259
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.9ms)
|
78260
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
|
78261
|
+
Completed 200 OK in 43ms (Views: 37.0ms | ActiveRecord: 2.1ms)
|
78262
|
+
Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-02-04 17:49:36 +0200
|
78263
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78264
|
+
[1m[35m (0.1ms)[0m COMMIT
|
78265
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78266
|
+
[1m[35m (0.5ms)[0m UPDATE `users` SET `current_sign_in_at` = '2013-02-04 15:49:36', `sign_in_count` = 3, `updated_at` = '2013-02-04 15:49:36' WHERE `users`.`id` = 1
|
78267
|
+
[1m[36m (60.9ms)[0m [1mCOMMIT[0m
|
78268
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
78269
|
+
Parameters: {"model_name"=>"structures", "id"=>"2"}
|
78270
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
78271
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
|
78272
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft`[0m
|
78273
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 1 AND `structures`.`lft` < 4) ORDER BY `structures`.`lft`
|
78274
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (17.2ms)
|
78275
|
+
[1m[36mMetaTag Load (0.2ms)[0m [1mSELECT `meta_tags`.* FROM `meta_tags` WHERE `meta_tags`.`taggable_id` = 2 AND `meta_tags`.`taggable_type` = 'Structure'[0m
|
78276
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (7.8ms)
|
78277
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (28.7ms)
|
78278
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.9ms)
|
78279
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
|
78280
|
+
Completed 200 OK in 40ms (Views: 36.3ms | ActiveRecord: 0.8ms)
|
78281
|
+
Started GET "/manage/pages/2/edit" for 127.0.0.1 at 2013-02-04 17:49:36 +0200
|
78282
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78283
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
78284
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78285
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:49:36', `sign_in_count` = 4, `updated_at` = '2013-02-04 15:49:36' WHERE `users`.`id` = 1[0m
|
78286
|
+
[1m[35m (22.8ms)[0m COMMIT
|
78287
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
78288
|
+
Parameters: {"model_name"=>"pages", "id"=>"2"}
|
78289
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
78290
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
|
78291
|
+
[1m[35mPagePart Load (0.5ms)[0m SELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'
|
78292
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (8.1ms)
|
78293
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (11.5ms)
|
78294
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.9ms)
|
78295
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
|
78296
|
+
Completed 200 OK in 23ms (Views: 19.1ms | ActiveRecord: 0.7ms)
|
78297
|
+
Started GET "/manage/pages/2/edit" for 127.0.0.1 at 2013-02-04 17:49:36 +0200
|
78298
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78299
|
+
[1m[35m (0.1ms)[0m COMMIT
|
78300
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78301
|
+
[1m[35m (0.4ms)[0m UPDATE `users` SET `sign_in_count` = 5, `updated_at` = '2013-02-04 15:49:36' WHERE `users`.`id` = 1
|
78302
|
+
[1m[36m (39.6ms)[0m [1mCOMMIT[0m
|
78303
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
78304
|
+
Parameters: {"model_name"=>"pages", "id"=>"2"}
|
78305
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
78306
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
|
78307
|
+
[1m[36mPagePart Load (0.2ms)[0m [1mSELECT `page_parts`.* FROM `page_parts` WHERE `page_parts`.`partable_id` = 2 AND `page_parts`.`partable_type` = 'Structure'[0m
|
78308
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (7.5ms)
|
78309
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (10.7ms)
|
78310
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
|
78311
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
|
78312
|
+
Completed 200 OK in 22ms (Views: 18.5ms | ActiveRecord: 0.4ms)
|
78313
|
+
Started GET "/manage/structures/2/edit" for 127.0.0.1 at 2013-02-04 17:49:36 +0200
|
78314
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
78315
|
+
Parameters: {"model_name"=>"structures", "id"=>"2"}
|
78316
|
+
Completed 401 Unauthorized in 0ms
|
78317
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 17:49:36 +0200
|
78318
|
+
Processing by Devise::SessionsController#new as HTML
|
78319
|
+
Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.0ms)
|
78320
|
+
Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.0ms)
|
78321
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
78322
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
78323
|
+
[1m[35m (179.3ms)[0m TRUNCATE TABLE `assets`;
|
78324
|
+
[1m[36m (308.6ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
78325
|
+
[1m[35m (295.0ms)[0m TRUNCATE TABLE `meta_tags`;
|
78326
|
+
[1m[36m (173.3ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
78327
|
+
[1m[35m (237.5ms)[0m TRUNCATE TABLE `posts`;
|
78328
|
+
[1m[36m (138.8ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
78329
|
+
[1m[35m (284.0ms)[0m TRUNCATE TABLE `structures`;
|
78330
|
+
[1m[36m (353.9ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
78331
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
78332
|
+
[1m[36m (0.1ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
78333
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
78334
|
+
[1m[36m (305.6ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
78335
|
+
[1m[35m (315.7ms)[0m TRUNCATE TABLE `audits`;
|
78336
|
+
[1m[36m (177.6ms)[0m [1mTRUNCATE TABLE `meta_tags`;[0m
|
78337
|
+
[1m[35m (251.1ms)[0m TRUNCATE TABLE `page_parts`;
|
78338
|
+
[1m[36m (161.2ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
78339
|
+
[1m[35m (215.1ms)[0m TRUNCATE TABLE `settings`;
|
78340
|
+
[1m[36m (306.8ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
78341
|
+
[1m[35m (352.6ms)[0m TRUNCATE TABLE `users`;
|
78342
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
78343
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78344
|
+
[1m[36mUser Exists (0.5ms)[0m [1mSELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing10@example.com' LIMIT 1[0m
|
78345
|
+
[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`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:49:40', '2013-02-04 15:49:40', NULL, NULL, 'testing10@example.com', 'e9c075c8331af020b2132762c8ef08d5e7538a1e7d009431c2db56ce564523f23f19b7a8f1ca37c144925235039b780e559894f5f3cc19c1868f739c094e1adf', 0, NULL, NULL, NULL, 'Admin', 'hqJHTEGYGeeW2XjUUKSz', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:49:40')
|
78346
|
+
[1m[36m (27.1ms)[0m [1mCOMMIT[0m
|
78347
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78348
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
78349
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:49:40', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 15:49:40')
|
78350
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
78351
|
+
[1m[35mSQL (0.4ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
|
78352
|
+
[1m[36m (36.0ms)[0m [1mCOMMIT[0m
|
78353
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78354
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
78355
|
+
[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 ('2013-02-04 15:49:40', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug8', 'Structure', '2013-02-04 15:49:40')
|
78356
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1[0m
|
78357
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
78358
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`[0m
|
78359
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
|
78360
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
78361
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
78362
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
78363
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
78364
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`[0m
|
78365
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
78366
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
78367
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
78368
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
78369
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
78370
|
+
[1m[36m (52.3ms)[0m [1mCOMMIT[0m
|
78371
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78372
|
+
[1m[36mSQL (40.1ms)[0m [1mINSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-02-04 15:49:40', 1, 2, 'Default title', '2013-02-04 15:49:40')[0m
|
78373
|
+
[1m[35m (45.1ms)[0m COMMIT
|
78374
|
+
Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:40 +0200
|
78375
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78376
|
+
[1m[35m (0.1ms)[0m COMMIT
|
78377
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78378
|
+
[1m[35m (0.5ms)[0m UPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:49:40', `current_sign_in_at` = '2013-02-04 15:49:40', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:49:40' WHERE `users`.`id` = 1
|
78379
|
+
[1m[36m (35.9ms)[0m [1mCOMMIT[0m
|
78380
|
+
Processing by Sunrise::ManagerController#index as HTML
|
78381
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
78382
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
78383
|
+
[1m[36mPost Load (0.5ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0[0m
|
78384
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (6.4ms)
|
78385
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
|
78386
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
|
78387
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
|
78388
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
|
78389
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.6ms)
|
78390
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (16.6ms)
|
78391
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.7ms)
|
78392
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.6ms)
|
78393
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.6ms)
|
78394
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (0.9ms)
|
78395
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.5ms)
|
78396
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (21.7ms)
|
78397
|
+
Completed 200 OK in 61ms (Views: 51.0ms | ActiveRecord: 1.5ms)
|
78398
|
+
Started DELETE "/manage/posts/1/delete?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:40 +0200
|
78399
|
+
Processing by Sunrise::ManagerController#destroy as HTML
|
78400
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
|
78401
|
+
[1m[36mUser Load (0.6ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
78402
|
+
[1m[35mPost Load (0.4ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
|
78403
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78404
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM `posts` WHERE `posts`.`id` = 1
|
78405
|
+
[1m[36m (18.4ms)[0m [1mCOMMIT[0m
|
78406
|
+
[1m[35mStructure Load (0.1ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
78407
|
+
Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
|
78408
|
+
Completed 302 Found in 31ms (ActiveRecord: 0.0ms)
|
78409
|
+
Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:40 +0200
|
78410
|
+
Processing by Sunrise::ManagerController#index as HTML
|
78411
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
78412
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
78413
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
78414
|
+
[1m[36mPost Load (0.5ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0[0m
|
78415
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (0.0ms)
|
78416
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
|
78417
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
|
78418
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
|
78419
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
|
78420
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.4ms)
|
78421
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.3ms)
|
78422
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.6ms)
|
78423
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.6ms)
|
78424
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.6ms)
|
78425
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (0.9ms)
|
78426
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.4ms)
|
78427
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (15.3ms)
|
78428
|
+
Completed 200 OK in 35ms (Views: 27.2ms | ActiveRecord: 1.2ms)
|
78429
|
+
[1m[36mPost Load (0.5ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1[0m
|
78430
|
+
Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:40 +0200
|
78431
|
+
Processing by Sunrise::ManagerController#index as HTML
|
78432
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
78433
|
+
Completed 401 Unauthorized in 0ms
|
78434
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 17:49:40 +0200
|
78435
|
+
Processing by Devise::SessionsController#new as HTML
|
78436
|
+
Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.0ms)
|
78437
|
+
Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms)
|
78438
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
78439
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
78440
|
+
[1m[35m (159.5ms)[0m TRUNCATE TABLE `assets`;
|
78441
|
+
[1m[36m (1201.3ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
78442
|
+
[1m[35m (304.8ms)[0m TRUNCATE TABLE `meta_tags`;
|
78443
|
+
[1m[36m (283.6ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
78444
|
+
[1m[35m (116.8ms)[0m TRUNCATE TABLE `posts`;
|
78445
|
+
[1m[36m (205.2ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
78446
|
+
[1m[35m (296.2ms)[0m TRUNCATE TABLE `structures`;
|
78447
|
+
[1m[36m (501.7ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
78448
|
+
[1m[35m (0.2ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
78449
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
78450
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
78451
|
+
[1m[36m (192.3ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
78452
|
+
[1m[35m (296.9ms)[0m TRUNCATE TABLE `audits`;
|
78453
|
+
[1m[36m (295.2ms)[0m [1mTRUNCATE TABLE `meta_tags`;[0m
|
78454
|
+
[1m[35m (496.3ms)[0m TRUNCATE TABLE `page_parts`;
|
78455
|
+
[1m[36m (139.3ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
78456
|
+
[1m[35m (260.2ms)[0m TRUNCATE TABLE `settings`;
|
78457
|
+
[1m[36m (185.5ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
78458
|
+
[1m[35m (363.5ms)[0m TRUNCATE TABLE `users`;
|
78459
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
78460
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78461
|
+
[1m[36mUser Exists (0.4ms)[0m [1mSELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing11@example.com' LIMIT 1[0m
|
78462
|
+
[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`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:49:46', '2013-02-04 15:49:46', NULL, NULL, 'testing11@example.com', '59982bfc5e8fa99ccf8713785a9fde492f8e0b1d6ddbcbde1cbfb444d3aa291bb0fd5fed40659304738b8b770a5df790ca8886281cc67d69fa91333736582bae', 0, NULL, NULL, NULL, 'Admin', '6EMsqrv2zy3spmiyoobL', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:49:46')
|
78463
|
+
[1m[36m (47.7ms)[0m [1mCOMMIT[0m
|
78464
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78465
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
78466
|
+
[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 ('2013-02-04 15:49:46', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 15:49:46')
|
78467
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
78468
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
|
78469
|
+
[1m[36m (36.3ms)[0m [1mCOMMIT[0m
|
78470
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78471
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
78472
|
+
[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 ('2013-02-04 15:49:46', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug9', 'Structure', '2013-02-04 15:49:46')
|
78473
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1[0m
|
78474
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
78475
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`[0m
|
78476
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
|
78477
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
78478
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
78479
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
78480
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
78481
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`[0m
|
78482
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
78483
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
78484
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
78485
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
78486
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
78487
|
+
[1m[36m (51.3ms)[0m [1mCOMMIT[0m
|
78488
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78489
|
+
[1m[36mSQL (34.9ms)[0m [1mINSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-02-04 15:49:46', 1, 2, 'Default title', '2013-02-04 15:49:46')[0m
|
78490
|
+
[1m[35m (49.2ms)[0m COMMIT
|
78491
|
+
Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:46 +0200
|
78492
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78493
|
+
[1m[35m (0.1ms)[0m COMMIT
|
78494
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78495
|
+
[1m[35m (0.5ms)[0m UPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:49:46', `current_sign_in_at` = '2013-02-04 15:49:46', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:49:46' WHERE `users`.`id` = 1
|
78496
|
+
[1m[36m (35.9ms)[0m [1mCOMMIT[0m
|
78497
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
78498
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
|
78499
|
+
[1m[35mPost Load (0.5ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
|
78500
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.5ms)
|
78501
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.2ms)
|
78502
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.5ms)
|
78503
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
|
78504
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
|
78505
|
+
Completed 200 OK in 24ms (Views: 17.4ms | ActiveRecord: 0.5ms)
|
78506
|
+
Started PUT "/manage/posts/1/edit" for 127.0.0.1 at 2013-02-04 17:49:46 +0200
|
78507
|
+
Processing by Sunrise::ManagerController#update as HTML
|
78508
|
+
Parameters: {"utf8"=>"✓", "parent_id"=>"2", "parent_type"=>"Structure", "post"=>{"title"=>"Title updated", "content"=>"Tra la la", "is_visible"=>"0"}, "commit"=>"Update Post", "model_name"=>"posts", "id"=>"1"}
|
78509
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
78510
|
+
[1m[35mPost Load (0.2ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
|
78511
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78512
|
+
[1m[35m (31.8ms)[0m UPDATE `posts` SET `title` = 'Title updated', `content` = 'Tra la la', `is_visible` = 0, `updated_at` = '2013-02-04 15:49:46' WHERE `posts`.`id` = 1
|
78513
|
+
[1m[36m (37.3ms)[0m [1mCOMMIT[0m
|
78514
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
78515
|
+
Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
|
78516
|
+
Completed 302 Found in 82ms (ActiveRecord: 0.0ms)
|
78517
|
+
Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:46 +0200
|
78518
|
+
Processing by Sunrise::ManagerController#index as HTML
|
78519
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
78520
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
78521
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
78522
|
+
[1m[36mPost Load (0.5ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0[0m
|
78523
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (4.6ms)
|
78524
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
|
78525
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.1ms)
|
78526
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
|
78527
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
|
78528
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.3ms)
|
78529
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.0ms)
|
78530
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.6ms)
|
78531
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.6ms)
|
78532
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.6ms)
|
78533
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (0.9ms)
|
78534
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.3ms)
|
78535
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (15.0ms)
|
78536
|
+
Completed 200 OK in 40ms (Views: 32.4ms | ActiveRecord: 1.3ms)
|
78537
|
+
[1m[36mPost Load (0.6ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1[0m
|
78538
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
78539
|
+
Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:46 +0200
|
78540
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78541
|
+
[1m[35m (0.1ms)[0m COMMIT
|
78542
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78543
|
+
[1m[35m (0.4ms)[0m UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-02-04 15:49:46' WHERE `users`.`id` = 1
|
78544
|
+
[1m[36m (24.1ms)[0m [1mCOMMIT[0m
|
78545
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
78546
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
|
78547
|
+
[1m[35mPost Load (0.2ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
|
78548
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
|
78549
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.3ms)
|
78550
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.4ms)
|
78551
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
|
78552
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
|
78553
|
+
Completed 200 OK in 21ms (Views: 17.3ms | ActiveRecord: 0.2ms)
|
78554
|
+
Started PUT "/manage/posts/1/edit" for 127.0.0.1 at 2013-02-04 17:49:46 +0200
|
78555
|
+
Processing by Sunrise::ManagerController#update as HTML
|
78556
|
+
Parameters: {"utf8"=>"✓", "parent_id"=>"2", "parent_type"=>"Structure", "post"=>{"title"=>"Title updated", "content"=>"Tra la la", "is_visible"=>"0"}, "commit"=>"Update Post", "model_name"=>"posts", "id"=>"1"}
|
78557
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
78558
|
+
[1m[35mPost Load (0.2ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1
|
78559
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78560
|
+
[1m[35m (0.1ms)[0m COMMIT
|
78561
|
+
[1m[36mStructure Load (0.1ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
78562
|
+
Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
|
78563
|
+
Completed 302 Found in 11ms (ActiveRecord: 0.0ms)
|
78564
|
+
Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:46 +0200
|
78565
|
+
Processing by Sunrise::ManagerController#index as HTML
|
78566
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
78567
|
+
[1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
78568
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
78569
|
+
[1m[35mPost Load (0.2ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
|
78570
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (4.7ms)
|
78571
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2[0m
|
78572
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
|
78573
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
|
78574
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
|
78575
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.6ms)
|
78576
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.4ms)
|
78577
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.6ms)
|
78578
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.7ms)
|
78579
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.6ms)
|
78580
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (0.9ms)
|
78581
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.5ms)
|
78582
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (15.6ms)
|
78583
|
+
Completed 200 OK in 39ms (Views: 32.5ms | ActiveRecord: 0.7ms)
|
78584
|
+
Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:46 +0200
|
78585
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
78586
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
|
78587
|
+
Completed 401 Unauthorized in 0ms
|
78588
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 17:49:47 +0200
|
78589
|
+
Processing by Devise::SessionsController#new as HTML
|
78590
|
+
Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.0ms)
|
78591
|
+
Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.0ms)
|
78592
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
78593
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
78594
|
+
[1m[35m (167.5ms)[0m TRUNCATE TABLE `assets`;
|
78595
|
+
[1m[36m (286.6ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
78596
|
+
[1m[35m (294.7ms)[0m TRUNCATE TABLE `meta_tags`;
|
78597
|
+
[1m[36m (162.2ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
78598
|
+
[1m[35m (204.4ms)[0m TRUNCATE TABLE `posts`;
|
78599
|
+
[1m[36m (138.9ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
78600
|
+
[1m[35m (295.4ms)[0m TRUNCATE TABLE `structures`;
|
78601
|
+
[1m[36m (376.3ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
78602
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
78603
|
+
[1m[36m (0.1ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
78604
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
78605
|
+
[1m[36m (283.9ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
78606
|
+
[1m[35m (377.8ms)[0m TRUNCATE TABLE `audits`;
|
78607
|
+
[1m[36m (273.7ms)[0m [1mTRUNCATE TABLE `meta_tags`;[0m
|
78608
|
+
[1m[35m (140.2ms)[0m TRUNCATE TABLE `page_parts`;
|
78609
|
+
[1m[36m (239.3ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
78610
|
+
[1m[35m (139.0ms)[0m TRUNCATE TABLE `settings`;
|
78611
|
+
[1m[36m (343.1ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
78612
|
+
[1m[35m (374.8ms)[0m TRUNCATE TABLE `users`;
|
78613
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
78614
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78615
|
+
[1m[36mUser Exists (0.5ms)[0m [1mSELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing12@example.com' LIMIT 1[0m
|
78616
|
+
[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`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:49:51', '2013-02-04 15:49:51', NULL, NULL, 'testing12@example.com', '4f4040a7e00d9e4116fbf3f48ed11cf7dec792ce57d41b7b0fe9084dfcdaf829cd082701b177581bfe5679966b341c2a859bf2b9e8805ae3f38c9dce766d1931', 0, NULL, NULL, NULL, 'Admin', 'rpnyWyosZDmCwUcGnFzt', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:49:51')
|
78617
|
+
[1m[36m (55.7ms)[0m [1mCOMMIT[0m
|
78618
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78619
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
78620
|
+
[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 ('2013-02-04 15:49:51', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 15:49:51')
|
78621
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
78622
|
+
[1m[35mSQL (0.4ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
|
78623
|
+
[1m[36m (36.4ms)[0m [1mCOMMIT[0m
|
78624
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78625
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
78626
|
+
[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 ('2013-02-04 15:49:51', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug10', 'Structure', '2013-02-04 15:49:51')
|
78627
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1[0m
|
78628
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
78629
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`[0m
|
78630
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
|
78631
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
78632
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
78633
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
78634
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
78635
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`[0m
|
78636
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
78637
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
78638
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
78639
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
78640
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
78641
|
+
[1m[36m (48.1ms)[0m [1mCOMMIT[0m
|
78642
|
+
Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:51 +0200
|
78643
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78644
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
78645
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78646
|
+
[1m[36m (0.5ms)[0m [1mUPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:49:51', `current_sign_in_at` = '2013-02-04 15:49:51', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:49:51' WHERE `users`.`id` = 1[0m
|
78647
|
+
[1m[35m (24.7ms)[0m COMMIT
|
78648
|
+
Processing by Sunrise::ManagerController#new as HTML
|
78649
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
78650
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
78651
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
|
78652
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.1ms)
|
78653
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.2ms)
|
78654
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
|
78655
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.5ms)
|
78656
|
+
Completed 200 OK in 25ms (Views: 17.4ms | ActiveRecord: 0.5ms)
|
78657
|
+
Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:51 +0200
|
78658
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78659
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
78660
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78661
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-02-04 15:49:51' WHERE `users`.`id` = 1[0m
|
78662
|
+
[1m[35m (48.7ms)[0m COMMIT
|
78663
|
+
Processing by Sunrise::ManagerController#new as HTML
|
78664
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
78665
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
78666
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
|
78667
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.1ms)
|
78668
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.1ms)
|
78669
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
|
78670
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.5ms)
|
78671
|
+
Completed 200 OK in 21ms (Views: 17.2ms | ActiveRecord: 0.2ms)
|
78672
|
+
Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:51 +0200
|
78673
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78674
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
78675
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78676
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `users` SET `sign_in_count` = 3, `updated_at` = '2013-02-04 15:49:51' WHERE `users`.`id` = 1[0m
|
78677
|
+
[1m[35m (30.4ms)[0m COMMIT
|
78678
|
+
Processing by Sunrise::ManagerController#new as HTML
|
78679
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
78680
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
78681
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
|
78682
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.0ms)
|
78683
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (8.9ms)
|
78684
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.7ms)
|
78685
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.5ms)
|
78686
|
+
Completed 200 OK in 21ms (Views: 16.7ms | ActiveRecord: 0.2ms)
|
78687
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
78688
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
78689
|
+
[1m[35m (212.2ms)[0m TRUNCATE TABLE `assets`;
|
78690
|
+
[1m[36m (306.8ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
78691
|
+
[1m[35m (305.9ms)[0m TRUNCATE TABLE `meta_tags`;
|
78692
|
+
[1m[36m (286.0ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
78693
|
+
[1m[35m (139.1ms)[0m TRUNCATE TABLE `posts`;
|
78694
|
+
[1m[36m (260.3ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
78695
|
+
[1m[35m (207.7ms)[0m TRUNCATE TABLE `structures`;
|
78696
|
+
[1m[36m (388.1ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
78697
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
78698
|
+
[1m[36m (0.1ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
78699
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
78700
|
+
[1m[36m (315.9ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
78701
|
+
[1m[35m (319.1ms)[0m TRUNCATE TABLE `audits`;
|
78702
|
+
[1m[36m (319.1ms)[0m [1mTRUNCATE TABLE `meta_tags`;[0m
|
78703
|
+
[1m[35m (196.5ms)[0m TRUNCATE TABLE `page_parts`;
|
78704
|
+
[1m[36m (237.4ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
78705
|
+
[1m[35m (183.6ms)[0m TRUNCATE TABLE `settings`;
|
78706
|
+
[1m[36m (352.9ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
78707
|
+
[1m[35m (1530.7ms)[0m TRUNCATE TABLE `users`;
|
78708
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
78709
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78710
|
+
[1m[36mUser Exists (0.5ms)[0m [1mSELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing13@example.com' LIMIT 1[0m
|
78711
|
+
[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`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:49:57', '2013-02-04 15:49:57', NULL, NULL, 'testing13@example.com', '39f27be8529454255da02f36119a68e7eed5cb30ef4f94e2be125f3f81e8ccf0727ff251cabe6639d26c5309ef75adbb846035e5249e5a5dba03c5f5330c42ac', 0, NULL, NULL, NULL, 'Admin', 'fFyzCorRAsXVMYvs9Sun', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:49:57')
|
78712
|
+
[1m[36m (70.6ms)[0m [1mCOMMIT[0m
|
78713
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78714
|
+
[1m[36mStructure Load (0.7ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
78715
|
+
[1m[35mSQL (171.8ms)[0m INSERT INTO `structures` (`created_at`, `depth`, `is_visible`, `kind`, `lft`, `parent_id`, `position`, `redirect_url`, `rgt`, `slug`, `title`, `updated_at`) VALUES ('2013-02-04 15:49:57', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 15:49:57')
|
78716
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
78717
|
+
[1m[35mSQL (0.4ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
|
78718
|
+
[1m[36m (58.0ms)[0m [1mCOMMIT[0m
|
78719
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78720
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
78721
|
+
[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 ('2013-02-04 15:49:57', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug11', 'Structure', '2013-02-04 15:49:57')
|
78722
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1[0m
|
78723
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
78724
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`[0m
|
78725
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
|
78726
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
78727
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
78728
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
78729
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
78730
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`[0m
|
78731
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
78732
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
78733
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
78734
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
78735
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
78736
|
+
[1m[36m (46.9ms)[0m [1mCOMMIT[0m
|
78737
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78738
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-02-04 15:49:57', 1, 2, 'Default title', '2013-02-04 15:49:57')[0m
|
78739
|
+
[1m[35m (49.8ms)[0m COMMIT
|
78740
|
+
Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:57 +0200
|
78741
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78742
|
+
[1m[35m (0.1ms)[0m COMMIT
|
78743
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78744
|
+
[1m[35m (0.5ms)[0m UPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:49:57', `current_sign_in_at` = '2013-02-04 15:49:57', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:49:57' WHERE `users`.`id` = 1
|
78745
|
+
[1m[36m (46.9ms)[0m [1mCOMMIT[0m
|
78746
|
+
Processing by Sunrise::ManagerController#index as HTML
|
78747
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
78748
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
78749
|
+
[1m[36mPost Load (0.5ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0[0m
|
78750
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (4.6ms)
|
78751
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
|
78752
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
|
78753
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
|
78754
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
|
78755
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.3ms)
|
78756
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.1ms)
|
78757
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.6ms)
|
78758
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.6ms)
|
78759
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.6ms)
|
78760
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (0.9ms)
|
78761
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.4ms)
|
78762
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (15.1ms)
|
78763
|
+
Completed 200 OK in 39ms (Views: 32.0ms | ActiveRecord: 1.5ms)
|
78764
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78765
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-02-04 15:49:57', 1, 2, 'Good day', '2013-02-04 15:49:57')
|
78766
|
+
[1m[36m (58.0ms)[0m [1mCOMMIT[0m
|
78767
|
+
Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:57 +0200
|
78768
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78769
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
78770
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78771
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-02-04 15:49:57' WHERE `users`.`id` = 1[0m
|
78772
|
+
[1m[35m (36.8ms)[0m COMMIT
|
78773
|
+
Processing by Sunrise::ManagerController#index as HTML
|
78774
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
78775
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
78776
|
+
[1m[35mPost Load (0.5ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
|
78777
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (8.2ms)
|
78778
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2[0m
|
78779
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
|
78780
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
|
78781
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
|
78782
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.3ms)
|
78783
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.1ms)
|
78784
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.6ms)
|
78785
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.6ms)
|
78786
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.6ms)
|
78787
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (0.9ms)
|
78788
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.4ms)
|
78789
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (15.1ms)
|
78790
|
+
Completed 200 OK in 42ms (Views: 35.9ms | ActiveRecord: 1.2ms)
|
78791
|
+
Started GET "/manage/posts?utf8=%E2%9C%93&parent_id=2&parent_type=Structure&search[title]=Good+day&search[structure_id]=&commit=Search" for 127.0.0.1 at 2013-02-04 17:49:57 +0200
|
78792
|
+
Processing by Sunrise::ManagerController#index as HTML
|
78793
|
+
Parameters: {"utf8"=>"✓", "parent_id"=>"2", "parent_type"=>"Structure", "search"=>{"title"=>"Good day", "structure_id"=>""}, "commit"=>"Search", "model_name"=>"posts"}
|
78794
|
+
[1m[35mUser Load (0.6ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
78795
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
78796
|
+
[1m[35mPost Load (0.7ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`title` = 'Good day' AND `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
|
78797
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (4.7ms)
|
78798
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `posts` WHERE `posts`.`title` = 'Good day' AND `posts`.`structure_id` = 2[0m
|
78799
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.9ms)
|
78800
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
|
78801
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
|
78802
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.6ms)
|
78803
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (11.0ms)
|
78804
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.6ms)
|
78805
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.6ms)
|
78806
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.6ms)
|
78807
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (0.9ms)
|
78808
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.4ms)
|
78809
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (16.1ms)
|
78810
|
+
Completed 200 OK in 42ms (Views: 33.3ms | ActiveRecord: 1.9ms)
|
78811
|
+
Started GET "/manage/posts?parent_id=1&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:49:57 +0200
|
78812
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78813
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
78814
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78815
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `users` SET `sign_in_count` = 3, `updated_at` = '2013-02-04 15:49:57' WHERE `users`.`id` = 1[0m
|
78816
|
+
[1m[35m (21.9ms)[0m COMMIT
|
78817
|
+
Processing by Sunrise::ManagerController#index as HTML
|
78818
|
+
Parameters: {"parent_id"=>"1", "parent_type"=>"Structure", "model_name"=>"posts"}
|
78819
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
78820
|
+
[1m[35mPost Load (0.5ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 1 LIMIT 25 OFFSET 0
|
78821
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (0.0ms)
|
78822
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 1[0m
|
78823
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
|
78824
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
|
78825
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (90.2ms)
|
78826
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (108.4ms)
|
78827
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (113.3ms)
|
78828
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.8ms)
|
78829
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.7ms)
|
78830
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.7ms)
|
78831
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (1.0ms)
|
78832
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (5.0ms)
|
78833
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (119.1ms)
|
78834
|
+
Completed 200 OK in 138ms (Views: 131.2ms | ActiveRecord: 1.4ms)
|
78835
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
78836
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
78837
|
+
[1m[35m (314.3ms)[0m TRUNCATE TABLE `assets`;
|
78838
|
+
[1m[36m (426.7ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
78839
|
+
[1m[35m (176.0ms)[0m TRUNCATE TABLE `meta_tags`;
|
78840
|
+
[1m[36m (437.8ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
78841
|
+
[1m[35m (250.8ms)[0m TRUNCATE TABLE `posts`;
|
78842
|
+
[1m[36m (127.0ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
78843
|
+
[1m[35m (285.6ms)[0m TRUNCATE TABLE `structures`;
|
78844
|
+
[1m[36m (453.2ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
78845
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
78846
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
78847
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
78848
|
+
[1m[36m (291.5ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
78849
|
+
[1m[35m (223.5ms)[0m TRUNCATE TABLE `audits`;
|
78850
|
+
[1m[36m (261.2ms)[0m [1mTRUNCATE TABLE `meta_tags`;[0m
|
78851
|
+
[1m[35m (261.6ms)[0m TRUNCATE TABLE `page_parts`;
|
78852
|
+
[1m[36m (139.0ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
78853
|
+
[1m[35m (271.7ms)[0m TRUNCATE TABLE `settings`;
|
78854
|
+
[1m[36m (185.4ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
78855
|
+
[1m[35m (430.3ms)[0m TRUNCATE TABLE `users`;
|
78856
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
78857
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78858
|
+
[1m[36mUser Exists (0.5ms)[0m [1mSELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing14@example.com' LIMIT 1[0m
|
78859
|
+
[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`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:50:02', '2013-02-04 15:50:02', NULL, NULL, 'testing14@example.com', '4ae4231a989c0e06b9cd21cdfcac4677c40cd376d6c13a36085f8ecff426f6cfd0ad8724eb93f0178bc3cc9fea7443afa3c7a70e8fc74b3779498617b18c3cd7', 0, NULL, NULL, NULL, 'Admin', '8KpVvEMCFypqPAZhXbDf', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:50:02')
|
78860
|
+
[1m[36m (35.9ms)[0m [1mCOMMIT[0m
|
78861
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78862
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
78863
|
+
[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 ('2013-02-04 15:50:02', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 15:50:02')
|
78864
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
78865
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
|
78866
|
+
[1m[36m (47.9ms)[0m [1mCOMMIT[0m
|
78867
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78868
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
78869
|
+
[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 ('2013-02-04 15:50:02', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug12', 'Structure', '2013-02-04 15:50:02')
|
78870
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1[0m
|
78871
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
78872
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`[0m
|
78873
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
|
78874
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
78875
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
78876
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
78877
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
78878
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`[0m
|
78879
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
78880
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
78881
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
78882
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
78883
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
78884
|
+
[1m[36m (47.5ms)[0m [1mCOMMIT[0m
|
78885
|
+
Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:50:02 +0200
|
78886
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78887
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
78888
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78889
|
+
[1m[36m (0.5ms)[0m [1mUPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:50:02', `current_sign_in_at` = '2013-02-04 15:50:02', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:50:02' WHERE `users`.`id` = 1[0m
|
78890
|
+
[1m[35m (35.7ms)[0m COMMIT
|
78891
|
+
Processing by Sunrise::ManagerController#new as HTML
|
78892
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
78893
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
78894
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
|
78895
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.3ms)
|
78896
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.3ms)
|
78897
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
|
78898
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.5ms)
|
78899
|
+
Completed 200 OK in 22ms (Views: 17.3ms | ActiveRecord: 0.5ms)
|
78900
|
+
Started POST "/manage/posts/new" for 127.0.0.1 at 2013-02-04 17:50:02 +0200
|
78901
|
+
Processing by Sunrise::ManagerController#create as HTML
|
78902
|
+
Parameters: {"utf8"=>"✓", "parent_id"=>"2", "parent_type"=>"Structure", "post"=>{"title"=>"Good title", "content"=>"Some long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long text", "is_visible"=>"1"}, "commit"=>"Create Post", "model_name"=>"posts"}
|
78903
|
+
[1m[35mUser Load (0.5ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
78904
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
78905
|
+
[1m[35m (0.1ms)[0m BEGIN
|
78906
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long text', '2013-02-04 15:50:02', 1, 2, 'Good title', '2013-02-04 15:50:02')[0m
|
78907
|
+
[1m[35m (39.3ms)[0m COMMIT
|
78908
|
+
Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
|
78909
|
+
Completed 302 Found in 50ms (ActiveRecord: 0.0ms)
|
78910
|
+
Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:50:02 +0200
|
78911
|
+
Processing by Sunrise::ManagerController#index as HTML
|
78912
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
78913
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
78914
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
78915
|
+
[1m[36mPost Load (0.5ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0[0m
|
78916
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (4.7ms)
|
78917
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2
|
78918
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.1ms)
|
78919
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
|
78920
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
|
78921
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.8ms)
|
78922
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.8ms)
|
78923
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.7ms)
|
78924
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.7ms)
|
78925
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.6ms)
|
78926
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (0.9ms)
|
78927
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.6ms)
|
78928
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (16.1ms)
|
78929
|
+
Completed 200 OK in 41ms (Views: 33.3ms | ActiveRecord: 1.4ms)
|
78930
|
+
[1m[36mPost Load (0.5ms)[0m [1mSELECT `posts`.* FROM `posts` ORDER BY `posts`.`id` DESC LIMIT 1[0m
|
78931
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
78932
|
+
Started GET "/manage/posts/new?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:50:02 +0200
|
78933
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78934
|
+
[1m[35m (0.1ms)[0m COMMIT
|
78935
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78936
|
+
[1m[35m (0.4ms)[0m UPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-02-04 15:50:02' WHERE `users`.`id` = 1
|
78937
|
+
[1m[36m (14.6ms)[0m [1mCOMMIT[0m
|
78938
|
+
Processing by Sunrise::ManagerController#new as HTML
|
78939
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
78940
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
78941
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
|
78942
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.2ms)
|
78943
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.2ms)
|
78944
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.8ms)
|
78945
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_new.html.erb (0.5ms)
|
78946
|
+
Completed 200 OK in 22ms (Views: 17.5ms | ActiveRecord: 0.2ms)
|
78947
|
+
Started POST "/manage/posts/new" for 127.0.0.1 at 2013-02-04 17:50:02 +0200
|
78948
|
+
Processing by Sunrise::ManagerController#create as HTML
|
78949
|
+
Parameters: {"utf8"=>"✓", "parent_id"=>"2", "parent_type"=>"Structure", "post"=>{"title"=>"Good title", "content"=>"Some long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long textSome long text", "is_visible"=>"1"}, "commit"=>"Create Post", "model_name"=>"posts"}
|
78950
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1[0m
|
78951
|
+
[1m[35mStructure Load (0.2ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
78952
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
78953
|
+
[1m[35mSQL (0.4ms)[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', '2013-02-04 15:50:02', 1, 2, 'Good title', '2013-02-04 15:50:02')
|
78954
|
+
[1m[36m (20.8ms)[0m [1mCOMMIT[0m
|
78955
|
+
Redirected to http://www.example.com/manage/posts?parent_id=2&parent_type=Structure
|
78956
|
+
Completed 302 Found in 32ms (ActiveRecord: 0.0ms)
|
78957
|
+
Started GET "/manage/posts?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:50:03 +0200
|
78958
|
+
Processing by Sunrise::ManagerController#index as HTML
|
78959
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts"}
|
78960
|
+
[1m[35mUser Load (0.2ms)[0m SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
|
78961
|
+
[1m[36mStructure Load (0.2ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
78962
|
+
[1m[35mPost Load (0.5ms)[0m SELECT `posts`.* FROM `posts` WHERE `posts`.`structure_id` = 2 LIMIT 25 OFFSET 0
|
78963
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_record.html.erb (8.1ms)
|
78964
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `posts` WHERE `posts`.`structure_id` = 2[0m
|
78965
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (4.0ms)
|
78966
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
|
78967
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.3ms)
|
78968
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/thumbs/_model_filter.html.erb (5.4ms)
|
78969
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_filter.html.erb (10.1ms)
|
78970
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_new.html.erb (0.6ms)
|
78971
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_edit.html.erb (0.6ms)
|
78972
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_delete.html.erb (0.6ms)
|
78973
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/buttons/_sort.html.erb (0.9ms)
|
78974
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_toolbar.html.erb (4.4ms)
|
78975
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_header.html.erb (15.1ms)
|
78976
|
+
Completed 200 OK in 43ms (Views: 35.6ms | ActiveRecord: 1.4ms)
|
78977
|
+
[1m[35mPost Load (0.5ms)[0m SELECT `posts`.* FROM `posts` ORDER BY `posts`.`id` DESC LIMIT 1
|
78978
|
+
Started GET "/manage/posts/new" for 127.0.0.1 at 2013-02-04 17:50:03 +0200
|
78979
|
+
Processing by Sunrise::ManagerController#new as HTML
|
78980
|
+
Parameters: {"model_name"=>"posts"}
|
78981
|
+
Completed 401 Unauthorized in 1ms
|
78982
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 17:50:03 +0200
|
78983
|
+
Processing by Devise::SessionsController#new as HTML
|
78984
|
+
Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.0ms)
|
78985
|
+
Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms)
|
78986
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
78987
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
78988
|
+
[1m[36m (165.4ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
78989
|
+
[1m[35m (334.8ms)[0m TRUNCATE TABLE `audits`;
|
78990
|
+
[1m[36m (301.8ms)[0m [1mTRUNCATE TABLE `meta_tags`;[0m
|
78991
|
+
[1m[35m (173.3ms)[0m TRUNCATE TABLE `page_parts`;
|
78992
|
+
[1m[36m (215.4ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
78993
|
+
[1m[35m (138.9ms)[0m TRUNCATE TABLE `settings`;
|
78994
|
+
[1m[36m (330.6ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
78995
|
+
[1m[35m (365.4ms)[0m TRUNCATE TABLE `users`;
|
78996
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
78997
|
+
[1m[35m (0.1ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
78998
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
78999
|
+
[1m[35m (350.6ms)[0m TRUNCATE TABLE `assets`;
|
79000
|
+
[1m[36m (310.8ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
79001
|
+
[1m[35m (295.1ms)[0m TRUNCATE TABLE `meta_tags`;
|
79002
|
+
[1m[36m (140.0ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
79003
|
+
[1m[35m (249.6ms)[0m TRUNCATE TABLE `posts`;
|
79004
|
+
[1m[36m (205.9ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
79005
|
+
[1m[35m (342.6ms)[0m TRUNCATE TABLE `structures`;
|
79006
|
+
[1m[36m (352.8ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
79007
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
79008
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
79009
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing15@example.com' LIMIT 1
|
79010
|
+
[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`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:50:07', '2013-02-04 15:50:07', NULL, NULL, 'testing15@example.com', '3cbce3bb034377c06ddfa034348be19c314f2c2fd7a23015bc55c4ebfdd50518bbf23c3e1b35a290af531bd1a693338336a4b470e1753b3cf2d18ca5141de936', 0, NULL, NULL, NULL, 'Admin', 'EkxtpEYm14otMi4P51YV', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:50:07')[0m
|
79011
|
+
[1m[35m (47.4ms)[0m COMMIT
|
79012
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
79013
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
79014
|
+
[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 ('2013-02-04 15:50:07', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 15:50:07')[0m
|
79015
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1
|
79016
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`[0m
|
79017
|
+
[1m[35m (47.9ms)[0m COMMIT
|
79018
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
79019
|
+
[1m[35mStructure Load (0.5ms)[0m SELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE
|
79020
|
+
[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 ('2013-02-04 15:50:07', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug13', 'Structure', '2013-02-04 15:50:07')[0m
|
79021
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1
|
79022
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
79023
|
+
[1m[35mSQL (0.4ms)[0m UPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`
|
79024
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE[0m
|
79025
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
79026
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
79027
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
79028
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
79029
|
+
[1m[35mStructure Load (0.4ms)[0m SELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`
|
79030
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE[0m
|
79031
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1
|
79032
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
79033
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`
|
79034
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)[0m
|
79035
|
+
[1m[35m (75.0ms)[0m COMMIT
|
79036
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
79037
|
+
[1m[35mSQL (32.1ms)[0m INSERT INTO `posts` (`content`, `created_at`, `is_visible`, `structure_id`, `title`, `updated_at`) VALUES ('Some post content', '2013-02-04 15:50:07', 1, 2, 'Default title', '2013-02-04 15:50:07')
|
79038
|
+
[1m[36m (177.6ms)[0m [1mCOMMIT[0m
|
79039
|
+
Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:50:07 +0200
|
79040
|
+
[1m[35m (0.1ms)[0m BEGIN
|
79041
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
79042
|
+
[1m[35m (0.1ms)[0m BEGIN
|
79043
|
+
[1m[36m (0.5ms)[0m [1mUPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:50:07', `current_sign_in_at` = '2013-02-04 15:50:07', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:50:07' WHERE `users`.`id` = 1[0m
|
79044
|
+
[1m[35m (79.6ms)[0m COMMIT
|
79045
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
79046
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
|
79047
|
+
[1m[36mPost Load (0.6ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1[0m
|
79048
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
|
79049
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.6ms)
|
79050
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.7ms)
|
79051
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.7ms)
|
79052
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
|
79053
|
+
Completed 200 OK in 23ms (Views: 17.7ms | ActiveRecord: 0.6ms)
|
79054
|
+
Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:50:07 +0200
|
79055
|
+
[1m[35m (0.1ms)[0m BEGIN
|
79056
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
79057
|
+
[1m[35m (0.1ms)[0m BEGIN
|
79058
|
+
[1m[36m (0.4ms)[0m [1mUPDATE `users` SET `sign_in_count` = 2, `updated_at` = '2013-02-04 15:50:07' WHERE `users`.`id` = 1[0m
|
79059
|
+
[1m[35m (453.0ms)[0m COMMIT
|
79060
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
79061
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
|
79062
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT `posts`.* FROM `posts` WHERE `posts`.`id` = 1 LIMIT 1[0m
|
79063
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_parent.html.erb (0.4ms)
|
79064
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_field.html.erb (6.1ms)
|
79065
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_form.html.erb (9.2ms)
|
79066
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/shared/_panel.html.erb (3.9ms)
|
79067
|
+
Rendered /var/www/gems/sunrise/app/views/sunrise/manager/_header_edit.html.erb (0.5ms)
|
79068
|
+
Completed 200 OK in 22ms (Views: 17.3ms | ActiveRecord: 0.2ms)
|
79069
|
+
Started GET "/manage/posts/1/edit?parent_id=2&parent_type=Structure" for 127.0.0.1 at 2013-02-04 17:50:08 +0200
|
79070
|
+
Processing by Sunrise::ManagerController#edit as HTML
|
79071
|
+
Parameters: {"parent_id"=>"2", "parent_type"=>"Structure", "model_name"=>"posts", "id"=>"1"}
|
79072
|
+
Completed 401 Unauthorized in 0ms
|
79073
|
+
Started GET "/users/sign_in" for 127.0.0.1 at 2013-02-04 17:50:08 +0200
|
79074
|
+
Processing by Devise::SessionsController#new as HTML
|
79075
|
+
Rendered /var/www/gems/sunrise/vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/app/views/devise/shared/_links.erb (1.1ms)
|
79076
|
+
Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.0ms)
|
79077
|
+
[1m[35m (0.2ms)[0m SELECT @@FOREIGN_KEY_CHECKS
|
79078
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 0[0m
|
79079
|
+
[1m[35m (750.7ms)[0m TRUNCATE TABLE `assets`;
|
79080
|
+
[1m[36m (496.7ms)[0m [1mTRUNCATE TABLE `audits`;[0m
|
79081
|
+
[1m[35m (306.1ms)[0m TRUNCATE TABLE `meta_tags`;
|
79082
|
+
[1m[36m (162.4ms)[0m [1mTRUNCATE TABLE `page_parts`;[0m
|
79083
|
+
[1m[35m (283.8ms)[0m TRUNCATE TABLE `posts`;
|
79084
|
+
[1m[36m (139.0ms)[0m [1mTRUNCATE TABLE `settings`;[0m
|
79085
|
+
[1m[35m (352.9ms)[0m TRUNCATE TABLE `structures`;
|
79086
|
+
[1m[36m (454.4ms)[0m [1mTRUNCATE TABLE `users`;[0m
|
79087
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
79088
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
79089
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
79090
|
+
[1m[36m (328.6ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
79091
|
+
[1m[35m (364.7ms)[0m TRUNCATE TABLE `audits`;
|
79092
|
+
[1m[36m (329.1ms)[0m [1mTRUNCATE TABLE `meta_tags`;[0m
|
79093
|
+
[1m[35m (446.6ms)[0m TRUNCATE TABLE `page_parts`;
|
79094
|
+
[1m[36m (283.6ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
79095
|
+
[1m[35m (117.0ms)[0m TRUNCATE TABLE `settings`;
|
79096
|
+
[1m[36m (351.2ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
79097
|
+
[1m[35m (453.4ms)[0m TRUNCATE TABLE `users`;
|
79098
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|
79099
|
+
[1m[35m (0.1ms)[0m BEGIN
|
79100
|
+
[1m[36mUser Exists (0.5ms)[0m [1mSELECT 1 AS one FROM `users` WHERE `users`.`email` = BINARY 'testing16@example.com' LIMIT 1[0m
|
79101
|
+
[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`, `role_type_id`, `sign_in_count`, `unlock_token`, `updated_at`) VALUES (NULL, NULL, '2013-02-04 15:50:14', '2013-02-04 15:50:14', NULL, NULL, 'testing16@example.com', 'baab15cc00503921cc124e99f4527dbde21b2123e78c35cc4a5e589f068f2e41f4f62acc5854df96bea18038a5bc2dc1dbf2708e4569c6ea79b0fefbe98bf7b0', 0, NULL, NULL, NULL, 'Admin', 'sDXL8PLsazxCgGzWZ9Nx', NULL, NULL, NULL, 4, 0, NULL, '2013-02-04 15:50:14')
|
79102
|
+
[1m[36m (36.7ms)[0m [1mCOMMIT[0m
|
79103
|
+
[1m[35m (0.1ms)[0m BEGIN
|
79104
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
79105
|
+
[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 ('2013-02-04 15:50:14', 0, 1, 3, 1, NULL, 1, NULL, 2, 'main-page', 'Main page', '2013-02-04 15:50:14')
|
79106
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1[0m
|
79107
|
+
[1m[35mSQL (0.3ms)[0m UPDATE `structures` SET `depth` = 0 WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft`
|
79108
|
+
[1m[36m (36.9ms)[0m [1mCOMMIT[0m
|
79109
|
+
[1m[35m (0.1ms)[0m BEGIN
|
79110
|
+
[1m[36mStructure Load (0.5ms)[0m [1mSELECT `structures`.* FROM `structures` ORDER BY `structures`.`rgt` desc LIMIT 1 FOR UPDATE[0m
|
79111
|
+
[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 ('2013-02-04 15:50:14', 0, 1, 1, 3, 1, 2, NULL, 4, 'slug14', 'Structure', '2013-02-04 15:50:14')
|
79112
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 1 ORDER BY `structures`.`lft` LIMIT 1[0m
|
79113
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
79114
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE `structures` SET `lft` = CASE WHEN `lft` BETWEEN 2 AND 2 THEN `lft` + 4 - 2 WHEN `lft` BETWEEN 3 AND 4 THEN `lft` + 2 - 3 ELSE `lft` END, `rgt` = CASE WHEN `rgt` BETWEEN 2 AND 2 THEN `rgt` + 4 - 2 WHEN `rgt` BETWEEN 3 AND 4 THEN `rgt` + 2 - 3 ELSE `rgt` END, `parent_id` = CASE WHEN id = 2 THEN 1 ELSE `parent_id` END ORDER BY `structures`.`lft`[0m
|
79115
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 1 LIMIT 1 FOR UPDATE
|
79116
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
79117
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
79118
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
79119
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
79120
|
+
[1m[36mStructure Load (0.4ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE (`structures`.`lft` >= 2 AND `structures`.`lft` < 3) AND (`structures`.id != 2) ORDER BY `structures`.`lft`[0m
|
79121
|
+
[1m[35mStructure Load (0.3ms)[0m SELECT `structures`.`lft`, `structures`.`rgt`, `structures`.`parent_id` FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1 FOR UPDATE
|
79122
|
+
[1m[36mStructure Load (0.3ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`id` = 2 LIMIT 1[0m
|
79123
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
79124
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE `structures` SET `depth` = 1 WHERE `structures`.`id` = 2 ORDER BY `structures`.`lft`[0m
|
79125
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `structures` WHERE (`structures`.`lft` <= 2 AND `structures`.`rgt` >= 3) AND (`structures`.id != 2)
|
79126
|
+
[1m[36m (52.4ms)[0m [1mCOMMIT[0m
|
79127
|
+
Started GET "/manage/services.json" for 127.0.0.1 at 2013-02-04 17:50:14 +0200
|
79128
|
+
[1m[35m (0.1ms)[0m BEGIN
|
79129
|
+
[1m[36m (0.1ms)[0m [1mCOMMIT[0m
|
79130
|
+
[1m[35m (0.1ms)[0m BEGIN
|
79131
|
+
[1m[36m (0.5ms)[0m [1mUPDATE `users` SET `last_sign_in_at` = '2013-02-04 15:50:14', `current_sign_in_at` = '2013-02-04 15:50:14', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 15:50:14' WHERE `users`.`id` = 1[0m
|
79132
|
+
[1m[35m (36.1ms)[0m COMMIT
|
79133
|
+
Processing by Sunrise::SharedController#services as JSON
|
79134
|
+
[1m[36mStructure Load (0.6ms)[0m [1mSELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` IS NULL ORDER BY `structures`.`lft` LIMIT 1[0m
|
79135
|
+
[1m[35mStructure Load (0.6ms)[0m SELECT `structures`.* FROM `structures` WHERE `structures`.`parent_id` = 1 ORDER BY lft
|
79136
|
+
Completed 200 OK in 176ms (Views: 163.2ms | ActiveRecord: 1.2ms)
|
79137
|
+
Started GET "/manage/services.json" for 127.0.0.1 at 2013-02-04 17:50:14 +0200
|
79138
|
+
Processing by Sunrise::SharedController#services as JSON
|
79139
|
+
Completed 401 Unauthorized in 0ms
|
79140
|
+
[1m[36m (0.2ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
79141
|
+
[1m[35m (0.1ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
79142
|
+
[1m[36m (166.1ms)[0m [1mTRUNCATE TABLE `assets`;[0m
|
79143
|
+
[1m[35m (353.3ms)[0m TRUNCATE TABLE `audits`;
|
79144
|
+
[1m[36m (272.3ms)[0m [1mTRUNCATE TABLE `meta_tags`;[0m
|
79145
|
+
[1m[35m (173.3ms)[0m TRUNCATE TABLE `page_parts`;
|
79146
|
+
[1m[36m (204.3ms)[0m [1mTRUNCATE TABLE `posts`;[0m
|
79147
|
+
[1m[35m (150.2ms)[0m TRUNCATE TABLE `settings`;
|
79148
|
+
[1m[36m (309.3ms)[0m [1mTRUNCATE TABLE `structures`;[0m
|
79149
|
+
[1m[35m (386.5ms)[0m TRUNCATE TABLE `users`;
|
79150
|
+
[1m[36m (0.1ms)[0m [1mSET FOREIGN_KEY_CHECKS = 1[0m
|