qwester 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -54335,3 +54335,1751 @@ Served asset /application.js - 304 Not Modified (30ms)
54335
54335
 
54336
54336
  Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2013-04-02 11:33:40 +0100
54337
54337
  Served asset /active_admin/print.css - 304 Not Modified (0ms)
54338
+ Connecting to database specified by database.yml
54339
+
54340
+
54341
+ Started GET "/admin" for 127.0.0.1 at 2013-05-02 09:04:09 +0100
54342
+ Processing by Admin::DashboardController#index as HTML
54343
+ Completed 401 Unauthorized in 2ms
54344
+
54345
+
54346
+ Started GET "/admin/login" for 127.0.0.1 at 2013-05-02 09:04:09 +0100
54347
+ Processing by ActiveAdmin::Devise::SessionsController#new as HTML
54348
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.7ms)
54349
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (753.4ms)
54350
+ Completed 200 OK in 1549ms (Views: 1464.1ms | ActiveRecord: 1.0ms)
54351
+
54352
+
54353
+ Started GET "/assets/active_admin/lib/namespace.js?body=1" for 127.0.0.1 at 2013-05-02 09:04:12 +0100
54354
+ Served asset /active_admin/lib/namespace.js - 200 OK (5ms)
54355
+
54356
+
54357
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-05-02 09:04:12 +0100
54358
+ Served asset /active_admin.css - 200 OK (165ms)
54359
+
54360
+
54361
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-05-02 09:04:12 +0100
54362
+ Served asset /jquery.js - 200 OK (7ms)
54363
+
54364
+
54365
+ Started GET "/assets/active_admin/application.js?body=1" for 127.0.0.1 at 2013-05-02 09:04:12 +0100
54366
+ Served asset /active_admin/application.js - 200 OK (31ms)
54367
+
54368
+
54369
+ Started GET "/assets/questionnaires.js?body=1" for 127.0.0.1 at 2013-05-02 09:04:12 +0100
54370
+ Served asset /questionnaires.js - 200 OK (4ms)
54371
+
54372
+
54373
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-05-02 09:04:12 +0100
54374
+ Served asset /jquery_ujs.js - 200 OK (16ms)
54375
+
54376
+
54377
+ Started GET "/assets/active_admin/components/jquery.aa.checkbox-toggler.js?body=1" for 127.0.0.1 at 2013-05-02 09:04:12 +0100
54378
+ Served asset /active_admin/components/jquery.aa.checkbox-toggler.js - 304 Not Modified (11ms)
54379
+
54380
+
54381
+ Started GET "/assets/active_admin/components/jquery.aa.table-checkbox-toggler.js?body=1" for 127.0.0.1 at 2013-05-02 09:04:12 +0100
54382
+ Served asset /active_admin/components/jquery.aa.table-checkbox-toggler.js - 304 Not Modified (4ms)
54383
+
54384
+
54385
+ Started GET "/assets/active_admin/pages/batch_actions.js?body=1" for 127.0.0.1 at 2013-05-02 09:04:12 +0100
54386
+ Served asset /active_admin/pages/batch_actions.js - 304 Not Modified (11ms)
54387
+
54388
+
54389
+ Started GET "/assets/active_admin/pages/application.js?body=1" for 127.0.0.1 at 2013-05-02 09:04:12 +0100
54390
+ Served asset /active_admin/pages/application.js - 304 Not Modified (16ms)
54391
+
54392
+
54393
+ Started GET "/assets/active_admin/components/jquery.aa.dropdown-menu.js?body=1" for 127.0.0.1 at 2013-05-02 09:04:13 +0100
54394
+ Served asset /active_admin/components/jquery.aa.dropdown-menu.js - 304 Not Modified (11ms)
54395
+
54396
+
54397
+ Started GET "/assets/active_admin/components/jquery.aa.popover.js?body=1" for 127.0.0.1 at 2013-05-02 09:04:13 +0100
54398
+ Served asset /active_admin/components/jquery.aa.popover.js - 304 Not Modified (4ms)
54399
+
54400
+
54401
+ Started GET "/assets/active_admin.js?body=1" for 127.0.0.1 at 2013-05-02 09:04:13 +0100
54402
+ Served asset /active_admin.js - 304 Not Modified (43ms)
54403
+
54404
+
54405
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-05-02 09:04:13 +0100
54406
+ Served asset /application.js - 200 OK (97ms)
54407
+
54408
+
54409
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2013-05-02 09:04:13 +0100
54410
+ Served asset /active_admin/print.css - 200 OK (6ms)
54411
+
54412
+
54413
+ Started POST "/admin/login" for 127.0.0.1 at 2013-05-02 09:06:05 +0100
54414
+ Processing by ActiveAdmin::Devise::SessionsController#create as HTML
54415
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"mSOxYXE9WXOEaM3wt138bkQPj74T0RAXK+VryGGDfQs=", "admin_user"=>{"email"=>"admin@warwickshire.gov.uk", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Login"}
54416
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'admin@warwickshire.gov.uk' LIMIT 1
54417
+  (0.1ms) begin transaction
54418
+  (17.3ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-04-02 09:01:33.536474', "current_sign_in_at" = '2013-05-02 08:06:05.762808', "sign_in_count" = 7, "updated_at" = '2013-05-02 08:06:05.811524' WHERE "admin_users"."id" = 1
54419
+  (204.1ms) commit transaction
54420
+ Redirected to http://localhost:3000/admin
54421
+ Completed 302 Found in 919ms (ActiveRecord: 0.0ms)
54422
+
54423
+
54424
+ Started GET "/admin" for 127.0.0.1 at 2013-05-02 09:06:06 +0100
54425
+ Processing by Admin::DashboardController#index as HTML
54426
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
54427
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (133.1ms)
54428
+ Completed 200 OK in 169ms (Views: 166.9ms | ActiveRecord: 0.3ms)
54429
+
54430
+
54431
+ Started GET "/assets/application.js" for 127.0.0.1 at 2013-05-02 09:06:06 +0100
54432
+ Served asset /application.js - 200 OK (7ms)
54433
+
54434
+
54435
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2013-05-02 09:06:06 +0100
54436
+ Served asset /active_admin.js - 200 OK (15ms)
54437
+
54438
+
54439
+ Started GET "/assets/active_admin/nested_menu_arrow.gif" for 127.0.0.1 at 2013-05-02 09:06:07 +0100
54440
+ Served asset /active_admin/nested_menu_arrow.gif - 304 Not Modified (26ms)
54441
+
54442
+
54443
+ Started GET "/assets/active_admin/nested_menu_arrow_dark.gif" for 127.0.0.1 at 2013-05-02 09:06:10 +0100
54444
+ Served asset /active_admin/nested_menu_arrow_dark.gif - 304 Not Modified (31ms)
54445
+
54446
+
54447
+ Started GET "/admin/qwester_questionnaires" for 127.0.0.1 at 2013-05-02 09:06:18 +0100
54448
+ Processing by Admin::QwesterQuestionnairesController#index as HTML
54449
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
54450
+  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "qwester_questionnaires" LIMIT 30 OFFSET 0) subquery_for_count 
54451
+  (0.1ms) SELECT COUNT(*) FROM "qwester_questionnaires"
54452
+ CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "qwester_questionnaires" LIMIT 30 OFFSET 0) subquery_for_count 
54453
+ Qwester::Questionnaire Load (0.3ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" ORDER BY "qwester_questionnaires"."id" desc LIMIT 30 OFFSET 0
54454
+  (0.2ms) SELECT DISTINCT COUNT(DISTINCT "qwester_questions"."id") FROM "qwester_questions" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2
54455
+  (0.2ms) SELECT DISTINCT COUNT(DISTINCT "qwester_questions"."id") FROM "qwester_questions" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1
54456
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (760.5ms)
54457
+ Completed 200 OK in 830ms (Views: 791.7ms | ActiveRecord: 3.8ms)
54458
+
54459
+
54460
+ Started GET "/assets/active_admin/nested_menu_arrow_dark.gif" for 127.0.0.1 at 2013-05-02 09:06:19 +0100
54461
+ Served asset /active_admin/nested_menu_arrow_dark.gif - 304 Not Modified (0ms)
54462
+
54463
+
54464
+ Started GET "/assets/active_admin/orderable.png" for 127.0.0.1 at 2013-05-02 09:06:19 +0100
54465
+ Served asset /active_admin/orderable.png - 304 Not Modified (50ms)
54466
+
54467
+
54468
+ Started GET "/assets/active_admin/datepicker/datepicker-input-icon.png" for 127.0.0.1 at 2013-05-02 09:06:19 +0100
54469
+ Served asset /active_admin/datepicker/datepicker-input-icon.png - 304 Not Modified (27ms)
54470
+
54471
+
54472
+ Started GET "/admin/qwester_questionnaires/2" for 127.0.0.1 at 2013-05-02 09:06:24 +0100
54473
+ Processing by Admin::QwesterQuestionnairesController#show as HTML
54474
+ Parameters: {"id"=>"2"}
54475
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
54476
+ Qwester::Questionnaire Load (0.2ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "2"]]
54477
+ Qwester::Question Load (0.3ms) SELECT DISTINCT "qwester_questions".* FROM "qwester_questions" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2 ORDER BY position
54478
+ Qwester::QuestionnairesQuestion Load (0.2ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2 AND "qwester_questionnaires_questions"."question_id" = 3 ORDER BY position LIMIT 1
54479
+ CACHE (0.0ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 2 AND "qwester_questionnaires_questions"."question_id" = 3 ORDER BY position LIMIT 1
54480
+ Qwester::QuestionnairesQuestion Load (6.0ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE ("qwester_questionnaires_questions"."questionnaire_id" = 2) ORDER BY qwester_questionnaires_questions.position DESC LIMIT 1
54481
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (155.5ms)
54482
+ Completed 200 OK in 189ms (Views: 176.9ms | ActiveRecord: 7.2ms)
54483
+
54484
+
54485
+ Started GET "/admin/qwester_questionnaires/1" for 127.0.0.1 at 2013-05-02 09:06:32 +0100
54486
+ Processing by Admin::QwesterQuestionnairesController#show as HTML
54487
+ Parameters: {"id"=>"1"}
54488
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
54489
+ Qwester::Questionnaire Load (0.2ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "1"]]
54490
+ Qwester::Question Load (0.4ms) SELECT DISTINCT "qwester_questions".* FROM "qwester_questions" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1 ORDER BY position
54491
+ Qwester::QuestionnairesQuestion Load (0.2ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1 AND "qwester_questionnaires_questions"."question_id" = 1 ORDER BY position LIMIT 1
54492
+ CACHE (1.6ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1 AND "qwester_questionnaires_questions"."question_id" = 1 ORDER BY position LIMIT 1
54493
+ Qwester::QuestionnairesQuestion Load (0.3ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE ("qwester_questionnaires_questions"."questionnaire_id" = 1) ORDER BY qwester_questionnaires_questions.position DESC LIMIT 1
54494
+ Qwester::QuestionnairesQuestion Load (0.2ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1 AND "qwester_questionnaires_questions"."question_id" = 2 ORDER BY position LIMIT 1
54495
+ CACHE (0.0ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1 AND "qwester_questionnaires_questions"."question_id" = 2 ORDER BY position LIMIT 1
54496
+ CACHE (0.0ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE ("qwester_questionnaires_questions"."questionnaire_id" = 1) ORDER BY qwester_questionnaires_questions.position DESC LIMIT 1
54497
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (114.5ms)
54498
+ Completed 200 OK in 123ms (Views: 116.6ms | ActiveRecord: 3.2ms)
54499
+
54500
+
54501
+ Started GET "/admin/qwester_questionnaires/1/move_down?question_id=1" for 127.0.0.1 at 2013-05-02 09:06:34 +0100
54502
+ Processing by Admin::QwesterQuestionnairesController#move_down as HTML
54503
+ Parameters: {"question_id"=>"1", "id"=>"1"}
54504
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
54505
+ Qwester::Questionnaire Load (0.3ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "1"]]
54506
+ Qwester::Question Load (0.2ms) SELECT "qwester_questions".* FROM "qwester_questions" WHERE "qwester_questions"."id" = ? LIMIT 1 [["id", "1"]]
54507
+ Qwester::QuestionnairesQuestion Load (0.2ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1 AND "qwester_questionnaires_questions"."question_id" = 1 ORDER BY position LIMIT 1
54508
+ Qwester::QuestionnairesQuestion Load (0.3ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE ("qwester_questionnaires_questions"."questionnaire_id" = 1 AND position > 1) ORDER BY qwester_questionnaires_questions.position ASC LIMIT 1
54509
+  (0.1ms) begin transaction
54510
+ CACHE (0.0ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE ("qwester_questionnaires_questions"."questionnaire_id" = 1 AND position > 1) ORDER BY qwester_questionnaires_questions.position ASC LIMIT 1
54511
+  (0.3ms) UPDATE "qwester_questionnaires_questions" SET "position" = 1, "updated_at" = '2013-05-02 08:06:34.925127' WHERE "qwester_questionnaires_questions"."id" = 2
54512
+  (0.3ms) SELECT COUNT(*) FROM "qwester_questionnaires_questions" WHERE ("qwester_questionnaires_questions"."questionnaire_id" = 1 AND position = 1)
54513
+ SQL (0.2ms) UPDATE "qwester_questionnaires_questions" SET position = (position + 1) WHERE ("qwester_questionnaires_questions"."questionnaire_id" = 1 AND position >= 1 AND position < 2 AND id != 2)
54514
+  (0.1ms) UPDATE "qwester_questionnaires_questions" SET "position" = 2, "updated_at" = '2013-05-02 08:06:34.941551' WHERE "qwester_questionnaires_questions"."id" = 1
54515
+  (0.1ms) SELECT COUNT(*) FROM "qwester_questionnaires_questions" WHERE ("qwester_questionnaires_questions"."questionnaire_id" = 1 AND position = 2)
54516
+  (276.5ms) commit transaction
54517
+ Redirected to http://localhost:3000/admin/qwester_questionnaires/1
54518
+ Completed 302 Found in 331ms (ActiveRecord: 279.0ms)
54519
+
54520
+
54521
+ Started GET "/admin/qwester_questionnaires/1" for 127.0.0.1 at 2013-05-02 09:06:35 +0100
54522
+ Processing by Admin::QwesterQuestionnairesController#show as HTML
54523
+ Parameters: {"id"=>"1"}
54524
+ AdminUser Load (0.4ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
54525
+ Qwester::Questionnaire Load (0.1ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "1"]]
54526
+ Qwester::Question Load (0.3ms) SELECT DISTINCT "qwester_questions".* FROM "qwester_questions" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1 ORDER BY position
54527
+ Qwester::QuestionnairesQuestion Load (0.3ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1 AND "qwester_questionnaires_questions"."question_id" = 2 ORDER BY position LIMIT 1
54528
+ CACHE (0.0ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1 AND "qwester_questionnaires_questions"."question_id" = 2 ORDER BY position LIMIT 1
54529
+ Qwester::QuestionnairesQuestion Load (0.3ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE ("qwester_questionnaires_questions"."questionnaire_id" = 1) ORDER BY qwester_questionnaires_questions.position DESC LIMIT 1
54530
+ Qwester::QuestionnairesQuestion Load (0.3ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1 AND "qwester_questionnaires_questions"."question_id" = 1 ORDER BY position LIMIT 1
54531
+ CACHE (0.0ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1 AND "qwester_questionnaires_questions"."question_id" = 1 ORDER BY position LIMIT 1
54532
+ CACHE (0.0ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE ("qwester_questionnaires_questions"."questionnaire_id" = 1) ORDER BY qwester_questionnaires_questions.position DESC LIMIT 1
54533
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (128.1ms)
54534
+ Completed 200 OK in 138ms (Views: 133.4ms | ActiveRecord: 1.6ms)
54535
+
54536
+
54537
+ Started GET "/admin/qwester_questionnaires/1/move_up?question_id=1" for 127.0.0.1 at 2013-05-02 09:06:37 +0100
54538
+ Processing by Admin::QwesterQuestionnairesController#move_up as HTML
54539
+ Parameters: {"question_id"=>"1", "id"=>"1"}
54540
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
54541
+ Qwester::Questionnaire Load (0.1ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "1"]]
54542
+ Qwester::Question Load (0.1ms) SELECT "qwester_questions".* FROM "qwester_questions" WHERE "qwester_questions"."id" = ? LIMIT 1 [["id", "1"]]
54543
+ Qwester::QuestionnairesQuestion Load (0.4ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1 AND "qwester_questionnaires_questions"."question_id" = 1 ORDER BY position LIMIT 1
54544
+ Qwester::QuestionnairesQuestion Load (0.2ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE ("qwester_questionnaires_questions"."questionnaire_id" = 1 AND position < 2) ORDER BY qwester_questionnaires_questions.position DESC LIMIT 1
54545
+  (0.1ms) begin transaction
54546
+ CACHE (0.0ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE ("qwester_questionnaires_questions"."questionnaire_id" = 1 AND position < 2) ORDER BY qwester_questionnaires_questions.position DESC LIMIT 1
54547
+  (1.1ms) UPDATE "qwester_questionnaires_questions" SET "position" = 2, "updated_at" = '2013-05-02 08:06:37.089590' WHERE "qwester_questionnaires_questions"."id" = 2
54548
+  (0.1ms) SELECT COUNT(*) FROM "qwester_questionnaires_questions" WHERE ("qwester_questionnaires_questions"."questionnaire_id" = 1 AND position = 2)
54549
+ SQL (0.1ms) UPDATE "qwester_questionnaires_questions" SET position = (position - 1) WHERE ("qwester_questionnaires_questions"."questionnaire_id" = 1 AND position > 1 AND position <= 2 AND id != 2)
54550
+  (0.1ms) UPDATE "qwester_questionnaires_questions" SET "position" = 1, "updated_at" = '2013-05-02 08:06:37.093630' WHERE "qwester_questionnaires_questions"."id" = 1
54551
+  (0.9ms) SELECT COUNT(*) FROM "qwester_questionnaires_questions" WHERE ("qwester_questionnaires_questions"."questionnaire_id" = 1 AND position = 1)
54552
+  (117.5ms) commit transaction
54553
+ Redirected to http://localhost:3000/admin/qwester_questionnaires/1
54554
+ Completed 302 Found in 139ms (ActiveRecord: 121.0ms)
54555
+
54556
+
54557
+ Started GET "/admin/qwester_questionnaires/1" for 127.0.0.1 at 2013-05-02 09:06:37 +0100
54558
+ Processing by Admin::QwesterQuestionnairesController#show as HTML
54559
+ Parameters: {"id"=>"1"}
54560
+ AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
54561
+ Qwester::Questionnaire Load (0.1ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "1"]]
54562
+ Qwester::Question Load (0.3ms) SELECT DISTINCT "qwester_questions".* FROM "qwester_questions" INNER JOIN "qwester_questionnaires_questions" ON "qwester_questions"."id" = "qwester_questionnaires_questions"."question_id" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1 ORDER BY position
54563
+ Qwester::QuestionnairesQuestion Load (0.3ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1 AND "qwester_questionnaires_questions"."question_id" = 1 ORDER BY position LIMIT 1
54564
+ CACHE (0.0ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1 AND "qwester_questionnaires_questions"."question_id" = 1 ORDER BY position LIMIT 1
54565
+ Qwester::QuestionnairesQuestion Load (0.9ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE ("qwester_questionnaires_questions"."questionnaire_id" = 1) ORDER BY qwester_questionnaires_questions.position DESC LIMIT 1
54566
+ Qwester::QuestionnairesQuestion Load (0.3ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1 AND "qwester_questionnaires_questions"."question_id" = 2 ORDER BY position LIMIT 1
54567
+ CACHE (0.0ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE "qwester_questionnaires_questions"."questionnaire_id" = 1 AND "qwester_questionnaires_questions"."question_id" = 2 ORDER BY position LIMIT 1
54568
+ CACHE (0.0ms) SELECT "qwester_questionnaires_questions".* FROM "qwester_questionnaires_questions" WHERE ("qwester_questionnaires_questions"."questionnaire_id" = 1) ORDER BY qwester_questionnaires_questions.position DESC LIMIT 1
54569
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (157.6ms)
54570
+ Completed 200 OK in 182ms (Views: 177.3ms | ActiveRecord: 2.1ms)
54571
+
54572
+
54573
+ Started GET "/admin/qwester_questions" for 127.0.0.1 at 2013-05-02 09:08:09 +0100
54574
+ Processing by Admin::QwesterQuestionsController#index as HTML
54575
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
54576
+  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "qwester_questions" LIMIT 30 OFFSET 0) subquery_for_count 
54577
+  (0.2ms) SELECT COUNT(*) FROM "qwester_questions"
54578
+ CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "qwester_questions" LIMIT 30 OFFSET 0) subquery_for_count 
54579
+ Qwester::Question Load (0.3ms) SELECT "qwester_questions".* FROM "qwester_questions" ORDER BY "qwester_questions"."id" desc LIMIT 30 OFFSET 0
54580
+  (0.1ms) SELECT COUNT(*) FROM "qwester_answers" WHERE "qwester_answers"."question_id" = 3
54581
+  (0.2ms) SELECT COUNT(*) FROM "qwester_answers" WHERE "qwester_answers"."question_id" = 2
54582
+  (0.1ms) SELECT COUNT(*) FROM "qwester_answers" WHERE "qwester_answers"."question_id" = 1
54583
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (505.3ms)
54584
+ Completed 200 OK in 516ms (Views: 509.1ms | ActiveRecord: 1.8ms)
54585
+
54586
+
54587
+ Started GET "/admin/qwester_questions/3" for 127.0.0.1 at 2013-05-02 09:08:12 +0100
54588
+ Processing by Admin::QwesterQuestionsController#show as HTML
54589
+ Parameters: {"id"=>"3"}
54590
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
54591
+ Qwester::Question Load (0.2ms) SELECT "qwester_questions".* FROM "qwester_questions" WHERE "qwester_questions"."id" = ? LIMIT 1 [["id", "3"]]
54592
+ Qwester::Answer Load (0.3ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE "qwester_answers"."question_id" = 3 ORDER BY position
54593
+ Qwester::Answer Load (0.4ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE ("qwester_answers"."question_id" = 3) ORDER BY qwester_answers.position DESC LIMIT 1
54594
+ CACHE (0.0ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE ("qwester_answers"."question_id" = 3) ORDER BY qwester_answers.position DESC LIMIT 1
54595
+ CACHE (0.0ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE ("qwester_answers"."question_id" = 3) ORDER BY qwester_answers.position DESC LIMIT 1
54596
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (119.7ms)
54597
+ Completed 200 OK in 132ms (Views: 123.1ms | ActiveRecord: 1.2ms)
54598
+
54599
+
54600
+ Started GET "/admin/qwester_answers/8/move_down" for 127.0.0.1 at 2013-05-02 09:08:14 +0100
54601
+ Processing by Admin::QwesterAnswersController#move_down as HTML
54602
+ Parameters: {"id"=>"8"}
54603
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
54604
+ Qwester::Answer Load (0.2ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE "qwester_answers"."id" = ? LIMIT 1 [["id", "8"]]
54605
+ Qwester::Answer Load (0.3ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE ("qwester_answers"."question_id" = 3 AND position > 2) ORDER BY qwester_answers.position ASC LIMIT 1
54606
+  (0.1ms) begin transaction
54607
+ CACHE (0.0ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE ("qwester_answers"."question_id" = 3 AND position > 2) ORDER BY qwester_answers.position ASC LIMIT 1
54608
+  (1.1ms) UPDATE "qwester_answers" SET "position" = 2, "updated_at" = '2013-05-02 08:08:14.929127' WHERE "qwester_answers"."id" = 9
54609
+  (0.1ms) SELECT COUNT(*) FROM "qwester_answers" WHERE ("qwester_answers"."question_id" = 3 AND position = 2)
54610
+ SQL (0.2ms) UPDATE "qwester_answers" SET position = (position + 1) WHERE ("qwester_answers"."question_id" = 3 AND position >= 2 AND position < 3 AND id != 9)
54611
+  (0.1ms) UPDATE "qwester_answers" SET "position" = 3, "updated_at" = '2013-05-02 08:08:14.933749' WHERE "qwester_answers"."id" = 8
54612
+  (0.1ms) SELECT COUNT(*) FROM "qwester_answers" WHERE ("qwester_answers"."question_id" = 3 AND position = 3)
54613
+  (241.9ms) commit transaction
54614
+ Qwester::Question Load (0.3ms) SELECT "qwester_questions".* FROM "qwester_questions" WHERE "qwester_questions"."id" = 3 LIMIT 1
54615
+ Redirected to http://localhost:3000/admin/qwester_questions/3
54616
+ Completed 302 Found in 334ms (ActiveRecord: 244.7ms)
54617
+
54618
+
54619
+ Started GET "/admin/qwester_questions/3" for 127.0.0.1 at 2013-05-02 09:08:15 +0100
54620
+ Processing by Admin::QwesterQuestionsController#show as HTML
54621
+ Parameters: {"id"=>"3"}
54622
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
54623
+ Qwester::Question Load (0.1ms) SELECT "qwester_questions".* FROM "qwester_questions" WHERE "qwester_questions"."id" = ? LIMIT 1 [["id", "3"]]
54624
+ Qwester::Answer Load (6.2ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE "qwester_answers"."question_id" = 3 ORDER BY position
54625
+ Qwester::Answer Load (0.3ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE ("qwester_answers"."question_id" = 3) ORDER BY qwester_answers.position DESC LIMIT 1
54626
+ CACHE (0.0ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE ("qwester_answers"."question_id" = 3) ORDER BY qwester_answers.position DESC LIMIT 1
54627
+ CACHE (0.0ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE ("qwester_answers"."question_id" = 3) ORDER BY qwester_answers.position DESC LIMIT 1
54628
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (72.3ms)
54629
+ Completed 200 OK in 82ms (Views: 69.5ms | ActiveRecord: 6.9ms)
54630
+
54631
+
54632
+ Started GET "/admin/qwester_answers/8/move_up" for 127.0.0.1 at 2013-05-02 09:08:18 +0100
54633
+ Processing by Admin::QwesterAnswersController#move_up as HTML
54634
+ Parameters: {"id"=>"8"}
54635
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
54636
+ Qwester::Answer Load (0.1ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE "qwester_answers"."id" = ? LIMIT 1 [["id", "8"]]
54637
+ Qwester::Answer Load (0.2ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE ("qwester_answers"."question_id" = 3 AND position < 3) ORDER BY qwester_answers.position DESC LIMIT 1
54638
+  (0.0ms) begin transaction
54639
+ CACHE (1.6ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE ("qwester_answers"."question_id" = 3 AND position < 3) ORDER BY qwester_answers.position DESC LIMIT 1
54640
+  (1.0ms) UPDATE "qwester_answers" SET "position" = 3, "updated_at" = '2013-05-02 08:08:18.300579' WHERE "qwester_answers"."id" = 9
54641
+  (0.1ms) SELECT COUNT(*) FROM "qwester_answers" WHERE ("qwester_answers"."question_id" = 3 AND position = 3)
54642
+ SQL (0.2ms) UPDATE "qwester_answers" SET position = (position - 1) WHERE ("qwester_answers"."question_id" = 3 AND position > 2 AND position <= 3 AND id != 9)
54643
+  (0.1ms) UPDATE "qwester_answers" SET "position" = 2, "updated_at" = '2013-05-02 08:08:18.306403' WHERE "qwester_answers"."id" = 8
54644
+  (0.1ms) SELECT COUNT(*) FROM "qwester_answers" WHERE ("qwester_answers"."question_id" = 3 AND position = 2)
54645
+  (112.6ms) commit transaction
54646
+ Qwester::Question Load (0.3ms) SELECT "qwester_questions".* FROM "qwester_questions" WHERE "qwester_questions"."id" = 3 LIMIT 1
54647
+ Redirected to http://localhost:3000/admin/qwester_questions/3
54648
+ Completed 302 Found in 132ms (ActiveRecord: 116.7ms)
54649
+
54650
+
54651
+ Started GET "/admin/qwester_questions/3" for 127.0.0.1 at 2013-05-02 09:08:18 +0100
54652
+ Processing by Admin::QwesterQuestionsController#show as HTML
54653
+ Parameters: {"id"=>"3"}
54654
+ AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
54655
+ Qwester::Question Load (0.1ms) SELECT "qwester_questions".* FROM "qwester_questions" WHERE "qwester_questions"."id" = ? LIMIT 1 [["id", "3"]]
54656
+ Qwester::Answer Load (0.4ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE "qwester_answers"."question_id" = 3 ORDER BY position
54657
+ Qwester::Answer Load (0.2ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE ("qwester_answers"."question_id" = 3) ORDER BY qwester_answers.position DESC LIMIT 1
54658
+ CACHE (0.0ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE ("qwester_answers"."question_id" = 3) ORDER BY qwester_answers.position DESC LIMIT 1
54659
+ CACHE (0.0ms) SELECT "qwester_answers".* FROM "qwester_answers" WHERE ("qwester_answers"."question_id" = 3) ORDER BY qwester_answers.position DESC LIMIT 1
54660
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (130.8ms)
54661
+ Completed 200 OK in 138ms (Views: 133.9ms | ActiveRecord: 0.9ms)
54662
+ Connecting to database specified by database.yml
54663
+ Connecting to database specified by database.yml
54664
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
54665
+ Migrating to DeviseCreateAdminUsers (20130110115938)
54666
+ Migrating to CreateAdminComments (20130110115940)
54667
+ Migrating to CreateQuestions (20130314103645)
54668
+ Migrating to CreateAnswers (20130314103646)
54669
+ Migrating to CreateRuleSets (20130314103647)
54670
+ Migrating to CreateQuestionnaires (20130314103648)
54671
+ Migrating to CreateAnswerStores (20130314103649)
54672
+ Migrating to AddQuestionnaireIdToAnswers (20130314103650)
54673
+ Migrating to ChangeAnswersValueToString (20130314103651)
54674
+ Migrating to AddButtonImageToQuestionnaires (20130314103652)
54675
+ Migrating to CreateCkeditorAssets (20130314103653)
54676
+ Migrating to AddRefToQuestions (20130314103654)
54677
+ Migrating to AddIdsToQuestionnairesQuestions (20130314103655)
54678
+ Migrating to AddPositionToAnswers (20130314103656)
54679
+ Migrating to RemoveQuestionnaireFromAnswer (20130314103657)
54680
+ Migrating to AddRuleToRuleSets (20130314103658)
54681
+ Migrating to AddMultiAnswerToQuestions (20130314103659)
54682
+ Migrating to CreateAnswerStoresQuestionnaires (20130314103660)
54683
+ Migrating to AddLinkTextToRuleSets (20130314103661)
54684
+ Migrating to AddPreservedToAnswerStores (20130314103662)
54685
+ Migrating to CreateQwesterPresentations (20130315113346)
54686
+ Migrating to CreateQwesterPresentationQuestionnaires (20130315113347)
54687
+ Migrating to AddPresentationToRuleSets (20130402085423)
54688
+ Migrating to AddWeightingToQwesterAnswers (20130402085424)
54689
+ Migrating to AddPositionToQwesterPresentationQuestionnaires (20130502082731)
54690
+  (0.1ms) select sqlite_version(*)
54691
+  (0.1ms) begin transaction
54692
+  (2.1ms) ALTER TABLE "qwester_presentation_questionnaires" ADD "position" integer
54693
+  (1.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130502082731')
54694
+  (143.1ms) commit transaction
54695
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
54696
+ Connecting to database specified by database.yml
54697
+ Connecting to database specified by database.yml
54698
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
54699
+  (0.2ms) select sqlite_version(*)
54700
+  (182.0ms) CREATE TABLE "active_admin_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_id" varchar(255) NOT NULL, "resource_type" varchar(255) NOT NULL, "author_id" integer, "author_type" varchar(255), "namespace" varchar(255), "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
54701
+  (165.8ms) CREATE INDEX "index_active_admin_comments_on_author_type_and_author_id" ON "active_admin_comments" ("author_type", "author_id")
54702
+  (141.7ms) CREATE INDEX "index_active_admin_comments_on_namespace" ON "active_admin_comments" ("namespace")
54703
+  (111.7ms) CREATE TABLE "admin_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
54704
+  (121.3ms) CREATE UNIQUE INDEX "index_admin_users_on_email" ON "admin_users" ("email")
54705
+  (165.9ms) CREATE UNIQUE INDEX "index_admin_users_on_reset_password_token" ON "admin_users" ("reset_password_token")
54706
+  (153.9ms) CREATE TABLE "qwester_answer_stores" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "session_id" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "preserved" datetime) 
54707
+  (145.1ms) CREATE TABLE "qwester_answer_stores_answers" ("answer_id" integer, "answer_store_id" integer)
54708
+  (157.6ms) CREATE TABLE "qwester_answer_stores_questionnaires" ("questionnaire_id" integer, "answer_store_id" integer) 
54709
+  (184.9ms) CREATE TABLE "qwester_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "question_id" integer, "value" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "position" integer, "weighting" float DEFAULT 0.0)
54710
+  (188.2ms) CREATE TABLE "qwester_answers_rule_sets" ("answer_id" integer, "rule_set_id" integer) 
54711
+  (199.3ms) CREATE TABLE "qwester_ckeditor_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "data_file_name" varchar(255) NOT NULL, "data_content_type" varchar(255), "data_file_size" integer, "assetable_id" integer, "assetable_type" varchar(30), "type" varchar(30), "width" integer, "height" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
54712
+  (152.2ms) CREATE INDEX "qwester_idx_ckeditor_assetable" ON "qwester_ckeditor_assets" ("assetable_type", "assetable_id")
54713
+  (146.3ms) CREATE INDEX "qwester_idx_ckeditor_assetable_type" ON "qwester_ckeditor_assets" ("assetable_type", "type", "assetable_id")
54714
+  (174.1ms) CREATE TABLE "qwester_presentation_questionnaires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "questionnaire_id" integer, "presentation_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "position" integer) 
54715
+  (157.8ms) CREATE TABLE "qwester_presentations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "title" varchar(255), "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "default" boolean)
54716
+  (163.0ms) CREATE TABLE "qwester_questionnaires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "button_image_file_name" varchar(255), "button_image_content_type" varchar(255), "button_image_file_size" integer, "button_image_updated_at" datetime) 
54717
+  (157.2ms) CREATE TABLE "qwester_questionnaires_questions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "questionnaire_id" integer, "question_id" integer, "position" integer, "created_at" datetime, "updated_at" datetime)
54718
+  (238.3ms) CREATE TABLE "qwester_questions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "parent_id" integer, "lft" integer, "rgt" integer, "depth" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "ref" varchar(255), "multi_answer" boolean) 
54719
+  (148.9ms) CREATE TABLE "qwester_rule_sets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "url" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "rule" text, "link_text" varchar(255), "presentation" varchar(255))
54720
+  (148.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
54721
+  (157.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
54722
+  (3.6ms) SELECT version FROM "schema_migrations"
54723
+  (125.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130502082731')
54724
+  (133.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103662')
54725
+  (156.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103658')
54726
+  (157.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103661')
54727
+  (133.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130402085423')
54728
+  (116.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103652')
54729
+  (157.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103645')
54730
+  (193.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103659')
54731
+  (125.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103648')
54732
+  (180.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103646')
54733
+  (157.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103649')
54734
+  (150.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103654')
54735
+  (149.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130110115940')
54736
+  (208.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103656')
54737
+  (219.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130110115938')
54738
+  (152.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103655')
54739
+  (190.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103651')
54740
+  (150.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103657')
54741
+  (133.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103660')
54742
+  (157.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103653')
54743
+  (167.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130315113347')
54744
+  (147.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130315113346')
54745
+  (165.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130402085424')
54746
+  (167.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103647')
54747
+  (201.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103650')
54748
+ Connecting to database specified by database.yml
54749
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
54750
+  (0.2ms) select sqlite_version(*)
54751
+  (177.8ms) CREATE TABLE "active_admin_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_id" varchar(255) NOT NULL, "resource_type" varchar(255) NOT NULL, "author_id" integer, "author_type" varchar(255), "namespace" varchar(255), "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
54752
+  (115.4ms) CREATE INDEX "index_active_admin_comments_on_author_type_and_author_id" ON "active_admin_comments" ("author_type", "author_id")
54753
+  (113.7ms) CREATE INDEX "index_active_admin_comments_on_namespace" ON "active_admin_comments" ("namespace")
54754
+  (100.4ms) CREATE TABLE "admin_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
54755
+  (132.7ms) CREATE UNIQUE INDEX "index_admin_users_on_email" ON "admin_users" ("email")
54756
+  (149.0ms) CREATE UNIQUE INDEX "index_admin_users_on_reset_password_token" ON "admin_users" ("reset_password_token")
54757
+  (139.8ms) CREATE TABLE "qwester_answer_stores" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "session_id" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "preserved" datetime) 
54758
+  (131.5ms) CREATE TABLE "qwester_answer_stores_answers" ("answer_id" integer, "answer_store_id" integer)
54759
+  (133.3ms) CREATE TABLE "qwester_answer_stores_questionnaires" ("questionnaire_id" integer, "answer_store_id" integer) 
54760
+  (135.4ms) CREATE TABLE "qwester_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "question_id" integer, "value" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "position" integer, "weighting" float DEFAULT 0.0)
54761
+  (131.6ms) CREATE TABLE "qwester_answers_rule_sets" ("answer_id" integer, "rule_set_id" integer) 
54762
+  (148.9ms) CREATE TABLE "qwester_ckeditor_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "data_file_name" varchar(255) NOT NULL, "data_content_type" varchar(255), "data_file_size" integer, "assetable_id" integer, "assetable_type" varchar(30), "type" varchar(30), "width" integer, "height" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
54763
+  (174.6ms) CREATE INDEX "qwester_idx_ckeditor_assetable" ON "qwester_ckeditor_assets" ("assetable_type", "assetable_id")
54764
+  (150.1ms) CREATE INDEX "qwester_idx_ckeditor_assetable_type" ON "qwester_ckeditor_assets" ("assetable_type", "type", "assetable_id")
54765
+  (159.9ms) CREATE TABLE "qwester_presentation_questionnaires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "questionnaire_id" integer, "presentation_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "position" integer) 
54766
+  (141.9ms) CREATE TABLE "qwester_presentations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "title" varchar(255), "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "default" boolean)
54767
+  (140.2ms) CREATE TABLE "qwester_questionnaires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "button_image_file_name" varchar(255), "button_image_content_type" varchar(255), "button_image_file_size" integer, "button_image_updated_at" datetime) 
54768
+  (123.7ms) CREATE TABLE "qwester_questionnaires_questions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "questionnaire_id" integer, "question_id" integer, "position" integer, "created_at" datetime, "updated_at" datetime)
54769
+  (148.1ms) CREATE TABLE "qwester_questions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "parent_id" integer, "lft" integer, "rgt" integer, "depth" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "ref" varchar(255), "multi_answer" boolean) 
54770
+  (156.1ms) CREATE TABLE "qwester_rule_sets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "url" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "rule" text, "link_text" varchar(255), "presentation" varchar(255))
54771
+  (275.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
54772
+  (190.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
54773
+  (0.1ms) SELECT version FROM "schema_migrations"
54774
+  (213.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130502082731')
54775
+  (99.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103662')
54776
+  (98.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103658')
54777
+  (140.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103661')
54778
+  (150.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130402085423')
54779
+  (141.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103652')
54780
+  (132.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103645')
54781
+  (133.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103659')
54782
+  (174.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103648')
54783
+  (166.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103646')
54784
+  (133.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103649')
54785
+  (148.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103654')
54786
+  (158.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130110115940')
54787
+  (141.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103656')
54788
+  (124.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130110115938')
54789
+  (106.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103655')
54790
+  (116.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103651')
54791
+  (124.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103657')
54792
+  (117.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103660')
54793
+  (248.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103653')
54794
+  (224.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130315113347')
54795
+  (150.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130315113346')
54796
+  (191.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130402085424')
54797
+  (132.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103647')
54798
+  (124.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103650')
54799
+ Connecting to database specified by database.yml
54800
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
54801
+  (0.2ms) select sqlite_version(*)
54802
+  (163.3ms) CREATE TABLE "active_admin_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_id" varchar(255) NOT NULL, "resource_type" varchar(255) NOT NULL, "author_id" integer, "author_type" varchar(255), "namespace" varchar(255), "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
54803
+  (108.0ms) CREATE INDEX "index_active_admin_comments_on_author_type_and_author_id" ON "active_admin_comments" ("author_type", "author_id")
54804
+  (97.6ms) CREATE INDEX "index_active_admin_comments_on_namespace" ON "active_admin_comments" ("namespace")
54805
+  (96.3ms) CREATE TABLE "admin_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
54806
+  (100.2ms) CREATE UNIQUE INDEX "index_admin_users_on_email" ON "admin_users" ("email")
54807
+  (95.5ms) CREATE UNIQUE INDEX "index_admin_users_on_reset_password_token" ON "admin_users" ("reset_password_token")
54808
+  (89.6ms) CREATE TABLE "qwester_answer_stores" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "session_id" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "preserved" datetime) 
54809
+  (123.0ms) CREATE TABLE "qwester_answer_stores_answers" ("answer_id" integer, "answer_store_id" integer)
54810
+  (132.5ms) CREATE TABLE "qwester_answer_stores_questionnaires" ("questionnaire_id" integer, "answer_store_id" integer) 
54811
+  (141.9ms) CREATE TABLE "qwester_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "question_id" integer, "value" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "position" integer, "weighting" float DEFAULT 0.0)
54812
+  (123.1ms) CREATE TABLE "qwester_answers_rule_sets" ("answer_id" integer, "rule_set_id" integer) 
54813
+  (128.5ms) CREATE TABLE "qwester_ckeditor_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "data_file_name" varchar(255) NOT NULL, "data_content_type" varchar(255), "data_file_size" integer, "assetable_id" integer, "assetable_type" varchar(30), "type" varchar(30), "width" integer, "height" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
54814
+  (124.0ms) CREATE INDEX "qwester_idx_ckeditor_assetable" ON "qwester_ckeditor_assets" ("assetable_type", "assetable_id")
54815
+  (183.2ms) CREATE INDEX "qwester_idx_ckeditor_assetable_type" ON "qwester_ckeditor_assets" ("assetable_type", "type", "assetable_id")
54816
+  (222.7ms) CREATE TABLE "qwester_presentation_questionnaires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "questionnaire_id" integer, "presentation_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "position" integer) 
54817
+  (88.6ms) CREATE TABLE "qwester_presentations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "title" varchar(255), "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "default" boolean)
54818
+  (138.1ms) CREATE TABLE "qwester_questionnaires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "button_image_file_name" varchar(255), "button_image_content_type" varchar(255), "button_image_file_size" integer, "button_image_updated_at" datetime) 
54819
+  (129.5ms) CREATE TABLE "qwester_questionnaires_questions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "questionnaire_id" integer, "question_id" integer, "position" integer, "created_at" datetime, "updated_at" datetime)
54820
+  (130.0ms) CREATE TABLE "qwester_questions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "parent_id" integer, "lft" integer, "rgt" integer, "depth" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "ref" varchar(255), "multi_answer" boolean) 
54821
+  (133.3ms) CREATE TABLE "qwester_rule_sets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "url" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "rule" text, "link_text" varchar(255), "presentation" varchar(255))
54822
+  (128.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
54823
+  (133.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
54824
+  (0.3ms) SELECT version FROM "schema_migrations"
54825
+  (129.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130502082731')
54826
+  (174.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103662')
54827
+  (224.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103658')
54828
+  (141.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103661')
54829
+  (291.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130402085423')
54830
+  (249.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103652')
54831
+  (148.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103645')
54832
+  (150.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103659')
54833
+  (165.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103648')
54834
+  (190.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103646')
54835
+  (183.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103649')
54836
+  (141.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103654')
54837
+  (149.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130110115940')
54838
+  (141.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103656')
54839
+  (140.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130110115938')
54840
+  (126.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103655')
54841
+  (132.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103651')
54842
+  (165.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103657')
54843
+  (166.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103660')
54844
+  (151.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103653')
54845
+  (180.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130315113347')
54846
+  (149.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130315113346')
54847
+  (140.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130402085424')
54848
+  (141.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103647')
54849
+  (141.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103650')
54850
+ Connecting to database specified by database.yml
54851
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
54852
+  (0.2ms) select sqlite_version(*)
54853
+  (149.7ms) CREATE TABLE "active_admin_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_id" varchar(255) NOT NULL, "resource_type" varchar(255) NOT NULL, "author_id" integer, "author_type" varchar(255), "namespace" varchar(255), "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
54854
+  (125.1ms) CREATE INDEX "index_active_admin_comments_on_author_type_and_author_id" ON "active_admin_comments" ("author_type", "author_id")
54855
+  (121.5ms) CREATE INDEX "index_active_admin_comments_on_namespace" ON "active_admin_comments" ("namespace")
54856
+  (123.2ms) CREATE TABLE "admin_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
54857
+  (138.2ms) CREATE UNIQUE INDEX "index_admin_users_on_email" ON "admin_users" ("email")
54858
+  (131.5ms) CREATE UNIQUE INDEX "index_admin_users_on_reset_password_token" ON "admin_users" ("reset_password_token")
54859
+  (135.2ms) CREATE TABLE "qwester_answer_stores" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "session_id" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "preserved" datetime) 
54860
+  (148.7ms) CREATE TABLE "qwester_answer_stores_answers" ("answer_id" integer, "answer_store_id" integer)
54861
+  (129.2ms) CREATE TABLE "qwester_answer_stores_questionnaires" ("questionnaire_id" integer, "answer_store_id" integer) 
54862
+  (153.5ms) CREATE TABLE "qwester_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "question_id" integer, "value" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "position" integer, "weighting" float DEFAULT 0.0)
54863
+  (155.1ms) CREATE TABLE "qwester_answers_rule_sets" ("answer_id" integer, "rule_set_id" integer) 
54864
+  (172.8ms) CREATE TABLE "qwester_ckeditor_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "data_file_name" varchar(255) NOT NULL, "data_content_type" varchar(255), "data_file_size" integer, "assetable_id" integer, "assetable_type" varchar(30), "type" varchar(30), "width" integer, "height" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
54865
+  (207.6ms) CREATE INDEX "qwester_idx_ckeditor_assetable" ON "qwester_ckeditor_assets" ("assetable_type", "assetable_id")
54866
+  (113.0ms) CREATE INDEX "qwester_idx_ckeditor_assetable_type" ON "qwester_ckeditor_assets" ("assetable_type", "type", "assetable_id")
54867
+  (106.9ms) CREATE TABLE "qwester_presentation_questionnaires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "questionnaire_id" integer, "presentation_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "position" integer) 
54868
+  (189.0ms) CREATE TABLE "qwester_presentations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "title" varchar(255), "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "default" boolean)
54869
+  (156.1ms) CREATE TABLE "qwester_questionnaires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "button_image_file_name" varchar(255), "button_image_content_type" varchar(255), "button_image_file_size" integer, "button_image_updated_at" datetime) 
54870
+  (157.0ms) CREATE TABLE "qwester_questionnaires_questions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "questionnaire_id" integer, "question_id" integer, "position" integer, "created_at" datetime, "updated_at" datetime)
54871
+  (143.7ms) CREATE TABLE "qwester_questions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "parent_id" integer, "lft" integer, "rgt" integer, "depth" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "ref" varchar(255), "multi_answer" boolean) 
54872
+  (112.5ms) CREATE TABLE "qwester_rule_sets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "url" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "rule" text, "link_text" varchar(255), "presentation" varchar(255))
54873
+  (101.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
54874
+  (181.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
54875
+  (0.4ms) SELECT version FROM "schema_migrations"
54876
+  (359.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130502082731')
54877
+  (148.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103662')
54878
+  (133.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103658')
54879
+  (140.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103661')
54880
+  (124.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130402085423')
54881
+  (99.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103652')
54882
+  (100.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103645')
54883
+  (147.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103659')
54884
+  (125.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103648')
54885
+  (141.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103646')
54886
+  (132.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103649')
54887
+  (199.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103654')
54888
+  (125.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130110115940')
54889
+  (133.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103656')
54890
+  (132.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130110115938')
54891
+  (125.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103655')
54892
+  (133.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103651')
54893
+  (132.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103657')
54894
+  (141.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103660')
54895
+  (166.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103653')
54896
+  (265.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130315113347')
54897
+  (133.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130315113346')
54898
+  (141.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130402085424')
54899
+  (107.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103647')
54900
+  (107.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103650')
54901
+ Connecting to database specified by database.yml
54902
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
54903
+  (0.2ms) select sqlite_version(*)
54904
+  (154.0ms) CREATE TABLE "active_admin_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_id" varchar(255) NOT NULL, "resource_type" varchar(255) NOT NULL, "author_id" integer, "author_type" varchar(255), "namespace" varchar(255), "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
54905
+  (141.3ms) CREATE INDEX "index_active_admin_comments_on_author_type_and_author_id" ON "active_admin_comments" ("author_type", "author_id")
54906
+  (154.3ms) CREATE INDEX "index_active_admin_comments_on_namespace" ON "active_admin_comments" ("namespace")
54907
+  (143.1ms) CREATE TABLE "admin_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
54908
+  (155.2ms) CREATE UNIQUE INDEX "index_admin_users_on_email" ON "admin_users" ("email")
54909
+  (134.9ms) CREATE UNIQUE INDEX "index_admin_users_on_reset_password_token" ON "admin_users" ("reset_password_token")
54910
+  (146.2ms) CREATE TABLE "qwester_answer_stores" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "session_id" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "preserved" datetime) 
54911
+  (148.9ms) CREATE TABLE "qwester_answer_stores_answers" ("answer_id" integer, "answer_store_id" integer)
54912
+  (137.8ms) CREATE TABLE "qwester_answer_stores_questionnaires" ("questionnaire_id" integer, "answer_store_id" integer) 
54913
+  (167.8ms) CREATE TABLE "qwester_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "question_id" integer, "value" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "position" integer, "weighting" float DEFAULT 0.0)
54914
+  (282.0ms) CREATE TABLE "qwester_answers_rule_sets" ("answer_id" integer, "rule_set_id" integer) 
54915
+  (214.9ms) CREATE TABLE "qwester_ckeditor_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "data_file_name" varchar(255) NOT NULL, "data_content_type" varchar(255), "data_file_size" integer, "assetable_id" integer, "assetable_type" varchar(30), "type" varchar(30), "width" integer, "height" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
54916
+  (99.1ms) CREATE INDEX "qwester_idx_ckeditor_assetable" ON "qwester_ckeditor_assets" ("assetable_type", "assetable_id")
54917
+  (113.4ms) CREATE INDEX "qwester_idx_ckeditor_assetable_type" ON "qwester_ckeditor_assets" ("assetable_type", "type", "assetable_id")
54918
+  (145.6ms) CREATE TABLE "qwester_presentation_questionnaires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "questionnaire_id" integer, "presentation_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "position" integer) 
54919
+  (140.7ms) CREATE TABLE "qwester_presentations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "title" varchar(255), "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "default" boolean)
54920
+  (156.9ms) CREATE TABLE "qwester_questionnaires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "button_image_file_name" varchar(255), "button_image_content_type" varchar(255), "button_image_file_size" integer, "button_image_updated_at" datetime) 
54921
+  (137.2ms) CREATE TABLE "qwester_questionnaires_questions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "questionnaire_id" integer, "question_id" integer, "position" integer, "created_at" datetime, "updated_at" datetime)
54922
+  (153.9ms) CREATE TABLE "qwester_questions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "parent_id" integer, "lft" integer, "rgt" integer, "depth" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "ref" varchar(255), "multi_answer" boolean) 
54923
+  (136.6ms) CREATE TABLE "qwester_rule_sets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "url" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "rule" text, "link_text" varchar(255), "presentation" varchar(255))
54924
+  (215.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
54925
+  (132.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
54926
+  (0.1ms) SELECT version FROM "schema_migrations"
54927
+  (223.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130502082731')
54928
+  (140.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103662')
54929
+  (132.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103658')
54930
+  (150.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103661')
54931
+  (157.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130402085423')
54932
+  (157.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103652')
54933
+  (149.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103645')
54934
+  (192.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103659')
54935
+  (399.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103648')
54936
+  (139.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103646')
54937
+  (98.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103649')
54938
+  (108.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103654')
54939
+  (108.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130110115940')
54940
+  (141.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103656')
54941
+  (132.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130110115938')
54942
+  (136.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103655')
54943
+  (149.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103651')
54944
+  (198.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103657')
54945
+  (150.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103660')
54946
+  (133.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103653')
54947
+  (133.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130315113347')
54948
+  (132.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130315113346')
54949
+  (133.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130402085424')
54950
+  (133.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103647')
54951
+  (116.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103650')
54952
+ Connecting to database specified by database.yml
54953
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
54954
+  (0.2ms) select sqlite_version(*)
54955
+  (162.1ms) CREATE TABLE "active_admin_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_id" varchar(255) NOT NULL, "resource_type" varchar(255) NOT NULL, "author_id" integer, "author_type" varchar(255), "namespace" varchar(255), "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
54956
+  (132.3ms) CREATE INDEX "index_active_admin_comments_on_author_type_and_author_id" ON "active_admin_comments" ("author_type", "author_id")
54957
+  (131.8ms) CREATE INDEX "index_active_admin_comments_on_namespace" ON "active_admin_comments" ("namespace")
54958
+  (122.7ms) CREATE TABLE "admin_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
54959
+  (141.0ms) CREATE UNIQUE INDEX "index_admin_users_on_email" ON "admin_users" ("email")
54960
+  (139.5ms) CREATE UNIQUE INDEX "index_admin_users_on_reset_password_token" ON "admin_users" ("reset_password_token")
54961
+  (146.8ms) CREATE TABLE "qwester_answer_stores" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "session_id" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "preserved" datetime) 
54962
+  (141.0ms) CREATE TABLE "qwester_answer_stores_answers" ("answer_id" integer, "answer_store_id" integer)
54963
+  (162.6ms) CREATE TABLE "qwester_answer_stores_questionnaires" ("questionnaire_id" integer, "answer_store_id" integer) 
54964
+  (127.4ms) CREATE TABLE "qwester_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "question_id" integer, "value" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "position" integer, "weighting" float DEFAULT 0.0)
54965
+  (106.3ms) CREATE TABLE "qwester_answers_rule_sets" ("answer_id" integer, "rule_set_id" integer) 
54966
+  (215.7ms) CREATE TABLE "qwester_ckeditor_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "data_file_name" varchar(255) NOT NULL, "data_content_type" varchar(255), "data_file_size" integer, "assetable_id" integer, "assetable_type" varchar(30), "type" varchar(30), "width" integer, "height" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
54967
+  (164.0ms) CREATE INDEX "qwester_idx_ckeditor_assetable" ON "qwester_ckeditor_assets" ("assetable_type", "assetable_id")
54968
+  (149.1ms) CREATE INDEX "qwester_idx_ckeditor_assetable_type" ON "qwester_ckeditor_assets" ("assetable_type", "type", "assetable_id")
54969
+  (134.8ms) CREATE TABLE "qwester_presentation_questionnaires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "questionnaire_id" integer, "presentation_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "position" integer) 
54970
+  (128.8ms) CREATE TABLE "qwester_presentations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "title" varchar(255), "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "default" boolean)
54971
+  (131.8ms) CREATE TABLE "qwester_questionnaires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "button_image_file_name" varchar(255), "button_image_content_type" varchar(255), "button_image_file_size" integer, "button_image_updated_at" datetime) 
54972
+  (149.4ms) CREATE TABLE "qwester_questionnaires_questions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "questionnaire_id" integer, "question_id" integer, "position" integer, "created_at" datetime, "updated_at" datetime)
54973
+  (133.0ms) CREATE TABLE "qwester_questions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "parent_id" integer, "lft" integer, "rgt" integer, "depth" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "ref" varchar(255), "multi_answer" boolean) 
54974
+  (143.9ms) CREATE TABLE "qwester_rule_sets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "url" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "rule" text, "link_text" varchar(255), "presentation" varchar(255))
54975
+  (139.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
54976
+  (217.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
54977
+  (0.2ms) SELECT version FROM "schema_migrations"
54978
+  (171.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130502082731')
54979
+  (166.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103662')
54980
+  (166.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103658')
54981
+  (165.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103661')
54982
+  (141.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130402085423')
54983
+  (115.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103652')
54984
+  (164.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103645')
54985
+  (176.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103659')
54986
+  (215.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103648')
54987
+  (283.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103646')
54988
+  (150.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103649')
54989
+  (139.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103654')
54990
+  (165.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130110115940')
54991
+  (108.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103656')
54992
+  (173.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130110115938')
54993
+  (142.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103655')
54994
+  (142.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103651')
54995
+  (192.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103657')
54996
+  (164.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103660')
54997
+  (108.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103653')
54998
+  (108.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130315113347')
54999
+  (149.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130315113346')
55000
+  (140.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130402085424')
55001
+  (133.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103647')
55002
+  (134.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103650')
55003
+ Connecting to database specified by database.yml
55004
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
55005
+  (0.3ms) select sqlite_version(*)
55006
+  (169.5ms) CREATE TABLE "active_admin_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_id" varchar(255) NOT NULL, "resource_type" varchar(255) NOT NULL, "author_id" integer, "author_type" varchar(255), "namespace" varchar(255), "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
55007
+  (148.4ms) CREATE INDEX "index_active_admin_comments_on_author_type_and_author_id" ON "active_admin_comments" ("author_type", "author_id")
55008
+  (148.6ms) CREATE INDEX "index_active_admin_comments_on_namespace" ON "active_admin_comments" ("namespace")
55009
+  (140.1ms) CREATE TABLE "admin_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
55010
+  (131.1ms) CREATE UNIQUE INDEX "index_admin_users_on_email" ON "admin_users" ("email")
55011
+  (130.7ms) CREATE UNIQUE INDEX "index_admin_users_on_reset_password_token" ON "admin_users" ("reset_password_token")
55012
+  (134.2ms) CREATE TABLE "qwester_answer_stores" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "session_id" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "preserved" datetime) 
55013
+  (138.9ms) CREATE TABLE "qwester_answer_stores_answers" ("answer_id" integer, "answer_store_id" integer)
55014
+  (137.6ms) CREATE TABLE "qwester_answer_stores_questionnaires" ("questionnaire_id" integer, "answer_store_id" integer) 
55015
+  (113.3ms) CREATE TABLE "qwester_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "question_id" integer, "value" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "position" integer, "weighting" float DEFAULT 0.0)
55016
+  (157.7ms) CREATE TABLE "qwester_answers_rule_sets" ("answer_id" integer, "rule_set_id" integer) 
55017
+  (260.4ms) CREATE TABLE "qwester_ckeditor_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "data_file_name" varchar(255) NOT NULL, "data_content_type" varchar(255), "data_file_size" integer, "assetable_id" integer, "assetable_type" varchar(30), "type" varchar(30), "width" integer, "height" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
55018
+  (197.1ms) CREATE INDEX "qwester_idx_ckeditor_assetable" ON "qwester_ckeditor_assets" ("assetable_type", "assetable_id")
55019
+  (147.6ms) CREATE INDEX "qwester_idx_ckeditor_assetable_type" ON "qwester_ckeditor_assets" ("assetable_type", "type", "assetable_id")
55020
+  (133.2ms) CREATE TABLE "qwester_presentation_questionnaires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "questionnaire_id" integer, "presentation_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "position" integer) 
55021
+  (113.9ms) CREATE TABLE "qwester_presentations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "title" varchar(255), "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "default" boolean)
55022
+  (114.9ms) CREATE TABLE "qwester_questionnaires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "button_image_file_name" varchar(255), "button_image_content_type" varchar(255), "button_image_file_size" integer, "button_image_updated_at" datetime) 
55023
+  (129.2ms) CREATE TABLE "qwester_questionnaires_questions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "questionnaire_id" integer, "question_id" integer, "position" integer, "created_at" datetime, "updated_at" datetime)
55024
+  (141.0ms) CREATE TABLE "qwester_questions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "parent_id" integer, "lft" integer, "rgt" integer, "depth" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "ref" varchar(255), "multi_answer" boolean) 
55025
+  (140.9ms) CREATE TABLE "qwester_rule_sets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "url" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "rule" text, "link_text" varchar(255), "presentation" varchar(255))
55026
+  (158.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
55027
+  (273.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
55028
+  (0.3ms) SELECT version FROM "schema_migrations"
55029
+  (118.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130502082731')
55030
+  (116.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103662')
55031
+  (135.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103658')
55032
+  (155.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103661')
55033
+  (149.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130402085423')
55034
+  (151.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103652')
55035
+  (147.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103645')
55036
+  (158.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103659')
55037
+  (257.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103648')
55038
+  (141.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103646')
55039
+  (132.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103649')
55040
+  (158.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103654')
55041
+  (173.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130110115940')
55042
+  (149.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103656')
55043
+  (140.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130110115938')
55044
+  (199.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103655')
55045
+  (165.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103651')
55046
+  (235.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103657')
55047
+  (247.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103660')
55048
+  (99.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103653')
55049
+  (150.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130315113347')
55050
+  (158.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130315113346')
55051
+  (174.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130402085424')
55052
+  (115.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103647')
55053
+  (108.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103650')
55054
+ Connecting to database specified by database.yml
55055
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
55056
+  (0.2ms) select sqlite_version(*)
55057
+  (169.3ms) CREATE TABLE "active_admin_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_id" varchar(255) NOT NULL, "resource_type" varchar(255) NOT NULL, "author_id" integer, "author_type" varchar(255), "namespace" varchar(255), "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
55058
+  (158.2ms) CREATE INDEX "index_active_admin_comments_on_author_type_and_author_id" ON "active_admin_comments" ("author_type", "author_id")
55059
+  (157.5ms) CREATE INDEX "index_active_admin_comments_on_namespace" ON "active_admin_comments" ("namespace")
55060
+  (151.4ms) CREATE TABLE "admin_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
55061
+  (187.7ms) CREATE UNIQUE INDEX "index_admin_users_on_email" ON "admin_users" ("email")
55062
+  (150.1ms) CREATE UNIQUE INDEX "index_admin_users_on_reset_password_token" ON "admin_users" ("reset_password_token")
55063
+  (155.3ms) CREATE TABLE "qwester_answer_stores" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "session_id" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "preserved" datetime) 
55064
+  (182.3ms) CREATE TABLE "qwester_answer_stores_answers" ("answer_id" integer, "answer_store_id" integer)
55065
+  (165.3ms) CREATE TABLE "qwester_answer_stores_questionnaires" ("questionnaire_id" integer, "answer_store_id" integer) 
55066
+  (215.3ms) CREATE TABLE "qwester_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "question_id" integer, "value" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "position" integer, "weighting" float DEFAULT 0.0)
55067
+  (231.9ms) CREATE TABLE "qwester_answers_rule_sets" ("answer_id" integer, "rule_set_id" integer) 
55068
+  (172.8ms) CREATE TABLE "qwester_ckeditor_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "data_file_name" varchar(255) NOT NULL, "data_content_type" varchar(255), "data_file_size" integer, "assetable_id" integer, "assetable_type" varchar(30), "type" varchar(30), "width" integer, "height" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
55069
+  (158.8ms) CREATE INDEX "qwester_idx_ckeditor_assetable" ON "qwester_ckeditor_assets" ("assetable_type", "assetable_id")
55070
+  (187.9ms) CREATE INDEX "qwester_idx_ckeditor_assetable_type" ON "qwester_ckeditor_assets" ("assetable_type", "type", "assetable_id")
55071
+  (165.0ms) CREATE TABLE "qwester_presentation_questionnaires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "questionnaire_id" integer, "presentation_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "position" integer) 
55072
+  (189.9ms) CREATE TABLE "qwester_presentations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "title" varchar(255), "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "default" boolean)
55073
+  (140.1ms) CREATE TABLE "qwester_questionnaires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "button_image_file_name" varchar(255), "button_image_content_type" varchar(255), "button_image_file_size" integer, "button_image_updated_at" datetime) 
55074
+  (239.4ms) CREATE TABLE "qwester_questionnaires_questions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "questionnaire_id" integer, "question_id" integer, "position" integer, "created_at" datetime, "updated_at" datetime)
55075
+  (188.3ms) CREATE TABLE "qwester_questions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "parent_id" integer, "lft" integer, "rgt" integer, "depth" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "ref" varchar(255), "multi_answer" boolean) 
55076
+  (196.2ms) CREATE TABLE "qwester_rule_sets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "url" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "rule" text, "link_text" varchar(255), "presentation" varchar(255))
55077
+  (273.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
55078
+  (141.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
55079
+  (0.1ms) SELECT version FROM "schema_migrations"
55080
+  (165.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130502082731')
55081
+  (139.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103662')
55082
+  (107.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103658')
55083
+  (135.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103661')
55084
+  (198.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130402085423')
55085
+  (207.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103652')
55086
+  (107.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103645')
55087
+  (208.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103659')
55088
+  (115.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103648')
55089
+  (100.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103646')
55090
+  (99.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103649')
55091
+  (133.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103654')
55092
+  (176.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130110115940')
55093
+  (373.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103656')
55094
+  (241.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130110115938')
55095
+  (115.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103655')
55096
+  (108.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103651')
55097
+  (122.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103657')
55098
+  (131.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103660')
55099
+  (150.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103653')
55100
+  (149.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130315113347')
55101
+  (150.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130315113346')
55102
+  (125.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130402085424')
55103
+  (222.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103647')
55104
+  (184.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103650')
55105
+ Connecting to database specified by database.yml
55106
+ Connecting to database specified by database.yml
55107
+ Connecting to database specified by database.yml
55108
+ Connecting to database specified by database.yml
55109
+
55110
+
55111
+ Started GET "/" for 127.0.0.1 at 2013-05-02 15:03:04 +0100
55112
+ Processing by Qwester::QuestionnairesController#index as HTML
55113
+ Qwester::Presentation Load (0.3ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."default" = 't' LIMIT 1
55114
+ Qwester::Questionnaire Load (0.2ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires"
55115
+ Rendered /home/rob/web/qwester/app/views/qwester/questionnaires/index.html.erb within layouts/application (14.3ms)
55116
+ Completed 200 OK in 704ms (Views: 567.1ms | ActiveRecord: 2.3ms)
55117
+
55118
+
55119
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-05-02 15:03:05 +0100
55120
+ Served asset /application.css - 200 OK (80ms)
55121
+
55122
+
55123
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-05-02 15:03:05 +0100
55124
+ Served asset /active_admin.css - 304 Not Modified (171ms)
55125
+
55126
+
55127
+ Started GET "/assets/active_admin/components/jquery.aa.dropdown-menu.js?body=1" for 127.0.0.1 at 2013-05-02 15:03:05 +0100
55128
+ Served asset /active_admin/components/jquery.aa.dropdown-menu.js - 304 Not Modified (11ms)
55129
+
55130
+
55131
+ Started GET "/assets/questionnaires.css?body=1" for 127.0.0.1 at 2013-05-02 15:03:05 +0100
55132
+ Served asset /questionnaires.css - 200 OK (31ms)
55133
+
55134
+
55135
+ Started GET "/assets/active_admin/components/jquery.aa.popover.js?body=1" for 127.0.0.1 at 2013-05-02 15:03:05 +0100
55136
+ Served asset /active_admin/components/jquery.aa.popover.js - 304 Not Modified (21ms)
55137
+
55138
+
55139
+ Started GET "/assets/active_admin.js?body=1" for 127.0.0.1 at 2013-05-02 15:03:05 +0100
55140
+ Served asset /active_admin.js - 304 Not Modified (66ms)
55141
+
55142
+
55143
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-05-02 15:03:06 +0100
55144
+ Served asset /jquery.js - 304 Not Modified (33ms)
55145
+
55146
+
55147
+ Started GET "/assets/active_admin/components/jquery.aa.table-checkbox-toggler.js?body=1" for 127.0.0.1 at 2013-05-02 15:03:06 +0100
55148
+ Served asset /active_admin/components/jquery.aa.table-checkbox-toggler.js - 304 Not Modified (17ms)
55149
+
55150
+
55151
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-05-02 15:03:06 +0100
55152
+ Served asset /jquery_ujs.js - 304 Not Modified (26ms)
55153
+
55154
+
55155
+ Started GET "/assets/active_admin/pages/application.js?body=1" for 127.0.0.1 at 2013-05-02 15:03:06 +0100
55156
+ Served asset /active_admin/pages/application.js - 304 Not Modified (19ms)
55157
+
55158
+
55159
+ Started GET "/assets/active_admin/application.js?body=1" for 127.0.0.1 at 2013-05-02 15:03:06 +0100
55160
+ Served asset /active_admin/application.js - 304 Not Modified (72ms)
55161
+
55162
+
55163
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-05-02 15:03:06 +0100
55164
+ Served asset /application.js - 304 Not Modified (97ms)
55165
+
55166
+
55167
+ Started GET "/assets/active_admin/lib/namespace.js?body=1" for 127.0.0.1 at 2013-05-02 15:03:06 +0100
55168
+ Served asset /active_admin/lib/namespace.js - 304 Not Modified (18ms)
55169
+
55170
+
55171
+ Started GET "/assets/active_admin/components/jquery.aa.checkbox-toggler.js?body=1" for 127.0.0.1 at 2013-05-02 15:03:06 +0100
55172
+ Served asset /active_admin/components/jquery.aa.checkbox-toggler.js - 304 Not Modified (6ms)
55173
+
55174
+
55175
+ Started GET "/assets/questionnaires.js?body=1" for 127.0.0.1 at 2013-05-02 15:03:06 +0100
55176
+ Served asset /questionnaires.js - 304 Not Modified (1ms)
55177
+
55178
+
55179
+ Started GET "/assets/active_admin/pages/batch_actions.js?body=1" for 127.0.0.1 at 2013-05-02 15:03:06 +0100
55180
+ Served asset /active_admin/pages/batch_actions.js - 304 Not Modified (22ms)
55181
+
55182
+
55183
+ Started GET "/admin" for 127.0.0.1 at 2013-05-02 15:03:12 +0100
55184
+ Processing by Admin::DashboardController#index as HTML
55185
+ Completed 401 Unauthorized in 6ms
55186
+
55187
+
55188
+ Started GET "/admin/login" for 127.0.0.1 at 2013-05-02 15:03:13 +0100
55189
+ Processing by ActiveAdmin::Devise::SessionsController#new as HTML
55190
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/devise/shared/_links.erb (1.8ms)
55191
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/devise/sessions/new.html.erb within layouts/active_admin_logged_out (718.0ms)
55192
+ Completed 200 OK in 1064ms (Views: 1030.3ms | ActiveRecord: 0.2ms)
55193
+
55194
+
55195
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-05-02 15:03:14 +0100
55196
+ Served asset /active_admin.css - 304 Not Modified (75ms)
55197
+
55198
+
55199
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-05-02 15:03:14 +0100
55200
+ Served asset /jquery.js - 304 Not Modified (1ms)
55201
+
55202
+
55203
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-05-02 15:03:14 +0100
55204
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
55205
+
55206
+
55207
+ Started GET "/assets/active_admin/lib/namespace.js?body=1" for 127.0.0.1 at 2013-05-02 15:03:14 +0100
55208
+ Served asset /active_admin/lib/namespace.js - 304 Not Modified (19ms)
55209
+
55210
+
55211
+ Started GET "/assets/active_admin/components/jquery.aa.checkbox-toggler.js?body=1" for 127.0.0.1 at 2013-05-02 15:03:14 +0100
55212
+ Served asset /active_admin/components/jquery.aa.checkbox-toggler.js - 304 Not Modified (6ms)
55213
+
55214
+
55215
+ Started GET "/assets/active_admin/components/jquery.aa.dropdown-menu.js?body=1" for 127.0.0.1 at 2013-05-02 15:03:14 +0100
55216
+ Served asset /active_admin/components/jquery.aa.dropdown-menu.js - 304 Not Modified (19ms)
55217
+
55218
+
55219
+ Started GET "/assets/active_admin/components/jquery.aa.popover.js?body=1" for 127.0.0.1 at 2013-05-02 15:03:15 +0100
55220
+ Served asset /active_admin/components/jquery.aa.popover.js - 304 Not Modified (0ms)
55221
+
55222
+
55223
+ Started GET "/assets/active_admin/components/jquery.aa.table-checkbox-toggler.js?body=1" for 127.0.0.1 at 2013-05-02 15:03:15 +0100
55224
+ Served asset /active_admin/components/jquery.aa.table-checkbox-toggler.js - 304 Not Modified (0ms)
55225
+
55226
+
55227
+ Started GET "/assets/active_admin/pages/application.js?body=1" for 127.0.0.1 at 2013-05-02 15:03:15 +0100
55228
+ Served asset /active_admin/pages/application.js - 304 Not Modified (0ms)
55229
+
55230
+
55231
+ Started GET "/assets/active_admin/pages/batch_actions.js?body=1" for 127.0.0.1 at 2013-05-02 15:03:15 +0100
55232
+ Served asset /active_admin/pages/batch_actions.js - 304 Not Modified (17ms)
55233
+
55234
+
55235
+ Started GET "/assets/active_admin/application.js?body=1" for 127.0.0.1 at 2013-05-02 15:03:15 +0100
55236
+ Served asset /active_admin/application.js - 304 Not Modified (17ms)
55237
+
55238
+
55239
+ Started GET "/assets/active_admin.js?body=1" for 127.0.0.1 at 2013-05-02 15:03:15 +0100
55240
+ Served asset /active_admin.js - 304 Not Modified (5ms)
55241
+
55242
+
55243
+ Started GET "/assets/questionnaires.js?body=1" for 127.0.0.1 at 2013-05-02 15:03:15 +0100
55244
+ Served asset /questionnaires.js - 304 Not Modified (0ms)
55245
+
55246
+
55247
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-05-02 15:03:15 +0100
55248
+ Served asset /application.js - 304 Not Modified (26ms)
55249
+
55250
+
55251
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2013-05-02 15:03:15 +0100
55252
+ Served asset /active_admin/print.css - 304 Not Modified (19ms)
55253
+
55254
+
55255
+ Started POST "/admin/login" for 127.0.0.1 at 2013-05-02 15:03:25 +0100
55256
+ Processing by ActiveAdmin::Devise::SessionsController#create as HTML
55257
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"G7TNPjgil5uCrAdj8zqJMhIl21QnYR6bL+LSoZ7df9s=", "admin_user"=>{"email"=>"admin@warwickshire.gov.uk", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Login"}
55258
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."email" = 'admin@warwickshire.gov.uk' LIMIT 1
55259
+  (0.1ms) begin transaction
55260
+  (1.5ms) UPDATE "admin_users" SET "last_sign_in_at" = '2013-05-02 08:06:05.762808', "current_sign_in_at" = '2013-05-02 14:03:25.496117', "sign_in_count" = 8, "updated_at" = '2013-05-02 14:03:25.501300' WHERE "admin_users"."id" = 1
55261
+  (160.7ms) commit transaction
55262
+ Redirected to http://localhost:3000/admin
55263
+ Completed 302 Found in 706ms (ActiveRecord: 0.0ms)
55264
+
55265
+
55266
+ Started GET "/admin" for 127.0.0.1 at 2013-05-02 15:03:25 +0100
55267
+ Processing by Admin::DashboardController#index as HTML
55268
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
55269
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/page/index.html.arb (138.6ms)
55270
+ Completed 200 OK in 178ms (Views: 176.4ms | ActiveRecord: 0.3ms)
55271
+
55272
+
55273
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-05-02 15:03:26 +0100
55274
+ Served asset /active_admin.css - 304 Not Modified (59ms)
55275
+
55276
+
55277
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2013-05-02 15:03:26 +0100
55278
+ Served asset /active_admin.js - 304 Not Modified (4ms)
55279
+
55280
+
55281
+ Started GET "/assets/application.js" for 127.0.0.1 at 2013-05-02 15:03:26 +0100
55282
+ Served asset /application.js - 304 Not Modified (17ms)
55283
+
55284
+
55285
+ Started GET "/assets/active_admin/nested_menu_arrow.gif" for 127.0.0.1 at 2013-05-02 15:03:26 +0100
55286
+ Served asset /active_admin/nested_menu_arrow.gif - 304 Not Modified (25ms)
55287
+
55288
+
55289
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2013-05-02 15:03:26 +0100
55290
+ Served asset /active_admin/print.css - 304 Not Modified (0ms)
55291
+
55292
+
55293
+ Started GET "/assets/active_admin/nested_menu_arrow_dark.gif" for 127.0.0.1 at 2013-05-02 15:03:28 +0100
55294
+ Served asset /active_admin/nested_menu_arrow_dark.gif - 304 Not Modified (28ms)
55295
+
55296
+
55297
+ Started GET "/admin/qwester_presentations" for 127.0.0.1 at 2013-05-02 15:03:29 +0100
55298
+ Processing by Admin::QwesterPresentationsController#index as HTML
55299
+ AdminUser Load (0.6ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
55300
+  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "qwester_presentations" LIMIT 30 OFFSET 0) subquery_for_count 
55301
+  (0.2ms) SELECT COUNT(*) FROM "qwester_presentations"
55302
+ CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "qwester_presentations" LIMIT 30 OFFSET 0) subquery_for_count 
55303
+ Qwester::Presentation Load (0.1ms) SELECT "qwester_presentations".* FROM "qwester_presentations" ORDER BY "qwester_presentations"."id" desc LIMIT 30 OFFSET 0
55304
+ Qwester::Questionnaire Load (0.2ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" INNER JOIN "qwester_presentation_questionnaires" ON "qwester_questionnaires"."id" = "qwester_presentation_questionnaires"."questionnaire_id" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 ORDER BY position
55305
+ Qwester::Questionnaire Load (0.2ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" INNER JOIN "qwester_presentation_questionnaires" ON "qwester_questionnaires"."id" = "qwester_presentation_questionnaires"."questionnaire_id" WHERE "qwester_presentation_questionnaires"."presentation_id" = 1 ORDER BY position
55306
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (831.2ms)
55307
+ Completed 200 OK in 946ms (Views: 860.3ms | ActiveRecord: 2.7ms)
55308
+
55309
+
55310
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-05-02 15:03:30 +0100
55311
+ Served asset /active_admin.css - 304 Not Modified (48ms)
55312
+
55313
+
55314
+ Started GET "/assets/application.js" for 127.0.0.1 at 2013-05-02 15:03:30 +0100
55315
+ Served asset /application.js - 304 Not Modified (11ms)
55316
+
55317
+
55318
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2013-05-02 15:03:30 +0100
55319
+ Served asset /active_admin.js - 304 Not Modified (19ms)
55320
+
55321
+
55322
+ Started GET "/assets/active_admin/nested_menu_arrow_dark.gif" for 127.0.0.1 at 2013-05-02 15:03:30 +0100
55323
+ Served asset /active_admin/nested_menu_arrow_dark.gif - 304 Not Modified (0ms)
55324
+
55325
+
55326
+ Started GET "/assets/active_admin/orderable.png" for 127.0.0.1 at 2013-05-02 15:03:30 +0100
55327
+ Served asset /active_admin/orderable.png - 304 Not Modified (26ms)
55328
+
55329
+
55330
+ Started GET "/assets/active_admin/datepicker/datepicker-input-icon.png" for 127.0.0.1 at 2013-05-02 15:03:30 +0100
55331
+ Served asset /active_admin/datepicker/datepicker-input-icon.png - 304 Not Modified (17ms)
55332
+
55333
+
55334
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2013-05-02 15:03:30 +0100
55335
+ Served asset /active_admin/print.css - 304 Not Modified (6ms)
55336
+
55337
+
55338
+ Started GET "/admin/qwester_presentations/2" for 127.0.0.1 at 2013-05-02 15:03:33 +0100
55339
+ Processing by Admin::QwesterPresentationsController#show as HTML
55340
+ Parameters: {"id"=>"2"}
55341
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
55342
+ Qwester::Presentation Load (0.3ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."id" = ? LIMIT 1 [["id", "2"]]
55343
+ Qwester::Questionnaire Load (0.6ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" INNER JOIN "qwester_presentation_questionnaires" ON "qwester_questionnaires"."id" = "qwester_presentation_questionnaires"."questionnaire_id" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 ORDER BY position
55344
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (132.4ms)
55345
+ Completed 200 OK in 183ms (Views: 176.9ms | ActiveRecord: 1.1ms)
55346
+
55347
+
55348
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-05-02 15:03:33 +0100
55349
+ Served asset /active_admin.css - 304 Not Modified (54ms)
55350
+
55351
+
55352
+ Started GET "/assets/application.js" for 127.0.0.1 at 2013-05-02 15:03:33 +0100
55353
+ Served asset /application.js - 304 Not Modified (25ms)
55354
+
55355
+
55356
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2013-05-02 15:03:33 +0100
55357
+ Served asset /active_admin.js - 304 Not Modified (14ms)
55358
+
55359
+
55360
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2013-05-02 15:03:33 +0100
55361
+ Served asset /active_admin/print.css - 304 Not Modified (5ms)
55362
+
55363
+
55364
+ Started GET "/admin/qwester_presentations/2/edit" for 127.0.0.1 at 2013-05-02 15:04:18 +0100
55365
+ Processing by Admin::QwesterPresentationsController#edit as HTML
55366
+ Parameters: {"id"=>"2"}
55367
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
55368
+ Qwester::Presentation Load (0.1ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."id" = ? LIMIT 1 [["id", "2"]]
55369
+ Qwester::Questionnaire Load (0.3ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires"
55370
+ Qwester::Questionnaire Load (1.2ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" INNER JOIN "qwester_presentation_questionnaires" ON "qwester_questionnaires"."id" = "qwester_presentation_questionnaires"."questionnaire_id" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 ORDER BY position
55371
+ DEPRECATION WARNING: f.buttons is deprecated in favour of f.actions. (called from block (2 levels) in <module:Qwester> at /home/rob/web/qwester/lib/active_admin/admin/presentations.rb:48)
55372
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (262.8ms)
55373
+ Completed 200 OK in 291ms (Views: 283.9ms | ActiveRecord: 1.8ms)
55374
+
55375
+
55376
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-05-02 15:04:18 +0100
55377
+ Served asset /active_admin.css - 304 Not Modified (152ms)
55378
+
55379
+
55380
+ Started GET "/assets/application.js" for 127.0.0.1 at 2013-05-02 15:04:18 +0100
55381
+ Served asset /application.js - 304 Not Modified (12ms)
55382
+
55383
+
55384
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2013-05-02 15:04:18 +0100
55385
+ Served asset /active_admin.js - 304 Not Modified (7ms)
55386
+
55387
+
55388
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2013-05-02 15:04:18 +0100
55389
+ Served asset /active_admin/print.css - 304 Not Modified (0ms)
55390
+
55391
+
55392
+ Started PUT "/admin/qwester_presentations/2" for 127.0.0.1 at 2013-05-02 15:04:23 +0100
55393
+ Processing by Admin::QwesterPresentationsController#update as HTML
55394
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"G7TNPjgil5uCrAdj8zqJMhIl21QnYR6bL+LSoZ7df9s=", "qwester_presentation"=>{"name"=>"just_blue", "title"=>"Just blue", "default"=>"0", "description"=>"", "questionnaire_ids"=>[""]}, "commit"=>"Update Presentation", "id"=>"2"}
55395
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
55396
+ Qwester::Presentation Load (0.1ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."id" = ? LIMIT 1 [["id", "2"]]
55397
+ Qwester::Questionnaire Load (0.2ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" INNER JOIN "qwester_presentation_questionnaires" ON "qwester_questionnaires"."id" = "qwester_presentation_questionnaires"."questionnaire_id" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 ORDER BY position
55398
+  (0.1ms) begin transaction
55399
+ SQL (1.1ms) DELETE FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" IN (1, 1)
55400
+  (186.7ms) commit transaction
55401
+  (0.1ms) begin transaction
55402
+ Qwester::Presentation Exists (0.3ms) SELECT 1 AS one FROM "qwester_presentations" WHERE ("qwester_presentations"."name" = 'just_blue' AND "qwester_presentations"."id" != 2) LIMIT 1
55403
+  (1.5ms) UPDATE "qwester_presentations" SET "default" = 'f', "updated_at" = '2013-05-02 14:04:23.365877' WHERE "qwester_presentations"."id" = 2
55404
+  (100.6ms) commit transaction
55405
+ Redirected to http://localhost:3000/admin/qwester_presentations/2
55406
+ Completed 302 Found in 342ms (ActiveRecord: 0.0ms)
55407
+
55408
+
55409
+ Started GET "/admin/qwester_presentations/2" for 127.0.0.1 at 2013-05-02 15:04:23 +0100
55410
+ Processing by Admin::QwesterPresentationsController#show as HTML
55411
+ Parameters: {"id"=>"2"}
55412
+ AdminUser Load (6.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
55413
+ Qwester::Presentation Load (0.1ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."id" = ? LIMIT 1 [["id", "2"]]
55414
+ Qwester::Questionnaire Load (0.3ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" INNER JOIN "qwester_presentation_questionnaires" ON "qwester_questionnaires"."id" = "qwester_presentation_questionnaires"."questionnaire_id" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 ORDER BY position
55415
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (122.9ms)
55416
+ Completed 200 OK in 139ms (Views: 129.6ms | ActiveRecord: 6.6ms)
55417
+
55418
+
55419
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-05-02 15:04:23 +0100
55420
+ Served asset /active_admin.css - 304 Not Modified (38ms)
55421
+
55422
+
55423
+ Started GET "/assets/application.js" for 127.0.0.1 at 2013-05-02 15:04:23 +0100
55424
+ Served asset /application.js - 304 Not Modified (15ms)
55425
+
55426
+
55427
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2013-05-02 15:04:23 +0100
55428
+ Served asset /active_admin.js - 304 Not Modified (7ms)
55429
+
55430
+
55431
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2013-05-02 15:04:24 +0100
55432
+ Served asset /active_admin/print.css - 304 Not Modified (0ms)
55433
+
55434
+
55435
+ Started GET "/admin/qwester_presentations" for 127.0.0.1 at 2013-05-02 15:04:27 +0100
55436
+ Processing by Admin::QwesterPresentationsController#index as HTML
55437
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
55438
+  (0.3ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "qwester_presentations" LIMIT 30 OFFSET 0) subquery_for_count
55439
+  (0.2ms) SELECT COUNT(*) FROM "qwester_presentations" 
55440
+ CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "qwester_presentations" LIMIT 30 OFFSET 0) subquery_for_count
55441
+ Qwester::Presentation Load (0.2ms) SELECT "qwester_presentations".* FROM "qwester_presentations" ORDER BY "qwester_presentations"."id" desc LIMIT 30 OFFSET 0
55442
+ Qwester::Questionnaire Load (2.6ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" INNER JOIN "qwester_presentation_questionnaires" ON "qwester_questionnaires"."id" = "qwester_presentation_questionnaires"."questionnaire_id" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 ORDER BY position
55443
+ Qwester::Questionnaire Load (0.2ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" INNER JOIN "qwester_presentation_questionnaires" ON "qwester_questionnaires"."id" = "qwester_presentation_questionnaires"."questionnaire_id" WHERE "qwester_presentation_questionnaires"."presentation_id" = 1 ORDER BY position
55444
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/index.html.arb (518.9ms)
55445
+ Completed 200 OK in 527ms (Views: 520.4ms | ActiveRecord: 3.8ms)
55446
+
55447
+
55448
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-05-02 15:04:28 +0100
55449
+ Served asset /active_admin.css - 304 Not Modified (93ms)
55450
+
55451
+
55452
+ Started GET "/assets/application.js" for 127.0.0.1 at 2013-05-02 15:04:28 +0100
55453
+ Served asset /application.js - 304 Not Modified (12ms)
55454
+
55455
+
55456
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2013-05-02 15:04:28 +0100
55457
+ Served asset /active_admin.js - 304 Not Modified (11ms)
55458
+
55459
+
55460
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2013-05-02 15:04:28 +0100
55461
+ Served asset /active_admin/print.css - 304 Not Modified (0ms)
55462
+
55463
+
55464
+ Started GET "/admin/qwester_presentations/2/edit" for 127.0.0.1 at 2013-05-02 15:05:19 +0100
55465
+ Processing by Admin::QwesterPresentationsController#edit as HTML
55466
+ Parameters: {"id"=>"2"}
55467
+ AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
55468
+ Qwester::Presentation Load (0.2ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."id" = ? LIMIT 1 [["id", "2"]]
55469
+ Qwester::Questionnaire Load (0.2ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires"
55470
+ Qwester::Questionnaire Load (0.2ms) SELECT DISTINCT "qwester_questionnaires".* FROM "qwester_questionnaires" INNER JOIN "qwester_presentation_questionnaires" ON "qwester_questionnaires"."id" = "qwester_presentation_questionnaires"."questionnaire_id" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 ORDER BY position
55471
+ DEPRECATION WARNING: f.buttons is deprecated in favour of f.actions. (called from block (2 levels) in <module:Qwester> at /home/rob/web/qwester/lib/active_admin/admin/presentations.rb:48)
55472
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/edit.html.arb (348.4ms)
55473
+ Completed 200 OK in 521ms (Views: 352.5ms | ActiveRecord: 1.9ms)
55474
+
55475
+
55476
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-05-02 15:05:21 +0100
55477
+ Served asset /active_admin.css - 304 Not Modified (32ms)
55478
+
55479
+
55480
+ Started GET "/assets/application.js" for 127.0.0.1 at 2013-05-02 15:05:21 +0100
55481
+ Served asset /application.js - 304 Not Modified (28ms)
55482
+
55483
+
55484
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2013-05-02 15:05:21 +0100
55485
+ Served asset /active_admin.js - 304 Not Modified (19ms)
55486
+
55487
+
55488
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2013-05-02 15:05:21 +0100
55489
+ Served asset /active_admin/print.css - 304 Not Modified (0ms)
55490
+
55491
+
55492
+ Started PUT "/admin/qwester_presentations/2" for 127.0.0.1 at 2013-05-02 15:05:24 +0100
55493
+ Processing by Admin::QwesterPresentationsController#update as HTML
55494
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"G7TNPjgil5uCrAdj8zqJMhIl21QnYR6bL+LSoZ7df9s=", "qwester_presentation"=>{"name"=>"just_blue", "title"=>"Just blue", "default"=>"0", "description"=>"", "questionnaire_ids"=>["", "1", "2"]}, "commit"=>"Update Presentation", "id"=>"2"}
55495
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
55496
+ Qwester::Presentation Load (0.1ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."id" = ? LIMIT 1 [["id", "2"]]
55497
+ Qwester::Questionnaire Load (1.1ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" IN (1, 2)
55498
+ Qwester::Questionnaire Load (0.2ms) SELECT DISTINCT "qwester_questionnaires".* FROM "qwester_questionnaires" INNER JOIN "qwester_presentation_questionnaires" ON "qwester_questionnaires"."id" = "qwester_presentation_questionnaires"."questionnaire_id" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 ORDER BY position
55499
+  (0.1ms) begin transaction
55500
+ Qwester::PresentationQuestionnaire Load (0.3ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
55501
+ SQL (3.3ms) INSERT INTO "qwester_presentation_questionnaires" ("created_at", "position", "presentation_id", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 02 May 2013 14:05:24 UTC +00:00], ["position", 1], ["presentation_id", 2], ["questionnaire_id", 1], ["updated_at", Thu, 02 May 2013 14:05:24 UTC +00:00]]
55502
+ Qwester::PresentationQuestionnaire Load (0.2ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
55503
+ SQL (3.1ms) INSERT INTO "qwester_presentation_questionnaires" ("created_at", "position", "presentation_id", "questionnaire_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 02 May 2013 14:05:24 UTC +00:00], ["position", 2], ["presentation_id", 2], ["questionnaire_id", 2], ["updated_at", Thu, 02 May 2013 14:05:24 UTC +00:00]]
55504
+  (177.2ms) commit transaction
55505
+  (0.1ms) begin transaction
55506
+ Qwester::Presentation Exists (0.2ms) SELECT 1 AS one FROM "qwester_presentations" WHERE ("qwester_presentations"."name" = 'just_blue' AND "qwester_presentations"."id" != 2) LIMIT 1
55507
+  (0.1ms) commit transaction
55508
+ Redirected to http://localhost:3000/admin/qwester_presentations/2
55509
+ Completed 302 Found in 330ms (ActiveRecord: 0.0ms)
55510
+
55511
+
55512
+ Started GET "/admin/qwester_presentations/2" for 127.0.0.1 at 2013-05-02 15:05:25 +0100
55513
+ Processing by Admin::QwesterPresentationsController#show as HTML
55514
+ Parameters: {"id"=>"2"}
55515
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
55516
+ Qwester::Presentation Load (0.1ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."id" = ? LIMIT 1 [["id", "2"]]
55517
+ Qwester::Questionnaire Load (0.3ms) SELECT DISTINCT "qwester_questionnaires".* FROM "qwester_questionnaires" INNER JOIN "qwester_presentation_questionnaires" ON "qwester_questionnaires"."id" = "qwester_presentation_questionnaires"."questionnaire_id" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 ORDER BY position
55518
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (230.8ms)
55519
+ Completed 200 OK in 245ms (Views: 238.8ms | ActiveRecord: 0.8ms)
55520
+
55521
+
55522
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-05-02 15:05:25 +0100
55523
+ Served asset /active_admin.css - 304 Not Modified (64ms)
55524
+
55525
+
55526
+ Started GET "/assets/application.js" for 127.0.0.1 at 2013-05-02 15:05:25 +0100
55527
+ Served asset /application.js - 304 Not Modified (28ms)
55528
+
55529
+
55530
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2013-05-02 15:05:25 +0100
55531
+ Served asset /active_admin.js - 304 Not Modified (13ms)
55532
+
55533
+
55534
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2013-05-02 15:05:25 +0100
55535
+ Served asset /active_admin/print.css - 304 Not Modified (0ms)
55536
+
55537
+
55538
+ Started GET "/admin/qwester_presentations/2" for 127.0.0.1 at 2013-05-02 15:06:30 +0100
55539
+ Processing by Admin::QwesterPresentationsController#show as HTML
55540
+ Parameters: {"id"=>"2"}
55541
+ AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
55542
+ Qwester::Presentation Load (0.2ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."id" = ? LIMIT 1 [["id", "2"]]
55543
+ Qwester::Questionnaire Load (0.3ms) SELECT DISTINCT "qwester_questionnaires".* FROM "qwester_questionnaires" INNER JOIN "qwester_presentation_questionnaires" ON "qwester_questionnaires"."id" = "qwester_presentation_questionnaires"."questionnaire_id" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 ORDER BY position
55544
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (162.1ms)
55545
+ Completed 200 OK in 279ms (Views: 166.0ms | ActiveRecord: 1.5ms)
55546
+
55547
+
55548
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-05-02 15:06:31 +0100
55549
+ Served asset /active_admin.css - 304 Not Modified (44ms)
55550
+
55551
+
55552
+ Started GET "/assets/application.js" for 127.0.0.1 at 2013-05-02 15:06:31 +0100
55553
+ Served asset /application.js - 304 Not Modified (28ms)
55554
+
55555
+
55556
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2013-05-02 15:06:31 +0100
55557
+ Served asset /active_admin.js - 304 Not Modified (9ms)
55558
+
55559
+
55560
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2013-05-02 15:06:31 +0100
55561
+ Served asset /active_admin/print.css - 304 Not Modified (0ms)
55562
+ Connecting to database specified by database.yml
55563
+
55564
+
55565
+ Started GET "/admin/qwester_presentations/2" for 127.0.0.1 at 2013-05-02 15:19:26 +0100
55566
+ Processing by Admin::QwesterPresentationsController#show as HTML
55567
+ Parameters: {"id"=>"2"}
55568
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
55569
+ Qwester::Presentation Load (0.3ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."id" = ? LIMIT 1 [["id", "2"]]
55570
+ Qwester::Questionnaire Load (1.4ms) SELECT DISTINCT "qwester_questionnaires".* FROM "qwester_questionnaires" INNER JOIN "qwester_presentation_questionnaires" ON "qwester_questionnaires"."id" = "qwester_presentation_questionnaires"."questionnaire_id" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 ORDER BY position
55571
+ Qwester::PresentationQuestionnaire Load (0.2ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 1 ORDER BY position LIMIT 1
55572
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 1 ORDER BY position LIMIT 1
55573
+ Qwester::PresentationQuestionnaire Load (0.3ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
55574
+ Qwester::PresentationQuestionnaire Load (0.3ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 2 ORDER BY position LIMIT 1
55575
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 2 ORDER BY position LIMIT 1
55576
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
55577
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (690.9ms)
55578
+ Completed 200 OK in 1030ms (Views: 772.2ms | ActiveRecord: 4.8ms)
55579
+
55580
+
55581
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-05-02 15:19:28 +0100
55582
+ Served asset /active_admin.css - 304 Not Modified (127ms)
55583
+
55584
+
55585
+ Started GET "/assets/application.js" for 127.0.0.1 at 2013-05-02 15:19:28 +0100
55586
+ Served asset /application.js - 304 Not Modified (86ms)
55587
+
55588
+
55589
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2013-05-02 15:19:28 +0100
55590
+ Served asset /active_admin.js - 304 Not Modified (63ms)
55591
+
55592
+
55593
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2013-05-02 15:19:28 +0100
55594
+ Served asset /active_admin/print.css - 304 Not Modified (9ms)
55595
+
55596
+
55597
+ Started GET "/admin/qwester_presentations/2" for 127.0.0.1 at 2013-05-02 15:19:57 +0100
55598
+ Processing by Admin::QwesterPresentationsController#show as HTML
55599
+ Parameters: {"id"=>"2"}
55600
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
55601
+ Qwester::Presentation Load (0.3ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."id" = ? LIMIT 1 [["id", "2"]]
55602
+ Qwester::Questionnaire Load (0.3ms) SELECT DISTINCT "qwester_questionnaires".* FROM "qwester_questionnaires" INNER JOIN "qwester_presentation_questionnaires" ON "qwester_questionnaires"."id" = "qwester_presentation_questionnaires"."questionnaire_id" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 ORDER BY position
55603
+ Qwester::PresentationQuestionnaire Load (0.2ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 1 ORDER BY position LIMIT 1
55604
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 1 ORDER BY position LIMIT 1
55605
+ Qwester::PresentationQuestionnaire Load (0.3ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
55606
+ Qwester::PresentationQuestionnaire Load (0.3ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 2 ORDER BY position LIMIT 1
55607
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 2 ORDER BY position LIMIT 1
55608
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
55609
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (575.0ms)
55610
+ Completed 200 OK in 772ms (Views: 578.5ms | ActiveRecord: 2.7ms)
55611
+
55612
+
55613
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-05-02 15:20:00 +0100
55614
+ Served asset /active_admin.css - 304 Not Modified (69ms)
55615
+
55616
+
55617
+ Started GET "/assets/application.js" for 127.0.0.1 at 2013-05-02 15:20:00 +0100
55618
+ Served asset /application.js - 304 Not Modified (31ms)
55619
+
55620
+
55621
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2013-05-02 15:20:00 +0100
55622
+ Served asset /active_admin.js - 304 Not Modified (14ms)
55623
+
55624
+
55625
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2013-05-02 15:20:00 +0100
55626
+ Served asset /active_admin/print.css - 304 Not Modified (0ms)
55627
+
55628
+
55629
+ Started GET "/admin/qwester_presentations/2" for 127.0.0.1 at 2013-05-02 15:20:16 +0100
55630
+ Processing by Admin::QwesterPresentationsController#show as HTML
55631
+ Parameters: {"id"=>"2"}
55632
+ AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
55633
+ Qwester::Presentation Load (0.2ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."id" = ? LIMIT 1 [["id", "2"]]
55634
+ Qwester::Questionnaire Load (0.3ms) SELECT DISTINCT "qwester_questionnaires".* FROM "qwester_questionnaires" INNER JOIN "qwester_presentation_questionnaires" ON "qwester_questionnaires"."id" = "qwester_presentation_questionnaires"."questionnaire_id" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 ORDER BY position
55635
+ Qwester::PresentationQuestionnaire Load (0.2ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 1 ORDER BY position LIMIT 1
55636
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 1 ORDER BY position LIMIT 1
55637
+ Qwester::PresentationQuestionnaire Load (0.3ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
55638
+ Qwester::PresentationQuestionnaire Load (0.9ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 2 ORDER BY position LIMIT 1
55639
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 2 ORDER BY position LIMIT 1
55640
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
55641
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (185.2ms)
55642
+ Completed 200 OK in 234ms (Views: 190.4ms | ActiveRecord: 3.2ms)
55643
+
55644
+
55645
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-05-02 15:20:17 +0100
55646
+ Served asset /active_admin.css - 304 Not Modified (39ms)
55647
+
55648
+
55649
+ Started GET "/assets/application.js" for 127.0.0.1 at 2013-05-02 15:20:17 +0100
55650
+ Served asset /application.js - 304 Not Modified (14ms)
55651
+
55652
+
55653
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2013-05-02 15:20:17 +0100
55654
+ Served asset /active_admin.js - 304 Not Modified (125ms)
55655
+
55656
+
55657
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2013-05-02 15:20:17 +0100
55658
+ Served asset /active_admin/print.css - 304 Not Modified (4ms)
55659
+
55660
+
55661
+ Started GET "/admin/qwester_presentations/2/move_down?questionnaire_id=1" for 127.0.0.1 at 2013-05-02 15:20:22 +0100
55662
+ Processing by Admin::QwesterPresentationsController#move_down as HTML
55663
+ Parameters: {"questionnaire_id"=>"1", "id"=>"2"}
55664
+ AdminUser Load (0.4ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
55665
+ Qwester::Presentation Load (0.1ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."id" = ? LIMIT 1 [["id", "2"]]
55666
+ Qwester::Questionnaire Load (0.2ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "1"]]
55667
+ Qwester::PresentationQuestionnaire Load (1.1ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 1 ORDER BY position LIMIT 1
55668
+ Qwester::PresentationQuestionnaire Load (0.2ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position > 1) ORDER BY qwester_presentation_questionnaires.position ASC LIMIT 1
55669
+  (0.1ms) begin transaction
55670
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position > 1) ORDER BY qwester_presentation_questionnaires.position ASC LIMIT 1
55671
+  (2.9ms) UPDATE "qwester_presentation_questionnaires" SET "position" = 1, "updated_at" = '2013-05-02 14:20:22.153874' WHERE "qwester_presentation_questionnaires"."id" = 7
55672
+  (0.1ms) SELECT COUNT(*) FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position = 1)
55673
+ SQL (0.3ms) UPDATE "qwester_presentation_questionnaires" SET position = (position + 1) WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position >= 1 AND position < 2 AND id != 7)
55674
+  (0.1ms) UPDATE "qwester_presentation_questionnaires" SET "position" = 2, "updated_at" = '2013-05-02 14:20:22.173288' WHERE "qwester_presentation_questionnaires"."id" = 6
55675
+  (0.1ms) SELECT COUNT(*) FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position = 2)
55676
+  (141.9ms) commit transaction
55677
+ Redirected to http://localhost:3000/admin/qwester_presentations/2
55678
+ Completed 302 Found in 179ms (ActiveRecord: 147.5ms)
55679
+
55680
+
55681
+ Started GET "/admin/qwester_presentations/2" for 127.0.0.1 at 2013-05-02 15:20:22 +0100
55682
+ Processing by Admin::QwesterPresentationsController#show as HTML
55683
+ Parameters: {"id"=>"2"}
55684
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
55685
+ Qwester::Presentation Load (0.1ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."id" = ? LIMIT 1 [["id", "2"]]
55686
+ Qwester::Questionnaire Load (0.3ms) SELECT DISTINCT "qwester_questionnaires".* FROM "qwester_questionnaires" INNER JOIN "qwester_presentation_questionnaires" ON "qwester_questionnaires"."id" = "qwester_presentation_questionnaires"."questionnaire_id" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 ORDER BY position
55687
+ Qwester::PresentationQuestionnaire Load (0.2ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 2 ORDER BY position LIMIT 1
55688
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 2 ORDER BY position LIMIT 1
55689
+ Qwester::PresentationQuestionnaire Load (0.2ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
55690
+ Qwester::PresentationQuestionnaire Load (0.3ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 1 ORDER BY position LIMIT 1
55691
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 1 ORDER BY position LIMIT 1
55692
+ CACHE (0.2ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
55693
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (149.4ms)
55694
+ Completed 200 OK in 176ms (Views: 157.2ms | ActiveRecord: 1.7ms)
55695
+
55696
+
55697
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-05-02 15:20:22 +0100
55698
+ Served asset /active_admin.css - 304 Not Modified (46ms)
55699
+
55700
+
55701
+ Started GET "/assets/application.js" for 127.0.0.1 at 2013-05-02 15:20:22 +0100
55702
+ Served asset /application.js - 304 Not Modified (15ms)
55703
+
55704
+
55705
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2013-05-02 15:20:22 +0100
55706
+ Served asset /active_admin.js - 304 Not Modified (11ms)
55707
+
55708
+
55709
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2013-05-02 15:20:22 +0100
55710
+ Served asset /active_admin/print.css - 304 Not Modified (4ms)
55711
+
55712
+
55713
+ Started GET "/admin/qwester_presentations/2/move_up?questionnaire_id=1" for 127.0.0.1 at 2013-05-02 15:20:25 +0100
55714
+ Processing by Admin::QwesterPresentationsController#move_up as HTML
55715
+ Parameters: {"questionnaire_id"=>"1", "id"=>"2"}
55716
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
55717
+ Qwester::Presentation Load (0.2ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."id" = ? LIMIT 1 [["id", "2"]]
55718
+ Qwester::Questionnaire Load (0.1ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "1"]]
55719
+ Qwester::PresentationQuestionnaire Load (0.1ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 1 ORDER BY position LIMIT 1
55720
+ Qwester::PresentationQuestionnaire Load (0.3ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position < 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
55721
+  (0.1ms) begin transaction
55722
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position < 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
55723
+  (1.1ms) UPDATE "qwester_presentation_questionnaires" SET "position" = 2, "updated_at" = '2013-05-02 14:20:25.538867' WHERE "qwester_presentation_questionnaires"."id" = 7
55724
+  (0.1ms) SELECT COUNT(*) FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position = 2)
55725
+ SQL (0.2ms) UPDATE "qwester_presentation_questionnaires" SET position = (position - 1) WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position > 1 AND position <= 2 AND id != 7)
55726
+  (0.4ms) UPDATE "qwester_presentation_questionnaires" SET "position" = 1, "updated_at" = '2013-05-02 14:20:25.543111' WHERE "qwester_presentation_questionnaires"."id" = 6
55727
+  (0.1ms) SELECT COUNT(*) FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position = 1)
55728
+  (157.1ms) commit transaction
55729
+ Redirected to http://localhost:3000/admin/qwester_presentations/2
55730
+ Completed 302 Found in 179ms (ActiveRecord: 160.0ms)
55731
+
55732
+
55733
+ Started GET "/admin/qwester_presentations/2" for 127.0.0.1 at 2013-05-02 15:20:25 +0100
55734
+ Processing by Admin::QwesterPresentationsController#show as HTML
55735
+ Parameters: {"id"=>"2"}
55736
+ AdminUser Load (0.4ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
55737
+ Qwester::Presentation Load (0.2ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."id" = ? LIMIT 1 [["id", "2"]]
55738
+ Qwester::Questionnaire Load (0.4ms) SELECT DISTINCT "qwester_questionnaires".* FROM "qwester_questionnaires" INNER JOIN "qwester_presentation_questionnaires" ON "qwester_questionnaires"."id" = "qwester_presentation_questionnaires"."questionnaire_id" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 ORDER BY position
55739
+ Qwester::PresentationQuestionnaire Load (0.3ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 1 ORDER BY position LIMIT 1
55740
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 1 ORDER BY position LIMIT 1
55741
+ Qwester::PresentationQuestionnaire Load (0.2ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
55742
+ Qwester::PresentationQuestionnaire Load (0.3ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 2 ORDER BY position LIMIT 1
55743
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 2 ORDER BY position LIMIT 1
55744
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
55745
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (141.7ms)
55746
+ Completed 200 OK in 157ms (Views: 148.0ms | ActiveRecord: 1.7ms)
55747
+
55748
+
55749
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-05-02 15:20:26 +0100
55750
+ Served asset /active_admin.css - 304 Not Modified (90ms)
55751
+
55752
+
55753
+ Started GET "/assets/application.js" for 127.0.0.1 at 2013-05-02 15:20:26 +0100
55754
+ Served asset /application.js - 304 Not Modified (14ms)
55755
+
55756
+
55757
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2013-05-02 15:20:26 +0100
55758
+ Served asset /active_admin.js - 304 Not Modified (18ms)
55759
+
55760
+
55761
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2013-05-02 15:20:26 +0100
55762
+ Served asset /active_admin/print.css - 304 Not Modified (0ms)
55763
+
55764
+
55765
+ Started GET "/admin/qwester_presentations/2/move_down?questionnaire_id=1" for 127.0.0.1 at 2013-05-02 15:20:48 +0100
55766
+ Processing by Admin::QwesterPresentationsController#move_down as HTML
55767
+ Parameters: {"questionnaire_id"=>"1", "id"=>"2"}
55768
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
55769
+ Qwester::Presentation Load (0.1ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."id" = ? LIMIT 1 [["id", "2"]]
55770
+ Qwester::Questionnaire Load (0.1ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "1"]]
55771
+ Qwester::PresentationQuestionnaire Load (0.2ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 1 ORDER BY position LIMIT 1
55772
+ Qwester::PresentationQuestionnaire Load (0.2ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position > 1) ORDER BY qwester_presentation_questionnaires.position ASC LIMIT 1
55773
+  (0.1ms) begin transaction
55774
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position > 1) ORDER BY qwester_presentation_questionnaires.position ASC LIMIT 1
55775
+  (1.2ms) UPDATE "qwester_presentation_questionnaires" SET "position" = 1, "updated_at" = '2013-05-02 14:20:48.564048' WHERE "qwester_presentation_questionnaires"."id" = 7
55776
+  (0.1ms) SELECT COUNT(*) FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position = 1)
55777
+ SQL (0.2ms) UPDATE "qwester_presentation_questionnaires" SET position = (position + 1) WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position >= 1 AND position < 2 AND id != 7)
55778
+  (0.1ms) UPDATE "qwester_presentation_questionnaires" SET "position" = 2, "updated_at" = '2013-05-02 14:20:48.568301' WHERE "qwester_presentation_questionnaires"."id" = 6
55779
+  (0.1ms) SELECT COUNT(*) FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position = 2)
55780
+  (166.3ms) commit transaction
55781
+ Redirected to http://localhost:3000/admin/qwester_presentations/2
55782
+ Completed 302 Found in 182ms (ActiveRecord: 169.1ms)
55783
+
55784
+
55785
+ Started GET "/admin/qwester_presentations/2" for 127.0.0.1 at 2013-05-02 15:20:48 +0100
55786
+ Processing by Admin::QwesterPresentationsController#show as HTML
55787
+ Parameters: {"id"=>"2"}
55788
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
55789
+ Qwester::Presentation Load (0.1ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."id" = ? LIMIT 1 [["id", "2"]]
55790
+ Qwester::Questionnaire Load (1.2ms) SELECT DISTINCT "qwester_questionnaires".* FROM "qwester_questionnaires" INNER JOIN "qwester_presentation_questionnaires" ON "qwester_questionnaires"."id" = "qwester_presentation_questionnaires"."questionnaire_id" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 ORDER BY position
55791
+ Qwester::PresentationQuestionnaire Load (0.3ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 2 ORDER BY position LIMIT 1
55792
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 2 ORDER BY position LIMIT 1
55793
+ Qwester::PresentationQuestionnaire Load (0.3ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
55794
+ Qwester::PresentationQuestionnaire Load (0.3ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 1 ORDER BY position LIMIT 1
55795
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 1 ORDER BY position LIMIT 1
55796
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
55797
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (82.3ms)
55798
+ Completed 200 OK in 160ms (Views: 142.6ms | ActiveRecord: 2.5ms)
55799
+
55800
+
55801
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-05-02 15:20:49 +0100
55802
+ Served asset /active_admin.css - 304 Not Modified (38ms)
55803
+
55804
+
55805
+ Started GET "/assets/application.js" for 127.0.0.1 at 2013-05-02 15:20:49 +0100
55806
+ Served asset /application.js - 304 Not Modified (12ms)
55807
+
55808
+
55809
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2013-05-02 15:20:49 +0100
55810
+ Served asset /active_admin.js - 304 Not Modified (18ms)
55811
+
55812
+
55813
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2013-05-02 15:20:49 +0100
55814
+ Served asset /active_admin/print.css - 304 Not Modified (0ms)
55815
+
55816
+
55817
+ Started GET "/admin/qwester_presentations/2/move_up?questionnaire_id=1" for 127.0.0.1 at 2013-05-02 15:20:51 +0100
55818
+ Processing by Admin::QwesterPresentationsController#move_up as HTML
55819
+ Parameters: {"questionnaire_id"=>"1", "id"=>"2"}
55820
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
55821
+ Qwester::Presentation Load (0.1ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."id" = ? LIMIT 1 [["id", "2"]]
55822
+ Qwester::Questionnaire Load (0.1ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "1"]]
55823
+ Qwester::PresentationQuestionnaire Load (0.3ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 1 ORDER BY position LIMIT 1
55824
+ Qwester::PresentationQuestionnaire Load (0.2ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position < 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
55825
+  (0.1ms) begin transaction
55826
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position < 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
55827
+  (1.2ms) UPDATE "qwester_presentation_questionnaires" SET "position" = 2, "updated_at" = '2013-05-02 14:20:51.483943' WHERE "qwester_presentation_questionnaires"."id" = 7
55828
+  (0.1ms) SELECT COUNT(*) FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position = 2)
55829
+ SQL (0.3ms) UPDATE "qwester_presentation_questionnaires" SET position = (position - 1) WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position > 1 AND position <= 2 AND id != 7)
55830
+  (0.2ms) UPDATE "qwester_presentation_questionnaires" SET "position" = 1, "updated_at" = '2013-05-02 14:20:51.489233' WHERE "qwester_presentation_questionnaires"."id" = 6
55831
+  (0.1ms) SELECT COUNT(*) FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position = 1)
55832
+  (169.5ms) commit transaction
55833
+ Redirected to http://localhost:3000/admin/qwester_presentations/2
55834
+ Completed 302 Found in 191ms (ActiveRecord: 172.5ms)
55835
+
55836
+
55837
+ Started GET "/admin/qwester_presentations/2" for 127.0.0.1 at 2013-05-02 15:20:51 +0100
55838
+ Processing by Admin::QwesterPresentationsController#show as HTML
55839
+ Parameters: {"id"=>"2"}
55840
+ AdminUser Load (9.7ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
55841
+ Qwester::Presentation Load (0.2ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."id" = ? LIMIT 1 [["id", "2"]]
55842
+ Qwester::Questionnaire Load (0.3ms) SELECT DISTINCT "qwester_questionnaires".* FROM "qwester_questionnaires" INNER JOIN "qwester_presentation_questionnaires" ON "qwester_questionnaires"."id" = "qwester_presentation_questionnaires"."questionnaire_id" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 ORDER BY position
55843
+ Qwester::PresentationQuestionnaire Load (0.2ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 1 ORDER BY position LIMIT 1
55844
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 1 ORDER BY position LIMIT 1
55845
+ Qwester::PresentationQuestionnaire Load (0.2ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
55846
+ Qwester::PresentationQuestionnaire Load (0.3ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 2 ORDER BY position LIMIT 1
55847
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 2 ORDER BY position LIMIT 1
55848
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
55849
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (125.6ms)
55850
+ Completed 200 OK in 146ms (Views: 127.8ms | ActiveRecord: 10.9ms)
55851
+
55852
+
55853
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-05-02 15:20:51 +0100
55854
+ Served asset /active_admin.css - 304 Not Modified (41ms)
55855
+
55856
+
55857
+ Started GET "/assets/application.js" for 127.0.0.1 at 2013-05-02 15:20:52 +0100
55858
+ Served asset /application.js - 304 Not Modified (13ms)
55859
+
55860
+
55861
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2013-05-02 15:20:52 +0100
55862
+ Served asset /active_admin.js - 304 Not Modified (14ms)
55863
+
55864
+
55865
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2013-05-02 15:20:52 +0100
55866
+ Served asset /active_admin/print.css - 304 Not Modified (5ms)
55867
+
55868
+
55869
+ Started GET "/admin/qwester_presentations/2" for 127.0.0.1 at 2013-05-02 15:21:25 +0100
55870
+ Processing by Admin::QwesterPresentationsController#show as HTML
55871
+ Parameters: {"id"=>"2"}
55872
+ AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
55873
+ Qwester::Presentation Load (0.2ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."id" = ? LIMIT 1 [["id", "2"]]
55874
+ Qwester::Questionnaire Load (0.3ms) SELECT DISTINCT "qwester_questionnaires".* FROM "qwester_questionnaires" INNER JOIN "qwester_presentation_questionnaires" ON "qwester_questionnaires"."id" = "qwester_presentation_questionnaires"."questionnaire_id" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 ORDER BY position
55875
+ Qwester::PresentationQuestionnaire Load (0.3ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 1 ORDER BY position LIMIT 1
55876
+ CACHE (1.2ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 1 ORDER BY position LIMIT 1
55877
+ Qwester::PresentationQuestionnaire Load (0.2ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
55878
+ Qwester::PresentationQuestionnaire Load (0.2ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 2 ORDER BY position LIMIT 1
55879
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 2 ORDER BY position LIMIT 1
55880
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
55881
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (185.6ms)
55882
+ Completed 200 OK in 239ms (Views: 186.2ms | ActiveRecord: 4.7ms)
55883
+
55884
+
55885
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-05-02 15:21:26 +0100
55886
+ Served asset /active_admin.css - 304 Not Modified (30ms)
55887
+
55888
+
55889
+ Started GET "/assets/application.js" for 127.0.0.1 at 2013-05-02 15:21:26 +0100
55890
+ Served asset /application.js - 304 Not Modified (12ms)
55891
+
55892
+
55893
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2013-05-02 15:21:27 +0100
55894
+ Served asset /active_admin.js - 304 Not Modified (7ms)
55895
+
55896
+
55897
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2013-05-02 15:21:27 +0100
55898
+ Served asset /active_admin/print.css - 304 Not Modified (0ms)
55899
+
55900
+
55901
+ Started GET "/admin/qwester_presentations/2" for 127.0.0.1 at 2013-05-02 15:22:20 +0100
55902
+ Processing by Admin::QwesterPresentationsController#show as HTML
55903
+ Parameters: {"id"=>"2"}
55904
+ AdminUser Load (0.2ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
55905
+ Qwester::Presentation Load (0.2ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."id" = ? LIMIT 1 [["id", "2"]]
55906
+ Qwester::Questionnaire Load (0.2ms) SELECT DISTINCT "qwester_questionnaires".* FROM "qwester_questionnaires" INNER JOIN "qwester_presentation_questionnaires" ON "qwester_questionnaires"."id" = "qwester_presentation_questionnaires"."questionnaire_id" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 ORDER BY position
55907
+ Qwester::PresentationQuestionnaire Load (1.7ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 1 ORDER BY position LIMIT 1
55908
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 1 ORDER BY position LIMIT 1
55909
+ Qwester::PresentationQuestionnaire Load (0.3ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
55910
+ Qwester::PresentationQuestionnaire Load (0.3ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 2 ORDER BY position LIMIT 1
55911
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 2 ORDER BY position LIMIT 1
55912
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
55913
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (213.2ms)
55914
+ Completed 200 OK in 265ms (Views: 214.1ms | ActiveRecord: 4.7ms)
55915
+
55916
+
55917
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-05-02 15:22:21 +0100
55918
+ Served asset /active_admin.css - 304 Not Modified (100ms)
55919
+
55920
+
55921
+ Started GET "/assets/application.js" for 127.0.0.1 at 2013-05-02 15:22:21 +0100
55922
+ Served asset /application.js - 304 Not Modified (12ms)
55923
+
55924
+
55925
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2013-05-02 15:22:21 +0100
55926
+ Served asset /active_admin.js - 304 Not Modified (20ms)
55927
+
55928
+
55929
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2013-05-02 15:22:22 +0100
55930
+ Served asset /active_admin/print.css - 304 Not Modified (5ms)
55931
+
55932
+
55933
+ Started GET "/admin/qwester_presentations/2/move_up?questionnaire_id=2" for 127.0.0.1 at 2013-05-02 15:22:30 +0100
55934
+ Processing by Admin::QwesterPresentationsController#move_up as HTML
55935
+ Parameters: {"questionnaire_id"=>"2", "id"=>"2"}
55936
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
55937
+ Qwester::Presentation Load (0.2ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."id" = ? LIMIT 1 [["id", "2"]]
55938
+ Qwester::Questionnaire Load (0.2ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "2"]]
55939
+ Qwester::PresentationQuestionnaire Load (0.2ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 2 ORDER BY position LIMIT 1
55940
+ Qwester::PresentationQuestionnaire Load (0.1ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position < 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
55941
+  (0.2ms) begin transaction
55942
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position < 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
55943
+  (1.2ms) UPDATE "qwester_presentation_questionnaires" SET "position" = 2, "updated_at" = '2013-05-02 14:22:30.581741' WHERE "qwester_presentation_questionnaires"."id" = 6
55944
+  (0.1ms) SELECT COUNT(*) FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position = 2)
55945
+ SQL (3.1ms) UPDATE "qwester_presentation_questionnaires" SET position = (position - 1) WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position > 1 AND position <= 2 AND id != 6)
55946
+  (0.2ms) UPDATE "qwester_presentation_questionnaires" SET "position" = 1, "updated_at" = '2013-05-02 14:22:30.590342' WHERE "qwester_presentation_questionnaires"."id" = 7
55947
+  (0.1ms) SELECT COUNT(*) FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position = 1)
55948
+  (257.6ms) commit transaction
55949
+ Redirected to http://localhost:3000/admin/qwester_presentations/2
55950
+ Completed 302 Found in 303ms (ActiveRecord: 263.5ms)
55951
+
55952
+
55953
+ Started GET "/admin/qwester_presentations/2" for 127.0.0.1 at 2013-05-02 15:22:30 +0100
55954
+ Processing by Admin::QwesterPresentationsController#show as HTML
55955
+ Parameters: {"id"=>"2"}
55956
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
55957
+ Qwester::Presentation Load (0.1ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."id" = ? LIMIT 1 [["id", "2"]]
55958
+ Qwester::Questionnaire Load (0.4ms) SELECT DISTINCT "qwester_questionnaires".* FROM "qwester_questionnaires" INNER JOIN "qwester_presentation_questionnaires" ON "qwester_questionnaires"."id" = "qwester_presentation_questionnaires"."questionnaire_id" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 ORDER BY position
55959
+ Qwester::PresentationQuestionnaire Load (0.3ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 2 ORDER BY position LIMIT 1
55960
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 2 ORDER BY position LIMIT 1
55961
+ Qwester::PresentationQuestionnaire Load (0.2ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
55962
+ Qwester::PresentationQuestionnaire Load (0.2ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 1 ORDER BY position LIMIT 1
55963
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 1 ORDER BY position LIMIT 1
55964
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
55965
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (134.1ms)
55966
+ Completed 200 OK in 147ms (Views: 142.9ms | ActiveRecord: 1.5ms)
55967
+
55968
+
55969
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-05-02 15:22:31 +0100
55970
+ Served asset /active_admin.css - 304 Not Modified (49ms)
55971
+
55972
+
55973
+ Started GET "/assets/application.js" for 127.0.0.1 at 2013-05-02 15:22:31 +0100
55974
+ Served asset /application.js - 304 Not Modified (12ms)
55975
+
55976
+
55977
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2013-05-02 15:22:31 +0100
55978
+ Served asset /active_admin.js - 304 Not Modified (13ms)
55979
+
55980
+
55981
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2013-05-02 15:22:31 +0100
55982
+ Served asset /active_admin/print.css - 304 Not Modified (5ms)
55983
+
55984
+
55985
+ Started GET "/admin/qwester_presentations/2/move_down?questionnaire_id=2" for 127.0.0.1 at 2013-05-02 15:22:33 +0100
55986
+ Processing by Admin::QwesterPresentationsController#move_down as HTML
55987
+ Parameters: {"questionnaire_id"=>"2", "id"=>"2"}
55988
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
55989
+ Qwester::Presentation Load (0.1ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."id" = ? LIMIT 1 [["id", "2"]]
55990
+ Qwester::Questionnaire Load (0.1ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" WHERE "qwester_questionnaires"."id" = ? LIMIT 1 [["id", "2"]]
55991
+ Qwester::PresentationQuestionnaire Load (0.3ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 2 ORDER BY position LIMIT 1
55992
+ Qwester::PresentationQuestionnaire Load (0.2ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position > 1) ORDER BY qwester_presentation_questionnaires.position ASC LIMIT 1
55993
+  (0.1ms) begin transaction
55994
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position > 1) ORDER BY qwester_presentation_questionnaires.position ASC LIMIT 1
55995
+  (3.8ms) UPDATE "qwester_presentation_questionnaires" SET "position" = 1, "updated_at" = '2013-05-02 14:22:33.289276' WHERE "qwester_presentation_questionnaires"."id" = 6
55996
+  (0.1ms) SELECT COUNT(*) FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position = 1)
55997
+ SQL (0.3ms) UPDATE "qwester_presentation_questionnaires" SET position = (position + 1) WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position >= 1 AND position < 2 AND id != 6)
55998
+  (0.1ms) UPDATE "qwester_presentation_questionnaires" SET "position" = 2, "updated_at" = '2013-05-02 14:22:33.295765' WHERE "qwester_presentation_questionnaires"."id" = 7
55999
+  (0.1ms) SELECT COUNT(*) FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2 AND position = 2)
56000
+  (139.4ms) commit transaction
56001
+ Redirected to http://localhost:3000/admin/qwester_presentations/2
56002
+ Completed 302 Found in 162ms (ActiveRecord: 144.7ms)
56003
+
56004
+
56005
+ Started GET "/admin/qwester_presentations/2" for 127.0.0.1 at 2013-05-02 15:22:33 +0100
56006
+ Processing by Admin::QwesterPresentationsController#show as HTML
56007
+ Parameters: {"id"=>"2"}
56008
+ AdminUser Load (0.3ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = 1 LIMIT 1
56009
+ Qwester::Presentation Load (0.1ms) SELECT "qwester_presentations".* FROM "qwester_presentations" WHERE "qwester_presentations"."id" = ? LIMIT 1 [["id", "2"]]
56010
+ Qwester::Questionnaire Load (0.3ms) SELECT DISTINCT "qwester_questionnaires".* FROM "qwester_questionnaires" INNER JOIN "qwester_presentation_questionnaires" ON "qwester_questionnaires"."id" = "qwester_presentation_questionnaires"."questionnaire_id" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 ORDER BY position
56011
+ Qwester::PresentationQuestionnaire Load (0.3ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 1 ORDER BY position LIMIT 1
56012
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 1 ORDER BY position LIMIT 1
56013
+ Qwester::PresentationQuestionnaire Load (0.3ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
56014
+ Qwester::PresentationQuestionnaire Load (0.3ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 2 ORDER BY position LIMIT 1
56015
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE "qwester_presentation_questionnaires"."presentation_id" = 2 AND "qwester_presentation_questionnaires"."questionnaire_id" = 2 ORDER BY position LIMIT 1
56016
+ CACHE (0.0ms) SELECT "qwester_presentation_questionnaires".* FROM "qwester_presentation_questionnaires" WHERE ("qwester_presentation_questionnaires"."presentation_id" = 2) ORDER BY qwester_presentation_questionnaires.position DESC LIMIT 1
56017
+ Rendered /home/rob/.rvm/gems/ruby-1.9.3-p286@qwester/gems/activeadmin-0.5.1/app/views/active_admin/resource/show.html.arb (140.8ms)
56018
+ Completed 200 OK in 154ms (Views: 145.5ms | ActiveRecord: 1.6ms)
56019
+
56020
+
56021
+ Started GET "/assets/active_admin.css?body=1" for 127.0.0.1 at 2013-05-02 15:22:33 +0100
56022
+ Served asset /active_admin.css - 304 Not Modified (39ms)
56023
+
56024
+
56025
+ Started GET "/assets/application.js" for 127.0.0.1 at 2013-05-02 15:22:33 +0100
56026
+ Served asset /application.js - 304 Not Modified (17ms)
56027
+
56028
+
56029
+ Started GET "/assets/active_admin.js" for 127.0.0.1 at 2013-05-02 15:22:33 +0100
56030
+ Served asset /active_admin.js - 304 Not Modified (2ms)
56031
+
56032
+
56033
+ Started GET "/assets/active_admin/print.css?body=1" for 127.0.0.1 at 2013-05-02 15:22:34 +0100
56034
+ Served asset /active_admin/print.css - 304 Not Modified (0ms)
56035
+ Connecting to database specified by database.yml
56036
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
56037
+  (0.2ms) select sqlite_version(*)
56038
+  (149.8ms) CREATE TABLE "active_admin_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "resource_id" varchar(255) NOT NULL, "resource_type" varchar(255) NOT NULL, "author_id" integer, "author_type" varchar(255), "namespace" varchar(255), "body" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
56039
+  (131.1ms) CREATE INDEX "index_active_admin_comments_on_author_type_and_author_id" ON "active_admin_comments" ("author_type", "author_id")
56040
+  (136.8ms) CREATE INDEX "index_active_admin_comments_on_namespace" ON "active_admin_comments" ("namespace")
56041
+  (120.1ms) CREATE TABLE "admin_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar(255) DEFAULT '' NOT NULL, "encrypted_password" varchar(255) DEFAULT '' NOT NULL, "reset_password_token" varchar(255), "reset_password_sent_at" datetime, "remember_created_at" datetime, "sign_in_count" integer DEFAULT 0, "current_sign_in_at" datetime, "last_sign_in_at" datetime, "current_sign_in_ip" varchar(255), "last_sign_in_ip" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
56042
+  (97.8ms) CREATE UNIQUE INDEX "index_admin_users_on_email" ON "admin_users" ("email")
56043
+  (130.6ms) CREATE UNIQUE INDEX "index_admin_users_on_reset_password_token" ON "admin_users" ("reset_password_token")
56044
+  (140.3ms) CREATE TABLE "qwester_answer_stores" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "session_id" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "preserved" datetime) 
56045
+  (129.6ms) CREATE TABLE "qwester_answer_stores_answers" ("answer_id" integer, "answer_store_id" integer)
56046
+  (108.3ms) CREATE TABLE "qwester_answer_stores_questionnaires" ("questionnaire_id" integer, "answer_store_id" integer) 
56047
+  (90.0ms) CREATE TABLE "qwester_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "question_id" integer, "value" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "position" integer, "weighting" float DEFAULT 0.0)
56048
+  (94.4ms) CREATE TABLE "qwester_answers_rule_sets" ("answer_id" integer, "rule_set_id" integer) 
56049
+  (122.2ms) CREATE TABLE "qwester_ckeditor_assets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "data_file_name" varchar(255) NOT NULL, "data_content_type" varchar(255), "data_file_size" integer, "assetable_id" integer, "assetable_type" varchar(30), "type" varchar(30), "width" integer, "height" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
56050
+  (191.5ms) CREATE INDEX "qwester_idx_ckeditor_assetable" ON "qwester_ckeditor_assets" ("assetable_type", "assetable_id")
56051
+  (217.0ms) CREATE INDEX "qwester_idx_ckeditor_assetable_type" ON "qwester_ckeditor_assets" ("assetable_type", "type", "assetable_id")
56052
+  (185.3ms) CREATE TABLE "qwester_presentation_questionnaires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "questionnaire_id" integer, "presentation_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "position" integer) 
56053
+  (137.2ms) CREATE TABLE "qwester_presentations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "title" varchar(255), "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "default" boolean)
56054
+  (140.8ms) CREATE TABLE "qwester_questionnaires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "button_image_file_name" varchar(255), "button_image_content_type" varchar(255), "button_image_file_size" integer, "button_image_updated_at" datetime) 
56055
+  (135.3ms) CREATE TABLE "qwester_questionnaires_questions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "questionnaire_id" integer, "question_id" integer, "position" integer, "created_at" datetime, "updated_at" datetime)
56056
+  (130.2ms) CREATE TABLE "qwester_questions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "parent_id" integer, "lft" integer, "rgt" integer, "depth" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "ref" varchar(255), "multi_answer" boolean) 
56057
+  (131.3ms) CREATE TABLE "qwester_rule_sets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" text, "url" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "rule" text, "link_text" varchar(255), "presentation" varchar(255))
56058
+  (120.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
56059
+  (182.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
56060
+  (0.1ms) SELECT version FROM "schema_migrations"
56061
+  (142.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130502082731')
56062
+  (139.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103662')
56063
+  (149.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103658')
56064
+  (124.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103661')
56065
+  (124.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130402085423')
56066
+  (124.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103652')
56067
+  (117.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103645')
56068
+  (116.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103659')
56069
+  (106.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103648')
56070
+  (199.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103646')
56071
+  (342.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103649')
56072
+  (273.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103654')
56073
+  (124.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130110115940')
56074
+  (142.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103656')
56075
+  (156.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130110115938')
56076
+  (132.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103655')
56077
+  (133.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103651')
56078
+  (157.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103657')
56079
+  (232.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103660')
56080
+  (166.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103653')
56081
+  (133.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130315113347')
56082
+  (125.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130315113346')
56083
+  (140.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130402085424')
56084
+  (142.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103647')
56085
+  (132.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314103650')